From 863f64ff009635ad2fa4c79216a4b82b22e6235e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Mon, 27 Nov 2023 01:32:46 +0000 Subject: [PATCH] feat(connectors): update the API #### connectors:v1 The following keys were added: - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getAction.description - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getAction.flatPath - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getAction.httpMethod - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getAction.id - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getAction.parameterOrder - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getAction.parameters.actionId.description - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getAction.parameters.actionId.location - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getAction.parameters.actionId.type - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getAction.parameters.name.description - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getAction.parameters.name.location - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getAction.parameters.name.pattern - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getAction.parameters.name.required - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getAction.parameters.name.type - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getAction.path - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getAction.response.$ref - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getAction.scopes - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getEntityType.description - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getEntityType.flatPath - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getEntityType.httpMethod - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getEntityType.id - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getEntityType.parameterOrder - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getEntityType.parameters.entityId.description - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getEntityType.parameters.entityId.location - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getEntityType.parameters.entityId.type - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getEntityType.parameters.name.description - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getEntityType.parameters.name.location - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getEntityType.parameters.name.pattern - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getEntityType.parameters.name.required - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getEntityType.parameters.name.type - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getEntityType.path - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getEntityType.response.$ref - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.getEntityType.scopes - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.description - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.flatPath - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.httpMethod - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.id - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameterOrder - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.filter.description - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.filter.location - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.filter.type - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.name.description - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.name.location - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.name.pattern - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.name.required - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.name.type - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.pageSize.description - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.pageSize.format - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.pageSize.location - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.pageSize.type - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.pageToken.description - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.pageToken.location - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.pageToken.type - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.view.description - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.view.enum - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.view.enumDescriptions - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.view.location - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.parameters.view.type - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.path - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.response.$ref - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listActions.scopes - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.description - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.flatPath - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.httpMethod - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.id - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameterOrder - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.filter.description - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.filter.location - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.filter.type - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.name.description - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.name.location - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.name.pattern - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.name.required - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.name.type - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.pageSize.description - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.pageSize.format - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.pageSize.location - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.pageSize.type - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.pageToken.description - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.pageToken.location - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.pageToken.type - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.view.description - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.view.enum - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.view.enumDescriptions - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.view.location - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.parameters.view.type - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.path - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.response.$ref - resources.projects.resources.locations.resources.connections.resources.connectionSchemaMetadata.methods.listEntityTypes.scopes - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.create.description - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.create.flatPath - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.create.httpMethod - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.create.id - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.create.parameterOrder - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.create.parameters.customConnectorId.description - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.create.parameters.customConnectorId.location - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.create.parameters.customConnectorId.type - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.create.parameters.parent.description - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.create.parameters.parent.location - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.create.parameters.parent.pattern - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.create.parameters.parent.required - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.create.parameters.parent.type - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.create.path - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.create.request.$ref - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.create.response.$ref - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.create.scopes - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.delete.description - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.delete.flatPath - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.delete.httpMethod - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.delete.id - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.delete.parameterOrder - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.delete.parameters.name.description - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.delete.parameters.name.location - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.delete.parameters.name.pattern - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.delete.parameters.name.required - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.delete.parameters.name.type - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.delete.path - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.delete.response.$ref - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.delete.scopes - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.get.description - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.get.flatPath - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.get.httpMethod - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.get.id - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.get.parameterOrder - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.get.parameters.name.description - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.get.parameters.name.location - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.get.parameters.name.pattern - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.get.parameters.name.required - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.get.parameters.name.type - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.get.path - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.get.response.$ref - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.get.scopes - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.description - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.flatPath - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.httpMethod - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.id - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.parameterOrder - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.parameters.filter.description - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.parameters.filter.location - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.parameters.filter.type - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.parameters.pageSize.description - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.parameters.pageSize.format - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.parameters.pageSize.location - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.parameters.pageSize.type - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.parameters.pageToken.description - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.parameters.pageToken.location - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.parameters.pageToken.type - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.parameters.parent.description - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.parameters.parent.location - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.parameters.parent.pattern - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.parameters.parent.required - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.parameters.parent.type - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.path - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.response.$ref - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.list.scopes - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.patch.description - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.patch.flatPath - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.patch.httpMethod - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.patch.id - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.patch.parameterOrder - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.patch.parameters.name.description - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.patch.parameters.name.location - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.patch.parameters.name.pattern - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.patch.parameters.name.required - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.patch.parameters.name.type - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.patch.parameters.updateMask.description - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.patch.parameters.updateMask.format - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.patch.parameters.updateMask.location - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.patch.parameters.updateMask.type - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.patch.path - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.patch.request.$ref - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.patch.response.$ref - resources.projects.resources.locations.resources.global.resources.customConnectors.methods.patch.scopes - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.create.description - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.create.flatPath - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.create.httpMethod - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.create.id - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.create.parameterOrder - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.create.parameters.customConnectorVersionId.description - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.create.parameters.customConnectorVersionId.location - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.create.parameters.customConnectorVersionId.type - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.create.parameters.parent.description - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.create.parameters.parent.location - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.create.parameters.parent.pattern - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.create.parameters.parent.required - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.create.parameters.parent.type - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.create.path - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.create.request.$ref - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.create.response.$ref - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.create.scopes - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.delete.description - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.delete.flatPath - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.delete.httpMethod - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.delete.id - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.delete.parameterOrder - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.delete.parameters.name.description - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.delete.parameters.name.location - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.delete.parameters.name.pattern - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.delete.parameters.name.required - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.delete.parameters.name.type - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.delete.path - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.delete.response.$ref - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.delete.scopes - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.get.description - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.get.flatPath - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.get.httpMethod - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.get.id - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.get.parameterOrder - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.get.parameters.name.description - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.get.parameters.name.location - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.get.parameters.name.pattern - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.get.parameters.name.required - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.get.parameters.name.type - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.get.path - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.get.response.$ref - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.get.scopes - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.description - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.flatPath - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.httpMethod - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.id - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.parameterOrder - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.parameters.pageSize.description - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.parameters.pageSize.format - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.parameters.pageSize.location - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.parameters.pageSize.type - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.parameters.pageToken.description - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.parameters.pageToken.location - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.parameters.pageToken.type - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.parameters.parent.description - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.parameters.parent.location - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.parameters.parent.pattern - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.parameters.parent.required - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.parameters.parent.type - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.path - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.response.$ref - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.list.scopes - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.patch.description - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.patch.flatPath - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.patch.httpMethod - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.patch.id - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.patch.parameterOrder - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.patch.parameters.name.description - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.patch.parameters.name.location - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.patch.parameters.name.pattern - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.patch.parameters.name.required - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.patch.parameters.name.type - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.patch.parameters.updateMask.description - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.patch.parameters.updateMask.format - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.patch.parameters.updateMask.location - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.patch.parameters.updateMask.type - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.patch.path - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.patch.request.$ref - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.patch.response.$ref - resources.projects.resources.locations.resources.global.resources.customConnectors.resources.customConnectorVersions.methods.patch.scopes - schemas.CustomConnector.description - schemas.CustomConnector.id - schemas.CustomConnector.properties.createTime.description - schemas.CustomConnector.properties.createTime.format - schemas.CustomConnector.properties.createTime.readOnly - schemas.CustomConnector.properties.createTime.type - schemas.CustomConnector.properties.customConnectorType.description - schemas.CustomConnector.properties.customConnectorType.enum - schemas.CustomConnector.properties.customConnectorType.enumDescriptions - schemas.CustomConnector.properties.customConnectorType.type - schemas.CustomConnector.properties.description.description - schemas.CustomConnector.properties.description.type - schemas.CustomConnector.properties.displayName.description - schemas.CustomConnector.properties.displayName.type - schemas.CustomConnector.properties.labels.additionalProperties.type - schemas.CustomConnector.properties.labels.description - schemas.CustomConnector.properties.labels.type - schemas.CustomConnector.properties.launchStage.description - schemas.CustomConnector.properties.launchStage.enum - schemas.CustomConnector.properties.launchStage.enumDescriptions - schemas.CustomConnector.properties.launchStage.readOnly - schemas.CustomConnector.properties.launchStage.type - schemas.CustomConnector.properties.logo.description - schemas.CustomConnector.properties.logo.type - schemas.CustomConnector.properties.name.description - schemas.CustomConnector.properties.name.type - schemas.CustomConnector.properties.updateTime.description - schemas.CustomConnector.properties.updateTime.format - schemas.CustomConnector.properties.updateTime.readOnly - schemas.CustomConnector.properties.updateTime.type - schemas.CustomConnector.type - schemas.CustomConnectorVersion.description - schemas.CustomConnectorVersion.id - schemas.CustomConnectorVersion.properties.authConfig.$ref - schemas.CustomConnectorVersion.properties.authConfig.description - schemas.CustomConnectorVersion.properties.createTime.description - schemas.CustomConnectorVersion.properties.createTime.format - schemas.CustomConnectorVersion.properties.createTime.readOnly - schemas.CustomConnectorVersion.properties.createTime.type - schemas.CustomConnectorVersion.properties.destinationConfig.$ref - schemas.CustomConnectorVersion.properties.destinationConfig.description - schemas.CustomConnectorVersion.properties.enableBackendDestinationConfig.description - schemas.CustomConnectorVersion.properties.enableBackendDestinationConfig.type - schemas.CustomConnectorVersion.properties.labels.additionalProperties.type - schemas.CustomConnectorVersion.properties.labels.description - schemas.CustomConnectorVersion.properties.labels.type - schemas.CustomConnectorVersion.properties.name.description - schemas.CustomConnectorVersion.properties.name.readOnly - schemas.CustomConnectorVersion.properties.name.type - schemas.CustomConnectorVersion.properties.specLocation.description - schemas.CustomConnectorVersion.properties.specLocation.type - schemas.CustomConnectorVersion.properties.type.description - schemas.CustomConnectorVersion.properties.type.enum - schemas.CustomConnectorVersion.properties.type.enumDescriptions - schemas.CustomConnectorVersion.properties.type.type - schemas.CustomConnectorVersion.properties.updateTime.description - schemas.CustomConnectorVersion.properties.updateTime.format - schemas.CustomConnectorVersion.properties.updateTime.readOnly - schemas.CustomConnectorVersion.properties.updateTime.type - schemas.CustomConnectorVersion.type - schemas.EncryptionConfig.description - schemas.EncryptionConfig.id - schemas.EncryptionConfig.properties.encryptionType.description - schemas.EncryptionConfig.properties.encryptionType.enum - schemas.EncryptionConfig.properties.encryptionType.enumDescriptions - schemas.EncryptionConfig.properties.encryptionType.type - schemas.EncryptionConfig.properties.kmsKeyName.description - schemas.EncryptionConfig.properties.kmsKeyName.type - schemas.EncryptionConfig.type - schemas.EventSubscription.properties.jms.$ref - schemas.EventSubscription.properties.jms.description - schemas.EventingConfigTemplate.properties.eventListenerType.description - schemas.EventingConfigTemplate.properties.eventListenerType.enum - schemas.EventingConfigTemplate.properties.eventListenerType.enumDescriptions - schemas.EventingConfigTemplate.properties.eventListenerType.type - schemas.EventingDetails.properties.type.description - schemas.EventingDetails.properties.type.enum - schemas.EventingDetails.properties.type.enumDescriptions - schemas.EventingDetails.properties.type.readOnly - schemas.EventingDetails.properties.type.type - schemas.JMS.description - schemas.JMS.id - schemas.JMS.properties.name.description - schemas.JMS.properties.name.type - schemas.JMS.properties.type.description - schemas.JMS.properties.type.enum - schemas.JMS.properties.type.enumDescriptions - schemas.JMS.properties.type.type - schemas.JMS.type - schemas.ListActionsResponse.description - schemas.ListActionsResponse.id - schemas.ListActionsResponse.properties.actions.description - schemas.ListActionsResponse.properties.actions.items.$ref - schemas.ListActionsResponse.properties.actions.type - schemas.ListActionsResponse.properties.nextPageToken.description - schemas.ListActionsResponse.properties.nextPageToken.type - schemas.ListActionsResponse.type - schemas.ListCustomConnectorVersionsResponse.description - schemas.ListCustomConnectorVersionsResponse.id - schemas.ListCustomConnectorVersionsResponse.properties.customConnectorVersions.description - schemas.ListCustomConnectorVersionsResponse.properties.customConnectorVersions.items.$ref - schemas.ListCustomConnectorVersionsResponse.properties.customConnectorVersions.type - schemas.ListCustomConnectorVersionsResponse.properties.nextPageToken.description - schemas.ListCustomConnectorVersionsResponse.properties.nextPageToken.type - schemas.ListCustomConnectorVersionsResponse.properties.unreachable.description - schemas.ListCustomConnectorVersionsResponse.properties.unreachable.items.type - schemas.ListCustomConnectorVersionsResponse.properties.unreachable.type - schemas.ListCustomConnectorVersionsResponse.type - schemas.ListCustomConnectorsResponse.description - schemas.ListCustomConnectorsResponse.id - schemas.ListCustomConnectorsResponse.properties.customConnectors.description - schemas.ListCustomConnectorsResponse.properties.customConnectors.items.$ref - schemas.ListCustomConnectorsResponse.properties.customConnectors.type - schemas.ListCustomConnectorsResponse.properties.nextPageToken.description - schemas.ListCustomConnectorsResponse.properties.nextPageToken.type - schemas.ListCustomConnectorsResponse.properties.unreachable.description - schemas.ListCustomConnectorsResponse.properties.unreachable.items.type - schemas.ListCustomConnectorsResponse.properties.unreachable.type - schemas.ListCustomConnectorsResponse.type - schemas.ListEntityTypesResponse.description - schemas.ListEntityTypesResponse.id - schemas.ListEntityTypesResponse.properties.entityTypes.description - schemas.ListEntityTypesResponse.properties.entityTypes.items.$ref - schemas.ListEntityTypesResponse.properties.entityTypes.type - schemas.ListEntityTypesResponse.properties.nextPageToken.description - schemas.ListEntityTypesResponse.properties.nextPageToken.type - schemas.ListEntityTypesResponse.type - schemas.RegionalSettings.properties.encryptionConfig.$ref - schemas.RegionalSettings.properties.encryptionConfig.description The following keys were changed: - schemas.ConnectionSchemaMetadata.properties.state.enum - schemas.ConnectionSchemaMetadata.properties.state.enumDescriptions --- discovery/connectors-v1.json | 842 +++++++++- src/apis/connectors/v1.ts | 2971 ++++++++++++++++++++++++++-------- 2 files changed, 3136 insertions(+), 677 deletions(-) diff --git a/discovery/connectors-v1.json b/discovery/connectors-v1.json index 5f74f0640c..9306d07ef8 100644 --- a/discovery/connectors-v1.json +++ b/discovery/connectors-v1.json @@ -600,6 +600,174 @@ "resources": { "connectionSchemaMetadata": { "methods": { + "getAction": { + "description": "Get action.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/connectionSchemaMetadata:getAction", + "httpMethod": "GET", + "id": "connectors.projects.locations.connections.connectionSchemaMetadata.getAction", + "parameterOrder": [ + "name" + ], + "parameters": { + "actionId": { + "description": "Required. Id of the action.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. Resource name format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+/connectionSchemaMetadata$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:getAction", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getEntityType": { + "description": "Get entity type.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/connectionSchemaMetadata:getEntityType", + "httpMethod": "GET", + "id": "connectors.projects.locations.connections.connectionSchemaMetadata.getEntityType", + "parameterOrder": [ + "name" + ], + "parameters": { + "entityId": { + "description": "Required. Id of the entity type.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. Resource name format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+/connectionSchemaMetadata$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:getEntityType", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "listActions": { + "description": "List actions.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/connectionSchemaMetadata:listActions", + "httpMethod": "GET", + "id": "connectors.projects.locations.connections.connectionSchemaMetadata.listActions", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "Required. Filter Wildcards are not supported in the filter currently.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. Resource name format. projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+/connectionSchemaMetadata$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Page size. If unspecified, at most 50 actions will be returned.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Page token.", + "location": "query", + "type": "string" + }, + "view": { + "description": "Specifies which fields are returned in response. Defaults to BASIC view.", + "enum": [ + "VIEW_UNSPECIFIED", + "BASIC" + ], + "enumDescriptions": [ + "", + "" + ], + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:listActions", + "response": { + "$ref": "ListActionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "listEntityTypes": { + "description": "List entity types.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/connectionSchemaMetadata:listEntityTypes", + "httpMethod": "GET", + "id": "connectors.projects.locations.connections.connectionSchemaMetadata.listEntityTypes", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "Required. Filter Wildcards are not supported in the filter currently.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. Resource name format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+/connectionSchemaMetadata$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Page size. If unspecified, at most 50 entity types will be returned.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Page token.", + "location": "query", + "type": "string" + }, + "view": { + "description": "Specifies which fields are returned in response. Defaults to BASIC view.", + "enum": [ + "VIEW_UNSPECIFIED", + "BASIC" + ], + "enumDescriptions": [ + "", + "" + ], + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:listEntityTypes", + "response": { + "$ref": "ListEntityTypesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "refresh": { "description": "Refresh runtime schema of a connection.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/connectionSchemaMetadata:refresh", @@ -1133,20 +1301,341 @@ "location": "query", "type": "string" } - }, - "path": "v1/{+name}", - "request": { - "$ref": "Settings" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, - "resources": { + }, + "path": "v1/{+name}", + "request": { + "$ref": "Settings" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "customConnectors": { + "methods": { + "create": { + "description": "Creates a new CustomConnector in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/global/customConnectors", + "httpMethod": "POST", + "id": "connectors.projects.locations.global.customConnectors.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "customConnectorId": { + "description": "Required. Identifier to assign to the CreateCustomConnector. Must be unique within scope of the parent resource.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent resource of the CreateCustomConnector, of the form: `projects/{project}/locations/*`", + "location": "path", + "pattern": "^projects/[^/]+/locations/global$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/customConnectors", + "request": { + "$ref": "CustomConnector" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single CustomConnector.", + "flatPath": "v1/projects/{projectsId}/locations/global/customConnectors/{customConnectorsId}", + "httpMethod": "DELETE", + "id": "connectors.projects.locations.global.customConnectors.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of the form: `projects/{project}/locations/{location}/customConnectors/{connector}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/customConnectors/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single CustomConnector.", + "flatPath": "v1/projects/{projectsId}/locations/global/customConnectors/{customConnectorsId}", + "httpMethod": "GET", + "id": "connectors.projects.locations.global.customConnectors.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of the form: `projects/*/locations/*/customConnectors/*`", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/customConnectors/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "CustomConnector" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List CustomConnectorVersions in a given project", + "flatPath": "v1/projects/{projectsId}/locations/global/customConnectors", + "httpMethod": "GET", + "id": "connectors.projects.locations.global.customConnectors.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Filter string.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent resource of the custom connectors, of the form: `projects/*/locations/*` Only global location is supported for CustomConnector resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/global$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/customConnectors", + "response": { + "$ref": "ListCustomConnectorsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a CustomConnector.", + "flatPath": "v1/projects/{projectsId}/locations/global/customConnectors/{customConnectorsId}", + "httpMethod": "PATCH", + "id": "connectors.projects.locations.global.customConnectors.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. Resource name of the CustomConnector. Format: projects/{project}/locations/{location}/customConnectors/{connector}", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/customConnectors/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. Field mask is used to specify the fields to be overwritten in the Connector resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. Set the mask as \"*\" for full replacement, which means all fields will be overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "CustomConnector" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "customConnectorVersions": { + "methods": { + "create": { + "description": "Creates a new CustomConnectorVersion in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/global/customConnectors/{customConnectorsId}/customConnectorVersions", + "httpMethod": "POST", + "id": "connectors.projects.locations.global.customConnectors.customConnectorVersions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "customConnectorVersionId": { + "description": "Required. Identifier to assign to the CreateCustomConnectorVersion. Must be unique within scope of the parent resource.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent resource of the CreateCustomConnector, of the form: `projects/{project}/locations/{location}/customConnectors/{custom_connector}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/customConnectors/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/customConnectorVersions", + "request": { + "$ref": "CustomConnectorVersion" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single CustomConnectorVersion.", + "flatPath": "v1/projects/{projectsId}/locations/global/customConnectors/{customConnectorsId}/customConnectorVersions/{customConnectorVersionsId}", + "httpMethod": "DELETE", + "id": "connectors.projects.locations.global.customConnectors.customConnectorVersions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of the form: `projects/{project}/locations/{location}/customConnectors/{custom_connector}/customConnectorVersions/{custom_connector_version}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/customConnectors/[^/]+/customConnectorVersions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single CustomConnectorVersion.", + "flatPath": "v1/projects/{projectsId}/locations/global/customConnectors/{customConnectorsId}/customConnectorVersions/{customConnectorVersionsId}", + "httpMethod": "GET", + "id": "connectors.projects.locations.global.customConnectors.customConnectorVersions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of the form: `projects/*/locations/{location}/customConnectors/*/customConnectorVersions/*`", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/customConnectors/[^/]+/customConnectorVersions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "CustomConnectorVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List CustomConnectorVersions in a given project", + "flatPath": "v1/projects/{projectsId}/locations/global/customConnectors/{customConnectorsId}/customConnectorVersions", + "httpMethod": "GET", + "id": "connectors.projects.locations.global.customConnectors.customConnectorVersions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent resource of the connectors, of the form: `projects/*/locations/{location}/customConnectors/*/customConnectorVersions/*`", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/customConnectors/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/customConnectorVersions", + "response": { + "$ref": "ListCustomConnectorVersionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a CustomConnectorVersion.", + "flatPath": "v1/projects/{projectsId}/locations/global/customConnectors/{customConnectorsId}/customConnectorVersions/{customConnectorVersionsId}", + "httpMethod": "PATCH", + "id": "connectors.projects.locations.global.customConnectors.customConnectorVersions.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Identifier. Resource name of the Version. Format: projects/{project}/locations/{location}/customConnectors/{custom_connector}/customConnectorVersions/{custom_connector_version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/customConnectors/[^/]+/customConnectorVersions/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. Field mask is used to specify the fields to be overwritten in the Connector resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. Set the mask as \"*\" for full replacement, which means all fields will be overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "CustomConnectorVersion" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, "managedZones": { "methods": { "create": { @@ -1832,7 +2321,7 @@ } } }, - "revision": "20231011", + "revision": "20231106", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "AuditConfig": { @@ -2371,12 +2860,22 @@ "enum": [ "STATE_UNSPECIFIED", "REFRESHING", - "UPDATED" + "UPDATED", + "REFRESHING_SCHEMA_METADATA", + "UPDATED_SCHEMA_METADATA", + "REFRESH_SCHEMA_METADATA_FAILED", + "REFRESHING_FULL_SCHEMA", + "UPDATED_FULL_SCHEMA" ], "enumDescriptions": [ "Default state.", "Schema refresh is in progress.", - "Schema has been updated." + "Schema has been updated.", + "Schema refresh for metadata is in progress.", + "Schema metadata has been updated.", + "Failed to refresh schema metadata", + "Triggered full schema refresh", + "Updated full schema" ], "readOnly": true, "type": "string" @@ -2741,6 +3240,142 @@ }, "type": "object" }, + "CustomConnector": { + "description": "CustomConnector represents the custom connector defined by the customer as part of byoc.", + "id": "CustomConnector", + "properties": { + "createTime": { + "description": "Output only. Created time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "customConnectorType": { + "description": "Required. Type of the custom connector.", + "enum": [ + "CUSTOM_CONNECTOR_TYPE_UNSPECIFIED", + "OPEN_API", + "PROTO" + ], + "enumDescriptions": [ + "Connector type is not specified.", + "OpenAPI connector.", + "Proto connector." + ], + "type": "string" + }, + "description": { + "description": "Optional. Description of the resource.", + "type": "string" + }, + "displayName": { + "description": "Optional. Display name.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources", + "type": "object" + }, + "launchStage": { + "description": "Output only. Launch stage.", + "enum": [ + "LAUNCH_STAGE_UNSPECIFIED", + "PREVIEW", + "GA", + "DEPRECATED", + "PRIVATE_PREVIEW" + ], + "enumDescriptions": [ + "LAUNCH_STAGE_UNSPECIFIED.", + "PREVIEW.", + "GA.", + "DEPRECATED.", + "PRIVATE_PREVIEW." + ], + "readOnly": true, + "type": "string" + }, + "logo": { + "description": "Optional. Logo of the resource.", + "type": "string" + }, + "name": { + "description": "Identifier. Resource name of the CustomConnector. Format: projects/{project}/locations/{location}/customConnectors/{connector}", + "type": "string" + }, + "updateTime": { + "description": "Output only. Updated time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "CustomConnectorVersion": { + "description": "CustomConnectorVersion indicates a specific version of a connector.", + "id": "CustomConnectorVersion", + "properties": { + "authConfig": { + "$ref": "AuthConfig", + "description": "Required. Configuration for establishing the authentication to the connector destination." + }, + "createTime": { + "description": "Output only. Created time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "destinationConfig": { + "$ref": "DestinationConfig", + "description": "Required. Configuration of the customConnector's destination." + }, + "enableBackendDestinationConfig": { + "description": "Optional. Whether to enable backend destination config. This is the backend server that the connector connects to.", + "type": "boolean" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources", + "type": "object" + }, + "name": { + "description": "Output only. Identifier. Resource name of the Version. Format: projects/{project}/locations/{location}/customConnectors/{custom_connector}/customConnectorVersions/{custom_connector_version}", + "readOnly": true, + "type": "string" + }, + "specLocation": { + "description": "Optional. Location of the custom connector spec.", + "type": "string" + }, + "type": { + "description": "Required. Type of the customConnector.", + "enum": [ + "CUSTOM_CONNECTOR_TYPE_UNSPECIFIED", + "OPEN_API", + "PROTO" + ], + "enumDescriptions": [ + "Connector type is not specified.", + "OpenAPI connector.", + "Proto connector." + ], + "type": "string" + }, + "updateTime": { + "description": "Output only. Updated time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Destination": { "id": "Destination", "properties": { @@ -2858,6 +3493,31 @@ "properties": {}, "type": "object" }, + "EncryptionConfig": { + "description": "Regional encryption config for CMEK details.", + "id": "EncryptionConfig", + "properties": { + "encryptionType": { + "description": "Optional. Encryption type for the region.", + "enum": [ + "ENCRYPTION_TYPE_UNSPECIFIED", + "GMEK", + "CMEK" + ], + "enumDescriptions": [ + "Egress mode unspecified.", + "Network egress through auto assigned IPs.", + "Network egress through static IPs." + ], + "type": "string" + }, + "kmsKeyName": { + "description": "Optional. KMS crypto key. This field accepts identifiers of the form `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/ {crypto_key}`", + "type": "string" + } + }, + "type": "object" + }, "EncryptionKey": { "description": "Encryption Key value.", "id": "EncryptionKey", @@ -2978,6 +3638,10 @@ "description": "Optional. Event type id of the event of current EventSubscription.", "type": "string" }, + "jms": { + "$ref": "JMS", + "description": "Optional. JMS is the source for the event listener." + }, "name": { "description": "Required. Resource name of the EventSubscription. Format: projects/{project}/locations/{location}/connections/{connection}/eventSubscriptions/{event_subscription}", "type": "string" @@ -3184,6 +3848,20 @@ "description": "Enrichment Supported.", "type": "boolean" }, + "eventListenerType": { + "description": "The type of the event listener for a specific connector.", + "enum": [ + "EVENT_LISTENER_TYPE_UNSPECIFIED", + "WEBHOOK_LISTENER", + "JMS_LISTENER" + ], + "enumDescriptions": [ + "Default value.", + "Webhook listener. e.g. Jira, Zendesk, Servicenow etc.,", + "JMS Listener. e.g. IBM MQ, Rabbit MQ etc.," + ], + "type": "string" + }, "isEventingSupported": { "description": "Is Eventing Supported.", "type": "boolean" @@ -3250,6 +3928,21 @@ }, "readOnly": true, "type": "array" + }, + "type": { + "description": "Output only. The type of the event listener for a specific connector.", + "enum": [ + "TYPE_UNSPECIFIED", + "WEBHOOK", + "JMS" + ], + "enumDescriptions": [ + "Default value.", + "Webhook listener. e.g. Jira, Zendesk, Servicenow etc.,", + "JMS Listener. e.g. IBM MQ, Rabbit MQ etc.," + ], + "readOnly": true, + "type": "string" } }, "type": "object" @@ -3789,6 +4482,31 @@ }, "type": "object" }, + "JMS": { + "description": "JMS message denotes the source of the event", + "id": "JMS", + "properties": { + "name": { + "description": "Optional. Name of the JMS source. i.e. queueName or topicName", + "type": "string" + }, + "type": { + "description": "Optional. Type of the JMS Source. i.e. Queue or Topic", + "enum": [ + "TYPE_UNSPECIFIED", + "QUEUE", + "TOPIC" + ], + "enumDescriptions": [ + "Default state.", + "JMS Queue.", + "JMS Topic." + ], + "type": "string" + } + }, + "type": "object" + }, "JsonSchema": { "description": "JsonSchema representation of schema metadata", "id": "JsonSchema", @@ -4004,6 +4722,24 @@ }, "type": "object" }, + "ListActionsResponse": { + "description": "Response message for ListActions API", + "id": "ListActionsResponse", + "properties": { + "actions": { + "description": "list of actions", + "items": { + "$ref": "RuntimeActionSchema" + }, + "type": "array" + }, + "nextPageToken": { + "description": "token for next page", + "type": "string" + } + }, + "type": "object" + }, "ListConnectionsResponse": { "description": "Response message for ConnectorsService.ListConnections", "id": "ListConnectionsResponse", @@ -4079,6 +4815,56 @@ }, "type": "object" }, + "ListCustomConnectorVersionsResponse": { + "description": "Response message for Connectors.ListCustomConnectorVersions.", + "id": "ListCustomConnectorVersionsResponse", + "properties": { + "customConnectorVersions": { + "description": "A list of connector versions.", + "items": { + "$ref": "CustomConnectorVersion" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Next page token.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListCustomConnectorsResponse": { + "description": "Response message for Connectors.ListCustomConnectors.", + "id": "ListCustomConnectorsResponse", + "properties": { + "customConnectors": { + "description": "A list of customConnectors.", + "items": { + "$ref": "CustomConnector" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Next page token.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "ListEndpointAttachmentsResponse": { "description": "Response message for ConnectorsService.ListEndpointAttachments", "id": "ListEndpointAttachmentsResponse", @@ -4104,6 +4890,24 @@ }, "type": "object" }, + "ListEntityTypesResponse": { + "description": "Response message for ListEntityTypes API", + "id": "ListEntityTypesResponse", + "properties": { + "entityTypes": { + "description": "list of entity types", + "items": { + "$ref": "RuntimeEntitySchema" + }, + "type": "array" + }, + "nextPageToken": { + "description": "token for next page", + "type": "string" + } + }, + "type": "object" + }, "ListEventSubscriptionsResponse": { "description": "Response message for ConnectorsService.ListEventSubscriptions", "id": "ListEventSubscriptionsResponse", @@ -4707,6 +5511,10 @@ "description": "Regional Settings details.", "id": "RegionalSettings", "properties": { + "encryptionConfig": { + "$ref": "EncryptionConfig", + "description": "Optional. Regional encryption config to hold CMEK details." + }, "name": { "description": "Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/regionalSettings", "readOnly": true, diff --git a/src/apis/connectors/v1.ts b/src/apis/connectors/v1.ts index 3d62443ab2..8c01c31eef 100644 --- a/src/apis/connectors/v1.ts +++ b/src/apis/connectors/v1.ts @@ -696,6 +696,88 @@ export namespace connectors_v1 { */ sharedDeployment?: string | null; } + /** + * CustomConnector represents the custom connector defined by the customer as part of byoc. + */ + export interface Schema$CustomConnector { + /** + * Output only. Created time. + */ + createTime?: string | null; + /** + * Required. Type of the custom connector. + */ + customConnectorType?: string | null; + /** + * Optional. Description of the resource. + */ + description?: string | null; + /** + * Optional. Display name. + */ + displayName?: string | null; + /** + * Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources + */ + labels?: {[key: string]: string} | null; + /** + * Output only. Launch stage. + */ + launchStage?: string | null; + /** + * Optional. Logo of the resource. + */ + logo?: string | null; + /** + * Identifier. Resource name of the CustomConnector. Format: projects/{project\}/locations/{location\}/customConnectors/{connector\} + */ + name?: string | null; + /** + * Output only. Updated time. + */ + updateTime?: string | null; + } + /** + * CustomConnectorVersion indicates a specific version of a connector. + */ + export interface Schema$CustomConnectorVersion { + /** + * Required. Configuration for establishing the authentication to the connector destination. + */ + authConfig?: Schema$AuthConfig; + /** + * Output only. Created time. + */ + createTime?: string | null; + /** + * Required. Configuration of the customConnector's destination. + */ + destinationConfig?: Schema$DestinationConfig; + /** + * Optional. Whether to enable backend destination config. This is the backend server that the connector connects to. + */ + enableBackendDestinationConfig?: boolean | null; + /** + * Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources + */ + labels?: {[key: string]: string} | null; + /** + * Output only. Identifier. Resource name of the Version. Format: projects/{project\}/locations/{location\}/customConnectors/{custom_connector\}/customConnectorVersions/{custom_connector_version\} + */ + name?: string | null; + /** + * Optional. Location of the custom connector spec. + */ + specLocation?: string | null; + /** + * Required. Type of the customConnector. + */ + type?: string | null; + /** + * Output only. Updated time. + */ + updateTime?: string | null; + } export interface Schema$Destination { /** * For publicly routable host. @@ -781,6 +863,19 @@ export namespace connectors_v1 { * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} */ export interface Schema$Empty {} + /** + * Regional encryption config for CMEK details. + */ + export interface Schema$EncryptionConfig { + /** + * Optional. Encryption type for the region. + */ + encryptionType?: string | null; + /** + * Optional. KMS crypto key. This field accepts identifiers of the form `projects/{project\}/locations/{location\}/keyRings/{key_ring\}/cryptoKeys/ {crypto_key\}` + */ + kmsKeyName?: string | null; + } /** * Encryption Key value. */ @@ -914,6 +1009,10 @@ export namespace connectors_v1 { * Enrichment Supported. */ enrichmentSupported?: boolean | null; + /** + * The type of the event listener for a specific connector. + */ + eventListenerType?: string | null; /** * Is Eventing Supported. */ @@ -955,6 +1054,10 @@ export namespace connectors_v1 { * Output only. Array of search keywords. */ searchTags?: string[] | null; + /** + * Output only. The type of the event listener for a specific connector. + */ + type?: string | null; } /** * Eventing runtime data has the details related to eventing managed by the system. @@ -1002,6 +1105,10 @@ export namespace connectors_v1 { * Optional. Event type id of the event of current EventSubscription. */ eventTypeId?: string | null; + /** + * Optional. JMS is the source for the event listener. + */ + jms?: Schema$JMS; /** * Required. Resource name of the EventSubscription. Format: projects/{project\}/locations/{location\}/connections/{connection\}/eventSubscriptions/{event_subscription\} */ @@ -1254,6 +1361,19 @@ export namespace connectors_v1 { */ parameter?: string | null; } + /** + * JMS message denotes the source of the event + */ + export interface Schema$JMS { + /** + * Optional. Name of the JMS source. i.e. queueName or topicName + */ + name?: string | null; + /** + * Optional. Type of the JMS Source. i.e. Queue or Topic + */ + type?: string | null; + } /** * JsonSchema representation of schema metadata */ @@ -1312,6 +1432,19 @@ export namespace connectors_v1 { */ subject?: string | null; } + /** + * Response message for ListActions API + */ + export interface Schema$ListActionsResponse { + /** + * list of actions + */ + actions?: Schema$RuntimeActionSchema[]; + /** + * token for next page + */ + nextPageToken?: string | null; + } /** * Response message for ConnectorsService.ListConnections */ @@ -1363,6 +1496,40 @@ export namespace connectors_v1 { */ unreachable?: string[] | null; } + /** + * Response message for Connectors.ListCustomConnectors. + */ + export interface Schema$ListCustomConnectorsResponse { + /** + * A list of customConnectors. + */ + customConnectors?: Schema$CustomConnector[]; + /** + * Next page token. + */ + nextPageToken?: string | null; + /** + * Locations that could not be reached. + */ + unreachable?: string[] | null; + } + /** + * Response message for Connectors.ListCustomConnectorVersions. + */ + export interface Schema$ListCustomConnectorVersionsResponse { + /** + * A list of connector versions. + */ + customConnectorVersions?: Schema$CustomConnectorVersion[]; + /** + * Next page token. + */ + nextPageToken?: string | null; + /** + * Locations that could not be reached. + */ + unreachable?: string[] | null; + } /** * Response message for ConnectorsService.ListEndpointAttachments */ @@ -1380,6 +1547,19 @@ export namespace connectors_v1 { */ unreachable?: string[] | null; } + /** + * Response message for ListEntityTypes API + */ + export interface Schema$ListEntityTypesResponse { + /** + * list of entity types + */ + entityTypes?: Schema$RuntimeEntitySchema[]; + /** + * token for next page + */ + nextPageToken?: string | null; + } /** * Response message for ConnectorsService.ListEventSubscriptions */ @@ -1805,6 +1985,10 @@ export namespace connectors_v1 { * Regional Settings details. */ export interface Schema$RegionalSettings { + /** + * Optional. Regional encryption config to hold CMEK details. + */ + encryptionConfig?: Schema$EncryptionConfig; /** * Output only. Resource name of the Connection. Format: projects/{project\}/locations/{location\}/regionalSettings */ @@ -3782,39 +3966,39 @@ export namespace connectors_v1 { } /** - * Refresh runtime schema of a connection. + * Get action. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - refresh( - params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Refresh, + getAction( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Getaction, options: StreamMethodOptions ): GaxiosPromise; - refresh( - params?: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Refresh, + getAction( + params?: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Getaction, options?: MethodOptions ): GaxiosPromise; - refresh( - params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Refresh, + getAction( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Getaction, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - refresh( - params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Refresh, + getAction( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Getaction, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - refresh( - params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Refresh, + getAction( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Getaction, callback: BodyResponseCallback ): void; - refresh(callback: BodyResponseCallback): void; - refresh( + getAction(callback: BodyResponseCallback): void; + getAction( paramsOrCallback?: - | Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Refresh + | Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Getaction | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -3827,13 +4011,13 @@ export namespace connectors_v1 { | BodyResponseCallback ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Refresh; + {}) as Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Getaction; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Refresh; + {} as Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Getaction; options = {}; } @@ -3846,11 +4030,11 @@ export namespace connectors_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}:refresh').replace( + url: (rootUrl + '/v1/{+name}:getAction').replace( /([^:]\/)\/+/g, '$1' ), - method: 'POST', + method: 'GET', }, options ), @@ -3868,61 +4052,41 @@ export namespace connectors_v1 { return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Refresh - extends StandardParameters { - /** - * Required. Resource name. Format: projects/{project\}/locations/{location\}/connections/{connection\}/connectionSchemaMetadata - */ - name?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$RefreshConnectionSchemaMetadataRequest; - } - - export class Resource$Projects$Locations$Connections$Eventsubscriptions { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * Creates a new EventSubscription in a given project,location and connection. + * Get entity type. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - create( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Create, + getEntityType( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Getentitytype, options: StreamMethodOptions ): GaxiosPromise; - create( - params?: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Create, + getEntityType( + params?: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Getentitytype, options?: MethodOptions ): GaxiosPromise; - create( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Create, + getEntityType( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Getentitytype, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - create( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Create, + getEntityType( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Getentitytype, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - create( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Create, + getEntityType( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Getentitytype, callback: BodyResponseCallback ): void; - create(callback: BodyResponseCallback): void; - create( + getEntityType(callback: BodyResponseCallback): void; + getEntityType( paramsOrCallback?: - | Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Create + | Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Getentitytype | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -3935,13 +4099,13 @@ export namespace connectors_v1 { | BodyResponseCallback ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Create; + {}) as Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Getentitytype; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Create; + {} as Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Getentitytype; options = {}; } @@ -3954,17 +4118,17 @@ export namespace connectors_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/eventSubscriptions').replace( + url: (rootUrl + '/v1/{+name}:getEntityType').replace( /([^:]\/)\/+/g, '$1' ), - method: 'POST', + method: 'GET', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -3978,58 +4142,63 @@ export namespace connectors_v1 { } /** - * Deletes a single EventSubscription. + * List actions. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - delete( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Delete, + listActions( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Listactions, options: StreamMethodOptions ): GaxiosPromise; - delete( - params?: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Delete, + listActions( + params?: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Listactions, options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Delete, + ): GaxiosPromise; + listActions( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Listactions, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + listActions( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Listactions, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Delete, - callback: BodyResponseCallback + listActions( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Listactions, + callback: BodyResponseCallback ): void; - delete(callback: BodyResponseCallback): void; - delete( + listActions( + callback: BodyResponseCallback + ): void; + listActions( paramsOrCallback?: - | Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Delete - | BodyResponseCallback + | Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Listactions + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): + | void + | GaxiosPromise + | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Delete; + {}) as Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Listactions; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Delete; + {} as Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Listactions; options = {}; } @@ -4042,8 +4211,11 @@ export namespace connectors_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:listActions').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', }, options ), @@ -4053,71 +4225,75 @@ export namespace connectors_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Gets details of a single EventSubscription. + * List entity types. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - get( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Get, + listEntityTypes( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Listentitytypes, options: StreamMethodOptions ): GaxiosPromise; - get( - params?: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Get, + listEntityTypes( + params?: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Listentitytypes, options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Get, + ): GaxiosPromise; + listEntityTypes( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Listentitytypes, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + listEntityTypes( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Listentitytypes, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Get, - callback: BodyResponseCallback + listEntityTypes( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Listentitytypes, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + listEntityTypes( + callback: BodyResponseCallback + ): void; + listEntityTypes( paramsOrCallback?: - | Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Get - | BodyResponseCallback + | Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Listentitytypes + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Get; + {}) as Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Listentitytypes; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Get; + {} as Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Listentitytypes; options = {}; } @@ -4130,7 +4306,10 @@ export namespace connectors_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:listEntityTypes').replace( + /([^:]\/)\/+/g, + '$1' + ), method: 'GET', }, options @@ -4141,75 +4320,68 @@ export namespace connectors_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * List EventSubscriptions in a given project,location and connection. + * Refresh runtime schema of a connection. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - list( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$List, + refresh( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Refresh, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$List, + refresh( + params?: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Refresh, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$List, + ): GaxiosPromise; + refresh( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Refresh, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$List, - callback: BodyResponseCallback + refresh( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Refresh, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - callback: BodyResponseCallback + refresh( + params: Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Refresh, + callback: BodyResponseCallback ): void; - list( + refresh(callback: BodyResponseCallback): void; + refresh( paramsOrCallback?: - | Params$Resource$Projects$Locations$Connections$Eventsubscriptions$List - | BodyResponseCallback + | Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Refresh + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$List; + {}) as Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Refresh; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$List; + {} as Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Refresh; options = {}; } @@ -4222,65 +4394,151 @@ export namespace connectors_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/eventSubscriptions').replace( + url: (rootUrl + '/v1/{+name}:refresh').replace( /([^:]\/)\/+/g, '$1' ), - method: 'GET', + method: 'POST', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Getaction + extends StandardParameters { /** - * Updates the parameters of a single EventSubscription. + * Required. Id of the action. + */ + actionId?: string; + /** + * Required. Resource name format: projects/{project\}/locations/{location\}/connections/{connection\}/connectionSchemaMetadata + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Getentitytype + extends StandardParameters { + /** + * Required. Id of the entity type. + */ + entityId?: string; + /** + * Required. Resource name format: projects/{project\}/locations/{location\}/connections/{connection\}/connectionSchemaMetadata + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Listactions + extends StandardParameters { + /** + * Required. Filter Wildcards are not supported in the filter currently. + */ + filter?: string; + /** + * Required. Resource name format. projects/{project\}/locations/{location\}/connections/{connection\}/connectionSchemaMetadata + */ + name?: string; + /** + * Page size. If unspecified, at most 50 actions will be returned. + */ + pageSize?: number; + /** + * Page token. + */ + pageToken?: string; + /** + * Specifies which fields are returned in response. Defaults to BASIC view. + */ + view?: string; + } + export interface Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Listentitytypes + extends StandardParameters { + /** + * Required. Filter Wildcards are not supported in the filter currently. + */ + filter?: string; + /** + * Required. Resource name format: projects/{project\}/locations/{location\}/connections/{connection\}/connectionSchemaMetadata + */ + name?: string; + /** + * Page size. If unspecified, at most 50 entity types will be returned. + */ + pageSize?: number; + /** + * Page token. + */ + pageToken?: string; + /** + * Specifies which fields are returned in response. Defaults to BASIC view. + */ + view?: string; + } + export interface Params$Resource$Projects$Locations$Connections$Connectionschemametadata$Refresh + extends StandardParameters { + /** + * Required. Resource name. Format: projects/{project\}/locations/{location\}/connections/{connection\}/connectionSchemaMetadata + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$RefreshConnectionSchemaMetadataRequest; + } + + export class Resource$Projects$Locations$Connections$Eventsubscriptions { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Creates a new EventSubscription in a given project,location and connection. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - patch( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Patch, + create( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Create, options: StreamMethodOptions ): GaxiosPromise; - patch( - params?: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Patch, + create( + params?: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Create, options?: MethodOptions ): GaxiosPromise; - patch( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Patch, + create( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - patch( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Patch, + create( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - patch( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Patch, + create( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Create, callback: BodyResponseCallback ): void; - patch(callback: BodyResponseCallback): void; - patch( + create(callback: BodyResponseCallback): void; + create( paramsOrCallback?: - | Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Patch + | Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Create | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -4293,13 +4551,13 @@ export namespace connectors_v1 { | BodyResponseCallback ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Patch; + {}) as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Patch; + {} as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Create; options = {}; } @@ -4312,14 +4570,17 @@ export namespace connectors_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/eventSubscriptions').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -4333,39 +4594,39 @@ export namespace connectors_v1 { } /** - * RetryEventSubscription retries the registration of Subscription. + * Deletes a single EventSubscription. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - retry( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Retry, + delete( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Delete, options: StreamMethodOptions ): GaxiosPromise; - retry( - params?: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Retry, + delete( + params?: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Delete, options?: MethodOptions ): GaxiosPromise; - retry( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Retry, + delete( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - retry( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Retry, + delete( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - retry( - params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Retry, + delete( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Delete, callback: BodyResponseCallback ): void; - retry(callback: BodyResponseCallback): void; - retry( + delete(callback: BodyResponseCallback): void; + delete( paramsOrCallback?: - | Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Retry + | Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Delete | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -4378,13 +4639,13 @@ export namespace connectors_v1 { | BodyResponseCallback ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Retry; + {}) as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Retry; + {} as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Delete; options = {}; } @@ -4397,8 +4658,8 @@ export namespace connectors_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}:retry').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options ), @@ -4416,156 +4677,1483 @@ export namespace connectors_v1 { return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Create - extends StandardParameters { - /** - * Required. Identifier to assign to the Event Subscription. Must be unique within scope of the parent resource. - */ - eventSubscriptionId?: string; - /** - * Required. Parent resource of the EventSubscription, of the form: `projects/x/locations/x/connections/x` - */ - parent?: string; /** - * Request body metadata - */ - requestBody?: Schema$EventSubscription; - } - export interface Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Delete - extends StandardParameters { - /** - * Required. Resource name of the form: `projects/x/locations/x/connections/x/eventsubscriptions/x` + * Gets details of a single EventSubscription. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. */ - name?: string; - } - export interface Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Get - extends StandardParameters { - /** - * Required. Resource name of the form: `projects/x/locations/x/connections/x/eventSubscriptions/x` + get( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Get, + options: StreamMethodOptions + ): GaxiosPromise; + get( + params?: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * List EventSubscriptions in a given project,location and connection. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$List, + options: StreamMethodOptions + ): GaxiosPromise; + list( + params?: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Connections$Eventsubscriptions$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}/eventSubscriptions').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Updates the parameters of a single EventSubscription. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + patch( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Patch, + options: StreamMethodOptions + ): GaxiosPromise; + patch( + params?: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Patch, + callback: BodyResponseCallback + ): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * RetryEventSubscription retries the registration of Subscription. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + retry( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Retry, + options: StreamMethodOptions + ): GaxiosPromise; + retry( + params?: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Retry, + options?: MethodOptions + ): GaxiosPromise; + retry( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Retry, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + retry( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Retry, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + retry( + params: Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Retry, + callback: BodyResponseCallback + ): void; + retry(callback: BodyResponseCallback): void; + retry( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Retry + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Retry; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Retry; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}:retry').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Create + extends StandardParameters { + /** + * Required. Identifier to assign to the Event Subscription. Must be unique within scope of the parent resource. + */ + eventSubscriptionId?: string; + /** + * Required. Parent resource of the EventSubscription, of the form: `projects/x/locations/x/connections/x` + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$EventSubscription; + } + export interface Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Delete + extends StandardParameters { + /** + * Required. Resource name of the form: `projects/x/locations/x/connections/x/eventsubscriptions/x` + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Get + extends StandardParameters { + /** + * Required. Resource name of the form: `projects/x/locations/x/connections/x/eventSubscriptions/x` + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Connections$Eventsubscriptions$List + extends StandardParameters { + /** + * Filter. + */ + filter?: string; + /** + * Order by parameters. + */ + orderBy?: string; + /** + * Page size. + */ + pageSize?: number; + /** + * Page token. + */ + pageToken?: string; + /** + * Required. Parent resource of the EventSubscription, of the form: `projects/x/locations/x/connections/x` + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Patch + extends StandardParameters { + /** + * Required. Resource name of the EventSubscription. Format: projects/{project\}/locations/{location\}/connections/{connection\}/eventSubscriptions/{event_subscription\} + */ + name?: string; + /** + * Required. The list of fields to update. Fields are specified relative to the Subscription. A field will be overwritten if it is in the mask. You can modify only the fields listed below. To update the EventSubscription details: * `serviceAccount` + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$EventSubscription; + } + export interface Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Retry + extends StandardParameters { + /** + * Required. Resource name of the form: `projects/x/locations/x/connections/x/eventSubscriptions/x` + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$RetryEventSubscriptionRequest; + } + + export class Resource$Projects$Locations$Connections$Runtimeactionschemas { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * List schema of a runtime actions filtered by action name. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Projects$Locations$Connections$Runtimeactionschemas$List, + options: StreamMethodOptions + ): GaxiosPromise; + list( + params?: Params$Resource$Projects$Locations$Connections$Runtimeactionschemas$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$Connections$Runtimeactionschemas$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Connections$Runtimeactionschemas$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Connections$Runtimeactionschemas$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Connections$Runtimeactionschemas$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Connections$Runtimeactionschemas$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Connections$Runtimeactionschemas$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}/runtimeActionSchemas').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Projects$Locations$Connections$Runtimeactionschemas$List + extends StandardParameters { + /** + * Required. Filter Format: action="{actionId\}" Only action field is supported with literal equality operator. Accepted filter example: action="CancelOrder" Wildcards are not supported in the filter currently. + */ + filter?: string; + /** + * Page size. + */ + pageSize?: number; + /** + * Page token. + */ + pageToken?: string; + /** + * Required. Parent resource of RuntimeActionSchema Format: projects/{project\}/locations/{location\}/connections/{connection\} + */ + parent?: string; + } + + export class Resource$Projects$Locations$Connections$Runtimeentityschemas { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * List schema of a runtime entities filtered by entity name. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Projects$Locations$Connections$Runtimeentityschemas$List, + options: StreamMethodOptions + ): GaxiosPromise; + list( + params?: Params$Resource$Projects$Locations$Connections$Runtimeentityschemas$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$Connections$Runtimeentityschemas$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Connections$Runtimeentityschemas$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Connections$Runtimeentityschemas$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Connections$Runtimeentityschemas$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Connections$Runtimeentityschemas$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Connections$Runtimeentityschemas$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}/runtimeEntitySchemas').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Projects$Locations$Connections$Runtimeentityschemas$List + extends StandardParameters { + /** + * Required. Filter Format: entity="{entityId\}" Only entity field is supported with literal equality operator. Accepted filter example: entity="Order" Wildcards are not supported in the filter currently. + */ + filter?: string; + /** + * Page size. + */ + pageSize?: number; + /** + * Page token. + */ + pageToken?: string; + /** + * Required. Parent resource of RuntimeEntitySchema Format: projects/{project\}/locations/{location\}/connections/{connection\} + */ + parent?: string; + } + + export class Resource$Projects$Locations$Endpointattachments { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Creates a new EndpointAttachment in a given project and location. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + create( + params: Params$Resource$Projects$Locations$Endpointattachments$Create, + options: StreamMethodOptions + ): GaxiosPromise; + create( + params?: Params$Resource$Projects$Locations$Endpointattachments$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Projects$Locations$Endpointattachments$Create, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Locations$Endpointattachments$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Locations$Endpointattachments$Create, + callback: BodyResponseCallback + ): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Endpointattachments$Create + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Endpointattachments$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Endpointattachments$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}/endpointAttachments').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Deletes a single EndpointAttachment. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + delete( + params: Params$Resource$Projects$Locations$Endpointattachments$Delete, + options: StreamMethodOptions + ): GaxiosPromise; + delete( + params?: Params$Resource$Projects$Locations$Endpointattachments$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Endpointattachments$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Endpointattachments$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Endpointattachments$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Endpointattachments$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Endpointattachments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Endpointattachments$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Gets details of a single EndpointAttachment. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Projects$Locations$Endpointattachments$Get, + options: StreamMethodOptions + ): GaxiosPromise; + get( + params?: Params$Resource$Projects$Locations$Endpointattachments$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Projects$Locations$Endpointattachments$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Endpointattachments$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Endpointattachments$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Endpointattachments$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Endpointattachments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Endpointattachments$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * List EndpointAttachments in a given project + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Projects$Locations$Endpointattachments$List, + options: StreamMethodOptions + ): GaxiosPromise; + list( + params?: Params$Resource$Projects$Locations$Endpointattachments$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$Endpointattachments$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Endpointattachments$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Endpointattachments$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Endpointattachments$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Endpointattachments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Endpointattachments$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}/endpointAttachments').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Updates the parameters of a single EndpointAttachment. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + patch( + params: Params$Resource$Projects$Locations$Endpointattachments$Patch, + options: StreamMethodOptions + ): GaxiosPromise; + patch( + params?: Params$Resource$Projects$Locations$Endpointattachments$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Projects$Locations$Endpointattachments$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Locations$Endpointattachments$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Locations$Endpointattachments$Patch, + callback: BodyResponseCallback + ): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Endpointattachments$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Endpointattachments$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Endpointattachments$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Endpointattachments$Create + extends StandardParameters { + /** + * Required. Identifier to assign to the EndpointAttachment. Must be unique within scope of the parent resource. + */ + endpointAttachmentId?: string; + /** + * Required. Parent resource of the EndpointAttachment, of the form: `projects/x/locations/x` + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$EndpointAttachment; + } + export interface Params$Resource$Projects$Locations$Endpointattachments$Delete + extends StandardParameters { + /** + * Required. Resource name of the form: `projects/x/locations/x/endpointAttachments/x` + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Endpointattachments$Get + extends StandardParameters { + /** + * Required. Resource name of the form: `projects/x/locations/x/endpointAttachments/x` + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Endpointattachments$List + extends StandardParameters { + /** + * Filter. + */ + filter?: string; + /** + * Order by parameters. + */ + orderBy?: string; + /** + * Page size. + */ + pageSize?: number; + /** + * Page token. + */ + pageToken?: string; + /** + * Required. Parent resource od the EndpointAttachment, of the form: `projects/x/locations/x` + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Endpointattachments$Patch + extends StandardParameters { + /** + * Output only. Resource name of the Endpoint Attachment. Format: projects/{project\}/locations/{location\}/endpointAttachments/{endpoint_attachment\} */ name?: string; + /** + * Required. The list of fields to update. Fields are specified relative to the endpointAttachment. A field will be overwritten if it is in the mask. You can modify only the fields listed below. To update the endpointAttachment details: * `description` * `labels` + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$EndpointAttachment; + } + + export class Resource$Projects$Locations$Global { + context: APIRequestContext; + customConnectors: Resource$Projects$Locations$Global$Customconnectors; + managedZones: Resource$Projects$Locations$Global$Managedzones; + constructor(context: APIRequestContext) { + this.context = context; + this.customConnectors = + new Resource$Projects$Locations$Global$Customconnectors(this.context); + this.managedZones = new Resource$Projects$Locations$Global$Managedzones( + this.context + ); + } + + /** + * GetGlobalSettings gets settings of a project. GlobalSettings is a singleton resource. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + getSettings( + params: Params$Resource$Projects$Locations$Global$Getsettings, + options: StreamMethodOptions + ): GaxiosPromise; + getSettings( + params?: Params$Resource$Projects$Locations$Global$Getsettings, + options?: MethodOptions + ): GaxiosPromise; + getSettings( + params: Params$Resource$Projects$Locations$Global$Getsettings, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + getSettings( + params: Params$Resource$Projects$Locations$Global$Getsettings, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + getSettings( + params: Params$Resource$Projects$Locations$Global$Getsettings, + callback: BodyResponseCallback + ): void; + getSettings(callback: BodyResponseCallback): void; + getSettings( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Global$Getsettings + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Global$Getsettings; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Global$Getsettings; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Update the global settings of a project. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + updateSettings( + params: Params$Resource$Projects$Locations$Global$Updatesettings, + options: StreamMethodOptions + ): GaxiosPromise; + updateSettings( + params?: Params$Resource$Projects$Locations$Global$Updatesettings, + options?: MethodOptions + ): GaxiosPromise; + updateSettings( + params: Params$Resource$Projects$Locations$Global$Updatesettings, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + updateSettings( + params: Params$Resource$Projects$Locations$Global$Updatesettings, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + updateSettings( + params: Params$Resource$Projects$Locations$Global$Updatesettings, + callback: BodyResponseCallback + ): void; + updateSettings(callback: BodyResponseCallback): void; + updateSettings( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Global$Updatesettings + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Global$Updatesettings; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Global$Updatesettings; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } } - export interface Params$Resource$Projects$Locations$Connections$Eventsubscriptions$List + + export interface Params$Resource$Projects$Locations$Global$Getsettings extends StandardParameters { /** - * Filter. - */ - filter?: string; - /** - * Order by parameters. - */ - orderBy?: string; - /** - * Page size. - */ - pageSize?: number; - /** - * Page token. - */ - pageToken?: string; - /** - * Required. Parent resource of the EventSubscription, of the form: `projects/x/locations/x/connections/x` + * Required. The resource name of the Settings. */ - parent?: string; + name?: string; } - export interface Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Patch + export interface Params$Resource$Projects$Locations$Global$Updatesettings extends StandardParameters { /** - * Required. Resource name of the EventSubscription. Format: projects/{project\}/locations/{location\}/connections/{connection\}/eventSubscriptions/{event_subscription\} + * Output only. Resource name of the Connection. Format: projects/{project\}/locations/global/settings\} */ name?: string; /** - * Required. The list of fields to update. Fields are specified relative to the Subscription. A field will be overwritten if it is in the mask. You can modify only the fields listed below. To update the EventSubscription details: * `serviceAccount` + * Required. The list of fields to update. */ updateMask?: string; /** * Request body metadata */ - requestBody?: Schema$EventSubscription; - } - export interface Params$Resource$Projects$Locations$Connections$Eventsubscriptions$Retry - extends StandardParameters { - /** - * Required. Resource name of the form: `projects/x/locations/x/connections/x/eventSubscriptions/x` - */ - name?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$RetryEventSubscriptionRequest; + requestBody?: Schema$Settings; } - export class Resource$Projects$Locations$Connections$Runtimeactionschemas { + export class Resource$Projects$Locations$Global$Customconnectors { context: APIRequestContext; + customConnectorVersions: Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions; constructor(context: APIRequestContext) { this.context = context; + this.customConnectorVersions = + new Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions( + this.context + ); } /** - * List schema of a runtime actions filtered by action name. + * Creates a new CustomConnector in a given project and location. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - list( - params: Params$Resource$Projects$Locations$Connections$Runtimeactionschemas$List, + create( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Create, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Projects$Locations$Connections$Runtimeactionschemas$List, + create( + params?: Params$Resource$Projects$Locations$Global$Customconnectors$Create, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Projects$Locations$Connections$Runtimeactionschemas$List, + ): GaxiosPromise; + create( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Projects$Locations$Connections$Runtimeactionschemas$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$Connections$Runtimeactionschemas$List, - callback: BodyResponseCallback + create( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - callback: BodyResponseCallback + create( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Create, + callback: BodyResponseCallback ): void; - list( + create(callback: BodyResponseCallback): void; + create( paramsOrCallback?: - | Params$Resource$Projects$Locations$Connections$Runtimeactionschemas$List - | BodyResponseCallback + | Params$Resource$Projects$Locations$Global$Customconnectors$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Connections$Runtimeactionschemas$List; + {}) as Params$Resource$Projects$Locations$Global$Customconnectors$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Projects$Locations$Connections$Runtimeactionschemas$List; + {} as Params$Resource$Projects$Locations$Global$Customconnectors$Create; options = {}; } @@ -4578,11 +6166,11 @@ export namespace connectors_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/runtimeActionSchemas').replace( + url: (rootUrl + '/v1/{+parent}/customConnectors').replace( /([^:]\/)\/+/g, '$1' ), - method: 'GET', + method: 'POST', }, options ), @@ -4592,104 +6180,153 @@ export namespace connectors_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } - } - export interface Params$Resource$Projects$Locations$Connections$Runtimeactionschemas$List - extends StandardParameters { - /** - * Required. Filter Format: action="{actionId\}" Only action field is supported with literal equality operator. Accepted filter example: action="CancelOrder" Wildcards are not supported in the filter currently. - */ - filter?: string; - /** - * Page size. - */ - pageSize?: number; - /** - * Page token. - */ - pageToken?: string; /** - * Required. Parent resource of RuntimeActionSchema Format: projects/{project\}/locations/{location\}/connections/{connection\} + * Deletes a single CustomConnector. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. */ - parent?: string; - } + delete( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Delete, + options: StreamMethodOptions + ): GaxiosPromise; + delete( + params?: Params$Resource$Projects$Locations$Global$Customconnectors$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Global$Customconnectors$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Global$Customconnectors$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; - export class Resource$Projects$Locations$Connections$Runtimeentityschemas { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Global$Customconnectors$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } } /** - * List schema of a runtime entities filtered by entity name. + * Gets details of a single CustomConnector. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - list( - params: Params$Resource$Projects$Locations$Connections$Runtimeentityschemas$List, + get( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Get, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Projects$Locations$Connections$Runtimeentityschemas$List, + get( + params?: Params$Resource$Projects$Locations$Global$Customconnectors$Get, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Projects$Locations$Connections$Runtimeentityschemas$List, + ): GaxiosPromise; + get( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Projects$Locations$Connections$Runtimeentityschemas$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$Connections$Runtimeentityschemas$List, - callback: BodyResponseCallback + get( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - callback: BodyResponseCallback + get( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Get, + callback: BodyResponseCallback ): void; - list( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Projects$Locations$Connections$Runtimeentityschemas$List - | BodyResponseCallback + | Params$Resource$Projects$Locations$Global$Customconnectors$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Connections$Runtimeentityschemas$List; + {}) as Params$Resource$Projects$Locations$Global$Customconnectors$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Projects$Locations$Connections$Runtimeentityschemas$List; + {} as Params$Resource$Projects$Locations$Global$Customconnectors$Get; options = {}; } @@ -4700,113 +6337,88 @@ export namespace connectors_v1 { const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+parent}/runtimeEntitySchemas').replace( - /([^:]\/)\/+/g, - '$1' - ), + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Projects$Locations$Connections$Runtimeentityschemas$List - extends StandardParameters { - /** - * Required. Filter Format: entity="{entityId\}" Only entity field is supported with literal equality operator. Accepted filter example: entity="Order" Wildcards are not supported in the filter currently. - */ - filter?: string; - /** - * Page size. - */ - pageSize?: number; - /** - * Page token. - */ - pageToken?: string; - /** - * Required. Parent resource of RuntimeEntitySchema Format: projects/{project\}/locations/{location\}/connections/{connection\} - */ - parent?: string; - } - - export class Resource$Projects$Locations$Endpointattachments { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * Creates a new EndpointAttachment in a given project and location. + * List CustomConnectorVersions in a given project * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - create( - params: Params$Resource$Projects$Locations$Endpointattachments$Create, + list( + params: Params$Resource$Projects$Locations$Global$Customconnectors$List, options: StreamMethodOptions ): GaxiosPromise; - create( - params?: Params$Resource$Projects$Locations$Endpointattachments$Create, + list( + params?: Params$Resource$Projects$Locations$Global$Customconnectors$List, options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Projects$Locations$Endpointattachments$Create, + ): GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$Global$Customconnectors$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - create( - params: Params$Resource$Projects$Locations$Endpointattachments$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + list( + params: Params$Resource$Projects$Locations$Global$Customconnectors$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - create( - params: Params$Resource$Projects$Locations$Endpointattachments$Create, - callback: BodyResponseCallback + list( + params: Params$Resource$Projects$Locations$Global$Customconnectors$List, + callback: BodyResponseCallback ): void; - create(callback: BodyResponseCallback): void; - create( + list( + callback: BodyResponseCallback + ): void; + list( paramsOrCallback?: - | Params$Resource$Projects$Locations$Endpointattachments$Create - | BodyResponseCallback + | Params$Resource$Projects$Locations$Global$Customconnectors$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): + | void + | GaxiosPromise + | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Endpointattachments$Create; + {}) as Params$Resource$Projects$Locations$Global$Customconnectors$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Projects$Locations$Endpointattachments$Create; + {} as Params$Resource$Projects$Locations$Global$Customconnectors$List; options = {}; } @@ -4819,11 +6431,11 @@ export namespace connectors_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/endpointAttachments').replace( + url: (rootUrl + '/v1/{+parent}/customConnectors').replace( /([^:]\/)\/+/g, '$1' ), - method: 'POST', + method: 'GET', }, options ), @@ -4833,49 +6445,51 @@ export namespace connectors_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } /** - * Deletes a single EndpointAttachment. + * Updates the parameters of a CustomConnector. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - delete( - params: Params$Resource$Projects$Locations$Endpointattachments$Delete, + patch( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Patch, options: StreamMethodOptions ): GaxiosPromise; - delete( - params?: Params$Resource$Projects$Locations$Endpointattachments$Delete, + patch( + params?: Params$Resource$Projects$Locations$Global$Customconnectors$Patch, options?: MethodOptions ): GaxiosPromise; - delete( - params: Params$Resource$Projects$Locations$Endpointattachments$Delete, + patch( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Projects$Locations$Endpointattachments$Delete, + patch( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Projects$Locations$Endpointattachments$Delete, + patch( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Patch, callback: BodyResponseCallback ): void; - delete(callback: BodyResponseCallback): void; - delete( + patch(callback: BodyResponseCallback): void; + patch( paramsOrCallback?: - | Params$Resource$Projects$Locations$Endpointattachments$Delete + | Params$Resource$Projects$Locations$Global$Customconnectors$Patch | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -4888,13 +6502,13 @@ export namespace connectors_v1 { | BodyResponseCallback ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Endpointattachments$Delete; + {}) as Params$Resource$Projects$Locations$Global$Customconnectors$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Projects$Locations$Endpointattachments$Delete; + {} as Params$Resource$Projects$Locations$Global$Customconnectors$Patch; options = {}; } @@ -4908,7 +6522,7 @@ export namespace connectors_v1 { options: Object.assign( { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'PATCH', }, options ), @@ -4926,63 +6540,133 @@ export namespace connectors_v1 { return createAPIRequest(parameters); } } + } + export interface Params$Resource$Projects$Locations$Global$Customconnectors$Create + extends StandardParameters { /** - * Gets details of a single EndpointAttachment. + * Required. Identifier to assign to the CreateCustomConnector. Must be unique within scope of the parent resource. + */ + customConnectorId?: string; + /** + * Required. Parent resource of the CreateCustomConnector, of the form: `projects/{project\}/locations/x` + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$CustomConnector; + } + export interface Params$Resource$Projects$Locations$Global$Customconnectors$Delete + extends StandardParameters { + /** + * Required. Resource name of the form: `projects/{project\}/locations/{location\}/customConnectors/{connector\}` + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Global$Customconnectors$Get + extends StandardParameters { + /** + * Required. Resource name of the form: `projects/x/locations/x/customConnectors/x` + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Global$Customconnectors$List + extends StandardParameters { + /** + * Filter string. + */ + filter?: string; + /** + * Page size. + */ + pageSize?: number; + /** + * Page token. + */ + pageToken?: string; + /** + * Required. Parent resource of the custom connectors, of the form: `projects/x/locations/x` Only global location is supported for CustomConnector resource. + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Global$Customconnectors$Patch + extends StandardParameters { + /** + * Identifier. Resource name of the CustomConnector. Format: projects/{project\}/locations/{location\}/customConnectors/{connector\} + */ + name?: string; + /** + * Required. Field mask is used to specify the fields to be overwritten in the Connector resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. Set the mask as "*" for full replacement, which means all fields will be overwritten. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$CustomConnector; + } + + export class Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Creates a new CustomConnectorVersion in a given project and location. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - get( - params: Params$Resource$Projects$Locations$Endpointattachments$Get, + create( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Create, options: StreamMethodOptions ): GaxiosPromise; - get( - params?: Params$Resource$Projects$Locations$Endpointattachments$Get, + create( + params?: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Create, options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Projects$Locations$Endpointattachments$Get, + ): GaxiosPromise; + create( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Projects$Locations$Endpointattachments$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + create( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Projects$Locations$Endpointattachments$Get, - callback: BodyResponseCallback + create( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Create, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + create(callback: BodyResponseCallback): void; + create( paramsOrCallback?: - | Params$Resource$Projects$Locations$Endpointattachments$Get - | BodyResponseCallback + | Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Endpointattachments$Get; + {}) as Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Projects$Locations$Endpointattachments$Get; + {} as Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Create; options = {}; } @@ -4995,86 +6679,82 @@ export namespace connectors_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/customConnectorVersions').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * List EndpointAttachments in a given project + * Deletes a single CustomConnectorVersion. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - list( - params: Params$Resource$Projects$Locations$Endpointattachments$List, + delete( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Delete, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Projects$Locations$Endpointattachments$List, + delete( + params?: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Delete, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Projects$Locations$Endpointattachments$List, + ): GaxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Projects$Locations$Endpointattachments$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$Endpointattachments$List, - callback: BodyResponseCallback + delete( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - callback: BodyResponseCallback + delete( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Delete, + callback: BodyResponseCallback ): void; - list( + delete(callback: BodyResponseCallback): void; + delete( paramsOrCallback?: - | Params$Resource$Projects$Locations$Endpointattachments$List - | BodyResponseCallback + | Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Delete + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Endpointattachments$List; + {}) as Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Projects$Locations$Endpointattachments$List; + {} as Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Delete; options = {}; } @@ -5087,84 +6767,84 @@ export namespace connectors_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/endpointAttachments').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } /** - * Updates the parameters of a single EndpointAttachment. + * Gets details of a single CustomConnectorVersion. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - patch( - params: Params$Resource$Projects$Locations$Endpointattachments$Patch, + get( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Get, options: StreamMethodOptions ): GaxiosPromise; - patch( - params?: Params$Resource$Projects$Locations$Endpointattachments$Patch, + get( + params?: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Get, options?: MethodOptions - ): GaxiosPromise; - patch( - params: Params$Resource$Projects$Locations$Endpointattachments$Patch, + ): GaxiosPromise; + get( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - patch( - params: Params$Resource$Projects$Locations$Endpointattachments$Patch, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + get( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - patch( - params: Params$Resource$Projects$Locations$Endpointattachments$Patch, - callback: BodyResponseCallback + get( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Get, + callback: BodyResponseCallback ): void; - patch(callback: BodyResponseCallback): void; - patch( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Projects$Locations$Endpointattachments$Patch - | BodyResponseCallback + | Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): + | void + | GaxiosPromise + | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Endpointattachments$Patch; + {}) as Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Projects$Locations$Endpointattachments$Patch; + {} as Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Get; options = {}; } @@ -5178,7 +6858,7 @@ export namespace connectors_v1 { options: Object.assign( { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'GET', }, options ), @@ -5188,148 +6868,75 @@ export namespace connectors_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Projects$Locations$Endpointattachments$Create - extends StandardParameters { - /** - * Required. Identifier to assign to the EndpointAttachment. Must be unique within scope of the parent resource. - */ - endpointAttachmentId?: string; - /** - * Required. Parent resource of the EndpointAttachment, of the form: `projects/x/locations/x` - */ - parent?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$EndpointAttachment; - } - export interface Params$Resource$Projects$Locations$Endpointattachments$Delete - extends StandardParameters { - /** - * Required. Resource name of the form: `projects/x/locations/x/endpointAttachments/x` - */ - name?: string; - } - export interface Params$Resource$Projects$Locations$Endpointattachments$Get - extends StandardParameters { - /** - * Required. Resource name of the form: `projects/x/locations/x/endpointAttachments/x` - */ - name?: string; - } - export interface Params$Resource$Projects$Locations$Endpointattachments$List - extends StandardParameters { - /** - * Filter. - */ - filter?: string; - /** - * Order by parameters. - */ - orderBy?: string; - /** - * Page size. - */ - pageSize?: number; - /** - * Page token. - */ - pageToken?: string; - /** - * Required. Parent resource od the EndpointAttachment, of the form: `projects/x/locations/x` - */ - parent?: string; - } - export interface Params$Resource$Projects$Locations$Endpointattachments$Patch - extends StandardParameters { - /** - * Output only. Resource name of the Endpoint Attachment. Format: projects/{project\}/locations/{location\}/endpointAttachments/{endpoint_attachment\} - */ - name?: string; - /** - * Required. The list of fields to update. Fields are specified relative to the endpointAttachment. A field will be overwritten if it is in the mask. You can modify only the fields listed below. To update the endpointAttachment details: * `description` * `labels` - */ - updateMask?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$EndpointAttachment; - } - - export class Resource$Projects$Locations$Global { - context: APIRequestContext; - managedZones: Resource$Projects$Locations$Global$Managedzones; - constructor(context: APIRequestContext) { - this.context = context; - this.managedZones = new Resource$Projects$Locations$Global$Managedzones( - this.context - ); - } /** - * GetGlobalSettings gets settings of a project. GlobalSettings is a singleton resource. + * List CustomConnectorVersions in a given project * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - getSettings( - params: Params$Resource$Projects$Locations$Global$Getsettings, + list( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$List, options: StreamMethodOptions ): GaxiosPromise; - getSettings( - params?: Params$Resource$Projects$Locations$Global$Getsettings, + list( + params?: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$List, options?: MethodOptions - ): GaxiosPromise; - getSettings( - params: Params$Resource$Projects$Locations$Global$Getsettings, + ): GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - getSettings( - params: Params$Resource$Projects$Locations$Global$Getsettings, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + list( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - getSettings( - params: Params$Resource$Projects$Locations$Global$Getsettings, - callback: BodyResponseCallback + list( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$List, + callback: BodyResponseCallback ): void; - getSettings(callback: BodyResponseCallback): void; - getSettings( + list( + callback: BodyResponseCallback + ): void; + list( paramsOrCallback?: - | Params$Resource$Projects$Locations$Global$Getsettings - | BodyResponseCallback + | Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): + | void + | GaxiosPromise + | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Global$Getsettings; + {}) as Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Global$Getsettings; + params = + {} as Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$List; options = {}; } @@ -5342,60 +6949,65 @@ export namespace connectors_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/customConnectorVersions').replace( + /([^:]\/)\/+/g, + '$1' + ), method: 'GET', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } /** - * Update the global settings of a project. + * Updates the parameters of a CustomConnectorVersion. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - updateSettings( - params: Params$Resource$Projects$Locations$Global$Updatesettings, + patch( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Patch, options: StreamMethodOptions ): GaxiosPromise; - updateSettings( - params?: Params$Resource$Projects$Locations$Global$Updatesettings, + patch( + params?: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Patch, options?: MethodOptions ): GaxiosPromise; - updateSettings( - params: Params$Resource$Projects$Locations$Global$Updatesettings, + patch( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - updateSettings( - params: Params$Resource$Projects$Locations$Global$Updatesettings, + patch( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - updateSettings( - params: Params$Resource$Projects$Locations$Global$Updatesettings, + patch( + params: Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Patch, callback: BodyResponseCallback ): void; - updateSettings(callback: BodyResponseCallback): void; - updateSettings( + patch(callback: BodyResponseCallback): void; + patch( paramsOrCallback?: - | Params$Resource$Projects$Locations$Global$Updatesettings + | Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Patch | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -5408,12 +7020,13 @@ export namespace connectors_v1 { | BodyResponseCallback ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Global$Updatesettings; + {}) as Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Global$Updatesettings; + params = + {} as Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Patch; options = {}; } @@ -5447,28 +7060,66 @@ export namespace connectors_v1 { } } - export interface Params$Resource$Projects$Locations$Global$Getsettings + export interface Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Create extends StandardParameters { /** - * Required. The resource name of the Settings. + * Required. Identifier to assign to the CreateCustomConnectorVersion. Must be unique within scope of the parent resource. + */ + customConnectorVersionId?: string; + /** + * Required. Parent resource of the CreateCustomConnector, of the form: `projects/{project\}/locations/{location\}/customConnectors/{custom_connector\}` + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$CustomConnectorVersion; + } + export interface Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Delete + extends StandardParameters { + /** + * Required. Resource name of the form: `projects/{project\}/locations/{location\}/customConnectors/{custom_connector\}/customConnectorVersions/{custom_connector_version\}` */ name?: string; } - export interface Params$Resource$Projects$Locations$Global$Updatesettings + export interface Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Get extends StandardParameters { /** - * Output only. Resource name of the Connection. Format: projects/{project\}/locations/global/settings\} + * Required. Resource name of the form: `projects/x/locations/{location\}/customConnectors/x/customConnectorVersions/x` */ name?: string; + } + export interface Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$List + extends StandardParameters { /** - * Required. The list of fields to update. + * Page size. + */ + pageSize?: number; + /** + * Page token. + */ + pageToken?: string; + /** + * Required. Parent resource of the connectors, of the form: `projects/x/locations/{location\}/customConnectors/x/customConnectorVersions/x` + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Global$Customconnectors$Customconnectorversions$Patch + extends StandardParameters { + /** + * Output only. Identifier. Resource name of the Version. Format: projects/{project\}/locations/{location\}/customConnectors/{custom_connector\}/customConnectorVersions/{custom_connector_version\} + */ + name?: string; + /** + * Required. Field mask is used to specify the fields to be overwritten in the Connector resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. Set the mask as "*" for full replacement, which means all fields will be overwritten. */ updateMask?: string; /** * Request body metadata */ - requestBody?: Schema$Settings; + requestBody?: Schema$CustomConnectorVersion; } export class Resource$Projects$Locations$Global$Managedzones {