From d3fd980907c318048c7ee471c38033cf529a3c04 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 23 Oct 2023 10:57:23 -0700 Subject: [PATCH] feat: run the generator (#3371) * feat(alloydb): update the API #### alloydb:v1 The following keys were added: - schemas.StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed.properties.resourceId.deprecated The following keys were changed: - schemas.StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed.properties.resourceId.description - schemas.StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData.properties.resourceContainer.description - schemas.StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata.properties.resourceContainer.description * feat(artifactregistry): update the API #### artifactregistry:v1 The following keys were added: - schemas.RemoteRepositoryConfig.properties.upstreamCredentials.$ref - schemas.RemoteRepositoryConfig.properties.upstreamCredentials.description - schemas.UpstreamCredentials.description - schemas.UpstreamCredentials.id - schemas.UpstreamCredentials.properties.usernamePasswordCredentials.$ref - schemas.UpstreamCredentials.properties.usernamePasswordCredentials.description - schemas.UpstreamCredentials.type - schemas.UsernamePasswordCredentials.description - schemas.UsernamePasswordCredentials.id - schemas.UsernamePasswordCredentials.properties.passwordSecretVersion.description - schemas.UsernamePasswordCredentials.properties.passwordSecretVersion.type - schemas.UsernamePasswordCredentials.properties.username.description - schemas.UsernamePasswordCredentials.properties.username.type - schemas.UsernamePasswordCredentials.type * fix(batch): update the API #### batch:v1 The following keys were changed: - schemas.TaskGroup.properties.parallelism.description * feat(bigtableadmin)!: update the API BREAKING CHANGE: This release has breaking changes. #### bigtableadmin:v2 The following keys were deleted: - schemas.AppProfile.properties.priority.deprecated - schemas.AppProfile.properties.priority.description - schemas.AppProfile.properties.priority.enum - schemas.AppProfile.properties.priority.enumDescriptions - schemas.AppProfile.properties.priority.type - schemas.AppProfile.properties.standardIsolation.$ref - schemas.AppProfile.properties.standardIsolation.description - schemas.StandardIsolation.description - schemas.StandardIsolation.id - schemas.StandardIsolation.properties.priority.description - schemas.StandardIsolation.properties.priority.enum - schemas.StandardIsolation.properties.priority.enumDescriptions - schemas.StandardIsolation.properties.priority.type - schemas.StandardIsolation.type The following keys were added: - schemas.ModifyColumnFamiliesRequest.properties.ignoreWarnings.description - schemas.ModifyColumnFamiliesRequest.properties.ignoreWarnings.type * feat(compute): update the API #### compute:alpha The following keys were changed: - resources.interconnects.methods.getDiagnostics.description #### compute:v1 The following keys were added: - resources.backendBuckets.methods.getIamPolicy.description - resources.backendBuckets.methods.getIamPolicy.flatPath - resources.backendBuckets.methods.getIamPolicy.httpMethod - resources.backendBuckets.methods.getIamPolicy.id - resources.backendBuckets.methods.getIamPolicy.parameterOrder - resources.backendBuckets.methods.getIamPolicy.parameters.optionsRequestedPolicyVersion.description - resources.backendBuckets.methods.getIamPolicy.parameters.optionsRequestedPolicyVersion.format - resources.backendBuckets.methods.getIamPolicy.parameters.optionsRequestedPolicyVersion.location - resources.backendBuckets.methods.getIamPolicy.parameters.optionsRequestedPolicyVersion.type - resources.backendBuckets.methods.getIamPolicy.parameters.project.description - resources.backendBuckets.methods.getIamPolicy.parameters.project.location - resources.backendBuckets.methods.getIamPolicy.parameters.project.pattern - resources.backendBuckets.methods.getIamPolicy.parameters.project.required - resources.backendBuckets.methods.getIamPolicy.parameters.project.type - resources.backendBuckets.methods.getIamPolicy.parameters.resource.description - resources.backendBuckets.methods.getIamPolicy.parameters.resource.location - resources.backendBuckets.methods.getIamPolicy.parameters.resource.pattern - resources.backendBuckets.methods.getIamPolicy.parameters.resource.required - resources.backendBuckets.methods.getIamPolicy.parameters.resource.type - resources.backendBuckets.methods.getIamPolicy.path - resources.backendBuckets.methods.getIamPolicy.response.$ref - resources.backendBuckets.methods.getIamPolicy.scopes - resources.backendBuckets.methods.setIamPolicy.description - resources.backendBuckets.methods.setIamPolicy.flatPath - resources.backendBuckets.methods.setIamPolicy.httpMethod - resources.backendBuckets.methods.setIamPolicy.id - resources.backendBuckets.methods.setIamPolicy.parameterOrder - resources.backendBuckets.methods.setIamPolicy.parameters.project.description - resources.backendBuckets.methods.setIamPolicy.parameters.project.location - resources.backendBuckets.methods.setIamPolicy.parameters.project.pattern - resources.backendBuckets.methods.setIamPolicy.parameters.project.required - resources.backendBuckets.methods.setIamPolicy.parameters.project.type - resources.backendBuckets.methods.setIamPolicy.parameters.resource.description - resources.backendBuckets.methods.setIamPolicy.parameters.resource.location - resources.backendBuckets.methods.setIamPolicy.parameters.resource.pattern - resources.backendBuckets.methods.setIamPolicy.parameters.resource.required - resources.backendBuckets.methods.setIamPolicy.parameters.resource.type - resources.backendBuckets.methods.setIamPolicy.path - resources.backendBuckets.methods.setIamPolicy.request.$ref - resources.backendBuckets.methods.setIamPolicy.response.$ref - resources.backendBuckets.methods.setIamPolicy.scopes - resources.backendBuckets.methods.testIamPermissions.description - resources.backendBuckets.methods.testIamPermissions.flatPath - resources.backendBuckets.methods.testIamPermissions.httpMethod - resources.backendBuckets.methods.testIamPermissions.id - resources.backendBuckets.methods.testIamPermissions.parameterOrder - resources.backendBuckets.methods.testIamPermissions.parameters.project.description - resources.backendBuckets.methods.testIamPermissions.parameters.project.location - resources.backendBuckets.methods.testIamPermissions.parameters.project.pattern - resources.backendBuckets.methods.testIamPermissions.parameters.project.required - resources.backendBuckets.methods.testIamPermissions.parameters.project.type - resources.backendBuckets.methods.testIamPermissions.parameters.resource.description - resources.backendBuckets.methods.testIamPermissions.parameters.resource.location - resources.backendBuckets.methods.testIamPermissions.parameters.resource.pattern - resources.backendBuckets.methods.testIamPermissions.parameters.resource.required - resources.backendBuckets.methods.testIamPermissions.parameters.resource.type - resources.backendBuckets.methods.testIamPermissions.path - resources.backendBuckets.methods.testIamPermissions.request.$ref - resources.backendBuckets.methods.testIamPermissions.response.$ref - resources.backendBuckets.methods.testIamPermissions.scopes - resources.backendServices.methods.testIamPermissions.description - resources.backendServices.methods.testIamPermissions.flatPath - resources.backendServices.methods.testIamPermissions.httpMethod - resources.backendServices.methods.testIamPermissions.id - resources.backendServices.methods.testIamPermissions.parameterOrder - resources.backendServices.methods.testIamPermissions.parameters.project.description - resources.backendServices.methods.testIamPermissions.parameters.project.location - resources.backendServices.methods.testIamPermissions.parameters.project.pattern - resources.backendServices.methods.testIamPermissions.parameters.project.required - resources.backendServices.methods.testIamPermissions.parameters.project.type - resources.backendServices.methods.testIamPermissions.parameters.resource.description - resources.backendServices.methods.testIamPermissions.parameters.resource.location - resources.backendServices.methods.testIamPermissions.parameters.resource.pattern - resources.backendServices.methods.testIamPermissions.parameters.resource.required - resources.backendServices.methods.testIamPermissions.parameters.resource.type - resources.backendServices.methods.testIamPermissions.path - resources.backendServices.methods.testIamPermissions.request.$ref - resources.backendServices.methods.testIamPermissions.response.$ref - resources.backendServices.methods.testIamPermissions.scopes - resources.regionBackendServices.methods.testIamPermissions.description - resources.regionBackendServices.methods.testIamPermissions.flatPath - resources.regionBackendServices.methods.testIamPermissions.httpMethod - resources.regionBackendServices.methods.testIamPermissions.id - resources.regionBackendServices.methods.testIamPermissions.parameterOrder - resources.regionBackendServices.methods.testIamPermissions.parameters.project.description - resources.regionBackendServices.methods.testIamPermissions.parameters.project.location - resources.regionBackendServices.methods.testIamPermissions.parameters.project.pattern - resources.regionBackendServices.methods.testIamPermissions.parameters.project.required - resources.regionBackendServices.methods.testIamPermissions.parameters.project.type - resources.regionBackendServices.methods.testIamPermissions.parameters.region.description - resources.regionBackendServices.methods.testIamPermissions.parameters.region.location - resources.regionBackendServices.methods.testIamPermissions.parameters.region.pattern - resources.regionBackendServices.methods.testIamPermissions.parameters.region.required - resources.regionBackendServices.methods.testIamPermissions.parameters.region.type - resources.regionBackendServices.methods.testIamPermissions.parameters.resource.description - resources.regionBackendServices.methods.testIamPermissions.parameters.resource.location - resources.regionBackendServices.methods.testIamPermissions.parameters.resource.pattern - resources.regionBackendServices.methods.testIamPermissions.parameters.resource.required - resources.regionBackendServices.methods.testIamPermissions.parameters.resource.type - resources.regionBackendServices.methods.testIamPermissions.path - resources.regionBackendServices.methods.testIamPermissions.request.$ref - resources.regionBackendServices.methods.testIamPermissions.response.$ref - resources.regionBackendServices.methods.testIamPermissions.scopes The following keys were changed: - resources.interconnects.methods.getDiagnostics.description * feat(content)!: update the API BREAKING CHANGE: This release has breaking changes. #### content:v2.1 The following keys were deleted: - schemas.Account.properties.businessIdentity.$ref - schemas.Account.properties.businessIdentity.description - schemas.AccountBusinessIdentity.description - schemas.AccountBusinessIdentity.id - schemas.AccountBusinessIdentity.properties.blackOwned.$ref - schemas.AccountBusinessIdentity.properties.blackOwned.description - schemas.AccountBusinessIdentity.properties.includeForPromotions.description - schemas.AccountBusinessIdentity.properties.includeForPromotions.type - schemas.AccountBusinessIdentity.properties.latinoOwned.$ref - schemas.AccountBusinessIdentity.properties.latinoOwned.description - schemas.AccountBusinessIdentity.properties.smallBusiness.$ref - schemas.AccountBusinessIdentity.properties.smallBusiness.description - schemas.AccountBusinessIdentity.properties.veteranOwned.$ref - schemas.AccountBusinessIdentity.properties.veteranOwned.description - schemas.AccountBusinessIdentity.properties.womenOwned.$ref - schemas.AccountBusinessIdentity.properties.womenOwned.description - schemas.AccountBusinessIdentity.type - schemas.AccountIdentityType.description - schemas.AccountIdentityType.id - schemas.AccountIdentityType.type The following keys were changed: - schemas.LocalInventory.properties.availability.description - schemas.LocalInventory.properties.instoreProductLocation.description - schemas.LocalInventory.properties.pickupMethod.description - schemas.LocalInventory.properties.pickupSla.description - schemas.LocalInventory.properties.price.description - schemas.LocalInventory.properties.quantity.description - schemas.LocalInventory.properties.salePrice.description - schemas.LocalInventory.properties.storeCode.description * feat(dlp): update the API #### dlp:v2 The following keys were added: - resources.organizations.resources.locations.resources.discoveryConfigs.methods.create.description - resources.organizations.resources.locations.resources.discoveryConfigs.methods.create.flatPath - resources.organizations.resources.locations.resources.discoveryConfigs.methods.create.httpMethod - resources.organizations.resources.locations.resources.discoveryConfigs.methods.create.id - resources.organizations.resources.locations.resources.discoveryConfigs.methods.create.parameterOrder - resources.organizations.resources.locations.resources.discoveryConfigs.methods.create.parameters.parent.description - resources.organizations.resources.locations.resources.discoveryConfigs.methods.create.parameters.parent.location - resources.organizations.resources.locations.resources.discoveryConfigs.methods.create.parameters.parent.pattern - resources.organizations.resources.locations.resources.discoveryConfigs.methods.create.parameters.parent.required - resources.organizations.resources.locations.resources.discoveryConfigs.methods.create.parameters.parent.type - resources.organizations.resources.locations.resources.discoveryConfigs.methods.create.path - resources.organizations.resources.locations.resources.discoveryConfigs.methods.create.request.$ref - resources.organizations.resources.locations.resources.discoveryConfigs.methods.create.response.$ref - resources.organizations.resources.locations.resources.discoveryConfigs.methods.create.scopes - resources.organizations.resources.locations.resources.discoveryConfigs.methods.delete.description - resources.organizations.resources.locations.resources.discoveryConfigs.methods.delete.flatPath - resources.organizations.resources.locations.resources.discoveryConfigs.methods.delete.httpMethod - resources.organizations.resources.locations.resources.discoveryConfigs.methods.delete.id - resources.organizations.resources.locations.resources.discoveryConfigs.methods.delete.parameterOrder - resources.organizations.resources.locations.resources.discoveryConfigs.methods.delete.parameters.name.description - resources.organizations.resources.locations.resources.discoveryConfigs.methods.delete.parameters.name.location - resources.organizations.resources.locations.resources.discoveryConfigs.methods.delete.parameters.name.pattern - resources.organizations.resources.locations.resources.discoveryConfigs.methods.delete.parameters.name.required - resources.organizations.resources.locations.resources.discoveryConfigs.methods.delete.parameters.name.type - resources.organizations.resources.locations.resources.discoveryConfigs.methods.delete.path - resources.organizations.resources.locations.resources.discoveryConfigs.methods.delete.response.$ref - resources.organizations.resources.locations.resources.discoveryConfigs.methods.delete.scopes - resources.organizations.resources.locations.resources.discoveryConfigs.methods.get.description - resources.organizations.resources.locations.resources.discoveryConfigs.methods.get.flatPath - resources.organizations.resources.locations.resources.discoveryConfigs.methods.get.httpMethod - resources.organizations.resources.locations.resources.discoveryConfigs.methods.get.id - resources.organizations.resources.locations.resources.discoveryConfigs.methods.get.parameterOrder - resources.organizations.resources.locations.resources.discoveryConfigs.methods.get.parameters.name.description - resources.organizations.resources.locations.resources.discoveryConfigs.methods.get.parameters.name.location - resources.organizations.resources.locations.resources.discoveryConfigs.methods.get.parameters.name.pattern - resources.organizations.resources.locations.resources.discoveryConfigs.methods.get.parameters.name.required - resources.organizations.resources.locations.resources.discoveryConfigs.methods.get.parameters.name.type - resources.organizations.resources.locations.resources.discoveryConfigs.methods.get.path - resources.organizations.resources.locations.resources.discoveryConfigs.methods.get.response.$ref - resources.organizations.resources.locations.resources.discoveryConfigs.methods.get.scopes - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.description - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.flatPath - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.httpMethod - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.id - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.parameterOrder - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.parameters.orderBy.description - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.parameters.orderBy.location - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.parameters.orderBy.type - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.parameters.pageSize.description - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.parameters.pageSize.format - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.parameters.pageSize.location - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.parameters.pageSize.type - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.parameters.pageToken.description - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.parameters.pageToken.location - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.parameters.pageToken.type - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.parameters.parent.description - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.parameters.parent.location - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.parameters.parent.pattern - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.parameters.parent.required - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.parameters.parent.type - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.path - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.response.$ref - resources.organizations.resources.locations.resources.discoveryConfigs.methods.list.scopes - resources.organizations.resources.locations.resources.discoveryConfigs.methods.patch.description - resources.organizations.resources.locations.resources.discoveryConfigs.methods.patch.flatPath - resources.organizations.resources.locations.resources.discoveryConfigs.methods.patch.httpMethod - resources.organizations.resources.locations.resources.discoveryConfigs.methods.patch.id - resources.organizations.resources.locations.resources.discoveryConfigs.methods.patch.parameterOrder - resources.organizations.resources.locations.resources.discoveryConfigs.methods.patch.parameters.name.description - resources.organizations.resources.locations.resources.discoveryConfigs.methods.patch.parameters.name.location - resources.organizations.resources.locations.resources.discoveryConfigs.methods.patch.parameters.name.pattern - resources.organizations.resources.locations.resources.discoveryConfigs.methods.patch.parameters.name.required - resources.organizations.resources.locations.resources.discoveryConfigs.methods.patch.parameters.name.type - resources.organizations.resources.locations.resources.discoveryConfigs.methods.patch.path - resources.organizations.resources.locations.resources.discoveryConfigs.methods.patch.request.$ref - resources.organizations.resources.locations.resources.discoveryConfigs.methods.patch.response.$ref - resources.organizations.resources.locations.resources.discoveryConfigs.methods.patch.scopes - resources.projects.resources.locations.resources.discoveryConfigs.methods.create.description - resources.projects.resources.locations.resources.discoveryConfigs.methods.create.flatPath - resources.projects.resources.locations.resources.discoveryConfigs.methods.create.httpMethod - resources.projects.resources.locations.resources.discoveryConfigs.methods.create.id - resources.projects.resources.locations.resources.discoveryConfigs.methods.create.parameterOrder - resources.projects.resources.locations.resources.discoveryConfigs.methods.create.parameters.parent.description - resources.projects.resources.locations.resources.discoveryConfigs.methods.create.parameters.parent.location - resources.projects.resources.locations.resources.discoveryConfigs.methods.create.parameters.parent.pattern - resources.projects.resources.locations.resources.discoveryConfigs.methods.create.parameters.parent.required - resources.projects.resources.locations.resources.discoveryConfigs.methods.create.parameters.parent.type - resources.projects.resources.locations.resources.discoveryConfigs.methods.create.path - resources.projects.resources.locations.resources.discoveryConfigs.methods.create.request.$ref - resources.projects.resources.locations.resources.discoveryConfigs.methods.create.response.$ref - resources.projects.resources.locations.resources.discoveryConfigs.methods.create.scopes - resources.projects.resources.locations.resources.discoveryConfigs.methods.delete.description - resources.projects.resources.locations.resources.discoveryConfigs.methods.delete.flatPath - resources.projects.resources.locations.resources.discoveryConfigs.methods.delete.httpMethod - resources.projects.resources.locations.resources.discoveryConfigs.methods.delete.id - resources.projects.resources.locations.resources.discoveryConfigs.methods.delete.parameterOrder - resources.projects.resources.locations.resources.discoveryConfigs.methods.delete.parameters.name.description - resources.projects.resources.locations.resources.discoveryConfigs.methods.delete.parameters.name.location - resources.projects.resources.locations.resources.discoveryConfigs.methods.delete.parameters.name.pattern - resources.projects.resources.locations.resources.discoveryConfigs.methods.delete.parameters.name.required - resources.projects.resources.locations.resources.discoveryConfigs.methods.delete.parameters.name.type - resources.projects.resources.locations.resources.discoveryConfigs.methods.delete.path - resources.projects.resources.locations.resources.discoveryConfigs.methods.delete.response.$ref - resources.projects.resources.locations.resources.discoveryConfigs.methods.delete.scopes - resources.projects.resources.locations.resources.discoveryConfigs.methods.get.description - resources.projects.resources.locations.resources.discoveryConfigs.methods.get.flatPath - resources.projects.resources.locations.resources.discoveryConfigs.methods.get.httpMethod - resources.projects.resources.locations.resources.discoveryConfigs.methods.get.id - resources.projects.resources.locations.resources.discoveryConfigs.methods.get.parameterOrder - resources.projects.resources.locations.resources.discoveryConfigs.methods.get.parameters.name.description - resources.projects.resources.locations.resources.discoveryConfigs.methods.get.parameters.name.location - resources.projects.resources.locations.resources.discoveryConfigs.methods.get.parameters.name.pattern - resources.projects.resources.locations.resources.discoveryConfigs.methods.get.parameters.name.required - resources.projects.resources.locations.resources.discoveryConfigs.methods.get.parameters.name.type - resources.projects.resources.locations.resources.discoveryConfigs.methods.get.path - resources.projects.resources.locations.resources.discoveryConfigs.methods.get.response.$ref - resources.projects.resources.locations.resources.discoveryConfigs.methods.get.scopes - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.description - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.flatPath - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.httpMethod - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.id - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.parameterOrder - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.parameters.orderBy.description - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.parameters.orderBy.location - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.parameters.orderBy.type - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.parameters.pageSize.description - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.parameters.pageSize.format - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.parameters.pageSize.location - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.parameters.pageSize.type - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.parameters.pageToken.description - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.parameters.pageToken.location - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.parameters.pageToken.type - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.parameters.parent.description - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.parameters.parent.location - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.parameters.parent.pattern - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.parameters.parent.required - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.parameters.parent.type - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.path - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.response.$ref - resources.projects.resources.locations.resources.discoveryConfigs.methods.list.scopes - resources.projects.resources.locations.resources.discoveryConfigs.methods.patch.description - resources.projects.resources.locations.resources.discoveryConfigs.methods.patch.flatPath - resources.projects.resources.locations.resources.discoveryConfigs.methods.patch.httpMethod - resources.projects.resources.locations.resources.discoveryConfigs.methods.patch.id - resources.projects.resources.locations.resources.discoveryConfigs.methods.patch.parameterOrder - resources.projects.resources.locations.resources.discoveryConfigs.methods.patch.parameters.name.description - resources.projects.resources.locations.resources.discoveryConfigs.methods.patch.parameters.name.location - resources.projects.resources.locations.resources.discoveryConfigs.methods.patch.parameters.name.pattern - resources.projects.resources.locations.resources.discoveryConfigs.methods.patch.parameters.name.required - resources.projects.resources.locations.resources.discoveryConfigs.methods.patch.parameters.name.type - resources.projects.resources.locations.resources.discoveryConfigs.methods.patch.path - resources.projects.resources.locations.resources.discoveryConfigs.methods.patch.request.$ref - resources.projects.resources.locations.resources.discoveryConfigs.methods.patch.response.$ref - resources.projects.resources.locations.resources.discoveryConfigs.methods.patch.scopes - schemas.GooglePrivacyDlpV2AllOtherBigQueryTables.description - schemas.GooglePrivacyDlpV2AllOtherBigQueryTables.id - schemas.GooglePrivacyDlpV2AllOtherBigQueryTables.type - schemas.GooglePrivacyDlpV2BigQueryDiscoveryTarget.description - schemas.GooglePrivacyDlpV2BigQueryDiscoveryTarget.id - schemas.GooglePrivacyDlpV2BigQueryDiscoveryTarget.properties.cadence.$ref - schemas.GooglePrivacyDlpV2BigQueryDiscoveryTarget.properties.cadence.description - schemas.GooglePrivacyDlpV2BigQueryDiscoveryTarget.properties.conditions.$ref - schemas.GooglePrivacyDlpV2BigQueryDiscoveryTarget.properties.conditions.description - schemas.GooglePrivacyDlpV2BigQueryDiscoveryTarget.properties.disabled.$ref - schemas.GooglePrivacyDlpV2BigQueryDiscoveryTarget.properties.disabled.description - schemas.GooglePrivacyDlpV2BigQueryDiscoveryTarget.properties.filter.$ref - schemas.GooglePrivacyDlpV2BigQueryDiscoveryTarget.properties.filter.description - schemas.GooglePrivacyDlpV2BigQueryDiscoveryTarget.type - schemas.GooglePrivacyDlpV2BigQueryRegex.description - schemas.GooglePrivacyDlpV2BigQueryRegex.id - schemas.GooglePrivacyDlpV2BigQueryRegex.properties.datasetIdRegex.description - schemas.GooglePrivacyDlpV2BigQueryRegex.properties.datasetIdRegex.type - schemas.GooglePrivacyDlpV2BigQueryRegex.properties.projectIdRegex.description - schemas.GooglePrivacyDlpV2BigQueryRegex.properties.projectIdRegex.type - schemas.GooglePrivacyDlpV2BigQueryRegex.properties.tableIdRegex.description - schemas.GooglePrivacyDlpV2BigQueryRegex.properties.tableIdRegex.type - schemas.GooglePrivacyDlpV2BigQueryRegex.type - schemas.GooglePrivacyDlpV2BigQueryRegexes.description - schemas.GooglePrivacyDlpV2BigQueryRegexes.id - schemas.GooglePrivacyDlpV2BigQueryRegexes.properties.patterns.description - schemas.GooglePrivacyDlpV2BigQueryRegexes.properties.patterns.items.$ref - schemas.GooglePrivacyDlpV2BigQueryRegexes.properties.patterns.type - schemas.GooglePrivacyDlpV2BigQueryRegexes.type - schemas.GooglePrivacyDlpV2BigQueryTableCollection.description - schemas.GooglePrivacyDlpV2BigQueryTableCollection.id - schemas.GooglePrivacyDlpV2BigQueryTableCollection.properties.includeRegexes.$ref - schemas.GooglePrivacyDlpV2BigQueryTableCollection.properties.includeRegexes.description - schemas.GooglePrivacyDlpV2BigQueryTableCollection.type - schemas.GooglePrivacyDlpV2BigQueryTableTypes.description - schemas.GooglePrivacyDlpV2BigQueryTableTypes.id - schemas.GooglePrivacyDlpV2BigQueryTableTypes.properties.types.description - schemas.GooglePrivacyDlpV2BigQueryTableTypes.properties.types.items.enum - schemas.GooglePrivacyDlpV2BigQueryTableTypes.properties.types.items.enumDescriptions - schemas.GooglePrivacyDlpV2BigQueryTableTypes.properties.types.items.type - schemas.GooglePrivacyDlpV2BigQueryTableTypes.properties.types.type - schemas.GooglePrivacyDlpV2BigQueryTableTypes.type - schemas.GooglePrivacyDlpV2CreateDiscoveryConfigRequest.description - schemas.GooglePrivacyDlpV2CreateDiscoveryConfigRequest.id - schemas.GooglePrivacyDlpV2CreateDiscoveryConfigRequest.properties.configId.description - schemas.GooglePrivacyDlpV2CreateDiscoveryConfigRequest.properties.configId.type - schemas.GooglePrivacyDlpV2CreateDiscoveryConfigRequest.properties.discoveryConfig.$ref - schemas.GooglePrivacyDlpV2CreateDiscoveryConfigRequest.properties.discoveryConfig.description - schemas.GooglePrivacyDlpV2CreateDiscoveryConfigRequest.type - schemas.GooglePrivacyDlpV2Disabled.description - schemas.GooglePrivacyDlpV2Disabled.id - schemas.GooglePrivacyDlpV2Disabled.type - schemas.GooglePrivacyDlpV2DiscoveryBigQueryConditions.description - schemas.GooglePrivacyDlpV2DiscoveryBigQueryConditions.id - schemas.GooglePrivacyDlpV2DiscoveryBigQueryConditions.properties.createdAfter.description - schemas.GooglePrivacyDlpV2DiscoveryBigQueryConditions.properties.createdAfter.format - schemas.GooglePrivacyDlpV2DiscoveryBigQueryConditions.properties.createdAfter.type - schemas.GooglePrivacyDlpV2DiscoveryBigQueryConditions.properties.orConditions.$ref - schemas.GooglePrivacyDlpV2DiscoveryBigQueryConditions.properties.orConditions.description - schemas.GooglePrivacyDlpV2DiscoveryBigQueryConditions.properties.typeCollection.description - schemas.GooglePrivacyDlpV2DiscoveryBigQueryConditions.properties.typeCollection.enum - schemas.GooglePrivacyDlpV2DiscoveryBigQueryConditions.properties.typeCollection.enumDescriptions - schemas.GooglePrivacyDlpV2DiscoveryBigQueryConditions.properties.typeCollection.type - schemas.GooglePrivacyDlpV2DiscoveryBigQueryConditions.properties.types.$ref - schemas.GooglePrivacyDlpV2DiscoveryBigQueryConditions.properties.types.description - schemas.GooglePrivacyDlpV2DiscoveryBigQueryConditions.type - schemas.GooglePrivacyDlpV2DiscoveryBigQueryFilter.description - schemas.GooglePrivacyDlpV2DiscoveryBigQueryFilter.id - schemas.GooglePrivacyDlpV2DiscoveryBigQueryFilter.properties.otherTables.$ref - schemas.GooglePrivacyDlpV2DiscoveryBigQueryFilter.properties.otherTables.description - schemas.GooglePrivacyDlpV2DiscoveryBigQueryFilter.properties.tables.$ref - schemas.GooglePrivacyDlpV2DiscoveryBigQueryFilter.properties.tables.description - schemas.GooglePrivacyDlpV2DiscoveryBigQueryFilter.type - schemas.GooglePrivacyDlpV2DiscoveryConfig.description - schemas.GooglePrivacyDlpV2DiscoveryConfig.id - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.actions.description - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.actions.items.$ref - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.actions.type - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.createTime.description - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.createTime.format - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.createTime.readOnly - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.createTime.type - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.displayName.description - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.displayName.type - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.errors.description - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.errors.items.$ref - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.errors.readOnly - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.errors.type - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.inspectTemplates.description - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.inspectTemplates.items.type - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.inspectTemplates.type - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.lastRunTime.description - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.lastRunTime.format - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.lastRunTime.readOnly - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.lastRunTime.type - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.name.description - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.name.type - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.orgConfig.$ref - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.orgConfig.description - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.status.description - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.status.enum - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.status.enumDescriptions - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.status.type - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.targets.description - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.targets.items.$ref - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.targets.type - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.updateTime.description - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.updateTime.format - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.updateTime.readOnly - schemas.GooglePrivacyDlpV2DiscoveryConfig.properties.updateTime.type - schemas.GooglePrivacyDlpV2DiscoveryConfig.type - schemas.GooglePrivacyDlpV2DiscoveryGenerationCadence.description - schemas.GooglePrivacyDlpV2DiscoveryGenerationCadence.id - schemas.GooglePrivacyDlpV2DiscoveryGenerationCadence.properties.schemaModifiedCadence.$ref - schemas.GooglePrivacyDlpV2DiscoveryGenerationCadence.properties.schemaModifiedCadence.description - schemas.GooglePrivacyDlpV2DiscoveryGenerationCadence.properties.tableModifiedCadence.$ref - schemas.GooglePrivacyDlpV2DiscoveryGenerationCadence.properties.tableModifiedCadence.description - schemas.GooglePrivacyDlpV2DiscoveryGenerationCadence.type - schemas.GooglePrivacyDlpV2DiscoverySchemaModifiedCadence.description - schemas.GooglePrivacyDlpV2DiscoverySchemaModifiedCadence.id - schemas.GooglePrivacyDlpV2DiscoverySchemaModifiedCadence.properties.frequency.description - schemas.GooglePrivacyDlpV2DiscoverySchemaModifiedCadence.properties.frequency.enum - schemas.GooglePrivacyDlpV2DiscoverySchemaModifiedCadence.properties.frequency.enumDescriptions - schemas.GooglePrivacyDlpV2DiscoverySchemaModifiedCadence.properties.frequency.type - schemas.GooglePrivacyDlpV2DiscoverySchemaModifiedCadence.properties.types.description - schemas.GooglePrivacyDlpV2DiscoverySchemaModifiedCadence.properties.types.items.enum - schemas.GooglePrivacyDlpV2DiscoverySchemaModifiedCadence.properties.types.items.enumDescriptions - schemas.GooglePrivacyDlpV2DiscoverySchemaModifiedCadence.properties.types.items.type - schemas.GooglePrivacyDlpV2DiscoverySchemaModifiedCadence.properties.types.type - schemas.GooglePrivacyDlpV2DiscoverySchemaModifiedCadence.type - schemas.GooglePrivacyDlpV2DiscoveryStartingLocation.description - schemas.GooglePrivacyDlpV2DiscoveryStartingLocation.id - schemas.GooglePrivacyDlpV2DiscoveryStartingLocation.properties.folderId.description - schemas.GooglePrivacyDlpV2DiscoveryStartingLocation.properties.folderId.format - schemas.GooglePrivacyDlpV2DiscoveryStartingLocation.properties.folderId.type - schemas.GooglePrivacyDlpV2DiscoveryStartingLocation.properties.organizationId.description - schemas.GooglePrivacyDlpV2DiscoveryStartingLocation.properties.organizationId.format - schemas.GooglePrivacyDlpV2DiscoveryStartingLocation.properties.organizationId.type - schemas.GooglePrivacyDlpV2DiscoveryStartingLocation.type - schemas.GooglePrivacyDlpV2DiscoveryTableModifiedCadence.description - schemas.GooglePrivacyDlpV2DiscoveryTableModifiedCadence.id - schemas.GooglePrivacyDlpV2DiscoveryTableModifiedCadence.properties.frequency.description - schemas.GooglePrivacyDlpV2DiscoveryTableModifiedCadence.properties.frequency.enum - schemas.GooglePrivacyDlpV2DiscoveryTableModifiedCadence.properties.frequency.enumDescriptions - schemas.GooglePrivacyDlpV2DiscoveryTableModifiedCadence.properties.frequency.type - schemas.GooglePrivacyDlpV2DiscoveryTableModifiedCadence.properties.types.description - schemas.GooglePrivacyDlpV2DiscoveryTableModifiedCadence.properties.types.items.enum - schemas.GooglePrivacyDlpV2DiscoveryTableModifiedCadence.properties.types.items.enumDescriptions - schemas.GooglePrivacyDlpV2DiscoveryTableModifiedCadence.properties.types.items.type - schemas.GooglePrivacyDlpV2DiscoveryTableModifiedCadence.properties.types.type - schemas.GooglePrivacyDlpV2DiscoveryTableModifiedCadence.type - schemas.GooglePrivacyDlpV2DiscoveryTarget.description - schemas.GooglePrivacyDlpV2DiscoveryTarget.id - schemas.GooglePrivacyDlpV2DiscoveryTarget.properties.bigQueryTarget.$ref - schemas.GooglePrivacyDlpV2DiscoveryTarget.properties.bigQueryTarget.description - schemas.GooglePrivacyDlpV2DiscoveryTarget.type - schemas.GooglePrivacyDlpV2ListDiscoveryConfigsResponse.description - schemas.GooglePrivacyDlpV2ListDiscoveryConfigsResponse.id - schemas.GooglePrivacyDlpV2ListDiscoveryConfigsResponse.properties.discoveryConfigs.description - schemas.GooglePrivacyDlpV2ListDiscoveryConfigsResponse.properties.discoveryConfigs.items.$ref - schemas.GooglePrivacyDlpV2ListDiscoveryConfigsResponse.properties.discoveryConfigs.type - schemas.GooglePrivacyDlpV2ListDiscoveryConfigsResponse.properties.nextPageToken.description - schemas.GooglePrivacyDlpV2ListDiscoveryConfigsResponse.properties.nextPageToken.type - schemas.GooglePrivacyDlpV2ListDiscoveryConfigsResponse.type - schemas.GooglePrivacyDlpV2OrConditions.description - schemas.GooglePrivacyDlpV2OrConditions.id - schemas.GooglePrivacyDlpV2OrConditions.properties.minAge.description - schemas.GooglePrivacyDlpV2OrConditions.properties.minAge.format - schemas.GooglePrivacyDlpV2OrConditions.properties.minAge.type - schemas.GooglePrivacyDlpV2OrConditions.properties.minRowCount.description - schemas.GooglePrivacyDlpV2OrConditions.properties.minRowCount.format - schemas.GooglePrivacyDlpV2OrConditions.properties.minRowCount.type - schemas.GooglePrivacyDlpV2OrConditions.type - schemas.GooglePrivacyDlpV2OrgConfig.description - schemas.GooglePrivacyDlpV2OrgConfig.id - schemas.GooglePrivacyDlpV2OrgConfig.properties.location.$ref - schemas.GooglePrivacyDlpV2OrgConfig.properties.location.description - schemas.GooglePrivacyDlpV2OrgConfig.properties.projectId.description - schemas.GooglePrivacyDlpV2OrgConfig.properties.projectId.type - schemas.GooglePrivacyDlpV2OrgConfig.type - schemas.GooglePrivacyDlpV2UpdateDiscoveryConfigRequest.description - schemas.GooglePrivacyDlpV2UpdateDiscoveryConfigRequest.id - schemas.GooglePrivacyDlpV2UpdateDiscoveryConfigRequest.properties.discoveryConfig.$ref - schemas.GooglePrivacyDlpV2UpdateDiscoveryConfigRequest.properties.discoveryConfig.description - schemas.GooglePrivacyDlpV2UpdateDiscoveryConfigRequest.properties.updateMask.description - schemas.GooglePrivacyDlpV2UpdateDiscoveryConfigRequest.properties.updateMask.format - schemas.GooglePrivacyDlpV2UpdateDiscoveryConfigRequest.properties.updateMask.type - schemas.GooglePrivacyDlpV2UpdateDiscoveryConfigRequest.type * feat(doubleclicksearch)!: update the API BREAKING CHANGE: This release has breaking changes. #### doubleclicksearch:v2 The following keys were deleted: - schemas.Conversion.properties.adUserDataConsent.description - schemas.Conversion.properties.adUserDataConsent.enum - schemas.Conversion.properties.adUserDataConsent.enumDescriptions - schemas.Conversion.properties.adUserDataConsent.type * feat(gkeonprem): update the API #### gkeonprem:v1 The following keys were added: - schemas.VmwareAdminCluster.properties.preparedSecrets.readOnly The following keys were changed: - schemas.VmwareAdminCluster.properties.preparedSecrets.description * fix(managedidentities): update the API #### managedidentities:v1alpha1 The following keys were changed: - schemas.Operation.properties.response.description - schemas.Policy.description - schemas.UpdatePolicy.properties.denyMaintenancePeriods.description #### managedidentities:v1beta1 The following keys were changed: - schemas.Operation.properties.response.description - schemas.Policy.description - schemas.UpdatePolicy.properties.denyMaintenancePeriods.description #### managedidentities:v1 The following keys were changed: - schemas.Operation.properties.response.description - schemas.Policy.description - schemas.UpdatePolicy.properties.denyMaintenancePeriods.description * feat(redis): update the API #### redis:v1beta1 The following keys were added: - schemas.CertificateAuthority.properties.name.description - schemas.CertificateAuthority.properties.name.type #### redis:v1 The following keys were added: - schemas.CertificateAuthority.properties.name.description - schemas.CertificateAuthority.properties.name.type * feat(spanner): update the API #### spanner:v1 The following keys were added: - endpoints - schemas.IndexAdvice.description - schemas.IndexAdvice.id - schemas.IndexAdvice.properties.ddl.description - schemas.IndexAdvice.properties.ddl.items.type - schemas.IndexAdvice.properties.ddl.type - schemas.IndexAdvice.properties.improvementFactor.description - schemas.IndexAdvice.properties.improvementFactor.format - schemas.IndexAdvice.properties.improvementFactor.type - schemas.IndexAdvice.type - schemas.QueryAdvisorResult.description - schemas.QueryAdvisorResult.id - schemas.QueryAdvisorResult.properties.indexAdvice.description - schemas.QueryAdvisorResult.properties.indexAdvice.items.$ref - schemas.QueryAdvisorResult.properties.indexAdvice.type - schemas.QueryAdvisorResult.type - schemas.QueryPlan.properties.queryAdvice.$ref - schemas.QueryPlan.properties.queryAdvice.description * feat(sqladmin): update the API #### sqladmin:v1beta4 The following keys were added: - schemas.PasswordValidationPolicy.properties.disallowCompromisedCredentials.description - schemas.PasswordValidationPolicy.properties.disallowCompromisedCredentials.type The following keys were changed: - schemas.ImportContext.properties.bakImportOptions.properties.stopAt.description - schemas.ImportContext.properties.bakImportOptions.properties.stopAtMark.description - schemas.IpConfiguration.properties.requireSsl.description - schemas.IpConfiguration.properties.sslMode.description - schemas.IpConfiguration.properties.sslMode.enumDescriptions - schemas.User.properties.type.enum - schemas.User.properties.type.enumDescriptions #### sqladmin:v1 The following keys were added: - schemas.PasswordValidationPolicy.properties.disallowCompromisedCredentials.description - schemas.PasswordValidationPolicy.properties.disallowCompromisedCredentials.type The following keys were changed: - schemas.ImportContext.properties.bakImportOptions.properties.stopAt.description - schemas.ImportContext.properties.bakImportOptions.properties.stopAtMark.description - schemas.IpConfiguration.properties.requireSsl.description - schemas.IpConfiguration.properties.sslMode.description - schemas.IpConfiguration.properties.sslMode.enumDescriptions - schemas.User.properties.type.enum - schemas.User.properties.type.enumDescriptions * fix(workflowexecutions): update the API #### workflowexecutions:v1 The following keys were changed: - resources.projects.resources.locations.resources.workflows.resources.executions.methods.list.parameters.filter.description - resources.projects.resources.locations.resources.workflows.resources.executions.methods.list.parameters.orderBy.description * feat: regenerate index files --------- Co-authored-by: Yoshi Automation --- discovery/aiplatform-v1.json | 110 +- discovery/aiplatform-v1beta1.json | 96 +- discovery/alloydb-v1.json | 9 +- discovery/artifactregistry-v1.json | 32 +- discovery/baremetalsolution-v2.json | 8 +- discovery/batch-v1.json | 4 +- discovery/bigtableadmin-v2.json | 50 +- discovery/compute-alpha.json | 4 +- discovery/compute-v1.json | 204 +- discovery/content-v2.1.json | 59 +- discovery/dlp-v2.json | 738 +++- discovery/doubleclicksearch-v2.json | 16 +- discovery/gkeonprem-v1.json | 5 +- discovery/integrations-v1alpha.json | 12 +- discovery/managedidentities-v1.json | 8 +- discovery/managedidentities-v1alpha1.json | 8 +- discovery/managedidentities-v1beta1.json | 8 +- discovery/redis-v1.json | 6 +- discovery/redis-v1beta1.json | 6 +- discovery/spanner-v1.json | 46 +- discovery/sqladmin-v1.json | 32 +- discovery/sqladmin-v1beta4.json | 32 +- discovery/workflowexecutions-v1.json | 6 +- src/apis/alloydb/v1.ts | 6 +- src/apis/artifactregistry/v1.ts | 26 + src/apis/batch/v1.ts | 2 +- src/apis/bigtableadmin/v2.ts | 21 +- src/apis/compute/alpha.ts | 2 +- src/apis/compute/v1.ts | 541 ++- src/apis/content/v2.1.ts | 53 +- src/apis/dlp/v2.ts | 4853 +++++++++++++-------- src/apis/doubleclicksearch/v2.ts | 4 - src/apis/gkeonprem/v1.ts | 2 +- src/apis/managedidentities/v1.ts | 6 +- src/apis/managedidentities/v1alpha1.ts | 6 +- src/apis/managedidentities/v1beta1.ts | 6 +- src/apis/redis/v1.ts | 4 + src/apis/redis/v1beta1.ts | 4 + src/apis/spanner/v1.ts | 26 + src/apis/sqladmin/v1.ts | 8 +- src/apis/sqladmin/v1beta4.ts | 8 +- src/apis/workflowexecutions/v1.ts | 4 +- 42 files changed, 4958 insertions(+), 2123 deletions(-) diff --git a/discovery/aiplatform-v1.json b/discovery/aiplatform-v1.json index 10807c7dc66..4b966b88d1e 100644 --- a/discovery/aiplatform-v1.json +++ b/discovery/aiplatform-v1.json @@ -20,29 +20,29 @@ "documentationLink": "https://cloud.google.com/vertex-ai/", "endpoints": [ { - "description": "Locational Endpoint", + "endpointUrl": "https://asia-east1-aiplatform.googleapis.com/", "location": "asia-east1", - "endpointUrl": "https://asia-east1-aiplatform.googleapis.com/" + "description": "Locational Endpoint" }, { - "endpointUrl": "https://asia-east2-aiplatform.googleapis.com/", "description": "Locational Endpoint", + "endpointUrl": "https://asia-east2-aiplatform.googleapis.com/", "location": "asia-east2" }, { "endpointUrl": "https://asia-northeast1-aiplatform.googleapis.com/", - "description": "Locational Endpoint", - "location": "asia-northeast1" + "location": "asia-northeast1", + "description": "Locational Endpoint" }, { - "description": "Locational Endpoint", + "location": "asia-northeast2", "endpointUrl": "https://asia-northeast2-aiplatform.googleapis.com/", - "location": "asia-northeast2" + "description": "Locational Endpoint" }, { "description": "Locational Endpoint", - "location": "asia-northeast3", - "endpointUrl": "https://asia-northeast3-aiplatform.googleapis.com/" + "endpointUrl": "https://asia-northeast3-aiplatform.googleapis.com/", + "location": "asia-northeast3" }, { "endpointUrl": "https://asia-south1-aiplatform.googleapis.com/", @@ -50,14 +50,14 @@ "description": "Locational Endpoint" }, { - "location": "asia-southeast1", + "description": "Locational Endpoint", "endpointUrl": "https://asia-southeast1-aiplatform.googleapis.com/", - "description": "Locational Endpoint" + "location": "asia-southeast1" }, { "endpointUrl": "https://asia-southeast2-aiplatform.googleapis.com/", - "description": "Locational Endpoint", - "location": "asia-southeast2" + "location": "asia-southeast2", + "description": "Locational Endpoint" }, { "endpointUrl": "https://australia-southeast1-aiplatform.googleapis.com/", @@ -66,83 +66,83 @@ }, { "description": "Locational Endpoint", - "location": "australia-southeast2", - "endpointUrl": "https://australia-southeast2-aiplatform.googleapis.com/" + "endpointUrl": "https://australia-southeast2-aiplatform.googleapis.com/", + "location": "australia-southeast2" }, { "location": "europe-central2", - "description": "Locational Endpoint", - "endpointUrl": "https://europe-central2-aiplatform.googleapis.com/" + "endpointUrl": "https://europe-central2-aiplatform.googleapis.com/", + "description": "Locational Endpoint" }, { - "description": "Locational Endpoint", "endpointUrl": "https://europe-north1-aiplatform.googleapis.com/", - "location": "europe-north1" + "location": "europe-north1", + "description": "Locational Endpoint" }, { "location": "europe-southwest1", - "description": "Locational Endpoint", - "endpointUrl": "https://europe-southwest1-aiplatform.googleapis.com/" + "endpointUrl": "https://europe-southwest1-aiplatform.googleapis.com/", + "description": "Locational Endpoint" }, { "location": "europe-west1", - "endpointUrl": "https://europe-west1-aiplatform.googleapis.com/", - "description": "Locational Endpoint" + "description": "Locational Endpoint", + "endpointUrl": "https://europe-west1-aiplatform.googleapis.com/" }, { "endpointUrl": "https://europe-west2-aiplatform.googleapis.com/", - "description": "Locational Endpoint", - "location": "europe-west2" + "location": "europe-west2", + "description": "Locational Endpoint" }, { - "location": "europe-west3", "description": "Locational Endpoint", + "location": "europe-west3", "endpointUrl": "https://europe-west3-aiplatform.googleapis.com/" }, { + "description": "Locational Endpoint", "endpointUrl": "https://europe-west4-aiplatform.googleapis.com/", - "location": "europe-west4", - "description": "Locational Endpoint" + "location": "europe-west4" }, { "endpointUrl": "https://europe-west6-aiplatform.googleapis.com/", - "location": "europe-west6", - "description": "Locational Endpoint" + "description": "Locational Endpoint", + "location": "europe-west6" }, { + "location": "europe-west8", "endpointUrl": "https://europe-west8-aiplatform.googleapis.com/", - "description": "Locational Endpoint", - "location": "europe-west8" + "description": "Locational Endpoint" }, { - "description": "Locational Endpoint", + "endpointUrl": "https://europe-west9-aiplatform.googleapis.com/", "location": "europe-west9", - "endpointUrl": "https://europe-west9-aiplatform.googleapis.com/" + "description": "Locational Endpoint" }, { - "location": "me-west1", + "endpointUrl": "https://me-west1-aiplatform.googleapis.com/", "description": "Locational Endpoint", - "endpointUrl": "https://me-west1-aiplatform.googleapis.com/" + "location": "me-west1" }, { - "location": "northamerica-northeast1", + "endpointUrl": "https://northamerica-northeast1-aiplatform.googleapis.com/", "description": "Locational Endpoint", - "endpointUrl": "https://northamerica-northeast1-aiplatform.googleapis.com/" + "location": "northamerica-northeast1" }, { - "description": "Locational Endpoint", "location": "northamerica-northeast2", - "endpointUrl": "https://northamerica-northeast2-aiplatform.googleapis.com/" + "endpointUrl": "https://northamerica-northeast2-aiplatform.googleapis.com/", + "description": "Locational Endpoint" }, { - "endpointUrl": "https://southamerica-east1-aiplatform.googleapis.com/", "location": "southamerica-east1", - "description": "Locational Endpoint" + "description": "Locational Endpoint", + "endpointUrl": "https://southamerica-east1-aiplatform.googleapis.com/" }, { "endpointUrl": "https://southamerica-west1-aiplatform.googleapis.com/", - "location": "southamerica-west1", - "description": "Locational Endpoint" + "description": "Locational Endpoint", + "location": "southamerica-west1" }, { "description": "Locational Endpoint", @@ -150,9 +150,9 @@ "endpointUrl": "https://us-central1-aiplatform.googleapis.com/" }, { - "description": "Locational Endpoint", "location": "us-central2", - "endpointUrl": "https://us-central2-aiplatform.googleapis.com/" + "endpointUrl": "https://us-central2-aiplatform.googleapis.com/", + "description": "Locational Endpoint" }, { "description": "Locational Endpoint", @@ -160,19 +160,19 @@ "location": "us-east1" }, { + "endpointUrl": "https://us-east4-aiplatform.googleapis.com/", "location": "us-east4", - "description": "Locational Endpoint", - "endpointUrl": "https://us-east4-aiplatform.googleapis.com/" + "description": "Locational Endpoint" }, { - "description": "Locational Endpoint", "location": "us-south1", + "description": "Locational Endpoint", "endpointUrl": "https://us-south1-aiplatform.googleapis.com/" }, { - "endpointUrl": "https://us-west1-aiplatform.googleapis.com/", + "location": "us-west1", "description": "Locational Endpoint", - "location": "us-west1" + "endpointUrl": "https://us-west1-aiplatform.googleapis.com/" }, { "endpointUrl": "https://us-west2-aiplatform.googleapis.com/", @@ -180,14 +180,14 @@ "location": "us-west2" }, { - "endpointUrl": "https://us-west3-aiplatform.googleapis.com/", + "description": "Locational Endpoint", "location": "us-west3", - "description": "Locational Endpoint" + "endpointUrl": "https://us-west3-aiplatform.googleapis.com/" }, { + "endpointUrl": "https://us-west4-aiplatform.googleapis.com/", "location": "us-west4", - "description": "Locational Endpoint", - "endpointUrl": "https://us-west4-aiplatform.googleapis.com/" + "description": "Locational Endpoint" } ], "fullyEncodeReservedExpansion": true, diff --git a/discovery/aiplatform-v1beta1.json b/discovery/aiplatform-v1beta1.json index e0f653000ff..6aa84803d20 100644 --- a/discovery/aiplatform-v1beta1.json +++ b/discovery/aiplatform-v1beta1.json @@ -25,14 +25,14 @@ "description": "Locational Endpoint" }, { - "endpointUrl": "https://asia-east2-aiplatform.googleapis.com/", "location": "asia-east2", - "description": "Locational Endpoint" + "description": "Locational Endpoint", + "endpointUrl": "https://asia-east2-aiplatform.googleapis.com/" }, { + "endpointUrl": "https://asia-northeast1-aiplatform.googleapis.com/", "location": "asia-northeast1", - "description": "Locational Endpoint", - "endpointUrl": "https://asia-northeast1-aiplatform.googleapis.com/" + "description": "Locational Endpoint" }, { "endpointUrl": "https://asia-northeast2-aiplatform.googleapis.com/", @@ -41,23 +41,23 @@ }, { "endpointUrl": "https://asia-northeast3-aiplatform.googleapis.com/", - "description": "Locational Endpoint", - "location": "asia-northeast3" + "location": "asia-northeast3", + "description": "Locational Endpoint" }, { "endpointUrl": "https://asia-south1-aiplatform.googleapis.com/", - "location": "asia-south1", - "description": "Locational Endpoint" + "description": "Locational Endpoint", + "location": "asia-south1" }, { - "location": "asia-southeast1", + "description": "Locational Endpoint", "endpointUrl": "https://asia-southeast1-aiplatform.googleapis.com/", - "description": "Locational Endpoint" + "location": "asia-southeast1" }, { - "endpointUrl": "https://asia-southeast2-aiplatform.googleapis.com/", "description": "Locational Endpoint", - "location": "asia-southeast2" + "location": "asia-southeast2", + "endpointUrl": "https://asia-southeast2-aiplatform.googleapis.com/" }, { "description": "Locational Endpoint", @@ -65,14 +65,14 @@ "location": "australia-southeast1" }, { + "endpointUrl": "https://australia-southeast2-aiplatform.googleapis.com/", "description": "Locational Endpoint", - "location": "australia-southeast2", - "endpointUrl": "https://australia-southeast2-aiplatform.googleapis.com/" + "location": "australia-southeast2" }, { + "description": "Locational Endpoint", "location": "europe-central2", - "endpointUrl": "https://europe-central2-aiplatform.googleapis.com/", - "description": "Locational Endpoint" + "endpointUrl": "https://europe-central2-aiplatform.googleapis.com/" }, { "description": "Locational Endpoint", @@ -81,8 +81,8 @@ }, { "location": "europe-southwest1", - "description": "Locational Endpoint", - "endpointUrl": "https://europe-southwest1-aiplatform.googleapis.com/" + "endpointUrl": "https://europe-southwest1-aiplatform.googleapis.com/", + "description": "Locational Endpoint" }, { "description": "Locational Endpoint", @@ -91,18 +91,18 @@ }, { "description": "Locational Endpoint", - "location": "europe-west2", - "endpointUrl": "https://europe-west2-aiplatform.googleapis.com/" + "endpointUrl": "https://europe-west2-aiplatform.googleapis.com/", + "location": "europe-west2" }, { "location": "europe-west3", - "description": "Locational Endpoint", - "endpointUrl": "https://europe-west3-aiplatform.googleapis.com/" + "endpointUrl": "https://europe-west3-aiplatform.googleapis.com/", + "description": "Locational Endpoint" }, { - "endpointUrl": "https://europe-west4-aiplatform.googleapis.com/", "location": "europe-west4", - "description": "Locational Endpoint" + "description": "Locational Endpoint", + "endpointUrl": "https://europe-west4-aiplatform.googleapis.com/" }, { "description": "Locational Endpoint", @@ -111,28 +111,28 @@ }, { "description": "Locational Endpoint", - "endpointUrl": "https://europe-west8-aiplatform.googleapis.com/", - "location": "europe-west8" + "location": "europe-west8", + "endpointUrl": "https://europe-west8-aiplatform.googleapis.com/" }, { - "description": "Locational Endpoint", "location": "europe-west9", + "description": "Locational Endpoint", "endpointUrl": "https://europe-west9-aiplatform.googleapis.com/" }, { + "endpointUrl": "https://me-west1-aiplatform.googleapis.com/", "location": "me-west1", - "description": "Locational Endpoint", - "endpointUrl": "https://me-west1-aiplatform.googleapis.com/" + "description": "Locational Endpoint" }, { - "endpointUrl": "https://northamerica-northeast1-aiplatform.googleapis.com/", + "location": "northamerica-northeast1", "description": "Locational Endpoint", - "location": "northamerica-northeast1" + "endpointUrl": "https://northamerica-northeast1-aiplatform.googleapis.com/" }, { - "description": "Locational Endpoint", + "endpointUrl": "https://northamerica-northeast2-aiplatform.googleapis.com/", "location": "northamerica-northeast2", - "endpointUrl": "https://northamerica-northeast2-aiplatform.googleapis.com/" + "description": "Locational Endpoint" }, { "endpointUrl": "https://southamerica-east1-aiplatform.googleapis.com/", @@ -140,53 +140,53 @@ "location": "southamerica-east1" }, { + "location": "southamerica-west1", "endpointUrl": "https://southamerica-west1-aiplatform.googleapis.com/", - "description": "Locational Endpoint", - "location": "southamerica-west1" + "description": "Locational Endpoint" }, { "location": "us-central1", - "endpointUrl": "https://us-central1-aiplatform.googleapis.com/", - "description": "Locational Endpoint" + "description": "Locational Endpoint", + "endpointUrl": "https://us-central1-aiplatform.googleapis.com/" }, { - "description": "Locational Endpoint", "location": "us-central2", - "endpointUrl": "https://us-central2-aiplatform.googleapis.com/" + "endpointUrl": "https://us-central2-aiplatform.googleapis.com/", + "description": "Locational Endpoint" }, { - "location": "us-east1", "description": "Locational Endpoint", + "location": "us-east1", "endpointUrl": "https://us-east1-aiplatform.googleapis.com/" }, { - "endpointUrl": "https://us-east4-aiplatform.googleapis.com/", "description": "Locational Endpoint", + "endpointUrl": "https://us-east4-aiplatform.googleapis.com/", "location": "us-east4" }, { + "endpointUrl": "https://us-south1-aiplatform.googleapis.com/", "location": "us-south1", - "description": "Locational Endpoint", - "endpointUrl": "https://us-south1-aiplatform.googleapis.com/" + "description": "Locational Endpoint" }, { - "location": "us-west1", "endpointUrl": "https://us-west1-aiplatform.googleapis.com/", + "location": "us-west1", "description": "Locational Endpoint" }, { - "endpointUrl": "https://us-west2-aiplatform.googleapis.com/", "location": "us-west2", + "endpointUrl": "https://us-west2-aiplatform.googleapis.com/", "description": "Locational Endpoint" }, { - "description": "Locational Endpoint", "endpointUrl": "https://us-west3-aiplatform.googleapis.com/", - "location": "us-west3" + "location": "us-west3", + "description": "Locational Endpoint" }, { - "endpointUrl": "https://us-west4-aiplatform.googleapis.com/", "description": "Locational Endpoint", + "endpointUrl": "https://us-west4-aiplatform.googleapis.com/", "location": "us-west4" } ], diff --git a/discovery/alloydb-v1.json b/discovery/alloydb-v1.json index 454a454429f..3afbd31254c 100644 --- a/discovery/alloydb-v1.json +++ b/discovery/alloydb-v1.json @@ -1489,7 +1489,7 @@ } } }, - "revision": "20231006", + "revision": "20231011", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AutomatedBackupPolicy": { @@ -3097,7 +3097,8 @@ }, "resourceId": { "$ref": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceId", - "description": "Required. Primary key associated with the Resource" + "deprecated": true, + "description": "Primary key associated with the Resource. resource_id is available in individual feed level as well." }, "resourceMetadata": { "$ref": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata" @@ -3164,7 +3165,7 @@ "type": "string" }, "resourceContainer": { - "description": "Closest parent container of this resource. In GCP, 'container' refers to a Cloud Resource Manager project. It must be resource name of a Cloud Resource Manager project with the format of \"provider//\", such as \"gcp/projects/123\".", + "description": "Closest parent container of this resource. In GCP, 'container' refers to a Cloud Resource Manager project. It must be resource name of a Cloud Resource Manager project with the format of \"provider//\", such as \"gcp/projects/123\". For GCP provided resources, number should be project number.", "type": "string" }, "resourceName": { @@ -3460,7 +3461,7 @@ "description": "The product this resource represents." }, "resourceContainer": { - "description": "Closest parent Cloud Resource Manager container of this resource. It must be resource name of a Cloud Resource Manager project with the format of \"provider//\", such as \"gcp/projects/123\".", + "description": "Closest parent Cloud Resource Manager container of this resource. It must be resource name of a Cloud Resource Manager project with the format of \"provider//\", such as \"gcp/projects/123\". For GCP provided resources, number should be project number.", "type": "string" }, "resourceName": { diff --git a/discovery/artifactregistry-v1.json b/discovery/artifactregistry-v1.json index b3209fdd49c..6be5451571b 100644 --- a/discovery/artifactregistry-v1.json +++ b/discovery/artifactregistry-v1.json @@ -1713,7 +1713,7 @@ } } }, - "revision": "20231006", + "revision": "20231018", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { @@ -3013,6 +3013,10 @@ "$ref": "PythonRepository", "description": "Specific settings for a Python remote repository." }, + "upstreamCredentials": { + "$ref": "UpstreamCredentials", + "description": "Optional. The credentials used to access the remote repository." + }, "yumRepository": { "$ref": "YumRepository", "description": "Specific settings for a Yum remote repository." @@ -3390,6 +3394,17 @@ }, "type": "object" }, + "UpstreamCredentials": { + "description": "The credentials to access the remote repository.", + "id": "UpstreamCredentials", + "properties": { + "usernamePasswordCredentials": { + "$ref": "UsernamePasswordCredentials", + "description": "Use username and password to access the remote repository." + } + }, + "type": "object" + }, "UpstreamPolicy": { "description": "Artifact policy configuration for the repository contents.", "id": "UpstreamPolicy", @@ -3410,6 +3425,21 @@ }, "type": "object" }, + "UsernamePasswordCredentials": { + "description": "Username and password credentials.", + "id": "UsernamePasswordCredentials", + "properties": { + "passwordSecretVersion": { + "description": "The Secret Manager key version that holds the password to access the remote repository. Must be in the format of `projects/{project}/secrets/{secret}/versions/{version}`.", + "type": "string" + }, + "username": { + "description": "The username to access the remote repository.", + "type": "string" + } + }, + "type": "object" + }, "VPCSCConfig": { "description": "The Artifact Registry VPC SC config that apply to a Project.", "id": "VPCSCConfig", diff --git a/discovery/baremetalsolution-v2.json b/discovery/baremetalsolution-v2.json index 906290609d7..edda7046fcb 100644 --- a/discovery/baremetalsolution-v2.json +++ b/discovery/baremetalsolution-v2.json @@ -1613,7 +1613,7 @@ } } }, - "revision": "20231009", + "revision": "20231018", "rootUrl": "https://baremetalsolution.googleapis.com/", "schemas": { "AllowedClient": { @@ -2563,7 +2563,11 @@ }, "vrf": { "$ref": "VRF", - "description": "The vrf for the Network." + "description": "The Vrf for the Network. Use this only if a new Vrf needs to be created." + }, + "vrfAttachment": { + "description": "Optional. The name of a pre-existing Vrf that the network should be attached to. Format is `vrfs/{vrf}`.", + "type": "string" } }, "type": "object" diff --git a/discovery/batch-v1.json b/discovery/batch-v1.json index 0f95fa26e45..0de4d032afb 100644 --- a/discovery/batch-v1.json +++ b/discovery/batch-v1.json @@ -561,7 +561,7 @@ } } }, - "revision": "20230929", + "revision": "20231009", "rootUrl": "https://batch.googleapis.com/", "schemas": { "Accelerator": { @@ -2033,7 +2033,7 @@ "type": "string" }, "parallelism": { - "description": "Max number of tasks that can run in parallel. Default to min(task_count, 1000). Field parallelism must be 1 if the scheduling_policy is IN_ORDER.", + "description": "Max number of tasks that can run in parallel. Default to min(task_count, parallel tasks per job limit). See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits). Field parallelism must be 1 if the scheduling_policy is IN_ORDER.", "format": "int64", "type": "string" }, diff --git a/discovery/bigtableadmin-v2.json b/discovery/bigtableadmin-v2.json index 8f947b7cd3f..1b7f9473130 100644 --- a/discovery/bigtableadmin-v2.json +++ b/discovery/bigtableadmin-v2.json @@ -1966,7 +1966,7 @@ } } }, - "revision": "20231013", + "revision": "20231005", "rootUrl": "https://bigtableadmin.googleapis.com/", "schemas": { "AppProfile": { @@ -1989,30 +1989,9 @@ "description": "The unique name of the app profile. Values are of the form `projects/{project}/instances/{instance}/appProfiles/_a-zA-Z0-9*`.", "type": "string" }, - "priority": { - "deprecated": true, - "description": "This field has been deprecated in favor of `standard_isolation.priority`. If you set this field, `standard_isolation.priority` will be set instead. The priority of requests sent using this app profile.", - "enum": [ - "PRIORITY_UNSPECIFIED", - "PRIORITY_LOW", - "PRIORITY_MEDIUM", - "PRIORITY_HIGH" - ], - "enumDescriptions": [ - "Default value. Mapped to PRIORITY_HIGH (the legacy behavior) on creation.", - "", - "", - "" - ], - "type": "string" - }, "singleClusterRouting": { "$ref": "SingleClusterRouting", "description": "Use a single-cluster routing policy." - }, - "standardIsolation": { - "$ref": "StandardIsolation", - "description": "The standard options used for isolating this app profile's traffic from other use cases." } }, "type": "object" @@ -3088,6 +3067,10 @@ "description": "Request message for google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", "id": "ModifyColumnFamiliesRequest", "properties": { + "ignoreWarnings": { + "description": "If true, ignore safety checks when modifying the column families.", + "type": "boolean" + }, "modifications": { "description": "Required. Modifications to be atomically applied to the specified table's families. Entries are applied in order, meaning that earlier modifications can be masked by later ones (in the case of repeated updates to the same family, for example).", "items": { @@ -3383,29 +3366,6 @@ }, "type": "object" }, - "StandardIsolation": { - "description": "Standard options for isolating this app profile's traffic from other use cases.", - "id": "StandardIsolation", - "properties": { - "priority": { - "description": "The priority of requests sent using this app profile.", - "enum": [ - "PRIORITY_UNSPECIFIED", - "PRIORITY_LOW", - "PRIORITY_MEDIUM", - "PRIORITY_HIGH" - ], - "enumDescriptions": [ - "Default value. Mapped to PRIORITY_HIGH (the legacy behavior) on creation.", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", diff --git a/discovery/compute-alpha.json b/discovery/compute-alpha.json index 86899f0cb1b..6d5c5eef106 100644 --- a/discovery/compute-alpha.json +++ b/discovery/compute-alpha.json @@ -15168,7 +15168,7 @@ ] }, "getDiagnostics": { - "description": "Returns the interconnectDiagnostics for the specified Interconnect.", + "description": "Returns the interconnectDiagnostics for the specified Interconnect. In the event of a global outage, do not use this API to make decisions about where to redirect your network traffic. Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global resource. A global outage can prevent this API from functioning properly.", "flatPath": "projects/{project}/global/interconnects/{interconnect}/getDiagnostics", "httpMethod": "GET", "id": "compute.interconnects.getDiagnostics", @@ -43489,7 +43489,7 @@ } } }, - "revision": "20231003", + "revision": "20231011", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { diff --git a/discovery/compute-v1.json b/discovery/compute-v1.json index f1600a3cf0f..cbe8d6dc5e8 100644 --- a/discovery/compute-v1.json +++ b/discovery/compute-v1.json @@ -1184,6 +1184,47 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. May be empty if no such policy or resource exists.", + "flatPath": "projects/{project}/global/backendBuckets/{resource}/getIamPolicy", + "httpMethod": "GET", + "id": "compute.backendBuckets.getIamPolicy", + "parameterOrder": [ + "project", + "resource" + ], + "parameters": { + "optionsRequestedPolicyVersion": { + "description": "Requested IAM Policy version.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "resource": { + "description": "Name or id of the resource for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/global/backendBuckets/{resource}/getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, "insert": { "description": "Creates a BackendBucket resource in the specified project using the data included in the request.", "flatPath": "projects/{project}/global/backendBuckets", @@ -1356,6 +1397,81 @@ "https://www.googleapis.com/auth/compute" ] }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy.", + "flatPath": "projects/{project}/global/backendBuckets/{resource}/setIamPolicy", + "httpMethod": "POST", + "id": "compute.backendBuckets.setIamPolicy", + "parameterOrder": [ + "project", + "resource" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "resource": { + "description": "Name or id of the resource for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/global/backendBuckets/{resource}/setIamPolicy", + "request": { + "$ref": "GlobalSetPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource.", + "flatPath": "projects/{project}/global/backendBuckets/{resource}/testIamPermissions", + "httpMethod": "POST", + "id": "compute.backendBuckets.testIamPermissions", + "parameterOrder": [ + "project", + "resource" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "resource": { + "description": "Name or id of the resource for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/global/backendBuckets/{resource}/testIamPermissions", + "request": { + "$ref": "TestPermissionsRequest" + }, + "response": { + "$ref": "TestPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, "update": { "description": "Updates the specified BackendBucket resource with the data included in the request.", "flatPath": "projects/{project}/global/backendBuckets/{backendBucket}", @@ -2010,6 +2126,44 @@ "https://www.googleapis.com/auth/compute" ] }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource.", + "flatPath": "projects/{project}/global/backendServices/{resource}/testIamPermissions", + "httpMethod": "POST", + "id": "compute.backendServices.testIamPermissions", + "parameterOrder": [ + "project", + "resource" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "resource": { + "description": "Name or id of the resource for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/global/backendServices/{resource}/testIamPermissions", + "request": { + "$ref": "TestPermissionsRequest" + }, + "response": { + "$ref": "TestPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, "update": { "description": "Updates the specified BackendService resource with the data included in the request. For more information, see Backend services overview.", "flatPath": "projects/{project}/global/backendServices/{backendService}", @@ -12292,7 +12446,7 @@ ] }, "getDiagnostics": { - "description": "Returns the interconnectDiagnostics for the specified Interconnect.", + "description": "Returns the interconnectDiagnostics for the specified Interconnect. In the event of a global outage, do not use this API to make decisions about where to redirect your network traffic. Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global resource. A global outage can prevent this API from functioning properly.", "flatPath": "projects/{project}/global/interconnects/{interconnect}/getDiagnostics", "httpMethod": "GET", "id": "compute.interconnects.getDiagnostics", @@ -19192,6 +19346,52 @@ "https://www.googleapis.com/auth/compute" ] }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource.", + "flatPath": "projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions", + "httpMethod": "POST", + "id": "compute.regionBackendServices.testIamPermissions", + "parameterOrder": [ + "project", + "region", + "resource" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "The name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "resource": { + "description": "Name or id of the resource for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions", + "request": { + "$ref": "TestPermissionsRequest" + }, + "response": { + "$ref": "TestPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, "update": { "description": "Updates the specified regional BackendService resource with the data included in the request. For more information, see Backend services overview .", "flatPath": "projects/{project}/regions/{region}/backendServices/{backendService}", @@ -34830,7 +35030,7 @@ } } }, - "revision": "20231003", + "revision": "20231011", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { diff --git a/discovery/content-v2.1.json b/discovery/content-v2.1.json index 95cbd0617cc..9db8ec1e0c3 100644 --- a/discovery/content-v2.1.json +++ b/discovery/content-v2.1.json @@ -6488,7 +6488,7 @@ } } }, - "revision": "20231017", + "revision": "20231011", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { @@ -6523,10 +6523,6 @@ }, "type": "array" }, - "businessIdentity": { - "$ref": "AccountBusinessIdentity", - "description": "The business identity attributes can be used to self-declare attributes that let customers know more about your business." - }, "businessInformation": { "$ref": "AccountBusinessInformation", "description": "The business information of the account." @@ -6650,37 +6646,6 @@ }, "type": "object" }, - "AccountBusinessIdentity": { - "description": "The [business identity attributes](https://support.google.com/merchants/answer/10342414) can be used to self-declare attributes that let customers know more about your business. NEXT ID: 7.", - "id": "AccountBusinessIdentity", - "properties": { - "blackOwned": { - "$ref": "AccountIdentityType", - "description": "Specifies whether the business identifies itself as being black-owned. This optional field is only available for merchants with a business country set to \"US\". This field is not allowed for marketplaces or marketplace sellers." - }, - "includeForPromotions": { - "description": "Required. By setting this field, your business may be included in promotions for all the selected attributes. If you clear this option, it won't affect your identification with any of the attributes. For this field to be set, the merchant must self identify with at least one of the `AccountIdentityType`. If none are included, the request will be considered invalid.", - "type": "boolean" - }, - "latinoOwned": { - "$ref": "AccountIdentityType", - "description": "Specifies whether the business identifies itself as being latino-owned. This optional field is only available for merchants with a business country set to \"US\". This field is not allowed for marketplaces or marketplace sellers." - }, - "smallBusiness": { - "$ref": "AccountIdentityType", - "description": "Specifies whether the business identifies itself as a small business. This optional field is only available for merchants with a business country set to \"US\". This field is not allowed for marketplaces or marketplace sellers." - }, - "veteranOwned": { - "$ref": "AccountIdentityType", - "description": "Specifies whether the business identifies itself as being veteran-owned. This optional field is only available for merchants with a business country set to \"US\". This field is not allowed for marketplaces or marketplace sellers." - }, - "womenOwned": { - "$ref": "AccountIdentityType", - "description": "Specifies whether the business identifies itself as being women-owned. This optional field is only available for merchants with a business country set to \"US\". This field is not allowed for marketplaces or marketplace sellers." - } - }, - "type": "object" - }, "AccountBusinessInformation": { "id": "AccountBusinessInformation", "properties": { @@ -6805,12 +6770,6 @@ }, "type": "object" }, - "AccountIdentityType": { - "description": "The account identity type used to specify attributes.", - "id": "AccountIdentityType", - "properties": {}, - "type": "object" - }, "AccountImageImprovements": { "description": "This improvement will attempt to automatically correct submitted images if they don't meet the [image requirements](https://support.google.com/merchants/answer/6324350), for example, removing overlays. If successful, the image will be replaced and approved. This improvement is only applied to images of disapproved offers. For more information see: [Automatic image improvements](https://support.google.com/merchants/answer/9242973)", "id": "AccountImageImprovements", @@ -10713,7 +10672,7 @@ "id": "LocalInventory", "properties": { "availability": { - "description": "The availability of the product. For accepted attribute values, see the local product inventory feed specification.", + "description": "Availability of the product. For accepted attribute values, see the local product inventory feed specification.", "type": "string" }, "customAttributes": { @@ -10724,7 +10683,7 @@ "type": "array" }, "instoreProductLocation": { - "description": "The in-store product location.", + "description": "In-store product location.", "type": "string" }, "kind": { @@ -10732,32 +10691,32 @@ "type": "string" }, "pickupMethod": { - "description": "The supported pickup method for this offer. Unless the value is \"not supported\", this field must be submitted together with `pickupSla`. For accepted attribute values, see the local product inventory feed specification.", + "description": "Supported pickup method for this offer. Unless the value is \"not supported\", this field must be submitted together with `pickupSla`. For accepted attribute values, see the local product inventory feed specification.", "type": "string" }, "pickupSla": { - "description": "The expected date that an order will be ready for pickup relative to the order date. Must be submitted together with `pickupMethod`. For accepted attribute values, see the local product inventory feed specification.", + "description": "Expected date that an order will be ready for pickup relative to the order date. Must be submitted together with `pickupMethod`. For accepted attribute values, see the local product inventory feed specification.", "type": "string" }, "price": { "$ref": "Price", - "description": "The price of the product." + "description": "Price of the product." }, "quantity": { - "description": "The quantity of the product. Must be nonnegative.", + "description": "Quantity of the product. Must be nonnegative.", "format": "uint32", "type": "integer" }, "salePrice": { "$ref": "Price", - "description": "The sale price of the product. Mandatory if `sale_price_effective_date` is defined." + "description": "Sale price of the product. Mandatory if `sale_price_effective_date` is defined." }, "salePriceEffectiveDate": { "description": "A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both dates may be specified as 'null' if undecided.", "type": "string" }, "storeCode": { - "description": "Required. The store code of this local inventory resource.", + "description": "Required. Store code of this local inventory resource.", "type": "string" } }, diff --git a/discovery/dlp-v2.json b/discovery/dlp-v2.json index 3257602d476..82c9d5c98d3 100644 --- a/discovery/dlp-v2.json +++ b/discovery/dlp-v2.json @@ -665,6 +665,157 @@ } } }, + "discoveryConfigs": { + "methods": { + "create": { + "description": "Creates a config for Discovery to scan and profile storage.", + "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/discoveryConfigs", + "httpMethod": "POST", + "id": "dlp.organizations.locations.discoveryConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Parent resource name. The format of this value is as follows: `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/discoveryConfigs", + "request": { + "$ref": "GooglePrivacyDlpV2CreateDiscoveryConfigRequest" + }, + "response": { + "$ref": "GooglePrivacyDlpV2DiscoveryConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a Discovery configuration.", + "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/discoveryConfigs/{discoveryConfigsId}", + "httpMethod": "DELETE", + "id": "dlp.organizations.locations.discoveryConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of the project and the config, for example `projects/dlp-test-project/discoveryConfigs/53234423`.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/discoveryConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a Discovery configuration.", + "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/discoveryConfigs/{discoveryConfigsId}", + "httpMethod": "GET", + "id": "dlp.organizations.locations.discoveryConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/discoveryConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GooglePrivacyDlpV2DiscoveryConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Discovery configurations.", + "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/discoveryConfigs", + "httpMethod": "GET", + "id": "dlp.organizations.locations.discoveryConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "orderBy": { + "description": "Comma separated list of config fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. - `name`: corresponds to the DiscoveryConfig's name. - `status`: corresponds to DiscoveryConfig's status.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Size of the page, can be limited by a server.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Page token to continue retrieval. Comes from previous call to ListDiscoveryConfigs. `order_by` field must not change for subsequent calls.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent resource name. The format of this value is as follows: `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/discoveryConfigs", + "response": { + "$ref": "GooglePrivacyDlpV2ListDiscoveryConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a Discovery configuration.", + "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/discoveryConfigs/{discoveryConfigsId}", + "httpMethod": "PATCH", + "id": "dlp.organizations.locations.discoveryConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/discoveryConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "request": { + "$ref": "GooglePrivacyDlpV2UpdateDiscoveryConfigRequest" + }, + "response": { + "$ref": "GooglePrivacyDlpV2DiscoveryConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "dlpJobs": { "methods": { "list": { @@ -2443,6 +2594,157 @@ } } }, + "discoveryConfigs": { + "methods": { + "create": { + "description": "Creates a config for Discovery to scan and profile storage.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/discoveryConfigs", + "httpMethod": "POST", + "id": "dlp.projects.locations.discoveryConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Parent resource name. The format of this value is as follows: `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/discoveryConfigs", + "request": { + "$ref": "GooglePrivacyDlpV2CreateDiscoveryConfigRequest" + }, + "response": { + "$ref": "GooglePrivacyDlpV2DiscoveryConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a Discovery configuration.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/discoveryConfigs/{discoveryConfigsId}", + "httpMethod": "DELETE", + "id": "dlp.projects.locations.discoveryConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of the project and the config, for example `projects/dlp-test-project/discoveryConfigs/53234423`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/discoveryConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a Discovery configuration.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/discoveryConfigs/{discoveryConfigsId}", + "httpMethod": "GET", + "id": "dlp.projects.locations.discoveryConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/discoveryConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GooglePrivacyDlpV2DiscoveryConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Discovery configurations.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/discoveryConfigs", + "httpMethod": "GET", + "id": "dlp.projects.locations.discoveryConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "orderBy": { + "description": "Comma separated list of config fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. - `name`: corresponds to the DiscoveryConfig's name. - `status`: corresponds to DiscoveryConfig's status.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Size of the page, can be limited by a server.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Page token to continue retrieval. Comes from previous call to ListDiscoveryConfigs. `order_by` field must not change for subsequent calls.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent resource name. The format of this value is as follows: `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/discoveryConfigs", + "response": { + "$ref": "GooglePrivacyDlpV2ListDiscoveryConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a Discovery configuration.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/discoveryConfigs/{discoveryConfigsId}", + "httpMethod": "PATCH", + "id": "dlp.projects.locations.discoveryConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/discoveryConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "request": { + "$ref": "GooglePrivacyDlpV2UpdateDiscoveryConfigRequest" + }, + "response": { + "$ref": "GooglePrivacyDlpV2DiscoveryConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "dlpJobs": { "methods": { "cancel": { @@ -3412,7 +3714,7 @@ } } }, - "revision": "20231008", + "revision": "20231015", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -3473,6 +3775,12 @@ "properties": {}, "type": "object" }, + "GooglePrivacyDlpV2AllOtherBigQueryTables": { + "description": "Catch-all for all other tables not specified by other filters. Should always be last, except for single-table configurations, which will only have a TableReference target.", + "id": "GooglePrivacyDlpV2AllOtherBigQueryTables", + "properties": {}, + "type": "object" + }, "GooglePrivacyDlpV2AllText": { "description": "Apply to all text.", "id": "GooglePrivacyDlpV2AllText", @@ -3544,6 +3852,29 @@ }, "type": "object" }, + "GooglePrivacyDlpV2BigQueryDiscoveryTarget": { + "description": "Target used to match against for Discovery with BigQuery tables", + "id": "GooglePrivacyDlpV2BigQueryDiscoveryTarget", + "properties": { + "cadence": { + "$ref": "GooglePrivacyDlpV2DiscoveryGenerationCadence", + "description": "How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity." + }, + "conditions": { + "$ref": "GooglePrivacyDlpV2DiscoveryBigQueryConditions", + "description": "In addition to matching the filter, these conditions must be true before a profile is generated." + }, + "disabled": { + "$ref": "GooglePrivacyDlpV2Disabled", + "description": "Tables that match this filter will not have profiles created." + }, + "filter": { + "$ref": "GooglePrivacyDlpV2DiscoveryBigQueryFilter", + "description": "Required. The tables the Discovery cadence applies to. The first target with a matching filter will be the one to apply to a table." + } + }, + "type": "object" + }, "GooglePrivacyDlpV2BigQueryField": { "description": "Message defining a field of a BigQuery table.", "id": "GooglePrivacyDlpV2BigQueryField", @@ -3630,6 +3961,39 @@ }, "type": "object" }, + "GooglePrivacyDlpV2BigQueryRegex": { + "description": "A pattern to match against one or more tables, datasets, or projects that contain BigQuery tables. At least one pattern must be specified. Regular expressions use RE2 [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found under the google/re2 repository on GitHub.", + "id": "GooglePrivacyDlpV2BigQueryRegex", + "properties": { + "datasetIdRegex": { + "description": "If unset, this property matches all datasets.", + "type": "string" + }, + "projectIdRegex": { + "description": "For organizations, if unset, will match all projects. Has no effect for data profile configurations created within a project.", + "type": "string" + }, + "tableIdRegex": { + "description": "If unset, this property matches all tables.", + "type": "string" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2BigQueryRegexes": { + "description": "A collection of regular expressions to determine what tables to match against.", + "id": "GooglePrivacyDlpV2BigQueryRegexes", + "properties": { + "patterns": { + "description": "A single BigQuery regular expression pattern to match against one or more tables, datasets, or projects that contain BigQuery tables.", + "items": { + "$ref": "GooglePrivacyDlpV2BigQueryRegex" + }, + "type": "array" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2BigQueryTable": { "description": "Message defining the location of a BigQuery table. A table is uniquely identified by its project_id, dataset_id, and table_name. Within a query a table is often referenced with a string in the format of: `:.` or `..`.", "id": "GooglePrivacyDlpV2BigQueryTable", @@ -3649,6 +4013,41 @@ }, "type": "object" }, + "GooglePrivacyDlpV2BigQueryTableCollection": { + "description": "Specifies a collection of BigQuery tables. Used for Discovery.", + "id": "GooglePrivacyDlpV2BigQueryTableCollection", + "properties": { + "includeRegexes": { + "$ref": "GooglePrivacyDlpV2BigQueryRegexes", + "description": "A collection of regular expressions to match a BigQuery table against." + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2BigQueryTableTypes": { + "description": "The types of bigquery tables supported by Cloud DLP.", + "id": "GooglePrivacyDlpV2BigQueryTableTypes", + "properties": { + "types": { + "description": "A set of bigquery table types.", + "items": { + "enum": [ + "BIG_QUERY_TABLE_TYPE_UNSPECIFIED", + "BIG_QUERY_TABLE_TYPE_TABLE", + "BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE" + ], + "enumDescriptions": [ + "Unused.", + "A normal BigQuery table.", + "A table that references data stored in Cloud Storage." + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2BoundingBox": { "description": "Bounding box encompassing detected text within an image.", "id": "GooglePrivacyDlpV2BoundingBox", @@ -4353,6 +4752,21 @@ }, "type": "object" }, + "GooglePrivacyDlpV2CreateDiscoveryConfigRequest": { + "description": "Request message for CreateDiscoveryConfig.", + "id": "GooglePrivacyDlpV2CreateDiscoveryConfigRequest", + "properties": { + "configId": { + "description": "The config id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-_]+`. The maximum length is 100 characters. Can be empty to allow the system to generate one.", + "type": "string" + }, + "discoveryConfig": { + "$ref": "GooglePrivacyDlpV2DiscoveryConfig", + "description": "Required. The DiscoveryConfig to create." + } + }, + "type": "object" + }, "GooglePrivacyDlpV2CreateDlpJobRequest": { "description": "Request message for CreateDlpJobRequest. Used to initiate long running jobs such as calculating risk metrics or inspecting Google Cloud Storage.", "id": "GooglePrivacyDlpV2CreateDlpJobRequest", @@ -5158,6 +5572,262 @@ }, "type": "object" }, + "GooglePrivacyDlpV2Disabled": { + "description": "Do nothing.", + "id": "GooglePrivacyDlpV2Disabled", + "properties": {}, + "type": "object" + }, + "GooglePrivacyDlpV2DiscoveryBigQueryConditions": { + "description": "Requirements that must be true before a table is scanned in Discovery for the first time. There is an AND relationship between the top-level attributes.", + "id": "GooglePrivacyDlpV2DiscoveryBigQueryConditions", + "properties": { + "createdAfter": { + "description": "BigQuery table must have been created after this date. Used to avoid backfilling.", + "format": "google-datetime", + "type": "string" + }, + "orConditions": { + "$ref": "GooglePrivacyDlpV2OrConditions", + "description": "At least one of the conditions must be true for a table to be scanned." + }, + "typeCollection": { + "description": "Restrict Discovery to categories of table types.", + "enum": [ + "BIG_QUERY_COLLECTION_UNSPECIFIED", + "BIG_QUERY_COLLECTION_ALL_TYPES", + "BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES" + ], + "enumDescriptions": [ + "Unused.", + "Automatically generate profiles for all tables, even if the table type is not yet fully supported for analysis. These unsupported profiles will be generated with errors to indicate their partial support. When support is added, they will automatically be profiled during the next scheduled run.", + "Only those types fully supported will be profiled. Will expand automatically as new support is added. Unsupported table types will not have a profile generated." + ], + "type": "string" + }, + "types": { + "$ref": "GooglePrivacyDlpV2BigQueryTableTypes", + "description": "Restrict Discovery to specific table types." + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2DiscoveryBigQueryFilter": { + "description": "Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, dataset ID, and table ID. Also lets you set minimum conditions that must be met before Cloud DLP scans a table (like a minimum row count or a minimum table age).", + "id": "GooglePrivacyDlpV2DiscoveryBigQueryFilter", + "properties": { + "otherTables": { + "$ref": "GooglePrivacyDlpV2AllOtherBigQueryTables", + "description": "Catch-all. This should always be the last filter in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically." + }, + "tables": { + "$ref": "GooglePrivacyDlpV2BigQueryTableCollection", + "description": "A specific set of tables for this filter to apply to. A table collection must be specified in only one filter per config. If a table id or dataset is empty, Cloud DLP assumes all tables in that collection must be profiled. Must specify a project ID." + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2DiscoveryConfig": { + "description": "Configuration for Discovery to scan resources for profile generation. Only one Discovery configuration may exist per organization, folder, or project. The generated data profiles are retained according to the [data retention policy] (https://cloud.google.com/dlp/docs/data-profiles#retention).", + "id": "GooglePrivacyDlpV2DiscoveryConfig", + "properties": { + "actions": { + "description": "Actions to execute at the completion of scanning.", + "items": { + "$ref": "GooglePrivacyDlpV2DataProfileAction" + }, + "type": "array" + }, + "createTime": { + "description": "Output only. The creation timestamp of a DiscoveryConfig.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Display name (max 100 chars)", + "type": "string" + }, + "errors": { + "description": "Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.", + "items": { + "$ref": "GooglePrivacyDlpV2Error" + }, + "readOnly": true, + "type": "array" + }, + "inspectTemplates": { + "description": "Detection logic for profile generation. Not all template features are used by Discovery. FindingLimits, include_quote and exclude_info_types have no impact on Discovery. Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including \"global\"). Each region is scanned using the applicable template. If no region-specific template is specified, but a \"global\" template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region's data will not be scanned. For more information, see https://cloud.google.com/dlp/docs/data-profiles#data_residency.", + "items": { + "type": "string" + }, + "type": "array" + }, + "lastRunTime": { + "description": "Output only. The timestamp of the last time this config was executed.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Unique resource name for the DiscoveryConfig, assigned by the service when the DiscoveryConfig is created, for example `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`.", + "type": "string" + }, + "orgConfig": { + "$ref": "GooglePrivacyDlpV2OrgConfig", + "description": "Only set when the parent is an org." + }, + "status": { + "description": "Required. A status for this configuration.", + "enum": [ + "STATUS_UNSPECIFIED", + "RUNNING", + "PAUSED" + ], + "enumDescriptions": [ + "Unused", + "The Discovery config is currently active.", + "The Discovery config is paused temporarily." + ], + "type": "string" + }, + "targets": { + "description": "Target to match against for determining what to scan and how frequently.", + "items": { + "$ref": "GooglePrivacyDlpV2DiscoveryTarget" + }, + "type": "array" + }, + "updateTime": { + "description": "Output only. The last update timestamp of a DiscoveryConfig.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2DiscoveryGenerationCadence": { + "description": "What must take place for a profile to be updated and how frequently it should occur. New tables are scanned as quickly as possible depending on system capacity.", + "id": "GooglePrivacyDlpV2DiscoveryGenerationCadence", + "properties": { + "schemaModifiedCadence": { + "$ref": "GooglePrivacyDlpV2DiscoverySchemaModifiedCadence", + "description": "Governs when to update data profiles when a schema is modified." + }, + "tableModifiedCadence": { + "$ref": "GooglePrivacyDlpV2DiscoveryTableModifiedCadence", + "description": "Governs when to update data profiles when a table is modified." + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2DiscoverySchemaModifiedCadence": { + "description": "The cadence at which to update data profiles when a schema is modified.", + "id": "GooglePrivacyDlpV2DiscoverySchemaModifiedCadence", + "properties": { + "frequency": { + "description": "How frequently profiles may be updated when schemas are modified. Defaults to monthly.", + "enum": [ + "UPDATE_FREQUENCY_UNSPECIFIED", + "UPDATE_FREQUENCY_NEVER", + "UPDATE_FREQUENCY_DAILY", + "UPDATE_FREQUENCY_MONTHLY" + ], + "enumDescriptions": [ + "Unspecified.", + "After the data profile is created, it will never be updated.", + "The data profile can be updated up to once every 24 hours.", + "The data profile can be updated up to once every 30 days. Default." + ], + "type": "string" + }, + "types": { + "description": "The type of events to consider when deciding if the table's schema has been modified and should have the profile updated. Defaults to NEW_COLUMNS.", + "items": { + "enum": [ + "SCHEMA_MODIFICATION_UNSPECIFIED", + "SCHEMA_NEW_COLUMNS", + "SCHEMA_REMOVED_COLUMNS" + ], + "enumDescriptions": [ + "Unused", + "Profiles should be regenerated when new columns are added to the table. Default.", + "Profiles should be regenerated when columns are removed from the table." + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2DiscoveryStartingLocation": { + "description": "The location to begin a Discovery scan. Denotes an organization ID or folder ID within an organization.", + "id": "GooglePrivacyDlpV2DiscoveryStartingLocation", + "properties": { + "folderId": { + "description": "The ID of the Folder within an organization to scan.", + "format": "int64", + "type": "string" + }, + "organizationId": { + "description": "The ID of an organization to scan.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2DiscoveryTableModifiedCadence": { + "description": "The cadence at which to update data profiles when a table is modified.", + "id": "GooglePrivacyDlpV2DiscoveryTableModifiedCadence", + "properties": { + "frequency": { + "description": "How frequently data profiles can be updated when tables are modified. Defaults to never.", + "enum": [ + "UPDATE_FREQUENCY_UNSPECIFIED", + "UPDATE_FREQUENCY_NEVER", + "UPDATE_FREQUENCY_DAILY", + "UPDATE_FREQUENCY_MONTHLY" + ], + "enumDescriptions": [ + "Unspecified.", + "After the data profile is created, it will never be updated.", + "The data profile can be updated up to once every 24 hours.", + "The data profile can be updated up to once every 30 days. Default." + ], + "type": "string" + }, + "types": { + "description": "The type of events to consider when deciding if the table has been modified and should have the profile updated. Defaults to MODIFIED_TIMESTAMP.", + "items": { + "enum": [ + "TABLE_MODIFICATION_UNSPECIFIED", + "TABLE_MODIFIED_TIMESTAMP" + ], + "enumDescriptions": [ + "Unused.", + "A table will be considered modified when the last_modified_time from BigQuery has been updated." + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2DiscoveryTarget": { + "description": "Target used to match against for Discovery.", + "id": "GooglePrivacyDlpV2DiscoveryTarget", + "properties": { + "bigQueryTarget": { + "$ref": "GooglePrivacyDlpV2BigQueryDiscoveryTarget", + "description": "BigQuery target for Discovery. The first target to match a table will be the one applied." + } + }, + "type": "object" + }, "GooglePrivacyDlpV2DlpJob": { "description": "Combines all of the information about a DLP job.", "id": "GooglePrivacyDlpV2DlpJob", @@ -6852,6 +7522,24 @@ }, "type": "object" }, + "GooglePrivacyDlpV2ListDiscoveryConfigsResponse": { + "description": "Response message for ListDiscoveryConfigs.", + "id": "GooglePrivacyDlpV2ListDiscoveryConfigsResponse", + "properties": { + "discoveryConfigs": { + "description": "List of configs, up to page_size in ListDiscoveryConfigsRequest.", + "items": { + "$ref": "GooglePrivacyDlpV2DiscoveryConfig" + }, + "type": "array" + }, + "nextPageToken": { + "description": "If the next page is available then the next page token to be used in following ListDiscoveryConfigs request.", + "type": "string" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2ListDlpJobsResponse": { "description": "The response message for listing DLP jobs.", "id": "GooglePrivacyDlpV2ListDlpJobsResponse", @@ -7026,6 +7714,38 @@ }, "type": "object" }, + "GooglePrivacyDlpV2OrConditions": { + "description": "There is an OR relationship between these attributes. They are used to determine if a table should be scanned or not in Discovery.", + "id": "GooglePrivacyDlpV2OrConditions", + "properties": { + "minAge": { + "description": "Minimum age a table must have before Cloud DLP can profile it. Value must be 1 hour or greater.", + "format": "google-duration", + "type": "string" + }, + "minRowCount": { + "description": "Minimum number of rows that should be present before Cloud DLP profiles a table", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2OrgConfig": { + "description": "Project and scan location information. Only set when the parent is an org.", + "id": "GooglePrivacyDlpV2OrgConfig", + "properties": { + "location": { + "$ref": "GooglePrivacyDlpV2DiscoveryStartingLocation", + "description": "The data to scan: folder, org, or project" + }, + "projectId": { + "description": "The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the Cloud DLP API must be enabled.", + "type": "string" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2OtherInfoTypeSummary": { "description": "Infotype details for other infoTypes found within a column.", "id": "GooglePrivacyDlpV2OtherInfoTypeSummary", @@ -8691,6 +9411,22 @@ }, "type": "object" }, + "GooglePrivacyDlpV2UpdateDiscoveryConfigRequest": { + "description": "Request message for UpdateDiscoveryConfig.", + "id": "GooglePrivacyDlpV2UpdateDiscoveryConfigRequest", + "properties": { + "discoveryConfig": { + "$ref": "GooglePrivacyDlpV2DiscoveryConfig", + "description": "New DiscoveryConfig value." + }, + "updateMask": { + "description": "Mask to control which fields get updated.", + "format": "google-fieldmask", + "type": "string" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2UpdateInspectTemplateRequest": { "description": "Request message for UpdateInspectTemplate.", "id": "GooglePrivacyDlpV2UpdateInspectTemplateRequest", diff --git a/discovery/doubleclicksearch-v2.json b/discovery/doubleclicksearch-v2.json index fd999b512c6..dcb34740bf6 100644 --- a/discovery/doubleclicksearch-v2.json +++ b/discovery/doubleclicksearch-v2.json @@ -543,7 +543,7 @@ } } }, - "revision": "20231017", + "revision": "20231010", "rootUrl": "https://doubleclicksearch.googleapis.com/", "schemas": { "Availability": { @@ -619,20 +619,6 @@ "format": "int64", "type": "string" }, - "adUserDataConsent": { - "description": "Ad user data consent for this conversion.", - "enum": [ - "UNKNOWN", - "GRANTED", - "DENIED" - ], - "enumDescriptions": [ - "Not specified.", - "Granted.", - "Denied." - ], - "type": "string" - }, "advertiserId": { "description": "DS advertiser ID.", "format": "int64", diff --git a/discovery/gkeonprem-v1.json b/discovery/gkeonprem-v1.json index f603f585076..f6d4f9af9b6 100644 --- a/discovery/gkeonprem-v1.json +++ b/discovery/gkeonprem-v1.json @@ -2996,7 +2996,7 @@ } } }, - "revision": "20231004", + "revision": "20231011", "rootUrl": "https://gkeonprem.googleapis.com/", "schemas": { "Authorization": { @@ -5505,7 +5505,8 @@ }, "preparedSecrets": { "$ref": "VmwareAdminPreparedSecretsConfig", - "description": "The VMware admin cluster prepared secrets configuration." + "description": "Output only. The VMware admin cluster prepared secrets configuration. It should always be enabled by the Central API, instead of letting users set it.", + "readOnly": true }, "reconciling": { "description": "Output only. If set, there are currently changes in flight to the VMware admin cluster.", diff --git a/discovery/integrations-v1alpha.json b/discovery/integrations-v1alpha.json index bdb5f3d2cf6..0bc293b17e6 100644 --- a/discovery/integrations-v1alpha.json +++ b/discovery/integrations-v1alpha.json @@ -3524,7 +3524,7 @@ } } }, - "revision": "20231006", + "revision": "20231017", "rootUrl": "https://integrations.googleapis.com/", "schemas": { "CrmlogErrorCode": { @@ -9007,12 +9007,12 @@ "id": "GoogleCloudIntegrationsV1alphaAttemptStats", "properties": { "endTime": { - "description": "The end time of the event execution for current attempt.", + "description": "The end time of the integration execution for current attempt.", "format": "google-datetime", "type": "string" }, "startTime": { - "description": "The start time of the event execution for current attempt. This could be in the future if it's been scheduled.", + "description": "The start time of the integration execution for current attempt. This could be in the future if it's been scheduled.", "format": "google-datetime", "type": "string" } @@ -11676,10 +11676,10 @@ "Task is under processing.", "Task execution successfully finished. There's no more change after this state.", "Task execution failed. There's no more change after this state.", - "Task execution failed and cause the whole event execution to fail immediately. There's no more change after this state.", + "Task execution failed and cause the whole integration execution to fail immediately. There's no more change after this state.", "Task execution failed and waiting for retry.", - "Task execution skipped. This happens when its precondition wasn't met, or the event execution been canceled before reach to the task. There's no more changes after this state.", - "Task execution canceled when in progress. This happens when event execution been canceled or any other task fall in fatal state.", + "Task execution skipped. This happens when its precondition wasn't met, or the integration execution been canceled before reach to the task. There's no more changes after this state.", + "Task execution canceled when in progress. This happens when integration execution been canceled or any other task fall in fatal state.", "Task is waiting for its dependency tasks' rollback to finish to start its rollback.", "Task is rolling back.", "Task is rolled back. This is the state we will set regardless of rollback succeeding or failing.", diff --git a/discovery/managedidentities-v1.json b/discovery/managedidentities-v1.json index d59f0c41dab..1451be0bed6 100644 --- a/discovery/managedidentities-v1.json +++ b/discovery/managedidentities-v1.json @@ -1515,7 +1515,7 @@ } } }, - "revision": "20230712", + "revision": "20231010", "rootUrl": "https://managedidentities.googleapis.com/", "schemas": { "AttachTrustRequest": { @@ -2704,7 +2704,7 @@ "description": "Properties of the object. Contains field @type with type URL.", "type": "any" }, - "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", "type": "object" } }, @@ -2818,7 +2818,7 @@ "type": "object" }, "Policy": { - "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time < timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time < timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", "id": "Policy", "properties": { "bindings": { @@ -3189,7 +3189,7 @@ "type": "string" }, "denyMaintenancePeriods": { - "description": "Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. User can specify zero or more non-overlapping deny periods. Maximum number of deny_maintenance_periods expected is one.", + "description": "Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. The protocol supports zero-to-many such periods, but the current SLM Rollout implementation only supports zero-to-one.", "items": { "$ref": "DenyMaintenancePeriod" }, diff --git a/discovery/managedidentities-v1alpha1.json b/discovery/managedidentities-v1alpha1.json index 85711a08151..9f6d8e85fd5 100644 --- a/discovery/managedidentities-v1alpha1.json +++ b/discovery/managedidentities-v1alpha1.json @@ -1515,7 +1515,7 @@ } } }, - "revision": "20230705", + "revision": "20231010", "rootUrl": "https://managedidentities.googleapis.com/", "schemas": { "AttachTrustRequest": { @@ -2706,7 +2706,7 @@ "description": "Properties of the object. Contains field @type with type URL.", "type": "any" }, - "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", "type": "object" } }, @@ -2820,7 +2820,7 @@ "type": "object" }, "Policy": { - "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time < timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time < timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", "id": "Policy", "properties": { "bindings": { @@ -3176,7 +3176,7 @@ "type": "string" }, "denyMaintenancePeriods": { - "description": "Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. User can specify zero or more non-overlapping deny periods. Maximum number of deny_maintenance_periods expected is one.", + "description": "Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. The protocol supports zero-to-many such periods, but the current SLM Rollout implementation only supports zero-to-one.", "items": { "$ref": "DenyMaintenancePeriod" }, diff --git a/discovery/managedidentities-v1beta1.json b/discovery/managedidentities-v1beta1.json index 9412de0a26d..2d3336989c1 100644 --- a/discovery/managedidentities-v1beta1.json +++ b/discovery/managedidentities-v1beta1.json @@ -1515,7 +1515,7 @@ } } }, - "revision": "20230705", + "revision": "20231010", "rootUrl": "https://managedidentities.googleapis.com/", "schemas": { "AttachTrustRequest": { @@ -2716,7 +2716,7 @@ "description": "Properties of the object. Contains field @type with type URL.", "type": "any" }, - "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", "type": "object" } }, @@ -2830,7 +2830,7 @@ "type": "object" }, "Policy": { - "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time < timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time < timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", "id": "Policy", "properties": { "bindings": { @@ -3201,7 +3201,7 @@ "type": "string" }, "denyMaintenancePeriods": { - "description": "Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. User can specify zero or more non-overlapping deny periods. Maximum number of deny_maintenance_periods expected is one.", + "description": "Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. The protocol supports zero-to-many such periods, but the current SLM Rollout implementation only supports zero-to-one.", "items": { "$ref": "DenyMaintenancePeriod" }, diff --git a/discovery/redis-v1.json b/discovery/redis-v1.json index 210cd0b30a8..ac8259785b3 100644 --- a/discovery/redis-v1.json +++ b/discovery/redis-v1.json @@ -821,7 +821,7 @@ } } }, - "revision": "20231002", + "revision": "20231017", "rootUrl": "https://redis.googleapis.com/", "schemas": { "CertChain": { @@ -843,6 +843,10 @@ "properties": { "managedServerCa": { "$ref": "ManagedCertificateAuthority" + }, + "name": { + "description": "Identifier. Unique name of the resource in this scope including project, location and cluster using the form: `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`", + "type": "string" } }, "type": "object" diff --git a/discovery/redis-v1beta1.json b/discovery/redis-v1beta1.json index 5315c3fdcee..2248316af95 100644 --- a/discovery/redis-v1beta1.json +++ b/discovery/redis-v1beta1.json @@ -821,7 +821,7 @@ } } }, - "revision": "20230912", + "revision": "20231017", "rootUrl": "https://redis.googleapis.com/", "schemas": { "CertChain": { @@ -843,6 +843,10 @@ "properties": { "managedServerCa": { "$ref": "ManagedCertificateAuthority" + }, + "name": { + "description": "Identifier. Unique name of the resource in this scope including project, location and cluster using the form: `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`", + "type": "string" } }, "type": "object" diff --git a/discovery/spanner-v1.json b/discovery/spanner-v1.json index e8f5f96b23f..9878663dd74 100644 --- a/discovery/spanner-v1.json +++ b/discovery/spanner-v1.json @@ -21,6 +21,13 @@ "description": "Cloud Spanner is a managed, mission-critical, globally consistent and scalable relational database service.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/spanner/", + "endpoints": [ + { + "endpointUrl": "https://spanner.me-central2.rep.googleapis.com/", + "location": "me-central2", + "description": "Regional Endpoint" + } + ], "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -2594,7 +2601,7 @@ } } }, - "revision": "20231005", + "revision": "20231017", "rootUrl": "https://spanner.googleapis.com/", "schemas": { "Backup": { @@ -3658,6 +3665,25 @@ }, "type": "object" }, + "IndexAdvice": { + "description": "Recommendation to add new indexes to run queries more efficiently.", + "id": "IndexAdvice", + "properties": { + "ddl": { + "description": "Optional. DDL statements to add new indexes that will improve the query.", + "items": { + "type": "string" + }, + "type": "array" + }, + "improvementFactor": { + "description": "Optional. Estimated latency improvement factor. For example if the query currently takes 500 ms to run and the estimated latency with new indexes is 100 ms this field will be 5.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, "IndexedHotKey": { "description": "A message representing a (sparse) collection of hot keys for specific key buckets.", "id": "IndexedHotKey", @@ -4740,6 +4766,20 @@ }, "type": "object" }, + "QueryAdvisorResult": { + "description": "Output of query advisor analysis.", + "id": "QueryAdvisorResult", + "properties": { + "indexAdvice": { + "description": "Optional. Index Recommendation for a query. This is an optional field and the recommendation will only be available when the recommendation guarantees significant improvement in query performance.", + "items": { + "$ref": "IndexAdvice" + }, + "type": "array" + } + }, + "type": "object" + }, "QueryOptions": { "description": "Query optimizer configuration.", "id": "QueryOptions", @@ -4765,6 +4805,10 @@ "$ref": "PlanNode" }, "type": "array" + }, + "queryAdvice": { + "$ref": "QueryAdvisorResult", + "description": "Optional. The advices/recommendations for a query. Currently this field will be serving index recommendations for a query." } }, "type": "object" diff --git a/discovery/sqladmin-v1.json b/discovery/sqladmin-v1.json index d4b4f83dad9..f88b2c61c23 100644 --- a/discovery/sqladmin-v1.json +++ b/discovery/sqladmin-v1.json @@ -2165,7 +2165,7 @@ } } }, - "revision": "20231017", + "revision": "20231011", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -3789,12 +3789,12 @@ "type": "boolean" }, "stopAt": { - "description": "Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.", + "description": "Optional. StopAt keyword for transaction log import, Applies to Cloud SQL for SQL Server only", "format": "google-datetime", "type": "string" }, "stopAtMark": { - "description": "Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.", + "description": "Optional. StopAtMark keyword for transaction log import, Applies to Cloud SQL for SQL Server only", "type": "string" }, "striped": { @@ -4101,11 +4101,11 @@ "description": "PSC settings for this instance." }, "requireSsl": { - "description": "Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the legacy `require_ssl` flag.", + "description": "LINT.IfChange(require_ssl_deprecate) Whether SSL/TLS connections over IP are enforced or not. If set to false, allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate will not be verified. If set to true, only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, use the `ssl_mode` flag instead of the legacy `require_ssl` flag. LINT.ThenChange(//depot/google3/java/com/google/storage/speckle/boss/admin/actions/InstanceUpdateAction.java:update_api_temp_fix)", "type": "boolean" }, "sslMode": { - "description": "Specify how SSL/TLS is enforced in database connections. This flag is supported only for PostgreSQL. Use the legacy `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL Server. But, for PostgreSQL, use the `ssl_mode` flag instead of the legacy `require_ssl` flag. To avoid the conflict between those flags in PostgreSQL, only the following value pairs are valid: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` Note that the value of `ssl_mode` gets priority over the value of the legacy `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means \"only accepts SSL connection\", while the `require_ssl=false` means \"both non-SSL and SSL connections are allowed\". The database respects `ssl_mode` in this case and only accepts SSL connections.", + "description": "Specify how SSL/TLS will be enforced in database connections. This flag is only supported for PostgreSQL. Use the legacy `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL Server. But, for PostgreSQL, it is recommended to use the `ssl_mode` flag instead of the legacy `require_ssl` flag. To avoid the conflict between those flags in PostgreSQL, only the following value pairs are valid: ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED, require_ssl=false; ssl_mode=ENCRYPTED_ONLY, require_ssl=false; ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED, require_ssl=true; Note that the value of `ssl_mode` gets priority over the value of the legacy `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means \"only accepts SSL connection\", while the `require_ssl=false` means \"both non-SSL and SSL connections are allowed\". The database will respect `ssl_mode` in this case and only accept SSL connections.", "enum": [ "SSL_MODE_UNSPECIFIED", "ALLOW_UNENCRYPTED_AND_ENCRYPTED", @@ -4113,10 +4113,10 @@ "TRUSTED_CLIENT_CERTIFICATE_REQUIRED" ], "enumDescriptions": [ - "The SSL mode is unknown.", - "Allow non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. When this value is used, the legacy `require_ssl` flag must be false or cleared to avoid the conflict between values of two flags.", - "Only allow connections encrypted with SSL/TLS. When this value is used, the legacy `require_ssl` flag must be false or cleared to avoid the conflict between values of two flags.", - "Only allow connections encrypted with SSL/TLS and with valid client certificates. When this value is used, the legacy `require_ssl` flag must be true or cleared to avoid the conflict between values of two flags." + "SSL mode is unknown.", + "Allow non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate will not be verified. When this value is used, legacy `require_ssl` flag must be false or unset to avoid the conflict between values of two flags.", + "Only allow connections encrypted with SSL/TLS. When this value is used, legacy `require_ssl` flag must be false or unset to avoid the conflict between values of two flags.", + "Only allow connections encrypted with SSL/TLS and with valid client certificates. When this value is used, legacy `require_ssl` flag must be true or unset to avoid the conflict between values of two flags." ], "type": "string" } @@ -4669,6 +4669,10 @@ ], "type": "string" }, + "disallowCompromisedCredentials": { + "description": "Disallow credentials that have been previously compromised by a public data breach.", + "type": "boolean" + }, "disallowUsernameSubstring": { "description": "Disallow username as a part of the password.", "type": "boolean" @@ -5694,18 +5698,12 @@ "enum": [ "BUILT_IN", "CLOUD_IAM_USER", - "CLOUD_IAM_SERVICE_ACCOUNT", - "CLOUD_IAM_GROUP", - "CLOUD_IAM_GROUP_USER", - "CLOUD_IAM_GROUP_SERVICE_ACCOUNT" + "CLOUD_IAM_SERVICE_ACCOUNT" ], "enumDescriptions": [ "The database's built-in user type.", "Cloud IAM user.", - "Cloud IAM service account.", - "Cloud IAM Group non-login user.", - "Cloud IAM Group login user.", - "Cloud IAM Group login service account." + "Cloud IAM service account." ], "type": "string" } diff --git a/discovery/sqladmin-v1beta4.json b/discovery/sqladmin-v1beta4.json index 665d895c06f..bc860b41d29 100644 --- a/discovery/sqladmin-v1beta4.json +++ b/discovery/sqladmin-v1beta4.json @@ -2165,7 +2165,7 @@ } } }, - "revision": "20231017", + "revision": "20231011", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -3789,12 +3789,12 @@ "type": "boolean" }, "stopAt": { - "description": "Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.", + "description": "Optional. StopAt keyword for transaction log import, Applies to Cloud SQL for SQL Server only", "format": "google-datetime", "type": "string" }, "stopAtMark": { - "description": "Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.", + "description": "Optional. StopAtMark keyword for transaction log import, Applies to Cloud SQL for SQL Server only", "type": "string" }, "striped": { @@ -4101,11 +4101,11 @@ "description": "PSC settings for this instance." }, "requireSsl": { - "description": "Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the legacy `require_ssl` flag.", + "description": "LINT.IfChange(require_ssl_deprecate) Whether SSL/TLS connections over IP are enforced or not. If set to false, allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate will not be verified. If set to true, only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, use the `ssl_mode` flag instead of the legacy `require_ssl` flag. LINT.ThenChange(//depot/google3/java/com/google/storage/speckle/boss/admin/actions/InstanceUpdateAction.java:update_api_temp_fix)", "type": "boolean" }, "sslMode": { - "description": "Specify how SSL/TLS is enforced in database connections. This flag is supported only for PostgreSQL. Use the legacy `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL Server. But, for PostgreSQL, use the `ssl_mode` flag instead of the legacy `require_ssl` flag. To avoid the conflict between those flags in PostgreSQL, only the following value pairs are valid: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` Note that the value of `ssl_mode` gets priority over the value of the legacy `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means \"only accepts SSL connection\", while the `require_ssl=false` means \"both non-SSL and SSL connections are allowed\". The database respects `ssl_mode` in this case and only accepts SSL connections.", + "description": "Specify how SSL/TLS will be enforced in database connections. This flag is only supported for PostgreSQL. Use the legacy `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL Server. But, for PostgreSQL, it is recommended to use the `ssl_mode` flag instead of the legacy `require_ssl` flag. To avoid the conflict between those flags in PostgreSQL, only the following value pairs are valid: ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED, require_ssl=false; ssl_mode=ENCRYPTED_ONLY, require_ssl=false; ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED, require_ssl=true; Note that the value of `ssl_mode` gets priority over the value of the legacy `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means \"only accepts SSL connection\", while the `require_ssl=false` means \"both non-SSL and SSL connections are allowed\". The database will respect `ssl_mode` in this case and only accept SSL connections.", "enum": [ "SSL_MODE_UNSPECIFIED", "ALLOW_UNENCRYPTED_AND_ENCRYPTED", @@ -4113,10 +4113,10 @@ "TRUSTED_CLIENT_CERTIFICATE_REQUIRED" ], "enumDescriptions": [ - "The SSL mode is unknown.", - "Allow non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. When this value is used, the legacy `require_ssl` flag must be false or cleared to avoid the conflict between values of two flags.", - "Only allow connections encrypted with SSL/TLS. When this value is used, the legacy `require_ssl` flag must be false or cleared to avoid the conflict between values of two flags.", - "Only allow connections encrypted with SSL/TLS and with valid client certificates. When this value is used, the legacy `require_ssl` flag must be true or cleared to avoid the conflict between values of two flags." + "SSL mode is unknown.", + "Allow non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate will not be verified. When this value is used, legacy `require_ssl` flag must be false or unset to avoid the conflict between values of two flags.", + "Only allow connections encrypted with SSL/TLS. When this value is used, legacy `require_ssl` flag must be false or unset to avoid the conflict between values of two flags.", + "Only allow connections encrypted with SSL/TLS and with valid client certificates. When this value is used, legacy `require_ssl` flag must be true or unset to avoid the conflict between values of two flags." ], "type": "string" } @@ -4669,6 +4669,10 @@ ], "type": "string" }, + "disallowCompromisedCredentials": { + "description": "Disallow credentials that have been previously compromised by a public data breach.", + "type": "boolean" + }, "disallowUsernameSubstring": { "description": "Disallow username as a part of the password.", "type": "boolean" @@ -5692,18 +5696,12 @@ "enum": [ "BUILT_IN", "CLOUD_IAM_USER", - "CLOUD_IAM_SERVICE_ACCOUNT", - "CLOUD_IAM_GROUP", - "CLOUD_IAM_GROUP_USER", - "CLOUD_IAM_GROUP_SERVICE_ACCOUNT" + "CLOUD_IAM_SERVICE_ACCOUNT" ], "enumDescriptions": [ "The database's built-in user type.", "Cloud IAM user.", - "Cloud IAM service account.", - "Cloud IAM Group non-login user.", - "Cloud IAM Group login user.", - "Cloud IAM Group service account." + "Cloud IAM service account." ], "type": "string" } diff --git a/discovery/workflowexecutions-v1.json b/discovery/workflowexecutions-v1.json index d451caa2a2b..51100252dd3 100644 --- a/discovery/workflowexecutions-v1.json +++ b/discovery/workflowexecutions-v1.json @@ -274,12 +274,12 @@ ], "parameters": { "filter": { - "description": "Optional. Filters applied to the [Executions.ListExecutions] results. The following fields are supported for filtering: executionID, state, startTime, endTime, duration, workflowRevisionID, stepName, and label.", + "description": "Optional. Filters applied to the `[Executions.ListExecutions]` results. The following fields are supported for filtering: `executionId`, `state`, `startTime`, `endTime`, `duration`, `workflowRevisionId`, `stepName`, and `label`. For details, see AIP-160. For example, if you are using the Google APIs Explorer: `state=\"SUCCEEDED\"` or `startTime>\"2023-08-01\" AND state=\"FAILED\"`", "location": "query", "type": "string" }, "orderBy": { - "description": "Optional. The ordering applied to the [Executions.ListExecutions] results. By default the ordering is based on descending start time. The following fields are supported for order by: executionID, startTime, endTime, duration, state, and workflowRevisionID.", + "description": "Optional. Comma-separated list of fields that specify the ordering applied to the `[Executions.ListExecutions]` results. By default the ordering is based on descending `startTime`. The following fields are supported for ordering: `executionId`, `state`, `startTime`, `endTime`, `duration`, and `workflowRevisionId`. For details, see AIP-132.", "location": "query", "type": "string" }, @@ -376,7 +376,7 @@ } } }, - "revision": "20230912", + "revision": "20231016", "rootUrl": "https://workflowexecutions.googleapis.com/", "schemas": { "Callback": { diff --git a/src/apis/alloydb/v1.ts b/src/apis/alloydb/v1.ts index ab0647aa8f7..fcba9bcc491 100644 --- a/src/apis/alloydb/v1.ts +++ b/src/apis/alloydb/v1.ts @@ -1165,7 +1165,7 @@ export namespace alloydb_v1 { */ resourceHealthSignalData?: Schema$StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData; /** - * Required. Primary key associated with the Resource + * Primary key associated with the Resource. resource_id is available in individual feed level as well. */ resourceId?: Schema$StorageDatabasecenterPartnerapiV1mainDatabaseResourceId; resourceMetadata?: Schema$StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata; @@ -1203,7 +1203,7 @@ export namespace alloydb_v1 { */ provider?: string | null; /** - * Closest parent container of this resource. In GCP, 'container' refers to a Cloud Resource Manager project. It must be resource name of a Cloud Resource Manager project with the format of "provider//", such as "gcp/projects/123". + * Closest parent container of this resource. In GCP, 'container' refers to a Cloud Resource Manager project. It must be resource name of a Cloud Resource Manager project with the format of "provider//", such as "gcp/projects/123". For GCP provided resources, number should be project number. */ resourceContainer?: string | null; /** @@ -1298,7 +1298,7 @@ export namespace alloydb_v1 { */ product?: Schema$StorageDatabasecenterProtoCommonProduct; /** - * Closest parent Cloud Resource Manager container of this resource. It must be resource name of a Cloud Resource Manager project with the format of "provider//", such as "gcp/projects/123". + * Closest parent Cloud Resource Manager container of this resource. It must be resource name of a Cloud Resource Manager project with the format of "provider//", such as "gcp/projects/123". For GCP provided resources, number should be project number. */ resourceContainer?: string | null; /** diff --git a/src/apis/artifactregistry/v1.ts b/src/apis/artifactregistry/v1.ts index f27b42a9709..927afc4eaf3 100644 --- a/src/apis/artifactregistry/v1.ts +++ b/src/apis/artifactregistry/v1.ts @@ -1021,6 +1021,10 @@ export namespace artifactregistry_v1 { * Specific settings for a Python remote repository. */ pythonRepository?: Schema$PythonRepository; + /** + * Optional. The credentials used to access the remote repository. + */ + upstreamCredentials?: Schema$UpstreamCredentials; /** * Specific settings for a Yum remote repository. */ @@ -1273,6 +1277,15 @@ export namespace artifactregistry_v1 { */ yumArtifacts?: Schema$YumArtifact[]; } + /** + * The credentials to access the remote repository. + */ + export interface Schema$UpstreamCredentials { + /** + * Use username and password to access the remote repository. + */ + usernamePasswordCredentials?: Schema$UsernamePasswordCredentials; + } /** * Artifact policy configuration for the repository contents. */ @@ -1290,6 +1303,19 @@ export namespace artifactregistry_v1 { */ repository?: string | null; } + /** + * Username and password credentials. + */ + export interface Schema$UsernamePasswordCredentials { + /** + * The Secret Manager key version that holds the password to access the remote repository. Must be in the format of `projects/{project\}/secrets/{secret\}/versions/{version\}`. + */ + passwordSecretVersion?: string | null; + /** + * The username to access the remote repository. + */ + username?: string | null; + } /** * The body of a version resource. A version resource represents a collection of components, such as files and other data. This may correspond to a version in many package management schemes. */ diff --git a/src/apis/batch/v1.ts b/src/apis/batch/v1.ts index 9e812a67a45..bf7c4137664 100644 --- a/src/apis/batch/v1.ts +++ b/src/apis/batch/v1.ts @@ -1156,7 +1156,7 @@ export namespace batch_v1 { */ name?: string | null; /** - * Max number of tasks that can run in parallel. Default to min(task_count, 1000). Field parallelism must be 1 if the scheduling_policy is IN_ORDER. + * Max number of tasks that can run in parallel. Default to min(task_count, parallel tasks per job limit). See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits). Field parallelism must be 1 if the scheduling_policy is IN_ORDER. */ parallelism?: string | null; /** diff --git a/src/apis/bigtableadmin/v2.ts b/src/apis/bigtableadmin/v2.ts index 5b989b5dd34..decf2744656 100644 --- a/src/apis/bigtableadmin/v2.ts +++ b/src/apis/bigtableadmin/v2.ts @@ -146,18 +146,10 @@ export namespace bigtableadmin_v2 { * The unique name of the app profile. Values are of the form `projects/{project\}/instances/{instance\}/appProfiles/_a-zA-Z0-9*`. */ name?: string | null; - /** - * This field has been deprecated in favor of `standard_isolation.priority`. If you set this field, `standard_isolation.priority` will be set instead. The priority of requests sent using this app profile. - */ - priority?: string | null; /** * Use a single-cluster routing policy. */ singleClusterRouting?: Schema$SingleClusterRouting; - /** - * The standard options used for isolating this app profile's traffic from other use cases. - */ - standardIsolation?: Schema$StandardIsolation; } /** * Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] \}, { "log_type": "DATA_WRITE" \}, { "log_type": "ADMIN_READ" \} ] \}, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" \}, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] \} ] \} ] \} For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging. @@ -924,6 +916,10 @@ export namespace bigtableadmin_v2 { * Request message for google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies */ export interface Schema$ModifyColumnFamiliesRequest { + /** + * If true, ignore safety checks when modifying the column families. + */ + ignoreWarnings?: boolean | null; /** * Required. Modifications to be atomically applied to the specified table's families. Entries are applied in order, meaning that earlier modifications can be masked by later ones (in the case of repeated updates to the same family, for example). */ @@ -1140,15 +1136,6 @@ export namespace bigtableadmin_v2 { */ key?: string | null; } - /** - * Standard options for isolating this app profile's traffic from other use cases. - */ - export interface Schema$StandardIsolation { - /** - * The priority of requests sent using this app profile. - */ - priority?: string | null; - } /** * The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). */ diff --git a/src/apis/compute/alpha.ts b/src/apis/compute/alpha.ts index 81cc1898713..8b254dcf142 100644 --- a/src/apis/compute/alpha.ts +++ b/src/apis/compute/alpha.ts @@ -56344,7 +56344,7 @@ export namespace compute_alpha { } /** - * Returns the interconnectDiagnostics for the specified Interconnect. + * Returns the interconnectDiagnostics for the specified Interconnect. In the event of a global outage, do not use this API to make decisions about where to redirect your network traffic. Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global resource. A global outage can prevent this API from functioning properly. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. diff --git a/src/apis/compute/v1.ts b/src/apis/compute/v1.ts index ea995955080..26d7f2f2ea1 100644 --- a/src/apis/compute/v1.ts +++ b/src/apis/compute/v1.ts @@ -19089,6 +19089,93 @@ export namespace compute_v1 { } } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * @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. + */ + getIamPolicy( + params: Params$Resource$Backendbuckets$Getiampolicy, + options: StreamMethodOptions + ): GaxiosPromise; + getIamPolicy( + params?: Params$Resource$Backendbuckets$Getiampolicy, + options?: MethodOptions + ): GaxiosPromise; + getIamPolicy( + params: Params$Resource$Backendbuckets$Getiampolicy, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + getIamPolicy( + params: Params$Resource$Backendbuckets$Getiampolicy, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + getIamPolicy( + params: Params$Resource$Backendbuckets$Getiampolicy, + callback: BodyResponseCallback + ): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: + | Params$Resource$Backendbuckets$Getiampolicy + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Backendbuckets$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Getiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/compute/v1/projects/{project}/global/backendBuckets/{resource}/getIamPolicy' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + /** * Creates a BackendBucket resource in the specified project using the data included in the request. * @@ -19440,6 +19527,187 @@ export namespace compute_v1 { } } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * @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. + */ + setIamPolicy( + params: Params$Resource$Backendbuckets$Setiampolicy, + options: StreamMethodOptions + ): GaxiosPromise; + setIamPolicy( + params?: Params$Resource$Backendbuckets$Setiampolicy, + options?: MethodOptions + ): GaxiosPromise; + setIamPolicy( + params: Params$Resource$Backendbuckets$Setiampolicy, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + setIamPolicy( + params: Params$Resource$Backendbuckets$Setiampolicy, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + setIamPolicy( + params: Params$Resource$Backendbuckets$Setiampolicy, + callback: BodyResponseCallback + ): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: + | Params$Resource$Backendbuckets$Setiampolicy + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Backendbuckets$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Setiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/compute/v1/projects/{project}/global/backendBuckets/{resource}/setIamPolicy' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, + options + ), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Returns permissions that a caller has on the specified 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. + */ + testIamPermissions( + params: Params$Resource$Backendbuckets$Testiampermissions, + options: StreamMethodOptions + ): GaxiosPromise; + testIamPermissions( + params?: Params$Resource$Backendbuckets$Testiampermissions, + options?: MethodOptions + ): GaxiosPromise; + testIamPermissions( + params: Params$Resource$Backendbuckets$Testiampermissions, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + testIamPermissions( + params: Params$Resource$Backendbuckets$Testiampermissions, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + testIamPermissions( + params: Params$Resource$Backendbuckets$Testiampermissions, + callback: BodyResponseCallback + ): void; + testIamPermissions( + callback: BodyResponseCallback + ): void; + testIamPermissions( + paramsOrCallback?: + | Params$Resource$Backendbuckets$Testiampermissions + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Backendbuckets$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Testiampermissions; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/compute/v1/projects/{project}/global/backendBuckets/{resource}/testIamPermissions' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, + options + ), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + /** * Updates the specified BackendBucket resource with the data included in the request. * @@ -19593,6 +19861,21 @@ export namespace compute_v1 { */ project?: string; } + export interface Params$Resource$Backendbuckets$Getiampolicy + extends StandardParameters { + /** + * Requested IAM Policy version. + */ + optionsRequestedPolicyVersion?: number; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name or id of the resource for this request. + */ + resource?: string; + } export interface Params$Resource$Backendbuckets$Insert extends StandardParameters { /** @@ -19676,6 +19959,38 @@ export namespace compute_v1 { */ requestBody?: Schema$SecurityPolicyReference; } + export interface Params$Resource$Backendbuckets$Setiampolicy + extends StandardParameters { + /** + * Project ID for this request. + */ + project?: string; + /** + * Name or id of the resource for this request. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GlobalSetPolicyRequest; + } + export interface Params$Resource$Backendbuckets$Testiampermissions + extends StandardParameters { + /** + * Project ID for this request. + */ + project?: string; + /** + * Name or id of the resource for this request. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$TestPermissionsRequest; + } export interface Params$Resource$Backendbuckets$Update extends StandardParameters { /** @@ -20947,6 +21262,100 @@ export namespace compute_v1 { } } + /** + * Returns permissions that a caller has on the specified 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. + */ + testIamPermissions( + params: Params$Resource$Backendservices$Testiampermissions, + options: StreamMethodOptions + ): GaxiosPromise; + testIamPermissions( + params?: Params$Resource$Backendservices$Testiampermissions, + options?: MethodOptions + ): GaxiosPromise; + testIamPermissions( + params: Params$Resource$Backendservices$Testiampermissions, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + testIamPermissions( + params: Params$Resource$Backendservices$Testiampermissions, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + testIamPermissions( + params: Params$Resource$Backendservices$Testiampermissions, + callback: BodyResponseCallback + ): void; + testIamPermissions( + callback: BodyResponseCallback + ): void; + testIamPermissions( + paramsOrCallback?: + | Params$Resource$Backendservices$Testiampermissions + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Backendservices$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Testiampermissions; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{resource}/testIamPermissions' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, + options + ), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + /** * Updates the specified BackendService resource with the data included in the request. For more information, see Backend services overview. * @@ -21312,6 +21721,22 @@ export namespace compute_v1 { */ requestBody?: Schema$SecurityPolicyReference; } + export interface Params$Resource$Backendservices$Testiampermissions + extends StandardParameters { + /** + * Project ID for this request. + */ + project?: string; + /** + * Name or id of the resource for this request. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$TestPermissionsRequest; + } export interface Params$Resource$Backendservices$Update extends StandardParameters { /** @@ -45503,7 +45928,7 @@ export namespace compute_v1 { } /** - * Returns the interconnectDiagnostics for the specified Interconnect. + * Returns the interconnectDiagnostics for the specified Interconnect. In the event of a global outage, do not use this API to make decisions about where to redirect your network traffic. Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global resource. A global outage can prevent this API from functioning properly. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -61553,6 +61978,100 @@ export namespace compute_v1 { } } + /** + * Returns permissions that a caller has on the specified 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. + */ + testIamPermissions( + params: Params$Resource$Regionbackendservices$Testiampermissions, + options: StreamMethodOptions + ): GaxiosPromise; + testIamPermissions( + params?: Params$Resource$Regionbackendservices$Testiampermissions, + options?: MethodOptions + ): GaxiosPromise; + testIamPermissions( + params: Params$Resource$Regionbackendservices$Testiampermissions, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + testIamPermissions( + params: Params$Resource$Regionbackendservices$Testiampermissions, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + testIamPermissions( + params: Params$Resource$Regionbackendservices$Testiampermissions, + callback: BodyResponseCallback + ): void; + testIamPermissions( + callback: BodyResponseCallback + ): void; + testIamPermissions( + paramsOrCallback?: + | Params$Resource$Regionbackendservices$Testiampermissions + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Regionbackendservices$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Testiampermissions; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, + options + ), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + /** * Updates the specified regional BackendService resource with the data included in the request. For more information, see Backend services overview . * @@ -61864,6 +62383,26 @@ export namespace compute_v1 { */ requestBody?: Schema$SecurityPolicyReference; } + export interface Params$Resource$Regionbackendservices$Testiampermissions + extends StandardParameters { + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name or id of the resource for this request. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$TestPermissionsRequest; + } export interface Params$Resource$Regionbackendservices$Update extends StandardParameters { /** diff --git a/src/apis/content/v2.1.ts b/src/apis/content/v2.1.ts index 01a1fb1b066..02bbb641d33 100644 --- a/src/apis/content/v2.1.ts +++ b/src/apis/content/v2.1.ts @@ -228,10 +228,6 @@ export namespace content_v2_1 { * Automatically created label IDs that are assigned to the account by CSS Center. */ automaticLabelIds?: string[] | null; - /** - * The business identity attributes can be used to self-declare attributes that let customers know more about your business. - */ - businessIdentity?: Schema$AccountBusinessIdentity; /** * The business information of the account. */ @@ -330,35 +326,6 @@ export namespace content_v2_1 { */ shippingImprovements?: Schema$AccountShippingImprovements; } - /** - * The [business identity attributes](https://support.google.com/merchants/answer/10342414) can be used to self-declare attributes that let customers know more about your business. NEXT ID: 7. - */ - export interface Schema$AccountBusinessIdentity { - /** - * Specifies whether the business identifies itself as being black-owned. This optional field is only available for merchants with a business country set to "US". This field is not allowed for marketplaces or marketplace sellers. - */ - blackOwned?: Schema$AccountIdentityType; - /** - * Required. By setting this field, your business may be included in promotions for all the selected attributes. If you clear this option, it won't affect your identification with any of the attributes. For this field to be set, the merchant must self identify with at least one of the `AccountIdentityType`. If none are included, the request will be considered invalid. - */ - includeForPromotions?: boolean | null; - /** - * Specifies whether the business identifies itself as being latino-owned. This optional field is only available for merchants with a business country set to "US". This field is not allowed for marketplaces or marketplace sellers. - */ - latinoOwned?: Schema$AccountIdentityType; - /** - * Specifies whether the business identifies itself as a small business. This optional field is only available for merchants with a business country set to "US". This field is not allowed for marketplaces or marketplace sellers. - */ - smallBusiness?: Schema$AccountIdentityType; - /** - * Specifies whether the business identifies itself as being veteran-owned. This optional field is only available for merchants with a business country set to "US". This field is not allowed for marketplaces or marketplace sellers. - */ - veteranOwned?: Schema$AccountIdentityType; - /** - * Specifies whether the business identifies itself as being women-owned. This optional field is only available for merchants with a business country set to "US". This field is not allowed for marketplaces or marketplace sellers. - */ - womenOwned?: Schema$AccountIdentityType; - } export interface Schema$AccountBusinessInformation { /** * The address of the business. Use `\n` to add a second address line. @@ -445,10 +412,6 @@ export namespace content_v2_1 { */ merchantId?: string | null; } - /** - * The account identity type used to specify attributes. - */ - export interface Schema$AccountIdentityType {} /** * This improvement will attempt to automatically correct submitted images if they don't meet the [image requirements](https://support.google.com/merchants/answer/6324350), for example, removing overlays. If successful, the image will be replaced and approved. This improvement is only applied to images of disapproved offers. For more information see: [Automatic image improvements](https://support.google.com/merchants/answer/9242973) */ @@ -3138,7 +3101,7 @@ export namespace content_v2_1 { */ export interface Schema$LocalInventory { /** - * The availability of the product. For accepted attribute values, see the local product inventory feed specification. + * Availability of the product. For accepted attribute values, see the local product inventory feed specification. */ availability?: string | null; /** @@ -3146,7 +3109,7 @@ export namespace content_v2_1 { */ customAttributes?: Schema$CustomAttribute[]; /** - * The in-store product location. + * In-store product location. */ instoreProductLocation?: string | null; /** @@ -3154,23 +3117,23 @@ export namespace content_v2_1 { */ kind?: string | null; /** - * The supported pickup method for this offer. Unless the value is "not supported", this field must be submitted together with `pickupSla`. For accepted attribute values, see the local product inventory feed specification. + * Supported pickup method for this offer. Unless the value is "not supported", this field must be submitted together with `pickupSla`. For accepted attribute values, see the local product inventory feed specification. */ pickupMethod?: string | null; /** - * The expected date that an order will be ready for pickup relative to the order date. Must be submitted together with `pickupMethod`. For accepted attribute values, see the local product inventory feed specification. + * Expected date that an order will be ready for pickup relative to the order date. Must be submitted together with `pickupMethod`. For accepted attribute values, see the local product inventory feed specification. */ pickupSla?: string | null; /** - * The price of the product. + * Price of the product. */ price?: Schema$Price; /** - * The quantity of the product. Must be nonnegative. + * Quantity of the product. Must be nonnegative. */ quantity?: number | null; /** - * The sale price of the product. Mandatory if `sale_price_effective_date` is defined. + * Sale price of the product. Mandatory if `sale_price_effective_date` is defined. */ salePrice?: Schema$Price; /** @@ -3178,7 +3141,7 @@ export namespace content_v2_1 { */ salePriceEffectiveDate?: string | null; /** - * Required. The store code of this local inventory resource. + * Required. Store code of this local inventory resource. */ storeCode?: string | null; } diff --git a/src/apis/dlp/v2.ts b/src/apis/dlp/v2.ts index 59490275ba1..68a81fc8c47 100644 --- a/src/apis/dlp/v2.ts +++ b/src/apis/dlp/v2.ts @@ -180,6 +180,10 @@ export namespace dlp_v2 { * Apply transformation to all findings. */ export interface Schema$GooglePrivacyDlpV2AllInfoTypes {} + /** + * Catch-all for all other tables not specified by other filters. Should always be last, except for single-table configurations, which will only have a TableReference target. + */ + export interface Schema$GooglePrivacyDlpV2AllOtherBigQueryTables {} /** * Apply to all text. */ @@ -242,6 +246,27 @@ export namespace dlp_v2 { */ table?: Schema$GooglePrivacyDlpV2BigQueryTable; } + /** + * Target used to match against for Discovery with BigQuery tables + */ + export interface Schema$GooglePrivacyDlpV2BigQueryDiscoveryTarget { + /** + * How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity. + */ + cadence?: Schema$GooglePrivacyDlpV2DiscoveryGenerationCadence; + /** + * In addition to matching the filter, these conditions must be true before a profile is generated. + */ + conditions?: Schema$GooglePrivacyDlpV2DiscoveryBigQueryConditions; + /** + * Tables that match this filter will not have profiles created. + */ + disabled?: Schema$GooglePrivacyDlpV2Disabled; + /** + * Required. The tables the Discovery cadence applies to. The first target with a matching filter will be the one to apply to a table. + */ + filter?: Schema$GooglePrivacyDlpV2DiscoveryBigQueryFilter; + } /** * Message defining a field of a BigQuery table. */ @@ -298,6 +323,32 @@ export namespace dlp_v2 { */ tableReference?: Schema$GooglePrivacyDlpV2BigQueryTable; } + /** + * A pattern to match against one or more tables, datasets, or projects that contain BigQuery tables. At least one pattern must be specified. Regular expressions use RE2 [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found under the google/re2 repository on GitHub. + */ + export interface Schema$GooglePrivacyDlpV2BigQueryRegex { + /** + * If unset, this property matches all datasets. + */ + datasetIdRegex?: string | null; + /** + * For organizations, if unset, will match all projects. Has no effect for data profile configurations created within a project. + */ + projectIdRegex?: string | null; + /** + * If unset, this property matches all tables. + */ + tableIdRegex?: string | null; + } + /** + * A collection of regular expressions to determine what tables to match against. + */ + export interface Schema$GooglePrivacyDlpV2BigQueryRegexes { + /** + * A single BigQuery regular expression pattern to match against one or more tables, datasets, or projects that contain BigQuery tables. + */ + patterns?: Schema$GooglePrivacyDlpV2BigQueryRegex[]; + } /** * Message defining the location of a BigQuery table. A table is uniquely identified by its project_id, dataset_id, and table_name. Within a query a table is often referenced with a string in the format of: `:.` or `..`. */ @@ -315,6 +366,24 @@ export namespace dlp_v2 { */ tableId?: string | null; } + /** + * Specifies a collection of BigQuery tables. Used for Discovery. + */ + export interface Schema$GooglePrivacyDlpV2BigQueryTableCollection { + /** + * A collection of regular expressions to match a BigQuery table against. + */ + includeRegexes?: Schema$GooglePrivacyDlpV2BigQueryRegexes; + } + /** + * The types of bigquery tables supported by Cloud DLP. + */ + export interface Schema$GooglePrivacyDlpV2BigQueryTableTypes { + /** + * A set of bigquery table types. + */ + types?: string[] | null; + } /** * Bounding box encompassing detected text within an image. */ @@ -742,6 +811,19 @@ export namespace dlp_v2 { */ templateId?: string | null; } + /** + * Request message for CreateDiscoveryConfig. + */ + export interface Schema$GooglePrivacyDlpV2CreateDiscoveryConfigRequest { + /** + * The config id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\d-_]+`. The maximum length is 100 characters. Can be empty to allow the system to generate one. + */ + configId?: string | null; + /** + * Required. The DiscoveryConfig to create. + */ + discoveryConfig?: Schema$GooglePrivacyDlpV2DiscoveryConfig; + } /** * Request message for CreateDlpJobRequest. Used to initiate long running jobs such as calculating risk metrics or inspecting Google Cloud Storage. */ @@ -1324,6 +1406,154 @@ export namespace dlp_v2 { */ wordList?: Schema$GooglePrivacyDlpV2WordList; } + /** + * Do nothing. + */ + export interface Schema$GooglePrivacyDlpV2Disabled {} + /** + * Requirements that must be true before a table is scanned in Discovery for the first time. There is an AND relationship between the top-level attributes. + */ + export interface Schema$GooglePrivacyDlpV2DiscoveryBigQueryConditions { + /** + * BigQuery table must have been created after this date. Used to avoid backfilling. + */ + createdAfter?: string | null; + /** + * At least one of the conditions must be true for a table to be scanned. + */ + orConditions?: Schema$GooglePrivacyDlpV2OrConditions; + /** + * Restrict Discovery to categories of table types. + */ + typeCollection?: string | null; + /** + * Restrict Discovery to specific table types. + */ + types?: Schema$GooglePrivacyDlpV2BigQueryTableTypes; + } + /** + * Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, dataset ID, and table ID. Also lets you set minimum conditions that must be met before Cloud DLP scans a table (like a minimum row count or a minimum table age). + */ + export interface Schema$GooglePrivacyDlpV2DiscoveryBigQueryFilter { + /** + * Catch-all. This should always be the last filter in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically. + */ + otherTables?: Schema$GooglePrivacyDlpV2AllOtherBigQueryTables; + /** + * A specific set of tables for this filter to apply to. A table collection must be specified in only one filter per config. If a table id or dataset is empty, Cloud DLP assumes all tables in that collection must be profiled. Must specify a project ID. + */ + tables?: Schema$GooglePrivacyDlpV2BigQueryTableCollection; + } + /** + * Configuration for Discovery to scan resources for profile generation. Only one Discovery configuration may exist per organization, folder, or project. The generated data profiles are retained according to the [data retention policy] (https://cloud.google.com/dlp/docs/data-profiles#retention). + */ + export interface Schema$GooglePrivacyDlpV2DiscoveryConfig { + /** + * Actions to execute at the completion of scanning. + */ + actions?: Schema$GooglePrivacyDlpV2DataProfileAction[]; + /** + * Output only. The creation timestamp of a DiscoveryConfig. + */ + createTime?: string | null; + /** + * Display name (max 100 chars) + */ + displayName?: string | null; + /** + * Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared. + */ + errors?: Schema$GooglePrivacyDlpV2Error[]; + /** + * Detection logic for profile generation. Not all template features are used by Discovery. FindingLimits, include_quote and exclude_info_types have no impact on Discovery. Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including "global"). Each region is scanned using the applicable template. If no region-specific template is specified, but a "global" template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region's data will not be scanned. For more information, see https://cloud.google.com/dlp/docs/data-profiles#data_residency. + */ + inspectTemplates?: string[] | null; + /** + * Output only. The timestamp of the last time this config was executed. + */ + lastRunTime?: string | null; + /** + * Unique resource name for the DiscoveryConfig, assigned by the service when the DiscoveryConfig is created, for example `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`. + */ + name?: string | null; + /** + * Only set when the parent is an org. + */ + orgConfig?: Schema$GooglePrivacyDlpV2OrgConfig; + /** + * Required. A status for this configuration. + */ + status?: string | null; + /** + * Target to match against for determining what to scan and how frequently. + */ + targets?: Schema$GooglePrivacyDlpV2DiscoveryTarget[]; + /** + * Output only. The last update timestamp of a DiscoveryConfig. + */ + updateTime?: string | null; + } + /** + * What must take place for a profile to be updated and how frequently it should occur. New tables are scanned as quickly as possible depending on system capacity. + */ + export interface Schema$GooglePrivacyDlpV2DiscoveryGenerationCadence { + /** + * Governs when to update data profiles when a schema is modified. + */ + schemaModifiedCadence?: Schema$GooglePrivacyDlpV2DiscoverySchemaModifiedCadence; + /** + * Governs when to update data profiles when a table is modified. + */ + tableModifiedCadence?: Schema$GooglePrivacyDlpV2DiscoveryTableModifiedCadence; + } + /** + * The cadence at which to update data profiles when a schema is modified. + */ + export interface Schema$GooglePrivacyDlpV2DiscoverySchemaModifiedCadence { + /** + * How frequently profiles may be updated when schemas are modified. Defaults to monthly. + */ + frequency?: string | null; + /** + * The type of events to consider when deciding if the table's schema has been modified and should have the profile updated. Defaults to NEW_COLUMNS. + */ + types?: string[] | null; + } + /** + * The location to begin a Discovery scan. Denotes an organization ID or folder ID within an organization. + */ + export interface Schema$GooglePrivacyDlpV2DiscoveryStartingLocation { + /** + * The ID of the Folder within an organization to scan. + */ + folderId?: string | null; + /** + * The ID of an organization to scan. + */ + organizationId?: string | null; + } + /** + * The cadence at which to update data profiles when a table is modified. + */ + export interface Schema$GooglePrivacyDlpV2DiscoveryTableModifiedCadence { + /** + * How frequently data profiles can be updated when tables are modified. Defaults to never. + */ + frequency?: string | null; + /** + * The type of events to consider when deciding if the table has been modified and should have the profile updated. Defaults to MODIFIED_TIMESTAMP. + */ + types?: string[] | null; + } + /** + * Target used to match against for Discovery. + */ + export interface Schema$GooglePrivacyDlpV2DiscoveryTarget { + /** + * BigQuery target for Discovery. The first target to match a table will be the one applied. + */ + bigQueryTarget?: Schema$GooglePrivacyDlpV2BigQueryDiscoveryTarget; + } /** * Combines all of the information about a DLP job. */ @@ -2429,6 +2659,19 @@ export namespace dlp_v2 { */ nextPageToken?: string | null; } + /** + * Response message for ListDiscoveryConfigs. + */ + export interface Schema$GooglePrivacyDlpV2ListDiscoveryConfigsResponse { + /** + * List of configs, up to page_size in ListDiscoveryConfigsRequest. + */ + discoveryConfigs?: Schema$GooglePrivacyDlpV2DiscoveryConfig[]; + /** + * If the next page is available then the next page token to be used in following ListDiscoveryConfigs request. + */ + nextPageToken?: string | null; + } /** * The response message for listing DLP jobs. */ @@ -2554,6 +2797,32 @@ export namespace dlp_v2 { */ quantileValues?: Schema$GooglePrivacyDlpV2Value[]; } + /** + * There is an OR relationship between these attributes. They are used to determine if a table should be scanned or not in Discovery. + */ + export interface Schema$GooglePrivacyDlpV2OrConditions { + /** + * Minimum age a table must have before Cloud DLP can profile it. Value must be 1 hour or greater. + */ + minAge?: string | null; + /** + * Minimum number of rows that should be present before Cloud DLP profiles a table + */ + minRowCount?: number | null; + } + /** + * Project and scan location information. Only set when the parent is an org. + */ + export interface Schema$GooglePrivacyDlpV2OrgConfig { + /** + * The data to scan: folder, org, or project + */ + location?: Schema$GooglePrivacyDlpV2DiscoveryStartingLocation; + /** + * The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the Cloud DLP API must be enabled. + */ + projectId?: string | null; + } /** * Infotype details for other infoTypes found within a column. */ @@ -3735,6 +4004,19 @@ export namespace dlp_v2 { */ updateMask?: string | null; } + /** + * Request message for UpdateDiscoveryConfig. + */ + export interface Schema$GooglePrivacyDlpV2UpdateDiscoveryConfigRequest { + /** + * New DiscoveryConfig value. + */ + discoveryConfig?: Schema$GooglePrivacyDlpV2DiscoveryConfig; + /** + * Mask to control which fields get updated. + */ + updateMask?: string | null; + } /** * Request message for UpdateInspectTemplate. */ @@ -5248,6 +5530,7 @@ export namespace dlp_v2 { export class Resource$Organizations$Locations { context: APIRequestContext; deidentifyTemplates: Resource$Organizations$Locations$Deidentifytemplates; + discoveryConfigs: Resource$Organizations$Locations$Discoveryconfigs; dlpJobs: Resource$Organizations$Locations$Dlpjobs; inspectTemplates: Resource$Organizations$Locations$Inspecttemplates; jobTriggers: Resource$Organizations$Locations$Jobtriggers; @@ -5256,6 +5539,8 @@ export namespace dlp_v2 { this.context = context; this.deidentifyTemplates = new Resource$Organizations$Locations$Deidentifytemplates(this.context); + this.discoveryConfigs = + new Resource$Organizations$Locations$Discoveryconfigs(this.context); this.dlpJobs = new Resource$Organizations$Locations$Dlpjobs(this.context); this.inspectTemplates = new Resource$Organizations$Locations$Inspecttemplates(this.context); @@ -5806,71 +6091,72 @@ export namespace dlp_v2 { requestBody?: Schema$GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest; } - export class Resource$Organizations$Locations$Dlpjobs { + export class Resource$Organizations$Locations$Discoveryconfigs { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * Creates a config for Discovery to scan and profile storage. * * @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$Organizations$Locations$Dlpjobs$List, + create( + params: Params$Resource$Organizations$Locations$Discoveryconfigs$Create, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Organizations$Locations$Dlpjobs$List, + create( + params?: Params$Resource$Organizations$Locations$Discoveryconfigs$Create, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Organizations$Locations$Dlpjobs$List, + ): GaxiosPromise; + create( + params: Params$Resource$Organizations$Locations$Discoveryconfigs$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Organizations$Locations$Dlpjobs$List, + create( + params: Params$Resource$Organizations$Locations$Discoveryconfigs$Create, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Organizations$Locations$Dlpjobs$List, - callback: BodyResponseCallback + create( + params: Params$Resource$Organizations$Locations$Discoveryconfigs$Create, + callback: BodyResponseCallback ): void; - list( - callback: BodyResponseCallback + create( + callback: BodyResponseCallback ): void; - list( + create( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Dlpjobs$List - | BodyResponseCallback + | Params$Resource$Organizations$Locations$Discoveryconfigs$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Dlpjobs$List; + {}) as Params$Resource$Organizations$Locations$Discoveryconfigs$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Locations$Dlpjobs$List; + params = + {} as Params$Resource$Organizations$Locations$Discoveryconfigs$Create; options = {}; } @@ -5883,11 +6169,11 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/dlpJobs').replace( + url: (rootUrl + '/v2/{+parent}/discoveryConfigs').replace( /([^:]\/)\/+/g, '$1' ), - method: 'GET', + method: 'POST', }, options ), @@ -5897,187 +6183,51 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } - } - - export interface Params$Resource$Organizations$Locations$Dlpjobs$List - extends StandardParameters { - /** - * Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field\} {operator\} {value\}`. * Supported fields/values for inspect jobs: - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The name of the trigger that created the job. - 'end_time` - Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * Supported fields for risk analysis jobs: - `state` - RUNNING|CANCELED|FINISHED|FAILED - 'end_time` - Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * The operator must be `=` or `!=`. Examples: * inspected_storage = cloud_storage AND state = done * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = done OR state = canceled) * end_time \> \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters. - */ - filter?: string; - /** - * Deprecated. This field has no effect. - */ - locationId?: string; - /** - * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to the time the job was created. - `end_time`: corresponds to the time the job ended. - `name`: corresponds to the job's name. - `state`: corresponds to `state` - */ - orderBy?: string; - /** - * The standard list page size. - */ - pageSize?: number; - /** - * The standard list page token. - */ - pageToken?: string; - /** - * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 - */ - parent?: string; - /** - * The type of job. Defaults to `DlpJobType.INSPECT` - */ - type?: string; - } - - export class Resource$Organizations$Locations$Inspecttemplates { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * Deletes a Discovery configuration. * * @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$Organizations$Locations$Inspecttemplates$Create, + delete( + params: Params$Resource$Organizations$Locations$Discoveryconfigs$Delete, options: StreamMethodOptions ): GaxiosPromise; - create( - params?: Params$Resource$Organizations$Locations$Inspecttemplates$Create, - options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Organizations$Locations$Inspecttemplates$Create, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - create( - params: Params$Resource$Organizations$Locations$Inspecttemplates$Create, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - create( - params: Params$Resource$Organizations$Locations$Inspecttemplates$Create, - callback: BodyResponseCallback - ): void; - create( - callback: BodyResponseCallback - ): void; - create( - paramsOrCallback?: - | Params$Resource$Organizations$Locations$Inspecttemplates$Create - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Inspecttemplates$Create; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {} as Params$Resource$Organizations$Locations$Inspecttemplates$Create; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2/{+parent}/inspectTemplates').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 an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. - * - * @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$Organizations$Locations$Inspecttemplates$Delete, - options: StreamMethodOptions - ): GaxiosPromise; - delete( - params?: Params$Resource$Organizations$Locations$Inspecttemplates$Delete, + delete( + params?: Params$Resource$Organizations$Locations$Discoveryconfigs$Delete, options?: MethodOptions ): GaxiosPromise; delete( - params: Params$Resource$Organizations$Locations$Inspecttemplates$Delete, + params: Params$Resource$Organizations$Locations$Discoveryconfigs$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Organizations$Locations$Inspecttemplates$Delete, + params: Params$Resource$Organizations$Locations$Discoveryconfigs$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Organizations$Locations$Inspecttemplates$Delete, + params: Params$Resource$Organizations$Locations$Discoveryconfigs$Delete, callback: BodyResponseCallback ): void; delete(callback: BodyResponseCallback): void; delete( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Inspecttemplates$Delete + | Params$Resource$Organizations$Locations$Discoveryconfigs$Delete | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -6093,13 +6243,13 @@ export namespace dlp_v2 { | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Inspecttemplates$Delete; + {}) as Params$Resource$Organizations$Locations$Discoveryconfigs$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Organizations$Locations$Inspecttemplates$Delete; + {} as Params$Resource$Organizations$Locations$Discoveryconfigs$Delete; options = {}; } @@ -6133,7 +6283,7 @@ export namespace dlp_v2 { } /** - * Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * Gets a Discovery configuration. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -6141,57 +6291,57 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ get( - params: Params$Resource$Organizations$Locations$Inspecttemplates$Get, + params: Params$Resource$Organizations$Locations$Discoveryconfigs$Get, options: StreamMethodOptions ): GaxiosPromise; get( - params?: Params$Resource$Organizations$Locations$Inspecttemplates$Get, + params?: Params$Resource$Organizations$Locations$Discoveryconfigs$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Organizations$Locations$Inspecttemplates$Get, + params: Params$Resource$Organizations$Locations$Discoveryconfigs$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Organizations$Locations$Inspecttemplates$Get, + params: Params$Resource$Organizations$Locations$Discoveryconfigs$Get, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Organizations$Locations$Inspecttemplates$Get, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Locations$Discoveryconfigs$Get, + callback: BodyResponseCallback ): void; get( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; get( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Inspecttemplates$Get - | BodyResponseCallback + | Params$Resource$Organizations$Locations$Discoveryconfigs$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Inspecttemplates$Get; + {}) as Params$Resource$Organizations$Locations$Discoveryconfigs$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Organizations$Locations$Inspecttemplates$Get; + {} as Params$Resource$Organizations$Locations$Discoveryconfigs$Get; options = {}; } @@ -6215,19 +6365,19 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * Lists Discovery configurations. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -6235,57 +6385,57 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ list( - params: Params$Resource$Organizations$Locations$Inspecttemplates$List, + params: Params$Resource$Organizations$Locations$Discoveryconfigs$List, options: StreamMethodOptions ): GaxiosPromise; list( - params?: Params$Resource$Organizations$Locations$Inspecttemplates$List, + params?: Params$Resource$Organizations$Locations$Discoveryconfigs$List, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; list( - params: Params$Resource$Organizations$Locations$Inspecttemplates$List, + params: Params$Resource$Organizations$Locations$Discoveryconfigs$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Organizations$Locations$Inspecttemplates$List, + params: Params$Resource$Organizations$Locations$Discoveryconfigs$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Organizations$Locations$Inspecttemplates$List, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Locations$Discoveryconfigs$List, + callback: BodyResponseCallback ): void; list( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; list( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Inspecttemplates$List - | BodyResponseCallback + | Params$Resource$Organizations$Locations$Discoveryconfigs$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Inspecttemplates$List; + {}) as Params$Resource$Organizations$Locations$Discoveryconfigs$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Organizations$Locations$Inspecttemplates$List; + {} as Params$Resource$Organizations$Locations$Discoveryconfigs$List; options = {}; } @@ -6298,7 +6448,7 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace( + url: (rootUrl + '/v2/{+parent}/discoveryConfigs').replace( /([^:]\/)\/+/g, '$1' ), @@ -6312,19 +6462,19 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * Updates a Discovery configuration. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -6332,57 +6482,57 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ patch( - params: Params$Resource$Organizations$Locations$Inspecttemplates$Patch, + params: Params$Resource$Organizations$Locations$Discoveryconfigs$Patch, options: StreamMethodOptions ): GaxiosPromise; patch( - params?: Params$Resource$Organizations$Locations$Inspecttemplates$Patch, + params?: Params$Resource$Organizations$Locations$Discoveryconfigs$Patch, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; patch( - params: Params$Resource$Organizations$Locations$Inspecttemplates$Patch, + params: Params$Resource$Organizations$Locations$Discoveryconfigs$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; patch( - params: Params$Resource$Organizations$Locations$Inspecttemplates$Patch, + params: Params$Resource$Organizations$Locations$Discoveryconfigs$Patch, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; patch( - params: Params$Resource$Organizations$Locations$Inspecttemplates$Patch, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Locations$Discoveryconfigs$Patch, + callback: BodyResponseCallback ): void; patch( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; patch( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Inspecttemplates$Patch - | BodyResponseCallback + | Params$Resource$Organizations$Locations$Discoveryconfigs$Patch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Inspecttemplates$Patch; + {}) as Params$Resource$Organizations$Locations$Discoveryconfigs$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Organizations$Locations$Inspecttemplates$Patch; + {} as Params$Resource$Organizations$Locations$Discoveryconfigs$Patch; options = {}; } @@ -6406,146 +6556,141 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } } - export interface Params$Resource$Organizations$Locations$Inspecttemplates$Create + export interface Params$Resource$Organizations$Locations$Discoveryconfigs$Create extends StandardParameters { /** - * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + * Required. Parent resource name. The format of this value is as follows: `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 */ parent?: string; /** * Request body metadata */ - requestBody?: Schema$GooglePrivacyDlpV2CreateInspectTemplateRequest; + requestBody?: Schema$GooglePrivacyDlpV2CreateDiscoveryConfigRequest; } - export interface Params$Resource$Organizations$Locations$Inspecttemplates$Delete + export interface Params$Resource$Organizations$Locations$Discoveryconfigs$Delete extends StandardParameters { /** - * Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * Required. Resource name of the project and the config, for example `projects/dlp-test-project/discoveryConfigs/53234423`. */ name?: string; } - export interface Params$Resource$Organizations$Locations$Inspecttemplates$Get + export interface Params$Resource$Organizations$Locations$Discoveryconfigs$Get extends StandardParameters { /** - * Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`. */ name?: string; } - export interface Params$Resource$Organizations$Locations$Inspecttemplates$List + export interface Params$Resource$Organizations$Locations$Discoveryconfigs$List extends StandardParameters { /** - * Deprecated. This field has no effect. - */ - locationId?: string; - /** - * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name. + * Comma separated list of config fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. - `name`: corresponds to the DiscoveryConfig's name. - `status`: corresponds to DiscoveryConfig's status. */ orderBy?: string; /** - * Size of the page, can be limited by the server. If zero server returns a page of max size 100. + * Size of the page, can be limited by a server. */ pageSize?: number; /** - * Page token to continue retrieval. Comes from previous call to `ListInspectTemplates`. + * Page token to continue retrieval. Comes from previous call to ListDiscoveryConfigs. `order_by` field must not change for subsequent calls. */ pageToken?: string; /** - * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + * Required. Parent resource name. The format of this value is as follows: `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 */ parent?: string; } - export interface Params$Resource$Organizations$Locations$Inspecttemplates$Patch + export interface Params$Resource$Organizations$Locations$Discoveryconfigs$Patch extends StandardParameters { /** - * Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`. */ name?: string; /** * Request body metadata */ - requestBody?: Schema$GooglePrivacyDlpV2UpdateInspectTemplateRequest; + requestBody?: Schema$GooglePrivacyDlpV2UpdateDiscoveryConfigRequest; } - export class Resource$Organizations$Locations$Jobtriggers { + export class Resource$Organizations$Locations$Dlpjobs { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. * * @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$Organizations$Locations$Jobtriggers$Create, + list( + params: Params$Resource$Organizations$Locations$Dlpjobs$List, options: StreamMethodOptions ): GaxiosPromise; - create( - params?: Params$Resource$Organizations$Locations$Jobtriggers$Create, + list( + params?: Params$Resource$Organizations$Locations$Dlpjobs$List, options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Organizations$Locations$Jobtriggers$Create, + ): GaxiosPromise; + list( + params: Params$Resource$Organizations$Locations$Dlpjobs$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - create( - params: Params$Resource$Organizations$Locations$Jobtriggers$Create, + list( + params: Params$Resource$Organizations$Locations$Dlpjobs$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - create( - params: Params$Resource$Organizations$Locations$Jobtriggers$Create, - callback: BodyResponseCallback + list( + params: Params$Resource$Organizations$Locations$Dlpjobs$List, + callback: BodyResponseCallback ): void; - create( - callback: BodyResponseCallback + list( + callback: BodyResponseCallback ): void; - create( + list( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Jobtriggers$Create - | BodyResponseCallback + | Params$Resource$Organizations$Locations$Dlpjobs$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Jobtriggers$Create; + {}) as Params$Resource$Organizations$Locations$Dlpjobs$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {} as Params$Resource$Organizations$Locations$Jobtriggers$Create; + params = {} as Params$Resource$Organizations$Locations$Dlpjobs$List; options = {}; } @@ -6558,11 +6703,11 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/jobTriggers').replace( + url: (rootUrl + '/v2/{+parent}/dlpJobs').replace( /([^:]\/)\/+/g, '$1' ), - method: 'POST', + method: 'GET', }, options ), @@ -6572,51 +6717,187 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } + } + export interface Params$Resource$Organizations$Locations$Dlpjobs$List + extends StandardParameters { /** - * Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - * - * @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. + * Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field\} {operator\} {value\}`. * Supported fields/values for inspect jobs: - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The name of the trigger that created the job. - 'end_time` - Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * Supported fields for risk analysis jobs: - `state` - RUNNING|CANCELED|FINISHED|FAILED - 'end_time` - Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * The operator must be `=` or `!=`. Examples: * inspected_storage = cloud_storage AND state = done * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = done OR state = canceled) * end_time \> \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters. + */ + filter?: string; + /** + * Deprecated. This field has no effect. + */ + locationId?: string; + /** + * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to the time the job was created. - `end_time`: corresponds to the time the job ended. - `name`: corresponds to the job's name. - `state`: corresponds to `state` + */ + orderBy?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + /** + * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + */ + parent?: string; + /** + * The type of job. Defaults to `DlpJobType.INSPECT` + */ + type?: string; + } + + export class Resource$Organizations$Locations$Inspecttemplates { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * + * @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$Organizations$Locations$Inspecttemplates$Create, + options: StreamMethodOptions + ): GaxiosPromise; + create( + params?: Params$Resource$Organizations$Locations$Inspecttemplates$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Organizations$Locations$Inspecttemplates$Create, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Organizations$Locations$Inspecttemplates$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Organizations$Locations$Inspecttemplates$Create, + callback: BodyResponseCallback + ): void; + create( + callback: BodyResponseCallback + ): void; + create( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Inspecttemplates$Create + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Inspecttemplates$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Organizations$Locations$Inspecttemplates$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/inspectTemplates').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 an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * + * @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$Organizations$Locations$Jobtriggers$Delete, - options: StreamMethodOptions - ): GaxiosPromise; - delete( - params?: Params$Resource$Organizations$Locations$Jobtriggers$Delete, + params: Params$Resource$Organizations$Locations$Inspecttemplates$Delete, + options: StreamMethodOptions + ): GaxiosPromise; + delete( + params?: Params$Resource$Organizations$Locations$Inspecttemplates$Delete, options?: MethodOptions ): GaxiosPromise; delete( - params: Params$Resource$Organizations$Locations$Jobtriggers$Delete, + params: Params$Resource$Organizations$Locations$Inspecttemplates$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Organizations$Locations$Jobtriggers$Delete, + params: Params$Resource$Organizations$Locations$Inspecttemplates$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Organizations$Locations$Jobtriggers$Delete, + params: Params$Resource$Organizations$Locations$Inspecttemplates$Delete, callback: BodyResponseCallback ): void; delete(callback: BodyResponseCallback): void; delete( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Jobtriggers$Delete + | Params$Resource$Organizations$Locations$Inspecttemplates$Delete | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -6632,13 +6913,13 @@ export namespace dlp_v2 { | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Jobtriggers$Delete; + {}) as Params$Resource$Organizations$Locations$Inspecttemplates$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Organizations$Locations$Jobtriggers$Delete; + {} as Params$Resource$Organizations$Locations$Inspecttemplates$Delete; options = {}; } @@ -6672,7 +6953,7 @@ export namespace dlp_v2 { } /** - * Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -6680,56 +6961,57 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ get( - params: Params$Resource$Organizations$Locations$Jobtriggers$Get, + params: Params$Resource$Organizations$Locations$Inspecttemplates$Get, options: StreamMethodOptions ): GaxiosPromise; get( - params?: Params$Resource$Organizations$Locations$Jobtriggers$Get, + params?: Params$Resource$Organizations$Locations$Inspecttemplates$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Organizations$Locations$Jobtriggers$Get, + params: Params$Resource$Organizations$Locations$Inspecttemplates$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Organizations$Locations$Jobtriggers$Get, + params: Params$Resource$Organizations$Locations$Inspecttemplates$Get, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Organizations$Locations$Jobtriggers$Get, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Locations$Inspecttemplates$Get, + callback: BodyResponseCallback ): void; get( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; get( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Jobtriggers$Get - | BodyResponseCallback + | Params$Resource$Organizations$Locations$Inspecttemplates$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Jobtriggers$Get; + {}) as Params$Resource$Organizations$Locations$Inspecttemplates$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Locations$Jobtriggers$Get; + params = + {} as Params$Resource$Organizations$Locations$Inspecttemplates$Get; options = {}; } @@ -6753,19 +7035,19 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -6773,56 +7055,57 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ list( - params: Params$Resource$Organizations$Locations$Jobtriggers$List, + params: Params$Resource$Organizations$Locations$Inspecttemplates$List, options: StreamMethodOptions ): GaxiosPromise; list( - params?: Params$Resource$Organizations$Locations$Jobtriggers$List, + params?: Params$Resource$Organizations$Locations$Inspecttemplates$List, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; list( - params: Params$Resource$Organizations$Locations$Jobtriggers$List, + params: Params$Resource$Organizations$Locations$Inspecttemplates$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Organizations$Locations$Jobtriggers$List, + params: Params$Resource$Organizations$Locations$Inspecttemplates$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Organizations$Locations$Jobtriggers$List, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Locations$Inspecttemplates$List, + callback: BodyResponseCallback ): void; list( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; list( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Jobtriggers$List - | BodyResponseCallback + | Params$Resource$Organizations$Locations$Inspecttemplates$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Jobtriggers$List; + {}) as Params$Resource$Organizations$Locations$Inspecttemplates$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Locations$Jobtriggers$List; + params = + {} as Params$Resource$Organizations$Locations$Inspecttemplates$List; options = {}; } @@ -6835,7 +7118,7 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/jobTriggers').replace( + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace( /([^:]\/)\/+/g, '$1' ), @@ -6849,19 +7132,19 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -6869,57 +7152,57 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ patch( - params: Params$Resource$Organizations$Locations$Jobtriggers$Patch, + params: Params$Resource$Organizations$Locations$Inspecttemplates$Patch, options: StreamMethodOptions ): GaxiosPromise; patch( - params?: Params$Resource$Organizations$Locations$Jobtriggers$Patch, + params?: Params$Resource$Organizations$Locations$Inspecttemplates$Patch, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; patch( - params: Params$Resource$Organizations$Locations$Jobtriggers$Patch, + params: Params$Resource$Organizations$Locations$Inspecttemplates$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; patch( - params: Params$Resource$Organizations$Locations$Jobtriggers$Patch, + params: Params$Resource$Organizations$Locations$Inspecttemplates$Patch, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; patch( - params: Params$Resource$Organizations$Locations$Jobtriggers$Patch, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Locations$Inspecttemplates$Patch, + callback: BodyResponseCallback ): void; patch( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; patch( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Jobtriggers$Patch - | BodyResponseCallback + | Params$Resource$Organizations$Locations$Inspecttemplates$Patch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Jobtriggers$Patch; + {}) as Params$Resource$Organizations$Locations$Inspecttemplates$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Organizations$Locations$Jobtriggers$Patch; + {} as Params$Resource$Organizations$Locations$Inspecttemplates$Patch; options = {}; } @@ -6943,96 +7226,88 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } } - export interface Params$Resource$Organizations$Locations$Jobtriggers$Create + export interface Params$Resource$Organizations$Locations$Inspecttemplates$Create extends StandardParameters { /** - * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 */ parent?: string; /** * Request body metadata */ - requestBody?: Schema$GooglePrivacyDlpV2CreateJobTriggerRequest; + requestBody?: Schema$GooglePrivacyDlpV2CreateInspectTemplateRequest; } - export interface Params$Resource$Organizations$Locations$Jobtriggers$Delete + export interface Params$Resource$Organizations$Locations$Inspecttemplates$Delete extends StandardParameters { /** - * Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + * Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. */ name?: string; } - export interface Params$Resource$Organizations$Locations$Jobtriggers$Get + export interface Params$Resource$Organizations$Locations$Inspecttemplates$Get extends StandardParameters { /** - * Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + * Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. */ name?: string; } - export interface Params$Resource$Organizations$Locations$Jobtriggers$List + export interface Params$Resource$Organizations$Locations$Inspecttemplates$List extends StandardParameters { - /** - * Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field\} {operator\} {value\}`. * Supported fields/values for inspect triggers: - `status` - HEALTHY|PAUSED|CANCELLED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by quotation marks. Nanoseconds are ignored. - 'error_count' - Number of errors that have occurred while running. * The operator must be `=` or `!=` for status and inspected_storage. Examples: * inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) * last_run_time \> \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters. - */ - filter?: string; /** * Deprecated. This field has no effect. */ locationId?: string; /** - * Comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the JobTrigger was created. - `update_time`: corresponds to the time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to the JobTrigger's name. - `display_name`: corresponds to the JobTrigger's display name. - `status`: corresponds to JobTrigger's status. + * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name. */ orderBy?: string; /** - * Size of the page, can be limited by a server. + * Size of the page, can be limited by the server. If zero server returns a page of max size 100. */ pageSize?: number; /** - * Page token to continue retrieval. Comes from previous call to ListJobTriggers. `order_by` field must not change for subsequent calls. + * Page token to continue retrieval. Comes from previous call to `ListInspectTemplates`. */ pageToken?: string; /** - * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 */ parent?: string; - /** - * The type of jobs. Will use `DlpJobType.INSPECT` if not set. - */ - type?: string; } - export interface Params$Resource$Organizations$Locations$Jobtriggers$Patch + export interface Params$Resource$Organizations$Locations$Inspecttemplates$Patch extends StandardParameters { /** - * Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + * Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. */ name?: string; /** * Request body metadata */ - requestBody?: Schema$GooglePrivacyDlpV2UpdateJobTriggerRequest; + requestBody?: Schema$GooglePrivacyDlpV2UpdateInspectTemplateRequest; } - export class Resource$Organizations$Locations$Storedinfotypes { + export class Resource$Organizations$Locations$Jobtriggers { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -7040,57 +7315,57 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ create( - params: Params$Resource$Organizations$Locations$Storedinfotypes$Create, + params: Params$Resource$Organizations$Locations$Jobtriggers$Create, options: StreamMethodOptions ): GaxiosPromise; create( - params?: Params$Resource$Organizations$Locations$Storedinfotypes$Create, + params?: Params$Resource$Organizations$Locations$Jobtriggers$Create, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; create( - params: Params$Resource$Organizations$Locations$Storedinfotypes$Create, + params: Params$Resource$Organizations$Locations$Jobtriggers$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; create( - params: Params$Resource$Organizations$Locations$Storedinfotypes$Create, + params: Params$Resource$Organizations$Locations$Jobtriggers$Create, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; create( - params: Params$Resource$Organizations$Locations$Storedinfotypes$Create, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Locations$Jobtriggers$Create, + callback: BodyResponseCallback ): void; create( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; create( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Storedinfotypes$Create - | BodyResponseCallback + | Params$Resource$Organizations$Locations$Jobtriggers$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Storedinfotypes$Create; + {}) as Params$Resource$Organizations$Locations$Jobtriggers$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Organizations$Locations$Storedinfotypes$Create; + {} as Params$Resource$Organizations$Locations$Jobtriggers$Create; options = {}; } @@ -7103,7 +7378,7 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace( + url: (rootUrl + '/v2/{+parent}/jobTriggers').replace( /([^:]\/)\/+/g, '$1' ), @@ -7117,19 +7392,19 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -7137,31 +7412,31 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ delete( - params: Params$Resource$Organizations$Locations$Storedinfotypes$Delete, + params: Params$Resource$Organizations$Locations$Jobtriggers$Delete, options: StreamMethodOptions ): GaxiosPromise; delete( - params?: Params$Resource$Organizations$Locations$Storedinfotypes$Delete, + params?: Params$Resource$Organizations$Locations$Jobtriggers$Delete, options?: MethodOptions ): GaxiosPromise; delete( - params: Params$Resource$Organizations$Locations$Storedinfotypes$Delete, + params: Params$Resource$Organizations$Locations$Jobtriggers$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Organizations$Locations$Storedinfotypes$Delete, + params: Params$Resource$Organizations$Locations$Jobtriggers$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Organizations$Locations$Storedinfotypes$Delete, + params: Params$Resource$Organizations$Locations$Jobtriggers$Delete, callback: BodyResponseCallback ): void; delete(callback: BodyResponseCallback): void; delete( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Storedinfotypes$Delete + | Params$Resource$Organizations$Locations$Jobtriggers$Delete | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -7177,13 +7452,13 @@ export namespace dlp_v2 { | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Storedinfotypes$Delete; + {}) as Params$Resource$Organizations$Locations$Jobtriggers$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Organizations$Locations$Storedinfotypes$Delete; + {} as Params$Resource$Organizations$Locations$Jobtriggers$Delete; options = {}; } @@ -7217,7 +7492,7 @@ export namespace dlp_v2 { } /** - * Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -7225,57 +7500,56 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ get( - params: Params$Resource$Organizations$Locations$Storedinfotypes$Get, + params: Params$Resource$Organizations$Locations$Jobtriggers$Get, options: StreamMethodOptions ): GaxiosPromise; get( - params?: Params$Resource$Organizations$Locations$Storedinfotypes$Get, + params?: Params$Resource$Organizations$Locations$Jobtriggers$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Organizations$Locations$Storedinfotypes$Get, + params: Params$Resource$Organizations$Locations$Jobtriggers$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Organizations$Locations$Storedinfotypes$Get, + params: Params$Resource$Organizations$Locations$Jobtriggers$Get, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Organizations$Locations$Storedinfotypes$Get, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Locations$Jobtriggers$Get, + callback: BodyResponseCallback ): void; get( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; get( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Storedinfotypes$Get - | BodyResponseCallback + | Params$Resource$Organizations$Locations$Jobtriggers$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Storedinfotypes$Get; + {}) as Params$Resource$Organizations$Locations$Jobtriggers$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {} as Params$Resource$Organizations$Locations$Storedinfotypes$Get; + params = {} as Params$Resource$Organizations$Locations$Jobtriggers$Get; options = {}; } @@ -7299,19 +7573,19 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -7319,57 +7593,56 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ list( - params: Params$Resource$Organizations$Locations$Storedinfotypes$List, + params: Params$Resource$Organizations$Locations$Jobtriggers$List, options: StreamMethodOptions ): GaxiosPromise; list( - params?: Params$Resource$Organizations$Locations$Storedinfotypes$List, + params?: Params$Resource$Organizations$Locations$Jobtriggers$List, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; list( - params: Params$Resource$Organizations$Locations$Storedinfotypes$List, + params: Params$Resource$Organizations$Locations$Jobtriggers$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Organizations$Locations$Storedinfotypes$List, + params: Params$Resource$Organizations$Locations$Jobtriggers$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Organizations$Locations$Storedinfotypes$List, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Locations$Jobtriggers$List, + callback: BodyResponseCallback ): void; list( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; list( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Storedinfotypes$List - | BodyResponseCallback + | Params$Resource$Organizations$Locations$Jobtriggers$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Storedinfotypes$List; + {}) as Params$Resource$Organizations$Locations$Jobtriggers$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {} as Params$Resource$Organizations$Locations$Storedinfotypes$List; + params = {} as Params$Resource$Organizations$Locations$Jobtriggers$List; options = {}; } @@ -7382,7 +7655,7 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace( + url: (rootUrl + '/v2/{+parent}/jobTriggers').replace( /([^:]\/)\/+/g, '$1' ), @@ -7396,19 +7669,19 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -7416,57 +7689,57 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ patch( - params: Params$Resource$Organizations$Locations$Storedinfotypes$Patch, + params: Params$Resource$Organizations$Locations$Jobtriggers$Patch, options: StreamMethodOptions ): GaxiosPromise; patch( - params?: Params$Resource$Organizations$Locations$Storedinfotypes$Patch, + params?: Params$Resource$Organizations$Locations$Jobtriggers$Patch, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; patch( - params: Params$Resource$Organizations$Locations$Storedinfotypes$Patch, + params: Params$Resource$Organizations$Locations$Jobtriggers$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; patch( - params: Params$Resource$Organizations$Locations$Storedinfotypes$Patch, + params: Params$Resource$Organizations$Locations$Jobtriggers$Patch, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; patch( - params: Params$Resource$Organizations$Locations$Storedinfotypes$Patch, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Locations$Jobtriggers$Patch, + callback: BodyResponseCallback ): void; patch( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; patch( paramsOrCallback?: - | Params$Resource$Organizations$Locations$Storedinfotypes$Patch - | BodyResponseCallback + | Params$Resource$Organizations$Locations$Jobtriggers$Patch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Locations$Storedinfotypes$Patch; + {}) as Params$Resource$Organizations$Locations$Jobtriggers$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Organizations$Locations$Storedinfotypes$Patch; + {} as Params$Resource$Organizations$Locations$Jobtriggers$Patch; options = {}; } @@ -7490,81 +7763,89 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } } - export interface Params$Resource$Organizations$Locations$Storedinfotypes$Create + export interface Params$Resource$Organizations$Locations$Jobtriggers$Create extends StandardParameters { /** - * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 */ parent?: string; /** * Request body metadata */ - requestBody?: Schema$GooglePrivacyDlpV2CreateStoredInfoTypeRequest; + requestBody?: Schema$GooglePrivacyDlpV2CreateJobTriggerRequest; } - export interface Params$Resource$Organizations$Locations$Storedinfotypes$Delete + export interface Params$Resource$Organizations$Locations$Jobtriggers$Delete extends StandardParameters { /** - * Required. Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */ name?: string; } - export interface Params$Resource$Organizations$Locations$Storedinfotypes$Get + export interface Params$Resource$Organizations$Locations$Jobtriggers$Get extends StandardParameters { /** - * Required. Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */ name?: string; } - export interface Params$Resource$Organizations$Locations$Storedinfotypes$List + export interface Params$Resource$Organizations$Locations$Jobtriggers$List extends StandardParameters { + /** + * Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field\} {operator\} {value\}`. * Supported fields/values for inspect triggers: - `status` - HEALTHY|PAUSED|CANCELLED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by quotation marks. Nanoseconds are ignored. - 'error_count' - Number of errors that have occurred while running. * The operator must be `=` or `!=` for status and inspected_storage. Examples: * inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) * last_run_time \> \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters. + */ + filter?: string; /** * Deprecated. This field has no effect. */ locationId?: string; /** - * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name. + * Comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the JobTrigger was created. - `update_time`: corresponds to the time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to the JobTrigger's name. - `display_name`: corresponds to the JobTrigger's display name. - `status`: corresponds to JobTrigger's status. */ orderBy?: string; /** - * Size of the page, can be limited by the server. If zero server returns a page of max size 100. + * Size of the page, can be limited by a server. */ pageSize?: number; /** - * Page token to continue retrieval. Comes from previous call to `ListStoredInfoTypes`. + * Page token to continue retrieval. Comes from previous call to ListJobTriggers. `order_by` field must not change for subsequent calls. */ pageToken?: string; /** - * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 */ parent?: string; + /** + * The type of jobs. Will use `DlpJobType.INSPECT` if not set. + */ + type?: string; } - export interface Params$Resource$Organizations$Locations$Storedinfotypes$Patch + export interface Params$Resource$Organizations$Locations$Jobtriggers$Patch extends StandardParameters { /** - * Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */ name?: string; /** * Request body metadata */ - requestBody?: Schema$GooglePrivacyDlpV2UpdateStoredInfoTypeRequest; + requestBody?: Schema$GooglePrivacyDlpV2UpdateJobTriggerRequest; } - export class Resource$Organizations$Storedinfotypes { + export class Resource$Organizations$Locations$Storedinfotypes { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; @@ -7579,27 +7860,27 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ create( - params: Params$Resource$Organizations$Storedinfotypes$Create, + params: Params$Resource$Organizations$Locations$Storedinfotypes$Create, options: StreamMethodOptions ): GaxiosPromise; create( - params?: Params$Resource$Organizations$Storedinfotypes$Create, + params?: Params$Resource$Organizations$Locations$Storedinfotypes$Create, options?: MethodOptions ): GaxiosPromise; create( - params: Params$Resource$Organizations$Storedinfotypes$Create, + params: Params$Resource$Organizations$Locations$Storedinfotypes$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; create( - params: Params$Resource$Organizations$Storedinfotypes$Create, + params: Params$Resource$Organizations$Locations$Storedinfotypes$Create, options: | MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; create( - params: Params$Resource$Organizations$Storedinfotypes$Create, + params: Params$Resource$Organizations$Locations$Storedinfotypes$Create, callback: BodyResponseCallback ): void; create( @@ -7607,7 +7888,7 @@ export namespace dlp_v2 { ): void; create( paramsOrCallback?: - | Params$Resource$Organizations$Storedinfotypes$Create + | Params$Resource$Organizations$Locations$Storedinfotypes$Create | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -7623,12 +7904,13 @@ export namespace dlp_v2 { | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Storedinfotypes$Create; + {}) as Params$Resource$Organizations$Locations$Storedinfotypes$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Storedinfotypes$Create; + params = + {} as Params$Resource$Organizations$Locations$Storedinfotypes$Create; options = {}; } @@ -7675,31 +7957,31 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ delete( - params: Params$Resource$Organizations$Storedinfotypes$Delete, + params: Params$Resource$Organizations$Locations$Storedinfotypes$Delete, options: StreamMethodOptions ): GaxiosPromise; delete( - params?: Params$Resource$Organizations$Storedinfotypes$Delete, + params?: Params$Resource$Organizations$Locations$Storedinfotypes$Delete, options?: MethodOptions ): GaxiosPromise; delete( - params: Params$Resource$Organizations$Storedinfotypes$Delete, + params: Params$Resource$Organizations$Locations$Storedinfotypes$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Organizations$Storedinfotypes$Delete, + params: Params$Resource$Organizations$Locations$Storedinfotypes$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Organizations$Storedinfotypes$Delete, + params: Params$Resource$Organizations$Locations$Storedinfotypes$Delete, callback: BodyResponseCallback ): void; delete(callback: BodyResponseCallback): void; delete( paramsOrCallback?: - | Params$Resource$Organizations$Storedinfotypes$Delete + | Params$Resource$Organizations$Locations$Storedinfotypes$Delete | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -7715,12 +7997,13 @@ export namespace dlp_v2 { | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Storedinfotypes$Delete; + {}) as Params$Resource$Organizations$Locations$Storedinfotypes$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Storedinfotypes$Delete; + params = + {} as Params$Resource$Organizations$Locations$Storedinfotypes$Delete; options = {}; } @@ -7762,27 +8045,27 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ get( - params: Params$Resource$Organizations$Storedinfotypes$Get, + params: Params$Resource$Organizations$Locations$Storedinfotypes$Get, options: StreamMethodOptions ): GaxiosPromise; get( - params?: Params$Resource$Organizations$Storedinfotypes$Get, + params?: Params$Resource$Organizations$Locations$Storedinfotypes$Get, options?: MethodOptions ): GaxiosPromise; get( - params: Params$Resource$Organizations$Storedinfotypes$Get, + params: Params$Resource$Organizations$Locations$Storedinfotypes$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Organizations$Storedinfotypes$Get, + params: Params$Resource$Organizations$Locations$Storedinfotypes$Get, options: | MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Organizations$Storedinfotypes$Get, + params: Params$Resource$Organizations$Locations$Storedinfotypes$Get, callback: BodyResponseCallback ): void; get( @@ -7790,7 +8073,7 @@ export namespace dlp_v2 { ): void; get( paramsOrCallback?: - | Params$Resource$Organizations$Storedinfotypes$Get + | Params$Resource$Organizations$Locations$Storedinfotypes$Get | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -7806,12 +8089,13 @@ export namespace dlp_v2 { | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Storedinfotypes$Get; + {}) as Params$Resource$Organizations$Locations$Storedinfotypes$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Storedinfotypes$Get; + params = + {} as Params$Resource$Organizations$Locations$Storedinfotypes$Get; options = {}; } @@ -7855,27 +8139,27 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ list( - params: Params$Resource$Organizations$Storedinfotypes$List, + params: Params$Resource$Organizations$Locations$Storedinfotypes$List, options: StreamMethodOptions ): GaxiosPromise; list( - params?: Params$Resource$Organizations$Storedinfotypes$List, + params?: Params$Resource$Organizations$Locations$Storedinfotypes$List, options?: MethodOptions ): GaxiosPromise; list( - params: Params$Resource$Organizations$Storedinfotypes$List, + params: Params$Resource$Organizations$Locations$Storedinfotypes$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Organizations$Storedinfotypes$List, + params: Params$Resource$Organizations$Locations$Storedinfotypes$List, options: | MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Organizations$Storedinfotypes$List, + params: Params$Resource$Organizations$Locations$Storedinfotypes$List, callback: BodyResponseCallback ): void; list( @@ -7883,7 +8167,7 @@ export namespace dlp_v2 { ): void; list( paramsOrCallback?: - | Params$Resource$Organizations$Storedinfotypes$List + | Params$Resource$Organizations$Locations$Storedinfotypes$List | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -7899,12 +8183,13 @@ export namespace dlp_v2 { | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Storedinfotypes$List; + {}) as Params$Resource$Organizations$Locations$Storedinfotypes$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Storedinfotypes$List; + params = + {} as Params$Resource$Organizations$Locations$Storedinfotypes$List; options = {}; } @@ -7951,27 +8236,27 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ patch( - params: Params$Resource$Organizations$Storedinfotypes$Patch, + params: Params$Resource$Organizations$Locations$Storedinfotypes$Patch, options: StreamMethodOptions ): GaxiosPromise; patch( - params?: Params$Resource$Organizations$Storedinfotypes$Patch, + params?: Params$Resource$Organizations$Locations$Storedinfotypes$Patch, options?: MethodOptions ): GaxiosPromise; patch( - params: Params$Resource$Organizations$Storedinfotypes$Patch, + params: Params$Resource$Organizations$Locations$Storedinfotypes$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; patch( - params: Params$Resource$Organizations$Storedinfotypes$Patch, + params: Params$Resource$Organizations$Locations$Storedinfotypes$Patch, options: | MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; patch( - params: Params$Resource$Organizations$Storedinfotypes$Patch, + params: Params$Resource$Organizations$Locations$Storedinfotypes$Patch, callback: BodyResponseCallback ): void; patch( @@ -7979,7 +8264,7 @@ export namespace dlp_v2 { ): void; patch( paramsOrCallback?: - | Params$Resource$Organizations$Storedinfotypes$Patch + | Params$Resource$Organizations$Locations$Storedinfotypes$Patch | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -7995,12 +8280,13 @@ export namespace dlp_v2 { | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Storedinfotypes$Patch; + {}) as Params$Resource$Organizations$Locations$Storedinfotypes$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Storedinfotypes$Patch; + params = + {} as Params$Resource$Organizations$Locations$Storedinfotypes$Patch; options = {}; } @@ -8036,7 +8322,7 @@ export namespace dlp_v2 { } } - export interface Params$Resource$Organizations$Storedinfotypes$Create + export interface Params$Resource$Organizations$Locations$Storedinfotypes$Create extends StandardParameters { /** * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 @@ -8048,21 +8334,21 @@ export namespace dlp_v2 { */ requestBody?: Schema$GooglePrivacyDlpV2CreateStoredInfoTypeRequest; } - export interface Params$Resource$Organizations$Storedinfotypes$Delete + export interface Params$Resource$Organizations$Locations$Storedinfotypes$Delete extends StandardParameters { /** * Required. Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. */ name?: string; } - export interface Params$Resource$Organizations$Storedinfotypes$Get + export interface Params$Resource$Organizations$Locations$Storedinfotypes$Get extends StandardParameters { /** * Required. Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. */ name?: string; } - export interface Params$Resource$Organizations$Storedinfotypes$List + export interface Params$Resource$Organizations$Locations$Storedinfotypes$List extends StandardParameters { /** * Deprecated. This field has no effect. @@ -8085,7 +8371,7 @@ export namespace dlp_v2 { */ parent?: string; } - export interface Params$Resource$Organizations$Storedinfotypes$Patch + export interface Params$Resource$Organizations$Locations$Storedinfotypes$Patch extends StandardParameters { /** * Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. @@ -8098,100 +8384,71 @@ export namespace dlp_v2 { requestBody?: Schema$GooglePrivacyDlpV2UpdateStoredInfoTypeRequest; } - export class Resource$Projects { - context: APIRequestContext; - content: Resource$Projects$Content; - deidentifyTemplates: Resource$Projects$Deidentifytemplates; - dlpJobs: Resource$Projects$Dlpjobs; - image: Resource$Projects$Image; - inspectTemplates: Resource$Projects$Inspecttemplates; - jobTriggers: Resource$Projects$Jobtriggers; - locations: Resource$Projects$Locations; - storedInfoTypes: Resource$Projects$Storedinfotypes; - constructor(context: APIRequestContext) { - this.context = context; - this.content = new Resource$Projects$Content(this.context); - this.deidentifyTemplates = new Resource$Projects$Deidentifytemplates( - this.context - ); - this.dlpJobs = new Resource$Projects$Dlpjobs(this.context); - this.image = new Resource$Projects$Image(this.context); - this.inspectTemplates = new Resource$Projects$Inspecttemplates( - this.context - ); - this.jobTriggers = new Resource$Projects$Jobtriggers(this.context); - this.locations = new Resource$Projects$Locations(this.context); - this.storedInfoTypes = new Resource$Projects$Storedinfotypes( - this.context - ); - } - } - - export class Resource$Projects$Content { + export class Resource$Organizations$Storedinfotypes { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. + * Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. * * @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. */ - deidentify( - params: Params$Resource$Projects$Content$Deidentify, + create( + params: Params$Resource$Organizations$Storedinfotypes$Create, options: StreamMethodOptions ): GaxiosPromise; - deidentify( - params?: Params$Resource$Projects$Content$Deidentify, + create( + params?: Params$Resource$Organizations$Storedinfotypes$Create, options?: MethodOptions - ): GaxiosPromise; - deidentify( - params: Params$Resource$Projects$Content$Deidentify, + ): GaxiosPromise; + create( + params: Params$Resource$Organizations$Storedinfotypes$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - deidentify( - params: Params$Resource$Projects$Content$Deidentify, + create( + params: Params$Resource$Organizations$Storedinfotypes$Create, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - deidentify( - params: Params$Resource$Projects$Content$Deidentify, - callback: BodyResponseCallback + create( + params: Params$Resource$Organizations$Storedinfotypes$Create, + callback: BodyResponseCallback ): void; - deidentify( - callback: BodyResponseCallback + create( + callback: BodyResponseCallback ): void; - deidentify( + create( paramsOrCallback?: - | Params$Resource$Projects$Content$Deidentify - | BodyResponseCallback + | Params$Resource$Organizations$Storedinfotypes$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Content$Deidentify; + {}) as Params$Resource$Organizations$Storedinfotypes$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Content$Deidentify; + params = {} as Params$Resource$Organizations$Storedinfotypes$Create; options = {}; } @@ -8204,7 +8461,7 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/content:deidentify').replace( + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace( /([^:]\/)\/+/g, '$1' ), @@ -8218,76 +8475,72 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text, + * Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. * * @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. */ - inspect( - params: Params$Resource$Projects$Content$Inspect, + delete( + params: Params$Resource$Organizations$Storedinfotypes$Delete, options: StreamMethodOptions ): GaxiosPromise; - inspect( - params?: Params$Resource$Projects$Content$Inspect, + delete( + params?: Params$Resource$Organizations$Storedinfotypes$Delete, options?: MethodOptions - ): GaxiosPromise; - inspect( - params: Params$Resource$Projects$Content$Inspect, + ): GaxiosPromise; + delete( + params: Params$Resource$Organizations$Storedinfotypes$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - inspect( - params: Params$Resource$Projects$Content$Inspect, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - inspect( - params: Params$Resource$Projects$Content$Inspect, - callback: BodyResponseCallback + delete( + params: Params$Resource$Organizations$Storedinfotypes$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - inspect( - callback: BodyResponseCallback + delete( + params: Params$Resource$Organizations$Storedinfotypes$Delete, + callback: BodyResponseCallback ): void; - inspect( + delete(callback: BodyResponseCallback): void; + delete( paramsOrCallback?: - | Params$Resource$Projects$Content$Inspect - | BodyResponseCallback + | Params$Resource$Organizations$Storedinfotypes$Delete + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Content$Inspect; + {}) as Params$Resource$Organizations$Storedinfotypes$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Content$Inspect; + params = {} as Params$Resource$Organizations$Storedinfotypes$Delete; options = {}; } @@ -8300,90 +8553,85 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/content:inspect').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', + url: (rootUrl + '/v2/{+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); } } /** - * Re-identifies content that has been de-identified. See https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to learn more. + * Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. * * @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. */ - reidentify( - params: Params$Resource$Projects$Content$Reidentify, + get( + params: Params$Resource$Organizations$Storedinfotypes$Get, options: StreamMethodOptions ): GaxiosPromise; - reidentify( - params?: Params$Resource$Projects$Content$Reidentify, + get( + params?: Params$Resource$Organizations$Storedinfotypes$Get, options?: MethodOptions - ): GaxiosPromise; - reidentify( - params: Params$Resource$Projects$Content$Reidentify, + ): GaxiosPromise; + get( + params: Params$Resource$Organizations$Storedinfotypes$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - reidentify( - params: Params$Resource$Projects$Content$Reidentify, + get( + params: Params$Resource$Organizations$Storedinfotypes$Get, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - reidentify( - params: Params$Resource$Projects$Content$Reidentify, - callback: BodyResponseCallback + get( + params: Params$Resource$Organizations$Storedinfotypes$Get, + callback: BodyResponseCallback ): void; - reidentify( - callback: BodyResponseCallback + get( + callback: BodyResponseCallback ): void; - reidentify( + get( paramsOrCallback?: - | Params$Resource$Projects$Content$Reidentify - | BodyResponseCallback + | Params$Resource$Organizations$Storedinfotypes$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Content$Reidentify; + {}) as Params$Resource$Organizations$Storedinfotypes$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Content$Reidentify; + params = {} as Params$Resource$Organizations$Storedinfotypes$Get; options = {}; } @@ -8396,134 +8644,87 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/content:reidentify').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', + url: (rootUrl + '/v2/{+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( + return createAPIRequest( parameters ); } } - } - - export interface Params$Resource$Projects$Content$Deidentify - extends StandardParameters { - /** - * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 - */ - parent?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GooglePrivacyDlpV2DeidentifyContentRequest; - } - export interface Params$Resource$Projects$Content$Inspect - extends StandardParameters { - /** - * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 - */ - parent?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GooglePrivacyDlpV2InspectContentRequest; - } - export interface Params$Resource$Projects$Content$Reidentify - extends StandardParameters { - /** - * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 - */ - parent?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GooglePrivacyDlpV2ReidentifyContentRequest; - } - - export class Resource$Projects$Deidentifytemplates { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. * * @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$Deidentifytemplates$Create, + list( + params: Params$Resource$Organizations$Storedinfotypes$List, options: StreamMethodOptions ): GaxiosPromise; - create( - params?: Params$Resource$Projects$Deidentifytemplates$Create, + list( + params?: Params$Resource$Organizations$Storedinfotypes$List, options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Projects$Deidentifytemplates$Create, + ): GaxiosPromise; + list( + params: Params$Resource$Organizations$Storedinfotypes$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - create( - params: Params$Resource$Projects$Deidentifytemplates$Create, + list( + params: Params$Resource$Organizations$Storedinfotypes$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - create( - params: Params$Resource$Projects$Deidentifytemplates$Create, - callback: BodyResponseCallback + list( + params: Params$Resource$Organizations$Storedinfotypes$List, + callback: BodyResponseCallback ): void; - create( - callback: BodyResponseCallback + list( + callback: BodyResponseCallback ): void; - create( + list( paramsOrCallback?: - | Params$Resource$Projects$Deidentifytemplates$Create - | BodyResponseCallback + | Params$Resource$Organizations$Storedinfotypes$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Deidentifytemplates$Create; + {}) as Params$Resource$Organizations$Storedinfotypes$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Deidentifytemplates$Create; + params = {} as Params$Resource$Organizations$Storedinfotypes$List; options = {}; } @@ -8536,11 +8737,11 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace( + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace( /([^:]\/)\/+/g, '$1' ), - method: 'POST', + method: 'GET', }, options ), @@ -8550,72 +8751,76 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. * * @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$Deidentifytemplates$Delete, + patch( + params: Params$Resource$Organizations$Storedinfotypes$Patch, options: StreamMethodOptions ): GaxiosPromise; - delete( - params?: Params$Resource$Projects$Deidentifytemplates$Delete, + patch( + params?: Params$Resource$Organizations$Storedinfotypes$Patch, options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Projects$Deidentifytemplates$Delete, + ): GaxiosPromise; + patch( + params: Params$Resource$Organizations$Storedinfotypes$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Projects$Deidentifytemplates$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + patch( + params: Params$Resource$Organizations$Storedinfotypes$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Projects$Deidentifytemplates$Delete, - callback: BodyResponseCallback + patch( + params: Params$Resource$Organizations$Storedinfotypes$Patch, + callback: BodyResponseCallback ): void; - delete(callback: BodyResponseCallback): void; - delete( + patch( + callback: BodyResponseCallback + ): void; + patch( paramsOrCallback?: - | Params$Resource$Projects$Deidentifytemplates$Delete - | BodyResponseCallback + | Params$Resource$Organizations$Storedinfotypes$Patch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Deidentifytemplates$Delete; + {}) as Params$Resource$Organizations$Storedinfotypes$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Deidentifytemplates$Delete; + params = {} as Params$Resource$Organizations$Storedinfotypes$Patch; options = {}; } @@ -8629,7 +8834,7 @@ export namespace dlp_v2 { options: Object.assign( { url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'PATCH', }, options ), @@ -8639,74 +8844,174 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } + } - /** - * Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + export interface Params$Resource$Organizations$Storedinfotypes$Create + extends StandardParameters { + /** + * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2CreateStoredInfoTypeRequest; + } + export interface Params$Resource$Organizations$Storedinfotypes$Delete + extends StandardParameters { + /** + * Required. Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + */ + name?: string; + } + export interface Params$Resource$Organizations$Storedinfotypes$Get + extends StandardParameters { + /** + * Required. Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + */ + name?: string; + } + export interface Params$Resource$Organizations$Storedinfotypes$List + extends StandardParameters { + /** + * Deprecated. This field has no effect. + */ + locationId?: string; + /** + * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to the time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name. + */ + orderBy?: string; + /** + * Size of the page, can be limited by the server. If zero server returns a page of max size 100. + */ + pageSize?: number; + /** + * Page token to continue retrieval. Comes from previous call to `ListStoredInfoTypes`. + */ + pageToken?: string; + /** + * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + */ + parent?: string; + } + export interface Params$Resource$Organizations$Storedinfotypes$Patch + extends StandardParameters { + /** + * Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2UpdateStoredInfoTypeRequest; + } + + export class Resource$Projects { + context: APIRequestContext; + content: Resource$Projects$Content; + deidentifyTemplates: Resource$Projects$Deidentifytemplates; + dlpJobs: Resource$Projects$Dlpjobs; + image: Resource$Projects$Image; + inspectTemplates: Resource$Projects$Inspecttemplates; + jobTriggers: Resource$Projects$Jobtriggers; + locations: Resource$Projects$Locations; + storedInfoTypes: Resource$Projects$Storedinfotypes; + constructor(context: APIRequestContext) { + this.context = context; + this.content = new Resource$Projects$Content(this.context); + this.deidentifyTemplates = new Resource$Projects$Deidentifytemplates( + this.context + ); + this.dlpJobs = new Resource$Projects$Dlpjobs(this.context); + this.image = new Resource$Projects$Image(this.context); + this.inspectTemplates = new Resource$Projects$Inspecttemplates( + this.context + ); + this.jobTriggers = new Resource$Projects$Jobtriggers(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.storedInfoTypes = new Resource$Projects$Storedinfotypes( + this.context + ); + } + } + + export class Resource$Projects$Content { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. * * @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$Deidentifytemplates$Get, + deidentify( + params: Params$Resource$Projects$Content$Deidentify, options: StreamMethodOptions ): GaxiosPromise; - get( - params?: Params$Resource$Projects$Deidentifytemplates$Get, + deidentify( + params?: Params$Resource$Projects$Content$Deidentify, options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Projects$Deidentifytemplates$Get, + ): GaxiosPromise; + deidentify( + params: Params$Resource$Projects$Content$Deidentify, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Projects$Deidentifytemplates$Get, + deidentify( + params: Params$Resource$Projects$Content$Deidentify, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Projects$Deidentifytemplates$Get, - callback: BodyResponseCallback + deidentify( + params: Params$Resource$Projects$Content$Deidentify, + callback: BodyResponseCallback ): void; - get( - callback: BodyResponseCallback + deidentify( + callback: BodyResponseCallback ): void; - get( + deidentify( paramsOrCallback?: - | Params$Resource$Projects$Deidentifytemplates$Get - | BodyResponseCallback + | Params$Resource$Projects$Content$Deidentify + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Deidentifytemplates$Get; + {}) as Params$Resource$Projects$Content$Deidentify; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Deidentifytemplates$Get; + params = {} as Params$Resource$Projects$Content$Deidentify; options = {}; } @@ -8719,87 +9024,90 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/content:deidentify').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( + return createAPIRequest( parameters ); } } /** - * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text, * * @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$Deidentifytemplates$List, + inspect( + params: Params$Resource$Projects$Content$Inspect, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Projects$Deidentifytemplates$List, + inspect( + params?: Params$Resource$Projects$Content$Inspect, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Projects$Deidentifytemplates$List, + ): GaxiosPromise; + inspect( + params: Params$Resource$Projects$Content$Inspect, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Projects$Deidentifytemplates$List, + inspect( + params: Params$Resource$Projects$Content$Inspect, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Projects$Deidentifytemplates$List, - callback: BodyResponseCallback + inspect( + params: Params$Resource$Projects$Content$Inspect, + callback: BodyResponseCallback ): void; - list( - callback: BodyResponseCallback + inspect( + callback: BodyResponseCallback ): void; - list( + inspect( paramsOrCallback?: - | Params$Resource$Projects$Deidentifytemplates$List - | BodyResponseCallback + | Params$Resource$Projects$Content$Inspect + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Deidentifytemplates$List; + {}) as Params$Resource$Projects$Content$Inspect; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Deidentifytemplates$List; + params = {} as Params$Resource$Projects$Content$Inspect; options = {}; } @@ -8812,11 +9120,11 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace( + url: (rootUrl + '/v2/{+parent}/content:inspect').replace( /([^:]\/)\/+/g, '$1' ), - method: 'GET', + method: 'POST', }, options ), @@ -8826,76 +9134,76 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * Re-identifies content that has been de-identified. See https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to learn more. * * @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$Deidentifytemplates$Patch, + reidentify( + params: Params$Resource$Projects$Content$Reidentify, options: StreamMethodOptions ): GaxiosPromise; - patch( - params?: Params$Resource$Projects$Deidentifytemplates$Patch, + reidentify( + params?: Params$Resource$Projects$Content$Reidentify, options?: MethodOptions - ): GaxiosPromise; - patch( - params: Params$Resource$Projects$Deidentifytemplates$Patch, + ): GaxiosPromise; + reidentify( + params: Params$Resource$Projects$Content$Reidentify, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - patch( - params: Params$Resource$Projects$Deidentifytemplates$Patch, + reidentify( + params: Params$Resource$Projects$Content$Reidentify, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - patch( - params: Params$Resource$Projects$Deidentifytemplates$Patch, - callback: BodyResponseCallback + reidentify( + params: Params$Resource$Projects$Content$Reidentify, + callback: BodyResponseCallback ): void; - patch( - callback: BodyResponseCallback + reidentify( + callback: BodyResponseCallback ): void; - patch( + reidentify( paramsOrCallback?: - | Params$Resource$Projects$Deidentifytemplates$Patch - | BodyResponseCallback + | Params$Resource$Projects$Content$Reidentify + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Deidentifytemplates$Patch; + {}) as Params$Resource$Projects$Content$Reidentify; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Deidentifytemplates$Patch; + params = {} as Params$Resource$Projects$Content$Reidentify; options = {}; } @@ -8908,186 +9216,77 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+parent}/content:reidentify').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( + return createAPIRequest( parameters ); } } } - export interface Params$Resource$Projects$Deidentifytemplates$Create + export interface Params$Resource$Projects$Content$Deidentify extends StandardParameters { /** - * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 */ parent?: string; /** * Request body metadata */ - requestBody?: Schema$GooglePrivacyDlpV2CreateDeidentifyTemplateRequest; + requestBody?: Schema$GooglePrivacyDlpV2DeidentifyContentRequest; } - export interface Params$Resource$Projects$Deidentifytemplates$Delete + export interface Params$Resource$Projects$Content$Inspect extends StandardParameters { /** - * Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 */ - name?: string; - } - export interface Params$Resource$Projects$Deidentifytemplates$Get - extends StandardParameters { + parent?: string; + /** - * Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * Request body metadata */ - name?: string; + requestBody?: Schema$GooglePrivacyDlpV2InspectContentRequest; } - export interface Params$Resource$Projects$Deidentifytemplates$List + export interface Params$Resource$Projects$Content$Reidentify extends StandardParameters { /** - * Deprecated. This field has no effect. - */ - locationId?: string; - /** - * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name. - */ - orderBy?: string; - /** - * Size of the page, can be limited by the server. If zero server returns a page of max size 100. - */ - pageSize?: number; - /** - * Page token to continue retrieval. Comes from previous call to `ListDeidentifyTemplates`. - */ - pageToken?: string; - /** - * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 */ parent?: string; - } - export interface Params$Resource$Projects$Deidentifytemplates$Patch - extends StandardParameters { - /** - * Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. - */ - name?: string; /** * Request body metadata */ - requestBody?: Schema$GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest; + requestBody?: Schema$GooglePrivacyDlpV2ReidentifyContentRequest; } - export class Resource$Projects$Dlpjobs { + export class Resource$Projects$Deidentifytemplates { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - * - * @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. - */ - cancel( - params: Params$Resource$Projects$Dlpjobs$Cancel, - options: StreamMethodOptions - ): GaxiosPromise; - cancel( - params?: Params$Resource$Projects$Dlpjobs$Cancel, - options?: MethodOptions - ): GaxiosPromise; - cancel( - params: Params$Resource$Projects$Dlpjobs$Cancel, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - cancel( - params: Params$Resource$Projects$Dlpjobs$Cancel, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - cancel( - params: Params$Resource$Projects$Dlpjobs$Cancel, - callback: BodyResponseCallback - ): void; - cancel(callback: BodyResponseCallback): void; - cancel( - paramsOrCallback?: - | Params$Resource$Projects$Dlpjobs$Cancel - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Dlpjobs$Cancel; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Dlpjobs$Cancel; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2/{+name}:cancel').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); - } - } - - /** - * Creates a new job to inspect storage or calculate risk metrics. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. + * Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -9095,56 +9294,56 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ create( - params: Params$Resource$Projects$Dlpjobs$Create, + params: Params$Resource$Projects$Deidentifytemplates$Create, options: StreamMethodOptions ): GaxiosPromise; create( - params?: Params$Resource$Projects$Dlpjobs$Create, + params?: Params$Resource$Projects$Deidentifytemplates$Create, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; create( - params: Params$Resource$Projects$Dlpjobs$Create, + params: Params$Resource$Projects$Deidentifytemplates$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; create( - params: Params$Resource$Projects$Dlpjobs$Create, + params: Params$Resource$Projects$Deidentifytemplates$Create, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; create( - params: Params$Resource$Projects$Dlpjobs$Create, - callback: BodyResponseCallback + params: Params$Resource$Projects$Deidentifytemplates$Create, + callback: BodyResponseCallback ): void; create( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; create( paramsOrCallback?: - | Params$Resource$Projects$Dlpjobs$Create - | BodyResponseCallback + | Params$Resource$Projects$Deidentifytemplates$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Dlpjobs$Create; + {}) as Params$Resource$Projects$Deidentifytemplates$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Dlpjobs$Create; + params = {} as Params$Resource$Projects$Deidentifytemplates$Create; options = {}; } @@ -9157,7 +9356,7 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/dlpJobs').replace( + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace( /([^:]\/)\/+/g, '$1' ), @@ -9171,17 +9370,19 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } /** - * Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -9189,31 +9390,31 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ delete( - params: Params$Resource$Projects$Dlpjobs$Delete, + params: Params$Resource$Projects$Deidentifytemplates$Delete, options: StreamMethodOptions ): GaxiosPromise; delete( - params?: Params$Resource$Projects$Dlpjobs$Delete, + params?: Params$Resource$Projects$Deidentifytemplates$Delete, options?: MethodOptions ): GaxiosPromise; delete( - params: Params$Resource$Projects$Dlpjobs$Delete, + params: Params$Resource$Projects$Deidentifytemplates$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Projects$Dlpjobs$Delete, + params: Params$Resource$Projects$Deidentifytemplates$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Projects$Dlpjobs$Delete, + params: Params$Resource$Projects$Deidentifytemplates$Delete, callback: BodyResponseCallback ): void; delete(callback: BodyResponseCallback): void; delete( paramsOrCallback?: - | Params$Resource$Projects$Dlpjobs$Delete + | Params$Resource$Projects$Deidentifytemplates$Delete | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -9229,12 +9430,12 @@ export namespace dlp_v2 { | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Dlpjobs$Delete; + {}) as Params$Resource$Projects$Deidentifytemplates$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Dlpjobs$Delete; + params = {} as Params$Resource$Projects$Deidentifytemplates$Delete; options = {}; } @@ -9268,7 +9469,7 @@ export namespace dlp_v2 { } /** - * Gets the latest state of a long-running DlpJob. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -9276,54 +9477,56 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ get( - params: Params$Resource$Projects$Dlpjobs$Get, + params: Params$Resource$Projects$Deidentifytemplates$Get, options: StreamMethodOptions ): GaxiosPromise; get( - params?: Params$Resource$Projects$Dlpjobs$Get, + params?: Params$Resource$Projects$Deidentifytemplates$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Projects$Dlpjobs$Get, + params: Params$Resource$Projects$Deidentifytemplates$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Dlpjobs$Get, + params: Params$Resource$Projects$Deidentifytemplates$Get, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Dlpjobs$Get, - callback: BodyResponseCallback + params: Params$Resource$Projects$Deidentifytemplates$Get, + callback: BodyResponseCallback + ): void; + get( + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Projects$Dlpjobs$Get - | BodyResponseCallback + | Params$Resource$Projects$Deidentifytemplates$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Dlpjobs$Get; + {}) as Params$Resource$Projects$Deidentifytemplates$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Dlpjobs$Get; + params = {} as Params$Resource$Projects$Deidentifytemplates$Get; options = {}; } @@ -9347,17 +9550,19 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } /** - * Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -9365,56 +9570,56 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ list( - params: Params$Resource$Projects$Dlpjobs$List, + params: Params$Resource$Projects$Deidentifytemplates$List, options: StreamMethodOptions ): GaxiosPromise; list( - params?: Params$Resource$Projects$Dlpjobs$List, + params?: Params$Resource$Projects$Deidentifytemplates$List, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; list( - params: Params$Resource$Projects$Dlpjobs$List, + params: Params$Resource$Projects$Deidentifytemplates$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Projects$Dlpjobs$List, + params: Params$Resource$Projects$Deidentifytemplates$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Projects$Dlpjobs$List, - callback: BodyResponseCallback + params: Params$Resource$Projects$Deidentifytemplates$List, + callback: BodyResponseCallback ): void; list( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; list( paramsOrCallback?: - | Params$Resource$Projects$Dlpjobs$List - | BodyResponseCallback + | Params$Resource$Projects$Deidentifytemplates$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Dlpjobs$List; + {}) as Params$Resource$Projects$Deidentifytemplates$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Dlpjobs$List; + params = {} as Params$Resource$Projects$Deidentifytemplates$List; options = {}; } @@ -9427,7 +9632,7 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/dlpJobs').replace( + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace( /([^:]\/)\/+/g, '$1' ), @@ -9441,153 +9646,234 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } - } - export interface Params$Resource$Projects$Dlpjobs$Cancel - extends StandardParameters { /** - * Required. The name of the DlpJob resource to be cancelled. + * Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * + * @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; + patch( + params: Params$Resource$Projects$Deidentifytemplates$Patch, + options: StreamMethodOptions + ): GaxiosPromise; + patch( + params?: Params$Resource$Projects$Deidentifytemplates$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Projects$Deidentifytemplates$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Deidentifytemplates$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Deidentifytemplates$Patch, + callback: BodyResponseCallback + ): void; + patch( + callback: BodyResponseCallback + ): void; + patch( + paramsOrCallback?: + | Params$Resource$Projects$Deidentifytemplates$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Deidentifytemplates$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; - /** - * Request body metadata - */ - requestBody?: Schema$GooglePrivacyDlpV2CancelDlpJobRequest; + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Deidentifytemplates$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+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$Dlpjobs$Create + + export interface Params$Resource$Projects$Deidentifytemplates$Create extends StandardParameters { /** - * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 */ parent?: string; /** * Request body metadata */ - requestBody?: Schema$GooglePrivacyDlpV2CreateDlpJobRequest; + requestBody?: Schema$GooglePrivacyDlpV2CreateDeidentifyTemplateRequest; } - export interface Params$Resource$Projects$Dlpjobs$Delete + export interface Params$Resource$Projects$Deidentifytemplates$Delete extends StandardParameters { /** - * Required. The name of the DlpJob resource to be deleted. + * Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. */ name?: string; } - export interface Params$Resource$Projects$Dlpjobs$Get + export interface Params$Resource$Projects$Deidentifytemplates$Get extends StandardParameters { /** - * Required. The name of the DlpJob resource. + * Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. */ name?: string; } - export interface Params$Resource$Projects$Dlpjobs$List + export interface Params$Resource$Projects$Deidentifytemplates$List extends StandardParameters { - /** - * Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field\} {operator\} {value\}`. * Supported fields/values for inspect jobs: - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The name of the trigger that created the job. - 'end_time` - Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * Supported fields for risk analysis jobs: - `state` - RUNNING|CANCELED|FINISHED|FAILED - 'end_time` - Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * The operator must be `=` or `!=`. Examples: * inspected_storage = cloud_storage AND state = done * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = done OR state = canceled) * end_time \> \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters. - */ - filter?: string; /** * Deprecated. This field has no effect. */ locationId?: string; /** - * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to the time the job was created. - `end_time`: corresponds to the time the job ended. - `name`: corresponds to the job's name. - `state`: corresponds to `state` + * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name. */ orderBy?: string; /** - * The standard list page size. + * Size of the page, can be limited by the server. If zero server returns a page of max size 100. */ pageSize?: number; /** - * The standard list page token. + * Page token to continue retrieval. Comes from previous call to `ListDeidentifyTemplates`. */ pageToken?: string; /** - * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 */ parent?: string; + } + export interface Params$Resource$Projects$Deidentifytemplates$Patch + extends StandardParameters { /** - * The type of job. Defaults to `DlpJobType.INSPECT` + * Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. */ - type?: string; + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest; } - export class Resource$Projects$Image { + export class Resource$Projects$Dlpjobs { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. + * Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. * * @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. */ - redact( - params: Params$Resource$Projects$Image$Redact, + cancel( + params: Params$Resource$Projects$Dlpjobs$Cancel, options: StreamMethodOptions ): GaxiosPromise; - redact( - params?: Params$Resource$Projects$Image$Redact, + cancel( + params?: Params$Resource$Projects$Dlpjobs$Cancel, options?: MethodOptions - ): GaxiosPromise; - redact( - params: Params$Resource$Projects$Image$Redact, + ): GaxiosPromise; + cancel( + params: Params$Resource$Projects$Dlpjobs$Cancel, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - redact( - params: Params$Resource$Projects$Image$Redact, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - redact( - params: Params$Resource$Projects$Image$Redact, - callback: BodyResponseCallback + cancel( + params: Params$Resource$Projects$Dlpjobs$Cancel, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - redact( - callback: BodyResponseCallback + cancel( + params: Params$Resource$Projects$Dlpjobs$Cancel, + callback: BodyResponseCallback ): void; - redact( + cancel(callback: BodyResponseCallback): void; + cancel( paramsOrCallback?: - | Params$Resource$Projects$Image$Redact - | BodyResponseCallback + | Params$Resource$Projects$Dlpjobs$Cancel + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Image$Redact; + {}) as Params$Resource$Projects$Dlpjobs$Cancel; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Image$Redact; + params = {} as Params$Resource$Projects$Dlpjobs$Cancel; options = {}; } @@ -9600,53 +9886,28 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/image:redact').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), 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$Image$Redact - extends StandardParameters { - /** - * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 - */ - parent?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GooglePrivacyDlpV2RedactImageRequest; - } - - export class Resource$Projects$Inspecttemplates { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * Creates a new job to inspect storage or calculate risk metrics. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -9654,56 +9915,56 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ create( - params: Params$Resource$Projects$Inspecttemplates$Create, + params: Params$Resource$Projects$Dlpjobs$Create, options: StreamMethodOptions ): GaxiosPromise; create( - params?: Params$Resource$Projects$Inspecttemplates$Create, + params?: Params$Resource$Projects$Dlpjobs$Create, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; create( - params: Params$Resource$Projects$Inspecttemplates$Create, + params: Params$Resource$Projects$Dlpjobs$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; create( - params: Params$Resource$Projects$Inspecttemplates$Create, + params: Params$Resource$Projects$Dlpjobs$Create, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; create( - params: Params$Resource$Projects$Inspecttemplates$Create, - callback: BodyResponseCallback + params: Params$Resource$Projects$Dlpjobs$Create, + callback: BodyResponseCallback ): void; create( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; create( paramsOrCallback?: - | Params$Resource$Projects$Inspecttemplates$Create - | BodyResponseCallback + | Params$Resource$Projects$Dlpjobs$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Inspecttemplates$Create; + {}) as Params$Resource$Projects$Dlpjobs$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Inspecttemplates$Create; + params = {} as Params$Resource$Projects$Dlpjobs$Create; options = {}; } @@ -9716,7 +9977,7 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace( + url: (rootUrl + '/v2/{+parent}/dlpJobs').replace( /([^:]\/)\/+/g, '$1' ), @@ -9730,19 +9991,17 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } /** - * Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -9750,31 +10009,31 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ delete( - params: Params$Resource$Projects$Inspecttemplates$Delete, + params: Params$Resource$Projects$Dlpjobs$Delete, options: StreamMethodOptions ): GaxiosPromise; delete( - params?: Params$Resource$Projects$Inspecttemplates$Delete, + params?: Params$Resource$Projects$Dlpjobs$Delete, options?: MethodOptions ): GaxiosPromise; delete( - params: Params$Resource$Projects$Inspecttemplates$Delete, + params: Params$Resource$Projects$Dlpjobs$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Projects$Inspecttemplates$Delete, + params: Params$Resource$Projects$Dlpjobs$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Projects$Inspecttemplates$Delete, + params: Params$Resource$Projects$Dlpjobs$Delete, callback: BodyResponseCallback ): void; delete(callback: BodyResponseCallback): void; delete( paramsOrCallback?: - | Params$Resource$Projects$Inspecttemplates$Delete + | Params$Resource$Projects$Dlpjobs$Delete | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -9790,12 +10049,12 @@ export namespace dlp_v2 { | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Inspecttemplates$Delete; + {}) as Params$Resource$Projects$Dlpjobs$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Inspecttemplates$Delete; + params = {} as Params$Resource$Projects$Dlpjobs$Delete; options = {}; } @@ -9829,7 +10088,7 @@ export namespace dlp_v2 { } /** - * Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * Gets the latest state of a long-running DlpJob. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -9837,56 +10096,54 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ get( - params: Params$Resource$Projects$Inspecttemplates$Get, + params: Params$Resource$Projects$Dlpjobs$Get, options: StreamMethodOptions ): GaxiosPromise; get( - params?: Params$Resource$Projects$Inspecttemplates$Get, + params?: Params$Resource$Projects$Dlpjobs$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Projects$Inspecttemplates$Get, + params: Params$Resource$Projects$Dlpjobs$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Inspecttemplates$Get, + params: Params$Resource$Projects$Dlpjobs$Get, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Projects$Inspecttemplates$Get, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - callback: BodyResponseCallback + params: Params$Resource$Projects$Dlpjobs$Get, + callback: BodyResponseCallback ): void; + get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Projects$Inspecttemplates$Get - | BodyResponseCallback + | Params$Resource$Projects$Dlpjobs$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Inspecttemplates$Get; + {}) as Params$Resource$Projects$Dlpjobs$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Inspecttemplates$Get; + params = {} as Params$Resource$Projects$Dlpjobs$Get; options = {}; } @@ -9910,19 +10167,17 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } /** - * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -9930,56 +10185,56 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ list( - params: Params$Resource$Projects$Inspecttemplates$List, + params: Params$Resource$Projects$Dlpjobs$List, options: StreamMethodOptions ): GaxiosPromise; list( - params?: Params$Resource$Projects$Inspecttemplates$List, + params?: Params$Resource$Projects$Dlpjobs$List, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; list( - params: Params$Resource$Projects$Inspecttemplates$List, + params: Params$Resource$Projects$Dlpjobs$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Projects$Inspecttemplates$List, + params: Params$Resource$Projects$Dlpjobs$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Projects$Inspecttemplates$List, - callback: BodyResponseCallback + params: Params$Resource$Projects$Dlpjobs$List, + callback: BodyResponseCallback ): void; list( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; list( paramsOrCallback?: - | Params$Resource$Projects$Inspecttemplates$List - | BodyResponseCallback + | Params$Resource$Projects$Dlpjobs$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Inspecttemplates$List; + {}) as Params$Resource$Projects$Dlpjobs$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Inspecttemplates$List; + params = {} as Params$Resource$Projects$Dlpjobs$List; options = {}; } @@ -9992,7 +10247,7 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace( + url: (rootUrl + '/v2/{+parent}/dlpJobs').replace( /([^:]\/)\/+/g, '$1' ), @@ -10006,238 +10261,153 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } + } + export interface Params$Resource$Projects$Dlpjobs$Cancel + extends StandardParameters { /** - * Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. - * - * @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. + * Required. The name of the DlpJob resource to be cancelled. */ - patch( - params: Params$Resource$Projects$Inspecttemplates$Patch, - options: StreamMethodOptions - ): GaxiosPromise; - patch( - params?: Params$Resource$Projects$Inspecttemplates$Patch, - options?: MethodOptions - ): GaxiosPromise; - patch( - params: Params$Resource$Projects$Inspecttemplates$Patch, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - patch( - params: Params$Resource$Projects$Inspecttemplates$Patch, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - patch( - params: Params$Resource$Projects$Inspecttemplates$Patch, - callback: BodyResponseCallback - ): void; - patch( - callback: BodyResponseCallback - ): void; - patch( - paramsOrCallback?: - | Params$Resource$Projects$Inspecttemplates$Patch - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Inspecttemplates$Patch; - let options = (optionsOrCallback || {}) as MethodOptions; + name?: string; - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Inspecttemplates$Patch; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2/{+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$Inspecttemplates$Create - extends StandardParameters { - /** - * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 - */ - parent?: string; + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2CancelDlpJobRequest; + } + export interface Params$Resource$Projects$Dlpjobs$Create + extends StandardParameters { + /** + * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + */ + parent?: string; /** * Request body metadata */ - requestBody?: Schema$GooglePrivacyDlpV2CreateInspectTemplateRequest; + requestBody?: Schema$GooglePrivacyDlpV2CreateDlpJobRequest; } - export interface Params$Resource$Projects$Inspecttemplates$Delete + export interface Params$Resource$Projects$Dlpjobs$Delete extends StandardParameters { /** - * Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * Required. The name of the DlpJob resource to be deleted. */ name?: string; } - export interface Params$Resource$Projects$Inspecttemplates$Get + export interface Params$Resource$Projects$Dlpjobs$Get extends StandardParameters { /** - * Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * Required. The name of the DlpJob resource. */ name?: string; } - export interface Params$Resource$Projects$Inspecttemplates$List + export interface Params$Resource$Projects$Dlpjobs$List extends StandardParameters { + /** + * Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field\} {operator\} {value\}`. * Supported fields/values for inspect jobs: - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The name of the trigger that created the job. - 'end_time` - Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * Supported fields for risk analysis jobs: - `state` - RUNNING|CANCELED|FINISHED|FAILED - 'end_time` - Corresponds to the time the job finished. - 'start_time` - Corresponds to the time the job finished. * The operator must be `=` or `!=`. Examples: * inspected_storage = cloud_storage AND state = done * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = done OR state = canceled) * end_time \> \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters. + */ + filter?: string; /** * Deprecated. This field has no effect. */ locationId?: string; /** - * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name. + * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to the time the job was created. - `end_time`: corresponds to the time the job ended. - `name`: corresponds to the job's name. - `state`: corresponds to `state` */ orderBy?: string; /** - * Size of the page, can be limited by the server. If zero server returns a page of max size 100. + * The standard list page size. */ pageSize?: number; /** - * Page token to continue retrieval. Comes from previous call to `ListInspectTemplates`. + * The standard list page token. */ pageToken?: string; /** - * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 */ parent?: string; - } - export interface Params$Resource$Projects$Inspecttemplates$Patch - extends StandardParameters { /** - * Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. - */ - name?: string; - - /** - * Request body metadata + * The type of job. Defaults to `DlpJobType.INSPECT` */ - requestBody?: Schema$GooglePrivacyDlpV2UpdateInspectTemplateRequest; + type?: string; } - export class Resource$Projects$Jobtriggers { + export class Resource$Projects$Image { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * Activate a job trigger. Causes the immediate execute of a trigger instead of waiting on the trigger event to occur. + * Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. * * @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. */ - activate( - params: Params$Resource$Projects$Jobtriggers$Activate, + redact( + params: Params$Resource$Projects$Image$Redact, options: StreamMethodOptions ): GaxiosPromise; - activate( - params?: Params$Resource$Projects$Jobtriggers$Activate, + redact( + params?: Params$Resource$Projects$Image$Redact, options?: MethodOptions - ): GaxiosPromise; - activate( - params: Params$Resource$Projects$Jobtriggers$Activate, + ): GaxiosPromise; + redact( + params: Params$Resource$Projects$Image$Redact, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - activate( - params: Params$Resource$Projects$Jobtriggers$Activate, + redact( + params: Params$Resource$Projects$Image$Redact, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - activate( - params: Params$Resource$Projects$Jobtriggers$Activate, - callback: BodyResponseCallback + redact( + params: Params$Resource$Projects$Image$Redact, + callback: BodyResponseCallback ): void; - activate( - callback: BodyResponseCallback + redact( + callback: BodyResponseCallback ): void; - activate( + redact( paramsOrCallback?: - | Params$Resource$Projects$Jobtriggers$Activate - | BodyResponseCallback + | Params$Resource$Projects$Image$Redact + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Jobtriggers$Activate; + {}) as Params$Resource$Projects$Image$Redact; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Jobtriggers$Activate; + params = {} as Params$Resource$Projects$Image$Redact; options = {}; } @@ -10250,7 +10420,7 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+name}:activate').replace( + url: (rootUrl + '/v2/{+parent}/image:redact').replace( /([^:]\/)\/+/g, '$1' ), @@ -10259,22 +10429,44 @@ export namespace dlp_v2 { 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 + ); } } + } + export interface Params$Resource$Projects$Image$Redact + extends StandardParameters { /** - * Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2RedactImageRequest; + } + + export class Resource$Projects$Inspecttemplates { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -10282,56 +10474,56 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ create( - params: Params$Resource$Projects$Jobtriggers$Create, + params: Params$Resource$Projects$Inspecttemplates$Create, options: StreamMethodOptions ): GaxiosPromise; create( - params?: Params$Resource$Projects$Jobtriggers$Create, + params?: Params$Resource$Projects$Inspecttemplates$Create, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; create( - params: Params$Resource$Projects$Jobtriggers$Create, + params: Params$Resource$Projects$Inspecttemplates$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; create( - params: Params$Resource$Projects$Jobtriggers$Create, + params: Params$Resource$Projects$Inspecttemplates$Create, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; create( - params: Params$Resource$Projects$Jobtriggers$Create, - callback: BodyResponseCallback + params: Params$Resource$Projects$Inspecttemplates$Create, + callback: BodyResponseCallback ): void; create( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; create( paramsOrCallback?: - | Params$Resource$Projects$Jobtriggers$Create - | BodyResponseCallback + | Params$Resource$Projects$Inspecttemplates$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Jobtriggers$Create; + {}) as Params$Resource$Projects$Inspecttemplates$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Jobtriggers$Create; + params = {} as Params$Resource$Projects$Inspecttemplates$Create; options = {}; } @@ -10344,7 +10536,7 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/jobTriggers').replace( + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace( /([^:]\/)\/+/g, '$1' ), @@ -10358,19 +10550,19 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -10378,31 +10570,31 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ delete( - params: Params$Resource$Projects$Jobtriggers$Delete, + params: Params$Resource$Projects$Inspecttemplates$Delete, options: StreamMethodOptions ): GaxiosPromise; delete( - params?: Params$Resource$Projects$Jobtriggers$Delete, + params?: Params$Resource$Projects$Inspecttemplates$Delete, options?: MethodOptions ): GaxiosPromise; delete( - params: Params$Resource$Projects$Jobtriggers$Delete, + params: Params$Resource$Projects$Inspecttemplates$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Projects$Jobtriggers$Delete, + params: Params$Resource$Projects$Inspecttemplates$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Projects$Jobtriggers$Delete, + params: Params$Resource$Projects$Inspecttemplates$Delete, callback: BodyResponseCallback ): void; delete(callback: BodyResponseCallback): void; delete( paramsOrCallback?: - | Params$Resource$Projects$Jobtriggers$Delete + | Params$Resource$Projects$Inspecttemplates$Delete | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -10418,12 +10610,12 @@ export namespace dlp_v2 { | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Jobtriggers$Delete; + {}) as Params$Resource$Projects$Inspecttemplates$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Jobtriggers$Delete; + params = {} as Params$Resource$Projects$Inspecttemplates$Delete; options = {}; } @@ -10457,7 +10649,7 @@ export namespace dlp_v2 { } /** - * Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -10465,56 +10657,56 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ get( - params: Params$Resource$Projects$Jobtriggers$Get, + params: Params$Resource$Projects$Inspecttemplates$Get, options: StreamMethodOptions ): GaxiosPromise; get( - params?: Params$Resource$Projects$Jobtriggers$Get, + params?: Params$Resource$Projects$Inspecttemplates$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Projects$Jobtriggers$Get, + params: Params$Resource$Projects$Inspecttemplates$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Jobtriggers$Get, + params: Params$Resource$Projects$Inspecttemplates$Get, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Jobtriggers$Get, - callback: BodyResponseCallback + params: Params$Resource$Projects$Inspecttemplates$Get, + callback: BodyResponseCallback ): void; get( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; get( paramsOrCallback?: - | Params$Resource$Projects$Jobtriggers$Get - | BodyResponseCallback + | Params$Resource$Projects$Inspecttemplates$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Jobtriggers$Get; + {}) as Params$Resource$Projects$Inspecttemplates$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Jobtriggers$Get; + params = {} as Params$Resource$Projects$Inspecttemplates$Get; options = {}; } @@ -10538,19 +10730,19 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -10558,56 +10750,56 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ list( - params: Params$Resource$Projects$Jobtriggers$List, + params: Params$Resource$Projects$Inspecttemplates$List, options: StreamMethodOptions ): GaxiosPromise; list( - params?: Params$Resource$Projects$Jobtriggers$List, + params?: Params$Resource$Projects$Inspecttemplates$List, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; list( - params: Params$Resource$Projects$Jobtriggers$List, + params: Params$Resource$Projects$Inspecttemplates$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Projects$Jobtriggers$List, + params: Params$Resource$Projects$Inspecttemplates$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Projects$Jobtriggers$List, - callback: BodyResponseCallback + params: Params$Resource$Projects$Inspecttemplates$List, + callback: BodyResponseCallback ): void; list( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; list( paramsOrCallback?: - | Params$Resource$Projects$Jobtriggers$List - | BodyResponseCallback + | Params$Resource$Projects$Inspecttemplates$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Jobtriggers$List; + {}) as Params$Resource$Projects$Inspecttemplates$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Jobtriggers$List; + params = {} as Params$Resource$Projects$Inspecttemplates$List; options = {}; } @@ -10620,7 +10812,7 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/jobTriggers').replace( + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace( /([^:]\/)\/+/g, '$1' ), @@ -10634,19 +10826,19 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -10654,56 +10846,56 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ patch( - params: Params$Resource$Projects$Jobtriggers$Patch, + params: Params$Resource$Projects$Inspecttemplates$Patch, options: StreamMethodOptions ): GaxiosPromise; patch( - params?: Params$Resource$Projects$Jobtriggers$Patch, + params?: Params$Resource$Projects$Inspecttemplates$Patch, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; patch( - params: Params$Resource$Projects$Jobtriggers$Patch, + params: Params$Resource$Projects$Inspecttemplates$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; patch( - params: Params$Resource$Projects$Jobtriggers$Patch, + params: Params$Resource$Projects$Inspecttemplates$Patch, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; patch( - params: Params$Resource$Projects$Jobtriggers$Patch, - callback: BodyResponseCallback + params: Params$Resource$Projects$Inspecttemplates$Patch, + callback: BodyResponseCallback ): void; patch( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; patch( paramsOrCallback?: - | Params$Resource$Projects$Jobtriggers$Patch - | BodyResponseCallback + | Params$Resource$Projects$Inspecttemplates$Patch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Jobtriggers$Patch; + {}) as Params$Resource$Projects$Inspecttemplates$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Jobtriggers$Patch; + params = {} as Params$Resource$Projects$Inspecttemplates$Patch; options = {}; } @@ -10727,193 +10919,145 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } } - export interface Params$Resource$Projects$Jobtriggers$Activate - extends StandardParameters { - /** - * Required. Resource name of the trigger to activate, for example `projects/dlp-test-project/jobTriggers/53234423`. - */ - name?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GooglePrivacyDlpV2ActivateJobTriggerRequest; - } - export interface Params$Resource$Projects$Jobtriggers$Create + export interface Params$Resource$Projects$Inspecttemplates$Create extends StandardParameters { /** - * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 */ parent?: string; /** * Request body metadata */ - requestBody?: Schema$GooglePrivacyDlpV2CreateJobTriggerRequest; + requestBody?: Schema$GooglePrivacyDlpV2CreateInspectTemplateRequest; } - export interface Params$Resource$Projects$Jobtriggers$Delete + export interface Params$Resource$Projects$Inspecttemplates$Delete extends StandardParameters { /** - * Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + * Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. */ name?: string; } - export interface Params$Resource$Projects$Jobtriggers$Get + export interface Params$Resource$Projects$Inspecttemplates$Get extends StandardParameters { /** - * Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + * Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. */ name?: string; } - export interface Params$Resource$Projects$Jobtriggers$List + export interface Params$Resource$Projects$Inspecttemplates$List extends StandardParameters { - /** - * Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field\} {operator\} {value\}`. * Supported fields/values for inspect triggers: - `status` - HEALTHY|PAUSED|CANCELLED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by quotation marks. Nanoseconds are ignored. - 'error_count' - Number of errors that have occurred while running. * The operator must be `=` or `!=` for status and inspected_storage. Examples: * inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) * last_run_time \> \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters. - */ - filter?: string; /** * Deprecated. This field has no effect. */ locationId?: string; /** - * Comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the JobTrigger was created. - `update_time`: corresponds to the time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to the JobTrigger's name. - `display_name`: corresponds to the JobTrigger's display name. - `status`: corresponds to JobTrigger's status. + * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name. */ orderBy?: string; /** - * Size of the page, can be limited by a server. + * Size of the page, can be limited by the server. If zero server returns a page of max size 100. */ pageSize?: number; /** - * Page token to continue retrieval. Comes from previous call to ListJobTriggers. `order_by` field must not change for subsequent calls. + * Page token to continue retrieval. Comes from previous call to `ListInspectTemplates`. */ pageToken?: string; /** - * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 */ parent?: string; - /** - * The type of jobs. Will use `DlpJobType.INSPECT` if not set. - */ - type?: string; } - export interface Params$Resource$Projects$Jobtriggers$Patch + export interface Params$Resource$Projects$Inspecttemplates$Patch extends StandardParameters { /** - * Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + * Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. */ name?: string; /** * Request body metadata */ - requestBody?: Schema$GooglePrivacyDlpV2UpdateJobTriggerRequest; - } - - export class Resource$Projects$Locations { - context: APIRequestContext; - content: Resource$Projects$Locations$Content; - deidentifyTemplates: Resource$Projects$Locations$Deidentifytemplates; - dlpJobs: Resource$Projects$Locations$Dlpjobs; - image: Resource$Projects$Locations$Image; - inspectTemplates: Resource$Projects$Locations$Inspecttemplates; - jobTriggers: Resource$Projects$Locations$Jobtriggers; - storedInfoTypes: Resource$Projects$Locations$Storedinfotypes; - constructor(context: APIRequestContext) { - this.context = context; - this.content = new Resource$Projects$Locations$Content(this.context); - this.deidentifyTemplates = - new Resource$Projects$Locations$Deidentifytemplates(this.context); - this.dlpJobs = new Resource$Projects$Locations$Dlpjobs(this.context); - this.image = new Resource$Projects$Locations$Image(this.context); - this.inspectTemplates = new Resource$Projects$Locations$Inspecttemplates( - this.context - ); - this.jobTriggers = new Resource$Projects$Locations$Jobtriggers( - this.context - ); - this.storedInfoTypes = new Resource$Projects$Locations$Storedinfotypes( - this.context - ); - } + requestBody?: Schema$GooglePrivacyDlpV2UpdateInspectTemplateRequest; } - export class Resource$Projects$Locations$Content { + export class Resource$Projects$Jobtriggers { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. + * Activate a job trigger. Causes the immediate execute of a trigger instead of waiting on the trigger event to occur. * * @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. */ - deidentify( - params: Params$Resource$Projects$Locations$Content$Deidentify, + activate( + params: Params$Resource$Projects$Jobtriggers$Activate, options: StreamMethodOptions ): GaxiosPromise; - deidentify( - params?: Params$Resource$Projects$Locations$Content$Deidentify, + activate( + params?: Params$Resource$Projects$Jobtriggers$Activate, options?: MethodOptions - ): GaxiosPromise; - deidentify( - params: Params$Resource$Projects$Locations$Content$Deidentify, + ): GaxiosPromise; + activate( + params: Params$Resource$Projects$Jobtriggers$Activate, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - deidentify( - params: Params$Resource$Projects$Locations$Content$Deidentify, + activate( + params: Params$Resource$Projects$Jobtriggers$Activate, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - deidentify( - params: Params$Resource$Projects$Locations$Content$Deidentify, - callback: BodyResponseCallback + activate( + params: Params$Resource$Projects$Jobtriggers$Activate, + callback: BodyResponseCallback ): void; - deidentify( - callback: BodyResponseCallback + activate( + callback: BodyResponseCallback ): void; - deidentify( + activate( paramsOrCallback?: - | Params$Resource$Projects$Locations$Content$Deidentify - | BodyResponseCallback + | Params$Resource$Projects$Jobtriggers$Activate + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Content$Deidentify; + {}) as Params$Resource$Projects$Jobtriggers$Activate; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Content$Deidentify; + params = {} as Params$Resource$Projects$Jobtriggers$Activate; options = {}; } @@ -10926,7 +11070,7 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/content:deidentify').replace( + url: (rootUrl + '/v2/{+name}:activate').replace( /([^:]\/)\/+/g, '$1' ), @@ -10935,81 +11079,1277 @@ export namespace dlp_v2 { 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); } } /** - * Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text, + * Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. * * @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. */ - inspect( - params: Params$Resource$Projects$Locations$Content$Inspect, + create( + params: Params$Resource$Projects$Jobtriggers$Create, options: StreamMethodOptions ): GaxiosPromise; - inspect( - params?: Params$Resource$Projects$Locations$Content$Inspect, + create( + params?: Params$Resource$Projects$Jobtriggers$Create, options?: MethodOptions - ): GaxiosPromise; - inspect( - params: Params$Resource$Projects$Locations$Content$Inspect, + ): GaxiosPromise; + create( + params: Params$Resource$Projects$Jobtriggers$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - inspect( - params: Params$Resource$Projects$Locations$Content$Inspect, + create( + params: Params$Resource$Projects$Jobtriggers$Create, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - inspect( - params: Params$Resource$Projects$Locations$Content$Inspect, - callback: BodyResponseCallback + create( + params: Params$Resource$Projects$Jobtriggers$Create, + callback: BodyResponseCallback ): void; - inspect( + create( + callback: BodyResponseCallback + ): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Jobtriggers$Create + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Jobtriggers$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobtriggers$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/jobTriggers').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 job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * + * @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$Jobtriggers$Delete, + options: StreamMethodOptions + ): GaxiosPromise; + delete( + params?: Params$Resource$Projects$Jobtriggers$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Projects$Jobtriggers$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Jobtriggers$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Jobtriggers$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Jobtriggers$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Jobtriggers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobtriggers$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+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 a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * + * @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$Jobtriggers$Get, + options: StreamMethodOptions + ): GaxiosPromise; + get( + params?: Params$Resource$Projects$Jobtriggers$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Projects$Jobtriggers$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Jobtriggers$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Jobtriggers$Get, + callback: BodyResponseCallback + ): void; + get( + callback: BodyResponseCallback + ): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Jobtriggers$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Jobtriggers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobtriggers$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+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 + ); + } + } + + /** + * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * + * @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$Jobtriggers$List, + options: StreamMethodOptions + ): GaxiosPromise; + list( + params?: Params$Resource$Projects$Jobtriggers$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Projects$Jobtriggers$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Jobtriggers$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Jobtriggers$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Jobtriggers$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Jobtriggers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobtriggers$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/jobTriggers').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 a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * + * @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$Jobtriggers$Patch, + options: StreamMethodOptions + ): GaxiosPromise; + patch( + params?: Params$Resource$Projects$Jobtriggers$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Projects$Jobtriggers$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Jobtriggers$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Jobtriggers$Patch, + callback: BodyResponseCallback + ): void; + patch( + callback: BodyResponseCallback + ): void; + patch( + paramsOrCallback?: + | Params$Resource$Projects$Jobtriggers$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Jobtriggers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobtriggers$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+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$Jobtriggers$Activate + extends StandardParameters { + /** + * Required. Resource name of the trigger to activate, for example `projects/dlp-test-project/jobTriggers/53234423`. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2ActivateJobTriggerRequest; + } + export interface Params$Resource$Projects$Jobtriggers$Create + extends StandardParameters { + /** + * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2CreateJobTriggerRequest; + } + export interface Params$Resource$Projects$Jobtriggers$Delete + extends StandardParameters { + /** + * Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + */ + name?: string; + } + export interface Params$Resource$Projects$Jobtriggers$Get + extends StandardParameters { + /** + * Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + */ + name?: string; + } + export interface Params$Resource$Projects$Jobtriggers$List + extends StandardParameters { + /** + * Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field\} {operator\} {value\}`. * Supported fields/values for inspect triggers: - `status` - HEALTHY|PAUSED|CANCELLED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by quotation marks. Nanoseconds are ignored. - 'error_count' - Number of errors that have occurred while running. * The operator must be `=` or `!=` for status and inspected_storage. Examples: * inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) * last_run_time \> \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters. + */ + filter?: string; + /** + * Deprecated. This field has no effect. + */ + locationId?: string; + /** + * Comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the JobTrigger was created. - `update_time`: corresponds to the time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to the JobTrigger's name. - `display_name`: corresponds to the JobTrigger's display name. - `status`: corresponds to JobTrigger's status. + */ + orderBy?: string; + /** + * Size of the page, can be limited by a server. + */ + pageSize?: number; + /** + * Page token to continue retrieval. Comes from previous call to ListJobTriggers. `order_by` field must not change for subsequent calls. + */ + pageToken?: string; + /** + * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + */ + parent?: string; + /** + * The type of jobs. Will use `DlpJobType.INSPECT` if not set. + */ + type?: string; + } + export interface Params$Resource$Projects$Jobtriggers$Patch + extends StandardParameters { + /** + * Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2UpdateJobTriggerRequest; + } + + export class Resource$Projects$Locations { + context: APIRequestContext; + content: Resource$Projects$Locations$Content; + deidentifyTemplates: Resource$Projects$Locations$Deidentifytemplates; + discoveryConfigs: Resource$Projects$Locations$Discoveryconfigs; + dlpJobs: Resource$Projects$Locations$Dlpjobs; + image: Resource$Projects$Locations$Image; + inspectTemplates: Resource$Projects$Locations$Inspecttemplates; + jobTriggers: Resource$Projects$Locations$Jobtriggers; + storedInfoTypes: Resource$Projects$Locations$Storedinfotypes; + constructor(context: APIRequestContext) { + this.context = context; + this.content = new Resource$Projects$Locations$Content(this.context); + this.deidentifyTemplates = + new Resource$Projects$Locations$Deidentifytemplates(this.context); + this.discoveryConfigs = new Resource$Projects$Locations$Discoveryconfigs( + this.context + ); + this.dlpJobs = new Resource$Projects$Locations$Dlpjobs(this.context); + this.image = new Resource$Projects$Locations$Image(this.context); + this.inspectTemplates = new Resource$Projects$Locations$Inspecttemplates( + this.context + ); + this.jobTriggers = new Resource$Projects$Locations$Jobtriggers( + this.context + ); + this.storedInfoTypes = new Resource$Projects$Locations$Storedinfotypes( + this.context + ); + } + } + + export class Resource$Projects$Locations$Content { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. + * + * @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. + */ + deidentify( + params: Params$Resource$Projects$Locations$Content$Deidentify, + options: StreamMethodOptions + ): GaxiosPromise; + deidentify( + params?: Params$Resource$Projects$Locations$Content$Deidentify, + options?: MethodOptions + ): GaxiosPromise; + deidentify( + params: Params$Resource$Projects$Locations$Content$Deidentify, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + deidentify( + params: Params$Resource$Projects$Locations$Content$Deidentify, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + deidentify( + params: Params$Resource$Projects$Locations$Content$Deidentify, + callback: BodyResponseCallback + ): void; + deidentify( + callback: BodyResponseCallback + ): void; + deidentify( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Content$Deidentify + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Content$Deidentify; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Content$Deidentify; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/content:deidentify').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 + ); + } + } + + /** + * Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text, + * + * @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. + */ + inspect( + params: Params$Resource$Projects$Locations$Content$Inspect, + options: StreamMethodOptions + ): GaxiosPromise; + inspect( + params?: Params$Resource$Projects$Locations$Content$Inspect, + options?: MethodOptions + ): GaxiosPromise; + inspect( + params: Params$Resource$Projects$Locations$Content$Inspect, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + inspect( + params: Params$Resource$Projects$Locations$Content$Inspect, + options: + | MethodOptions + | BodyResponseCallback, callback: BodyResponseCallback ): void; - inspect( + inspect( + params: Params$Resource$Projects$Locations$Content$Inspect, + callback: BodyResponseCallback + ): void; + inspect( + callback: BodyResponseCallback + ): void; + inspect( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Content$Inspect + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Content$Inspect; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Content$Inspect; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/content:inspect').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 + ); + } + } + + /** + * Re-identifies content that has been de-identified. See https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to learn more. + * + * @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. + */ + reidentify( + params: Params$Resource$Projects$Locations$Content$Reidentify, + options: StreamMethodOptions + ): GaxiosPromise; + reidentify( + params?: Params$Resource$Projects$Locations$Content$Reidentify, + options?: MethodOptions + ): GaxiosPromise; + reidentify( + params: Params$Resource$Projects$Locations$Content$Reidentify, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + reidentify( + params: Params$Resource$Projects$Locations$Content$Reidentify, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + reidentify( + params: Params$Resource$Projects$Locations$Content$Reidentify, + callback: BodyResponseCallback + ): void; + reidentify( + callback: BodyResponseCallback + ): void; + reidentify( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Content$Reidentify + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Content$Reidentify; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Content$Reidentify; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/content:reidentify').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 + ); + } + } + } + + export interface Params$Resource$Projects$Locations$Content$Deidentify + extends StandardParameters { + /** + * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2DeidentifyContentRequest; + } + export interface Params$Resource$Projects$Locations$Content$Inspect + extends StandardParameters { + /** + * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2InspectContentRequest; + } + export interface Params$Resource$Projects$Locations$Content$Reidentify + extends StandardParameters { + /** + * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2ReidentifyContentRequest; + } + + export class Resource$Projects$Locations$Deidentifytemplates { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * + * @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$Deidentifytemplates$Create, + options: StreamMethodOptions + ): GaxiosPromise; + create( + params?: Params$Resource$Projects$Locations$Deidentifytemplates$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Projects$Locations$Deidentifytemplates$Create, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Locations$Deidentifytemplates$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Locations$Deidentifytemplates$Create, + callback: BodyResponseCallback + ): void; + create( + callback: BodyResponseCallback + ): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Deidentifytemplates$Create + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Deidentifytemplates$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Deidentifytemplates$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').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 DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * + * @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$Deidentifytemplates$Delete, + options: StreamMethodOptions + ): GaxiosPromise; + delete( + params?: Params$Resource$Projects$Locations$Deidentifytemplates$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Deidentifytemplates$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Deidentifytemplates$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Deidentifytemplates$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Deidentifytemplates$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Deidentifytemplates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Deidentifytemplates$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+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 a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * + * @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$Deidentifytemplates$Get, + options: StreamMethodOptions + ): GaxiosPromise; + get( + params?: Params$Resource$Projects$Locations$Deidentifytemplates$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Projects$Locations$Deidentifytemplates$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Deidentifytemplates$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Deidentifytemplates$Get, + callback: BodyResponseCallback + ): void; + get( + callback: BodyResponseCallback + ): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Deidentifytemplates$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Deidentifytemplates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Deidentifytemplates$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+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 + ); + } + } + + /** + * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * + * @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$Deidentifytemplates$List, + options: StreamMethodOptions + ): GaxiosPromise; + list( + params?: Params$Resource$Projects$Locations$Deidentifytemplates$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$Deidentifytemplates$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Deidentifytemplates$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Deidentifytemplates$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( paramsOrCallback?: - | Params$Resource$Projects$Locations$Content$Inspect - | BodyResponseCallback + | Params$Resource$Projects$Locations$Deidentifytemplates$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Content$Inspect; + {}) as Params$Resource$Projects$Locations$Deidentifytemplates$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Content$Inspect; + params = + {} as Params$Resource$Projects$Locations$Deidentifytemplates$List; options = {}; } @@ -11022,11 +12362,11 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/content:inspect').replace( + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace( /([^:]\/)\/+/g, '$1' ), - method: 'POST', + method: 'GET', }, options ), @@ -11036,76 +12376,77 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * Re-identifies content that has been de-identified. See https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to learn more. + * Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. * * @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. */ - reidentify( - params: Params$Resource$Projects$Locations$Content$Reidentify, + patch( + params: Params$Resource$Projects$Locations$Deidentifytemplates$Patch, options: StreamMethodOptions ): GaxiosPromise; - reidentify( - params?: Params$Resource$Projects$Locations$Content$Reidentify, + patch( + params?: Params$Resource$Projects$Locations$Deidentifytemplates$Patch, options?: MethodOptions - ): GaxiosPromise; - reidentify( - params: Params$Resource$Projects$Locations$Content$Reidentify, + ): GaxiosPromise; + patch( + params: Params$Resource$Projects$Locations$Deidentifytemplates$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - reidentify( - params: Params$Resource$Projects$Locations$Content$Reidentify, + patch( + params: Params$Resource$Projects$Locations$Deidentifytemplates$Patch, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - reidentify( - params: Params$Resource$Projects$Locations$Content$Reidentify, - callback: BodyResponseCallback + patch( + params: Params$Resource$Projects$Locations$Deidentifytemplates$Patch, + callback: BodyResponseCallback ): void; - reidentify( - callback: BodyResponseCallback + patch( + callback: BodyResponseCallback ): void; - reidentify( + patch( paramsOrCallback?: - | Params$Resource$Projects$Locations$Content$Reidentify - | BodyResponseCallback + | Params$Resource$Projects$Locations$Deidentifytemplates$Patch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Content$Reidentify; + {}) as Params$Resource$Projects$Locations$Deidentifytemplates$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Content$Reidentify; + params = + {} as Params$Resource$Projects$Locations$Deidentifytemplates$Patch; options = {}; } @@ -11118,77 +12459,99 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/content:reidentify').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } } - export interface Params$Resource$Projects$Locations$Content$Deidentify + export interface Params$Resource$Projects$Locations$Deidentifytemplates$Create extends StandardParameters { /** - * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 */ parent?: string; /** * Request body metadata */ - requestBody?: Schema$GooglePrivacyDlpV2DeidentifyContentRequest; + requestBody?: Schema$GooglePrivacyDlpV2CreateDeidentifyTemplateRequest; } - export interface Params$Resource$Projects$Locations$Content$Inspect + export interface Params$Resource$Projects$Locations$Deidentifytemplates$Delete extends StandardParameters { /** - * Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + * Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. */ - parent?: string; - + name?: string; + } + export interface Params$Resource$Projects$Locations$Deidentifytemplates$Get + extends StandardParameters { /** - * Request body metadata + * Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. */ - requestBody?: Schema$GooglePrivacyDlpV2InspectContentRequest; + name?: string; } - export interface Params$Resource$Projects$Locations$Content$Reidentify + export interface Params$Resource$Projects$Locations$Deidentifytemplates$List extends StandardParameters { /** - * Required. Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + * Deprecated. This field has no effect. + */ + locationId?: string; + /** + * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name. + */ + orderBy?: string; + /** + * Size of the page, can be limited by the server. If zero server returns a page of max size 100. + */ + pageSize?: number; + /** + * Page token to continue retrieval. Comes from previous call to `ListDeidentifyTemplates`. + */ + pageToken?: string; + /** + * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 */ parent?: string; + } + export interface Params$Resource$Projects$Locations$Deidentifytemplates$Patch + extends StandardParameters { + /** + * Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + */ + name?: string; /** * Request body metadata */ - requestBody?: Schema$GooglePrivacyDlpV2ReidentifyContentRequest; + requestBody?: Schema$GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest; } - export class Resource$Projects$Locations$Deidentifytemplates { + export class Resource$Projects$Locations$Discoveryconfigs { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * Creates a config for Discovery to scan and profile storage. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -11196,57 +12559,57 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ create( - params: Params$Resource$Projects$Locations$Deidentifytemplates$Create, + params: Params$Resource$Projects$Locations$Discoveryconfigs$Create, options: StreamMethodOptions ): GaxiosPromise; create( - params?: Params$Resource$Projects$Locations$Deidentifytemplates$Create, + params?: Params$Resource$Projects$Locations$Discoveryconfigs$Create, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; create( - params: Params$Resource$Projects$Locations$Deidentifytemplates$Create, + params: Params$Resource$Projects$Locations$Discoveryconfigs$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; create( - params: Params$Resource$Projects$Locations$Deidentifytemplates$Create, + params: Params$Resource$Projects$Locations$Discoveryconfigs$Create, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; create( - params: Params$Resource$Projects$Locations$Deidentifytemplates$Create, - callback: BodyResponseCallback + params: Params$Resource$Projects$Locations$Discoveryconfigs$Create, + callback: BodyResponseCallback ): void; create( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; create( paramsOrCallback?: - | Params$Resource$Projects$Locations$Deidentifytemplates$Create - | BodyResponseCallback + | Params$Resource$Projects$Locations$Discoveryconfigs$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Deidentifytemplates$Create; + {}) as Params$Resource$Projects$Locations$Discoveryconfigs$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Projects$Locations$Deidentifytemplates$Create; + {} as Params$Resource$Projects$Locations$Discoveryconfigs$Create; options = {}; } @@ -11259,7 +12622,7 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace( + url: (rootUrl + '/v2/{+parent}/discoveryConfigs').replace( /([^:]\/)\/+/g, '$1' ), @@ -11273,19 +12636,19 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * Deletes a Discovery configuration. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -11293,31 +12656,31 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ delete( - params: Params$Resource$Projects$Locations$Deidentifytemplates$Delete, + params: Params$Resource$Projects$Locations$Discoveryconfigs$Delete, options: StreamMethodOptions ): GaxiosPromise; delete( - params?: Params$Resource$Projects$Locations$Deidentifytemplates$Delete, + params?: Params$Resource$Projects$Locations$Discoveryconfigs$Delete, options?: MethodOptions ): GaxiosPromise; delete( - params: Params$Resource$Projects$Locations$Deidentifytemplates$Delete, + params: Params$Resource$Projects$Locations$Discoveryconfigs$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Projects$Locations$Deidentifytemplates$Delete, + params: Params$Resource$Projects$Locations$Discoveryconfigs$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Projects$Locations$Deidentifytemplates$Delete, + params: Params$Resource$Projects$Locations$Discoveryconfigs$Delete, callback: BodyResponseCallback ): void; delete(callback: BodyResponseCallback): void; delete( paramsOrCallback?: - | Params$Resource$Projects$Locations$Deidentifytemplates$Delete + | Params$Resource$Projects$Locations$Discoveryconfigs$Delete | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -11333,13 +12696,13 @@ export namespace dlp_v2 { | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Deidentifytemplates$Delete; + {}) as Params$Resource$Projects$Locations$Discoveryconfigs$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Projects$Locations$Deidentifytemplates$Delete; + {} as Params$Resource$Projects$Locations$Discoveryconfigs$Delete; options = {}; } @@ -11373,7 +12736,7 @@ export namespace dlp_v2 { } /** - * Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * Gets a Discovery configuration. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -11381,57 +12744,56 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ get( - params: Params$Resource$Projects$Locations$Deidentifytemplates$Get, + params: Params$Resource$Projects$Locations$Discoveryconfigs$Get, options: StreamMethodOptions ): GaxiosPromise; get( - params?: Params$Resource$Projects$Locations$Deidentifytemplates$Get, + params?: Params$Resource$Projects$Locations$Discoveryconfigs$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Projects$Locations$Deidentifytemplates$Get, + params: Params$Resource$Projects$Locations$Discoveryconfigs$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Locations$Deidentifytemplates$Get, + params: Params$Resource$Projects$Locations$Discoveryconfigs$Get, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Locations$Deidentifytemplates$Get, - callback: BodyResponseCallback + params: Params$Resource$Projects$Locations$Discoveryconfigs$Get, + callback: BodyResponseCallback ): void; get( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; get( paramsOrCallback?: - | Params$Resource$Projects$Locations$Deidentifytemplates$Get - | BodyResponseCallback + | Params$Resource$Projects$Locations$Discoveryconfigs$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Deidentifytemplates$Get; + {}) as Params$Resource$Projects$Locations$Discoveryconfigs$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {} as Params$Resource$Projects$Locations$Deidentifytemplates$Get; + params = {} as Params$Resource$Projects$Locations$Discoveryconfigs$Get; options = {}; } @@ -11455,19 +12817,19 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * Lists Discovery configurations. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -11475,57 +12837,56 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ list( - params: Params$Resource$Projects$Locations$Deidentifytemplates$List, + params: Params$Resource$Projects$Locations$Discoveryconfigs$List, options: StreamMethodOptions ): GaxiosPromise; list( - params?: Params$Resource$Projects$Locations$Deidentifytemplates$List, + params?: Params$Resource$Projects$Locations$Discoveryconfigs$List, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; list( - params: Params$Resource$Projects$Locations$Deidentifytemplates$List, + params: Params$Resource$Projects$Locations$Discoveryconfigs$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Projects$Locations$Deidentifytemplates$List, + params: Params$Resource$Projects$Locations$Discoveryconfigs$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Projects$Locations$Deidentifytemplates$List, - callback: BodyResponseCallback + params: Params$Resource$Projects$Locations$Discoveryconfigs$List, + callback: BodyResponseCallback ): void; list( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; list( paramsOrCallback?: - | Params$Resource$Projects$Locations$Deidentifytemplates$List - | BodyResponseCallback + | Params$Resource$Projects$Locations$Discoveryconfigs$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Deidentifytemplates$List; + {}) as Params$Resource$Projects$Locations$Discoveryconfigs$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {} as Params$Resource$Projects$Locations$Deidentifytemplates$List; + params = {} as Params$Resource$Projects$Locations$Discoveryconfigs$List; options = {}; } @@ -11538,7 +12899,7 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace( + url: (rootUrl + '/v2/{+parent}/discoveryConfigs').replace( /([^:]\/)\/+/g, '$1' ), @@ -11552,19 +12913,19 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * Updates a Discovery configuration. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -11572,57 +12933,57 @@ export namespace dlp_v2 { * @returns A promise if used with async/await, or void if used with a callback. */ patch( - params: Params$Resource$Projects$Locations$Deidentifytemplates$Patch, + params: Params$Resource$Projects$Locations$Discoveryconfigs$Patch, options: StreamMethodOptions ): GaxiosPromise; patch( - params?: Params$Resource$Projects$Locations$Deidentifytemplates$Patch, + params?: Params$Resource$Projects$Locations$Discoveryconfigs$Patch, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; patch( - params: Params$Resource$Projects$Locations$Deidentifytemplates$Patch, + params: Params$Resource$Projects$Locations$Discoveryconfigs$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; patch( - params: Params$Resource$Projects$Locations$Deidentifytemplates$Patch, + params: Params$Resource$Projects$Locations$Discoveryconfigs$Patch, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; patch( - params: Params$Resource$Projects$Locations$Deidentifytemplates$Patch, - callback: BodyResponseCallback + params: Params$Resource$Projects$Locations$Discoveryconfigs$Patch, + callback: BodyResponseCallback ): void; patch( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; patch( paramsOrCallback?: - | Params$Resource$Projects$Locations$Deidentifytemplates$Patch - | BodyResponseCallback + | Params$Resource$Projects$Locations$Discoveryconfigs$Patch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Deidentifytemplates$Patch; + {}) as Params$Resource$Projects$Locations$Discoveryconfigs$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = - {} as Params$Resource$Projects$Locations$Deidentifytemplates$Patch; + {} as Params$Resource$Projects$Locations$Discoveryconfigs$Patch; options = {}; } @@ -11646,78 +13007,74 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } } - export interface Params$Resource$Projects$Locations$Deidentifytemplates$Create + export interface Params$Resource$Projects$Locations$Discoveryconfigs$Create extends StandardParameters { /** - * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + * Required. Parent resource name. The format of this value is as follows: `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 */ parent?: string; /** * Request body metadata */ - requestBody?: Schema$GooglePrivacyDlpV2CreateDeidentifyTemplateRequest; + requestBody?: Schema$GooglePrivacyDlpV2CreateDiscoveryConfigRequest; } - export interface Params$Resource$Projects$Locations$Deidentifytemplates$Delete + export interface Params$Resource$Projects$Locations$Discoveryconfigs$Delete extends StandardParameters { /** - * Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * Required. Resource name of the project and the config, for example `projects/dlp-test-project/discoveryConfigs/53234423`. */ name?: string; } - export interface Params$Resource$Projects$Locations$Deidentifytemplates$Get + export interface Params$Resource$Projects$Locations$Discoveryconfigs$Get extends StandardParameters { /** - * Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`. */ name?: string; } - export interface Params$Resource$Projects$Locations$Deidentifytemplates$List + export interface Params$Resource$Projects$Locations$Discoveryconfigs$List extends StandardParameters { /** - * Deprecated. This field has no effect. - */ - locationId?: string; - /** - * Comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to the time the template was created. - `update_time`: corresponds to the time the template was last updated. - `name`: corresponds to the template's name. - `display_name`: corresponds to the template's display name. + * Comma separated list of config fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. - `name`: corresponds to the DiscoveryConfig's name. - `status`: corresponds to DiscoveryConfig's status. */ orderBy?: string; /** - * Size of the page, can be limited by the server. If zero server returns a page of max size 100. + * Size of the page, can be limited by a server. */ pageSize?: number; /** - * Page token to continue retrieval. Comes from previous call to `ListDeidentifyTemplates`. + * Page token to continue retrieval. Comes from previous call to ListDiscoveryConfigs. `order_by` field must not change for subsequent calls. */ pageToken?: string; /** - * Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and whether you have [specified a processing location](https://cloud.google.com/dlp/docs/specifying-location): + Projects scope, location specified: `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no location specified (defaults to global): `projects/`PROJECT_ID + Organizations scope, location specified: `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no location specified (defaults to global): `organizations/`ORG_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 + * Required. Parent resource name. The format of this value is as follows: `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent` string specifies a parent project with the identifier `example-project`, and specifies the `europe-west3` location for processing data: parent=projects/example-project/locations/europe-west3 */ parent?: string; } - export interface Params$Resource$Projects$Locations$Deidentifytemplates$Patch + export interface Params$Resource$Projects$Locations$Discoveryconfigs$Patch extends StandardParameters { /** - * Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * Required. Resource name of the project and the configuration, for example `projects/dlp-test-project/discoveryConfigs/53234423`. */ name?: string; /** * Request body metadata */ - requestBody?: Schema$GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest; + requestBody?: Schema$GooglePrivacyDlpV2UpdateDiscoveryConfigRequest; } export class Resource$Projects$Locations$Dlpjobs { diff --git a/src/apis/doubleclicksearch/v2.ts b/src/apis/doubleclicksearch/v2.ts index 7f9d562e5da..ff687766365 100644 --- a/src/apis/doubleclicksearch/v2.ts +++ b/src/apis/doubleclicksearch/v2.ts @@ -173,10 +173,6 @@ export namespace doubleclicksearch_v2 { * DS ad ID. */ adId?: string | null; - /** - * Ad user data consent for this conversion. - */ - adUserDataConsent?: string | null; /** * DS advertiser ID. */ diff --git a/src/apis/gkeonprem/v1.ts b/src/apis/gkeonprem/v1.ts index 7119e7164ac..8a7754b2641 100644 --- a/src/apis/gkeonprem/v1.ts +++ b/src/apis/gkeonprem/v1.ts @@ -1918,7 +1918,7 @@ export namespace gkeonprem_v1 { */ platformConfig?: Schema$VmwarePlatformConfig; /** - * The VMware admin cluster prepared secrets configuration. + * Output only. The VMware admin cluster prepared secrets configuration. It should always be enabled by the Central API, instead of letting users set it. */ preparedSecrets?: Schema$VmwareAdminPreparedSecretsConfig; /** diff --git a/src/apis/managedidentities/v1.ts b/src/apis/managedidentities/v1.ts index edc032fc518..1547843d913 100644 --- a/src/apis/managedidentities/v1.ts +++ b/src/apis/managedidentities/v1.ts @@ -956,7 +956,7 @@ export namespace managedidentities_v1 { */ name?: string | null; /** - * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + * The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ response?: {[key: string]: any} | null; } @@ -1031,7 +1031,7 @@ export namespace managedidentities_v1 { updateTime?: string | null; } /** - * An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] \}, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", \} \} ], "etag": "BwWWja0YfJA=", "version": 3 \} **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). + * An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] \}, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", \} \} ], "etag": "BwWWja0YfJA=", "version": 3 \} ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). */ export interface Schema$Policy { /** @@ -1247,7 +1247,7 @@ export namespace managedidentities_v1 { */ channel?: string | null; /** - * Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. User can specify zero or more non-overlapping deny periods. Maximum number of deny_maintenance_periods expected is one. + * Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. The protocol supports zero-to-many such periods, but the current SLM Rollout implementation only supports zero-to-one. */ denyMaintenancePeriods?: Schema$DenyMaintenancePeriod[]; /** diff --git a/src/apis/managedidentities/v1alpha1.ts b/src/apis/managedidentities/v1alpha1.ts index fa3784cef09..40de22a0ab8 100644 --- a/src/apis/managedidentities/v1alpha1.ts +++ b/src/apis/managedidentities/v1alpha1.ts @@ -955,7 +955,7 @@ export namespace managedidentities_v1alpha1 { */ name?: string | null; /** - * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + * The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ response?: {[key: string]: any} | null; } @@ -1030,7 +1030,7 @@ export namespace managedidentities_v1alpha1 { updateTime?: string | null; } /** - * An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] \}, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", \} \} ], "etag": "BwWWja0YfJA=", "version": 3 \} **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). + * An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] \}, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", \} \} ], "etag": "BwWWja0YfJA=", "version": 3 \} ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). */ export interface Schema$Policy { /** @@ -1233,7 +1233,7 @@ export namespace managedidentities_v1alpha1 { */ channel?: string | null; /** - * Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. User can specify zero or more non-overlapping deny periods. Maximum number of deny_maintenance_periods expected is one. + * Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. The protocol supports zero-to-many such periods, but the current SLM Rollout implementation only supports zero-to-one. */ denyMaintenancePeriods?: Schema$DenyMaintenancePeriod[]; /** diff --git a/src/apis/managedidentities/v1beta1.ts b/src/apis/managedidentities/v1beta1.ts index 62b6a66e5f4..b817515634b 100644 --- a/src/apis/managedidentities/v1beta1.ts +++ b/src/apis/managedidentities/v1beta1.ts @@ -964,7 +964,7 @@ export namespace managedidentities_v1beta1 { */ name?: string | null; /** - * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + * The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ response?: {[key: string]: any} | null; } @@ -1039,7 +1039,7 @@ export namespace managedidentities_v1beta1 { updateTime?: string | null; } /** - * An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] \}, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", \} \} ], "etag": "BwWWja0YfJA=", "version": 3 \} **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). + * An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] \}, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", \} \} ], "etag": "BwWWja0YfJA=", "version": 3 \} ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). */ export interface Schema$Policy { /** @@ -1255,7 +1255,7 @@ export namespace managedidentities_v1beta1 { */ channel?: string | null; /** - * Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. User can specify zero or more non-overlapping deny periods. Maximum number of deny_maintenance_periods expected is one. + * Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. The protocol supports zero-to-many such periods, but the current SLM Rollout implementation only supports zero-to-one. */ denyMaintenancePeriods?: Schema$DenyMaintenancePeriod[]; /** diff --git a/src/apis/redis/v1.ts b/src/apis/redis/v1.ts index 14f0faf78fb..7f7e5d82bb6 100644 --- a/src/apis/redis/v1.ts +++ b/src/apis/redis/v1.ts @@ -135,6 +135,10 @@ export namespace redis_v1 { */ export interface Schema$CertificateAuthority { managedServerCa?: Schema$ManagedCertificateAuthority; + /** + * Identifier. Unique name of the resource in this scope including project, location and cluster using the form: `projects/{project\}/locations/{location\}/clusters/{cluster\}/certificateAuthority` + */ + name?: string | null; } /** * A cluster instance. diff --git a/src/apis/redis/v1beta1.ts b/src/apis/redis/v1beta1.ts index 9cc0089cb01..7c0ddc9ff11 100644 --- a/src/apis/redis/v1beta1.ts +++ b/src/apis/redis/v1beta1.ts @@ -135,6 +135,10 @@ export namespace redis_v1beta1 { */ export interface Schema$CertificateAuthority { managedServerCa?: Schema$ManagedCertificateAuthority; + /** + * Identifier. Unique name of the resource in this scope including project, location and cluster using the form: `projects/{project\}/locations/{location\}/clusters/{cluster\}/certificateAuthority` + */ + name?: string | null; } /** * A cluster instance. diff --git a/src/apis/spanner/v1.ts b/src/apis/spanner/v1.ts index 7c812a14e0d..8519bcca03b 100644 --- a/src/apis/spanner/v1.ts +++ b/src/apis/spanner/v1.ts @@ -879,6 +879,19 @@ export namespace spanner_v1 { */ requestedPolicyVersion?: number | null; } + /** + * Recommendation to add new indexes to run queries more efficiently. + */ + export interface Schema$IndexAdvice { + /** + * Optional. DDL statements to add new indexes that will improve the query. + */ + ddl?: string[] | null; + /** + * Optional. Estimated latency improvement factor. For example if the query currently takes 500 ms to run and the estimated latency with new indexes is 100 ms this field will be 5. + */ + improvementFactor?: number | null; + } /** * A message representing a (sparse) collection of hot keys for specific key buckets. */ @@ -1629,6 +1642,15 @@ export namespace spanner_v1 { */ word?: string | null; } + /** + * Output of query advisor analysis. + */ + export interface Schema$QueryAdvisorResult { + /** + * Optional. Index Recommendation for a query. This is an optional field and the recommendation will only be available when the recommendation guarantees significant improvement in query performance. + */ + indexAdvice?: Schema$IndexAdvice[]; + } /** * Query optimizer configuration. */ @@ -1650,6 +1672,10 @@ export namespace spanner_v1 { * The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each PlanNode's `id` corresponds to its index in `plan_nodes`. */ planNodes?: Schema$PlanNode[]; + /** + * Optional. The advices/recommendations for a query. Currently this field will be serving index recommendations for a query. + */ + queryAdvice?: Schema$QueryAdvisorResult; } /** * Message type to initiate a read-only transaction. diff --git a/src/apis/sqladmin/v1.ts b/src/apis/sqladmin/v1.ts index 4b78eb361f8..0f7c5174f1e 100644 --- a/src/apis/sqladmin/v1.ts +++ b/src/apis/sqladmin/v1.ts @@ -1195,11 +1195,11 @@ export namespace sqladmin_v1 { */ pscConfig?: Schema$PscConfig; /** - * Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the legacy `require_ssl` flag. + * LINT.IfChange(require_ssl_deprecate) Whether SSL/TLS connections over IP are enforced or not. If set to false, allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate will not be verified. If set to true, only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, use the `ssl_mode` flag instead of the legacy `require_ssl` flag. LINT.ThenChange(//depot/google3/java/com/google/storage/speckle/boss/admin/actions/InstanceUpdateAction.java:update_api_temp_fix) */ requireSsl?: boolean | null; /** - * Specify how SSL/TLS is enforced in database connections. This flag is supported only for PostgreSQL. Use the legacy `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL Server. But, for PostgreSQL, use the `ssl_mode` flag instead of the legacy `require_ssl` flag. To avoid the conflict between those flags in PostgreSQL, only the following value pairs are valid: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` Note that the value of `ssl_mode` gets priority over the value of the legacy `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means "only accepts SSL connection", while the `require_ssl=false` means "both non-SSL and SSL connections are allowed". The database respects `ssl_mode` in this case and only accepts SSL connections. + * Specify how SSL/TLS will be enforced in database connections. This flag is only supported for PostgreSQL. Use the legacy `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL Server. But, for PostgreSQL, it is recommended to use the `ssl_mode` flag instead of the legacy `require_ssl` flag. To avoid the conflict between those flags in PostgreSQL, only the following value pairs are valid: ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED, require_ssl=false; ssl_mode=ENCRYPTED_ONLY, require_ssl=false; ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED, require_ssl=true; Note that the value of `ssl_mode` gets priority over the value of the legacy `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means "only accepts SSL connection", while the `require_ssl=false` means "both non-SSL and SSL connections are allowed". The database will respect `ssl_mode` in this case and only accept SSL connections. */ sslMode?: string | null; } @@ -1528,6 +1528,10 @@ export namespace sqladmin_v1 { * The complexity of the password. */ complexity?: string | null; + /** + * Disallow credentials that have been previously compromised by a public data breach. + */ + disallowCompromisedCredentials?: boolean | null; /** * Disallow username as a part of the password. */ diff --git a/src/apis/sqladmin/v1beta4.ts b/src/apis/sqladmin/v1beta4.ts index 38e4e572c11..f9ebae9511d 100644 --- a/src/apis/sqladmin/v1beta4.ts +++ b/src/apis/sqladmin/v1beta4.ts @@ -1195,11 +1195,11 @@ export namespace sqladmin_v1beta4 { */ pscConfig?: Schema$PscConfig; /** - * Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the legacy `require_ssl` flag. + * LINT.IfChange(require_ssl_deprecate) Whether SSL/TLS connections over IP are enforced or not. If set to false, allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate will not be verified. If set to true, only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, use the `ssl_mode` flag instead of the legacy `require_ssl` flag. LINT.ThenChange(//depot/google3/java/com/google/storage/speckle/boss/admin/actions/InstanceUpdateAction.java:update_api_temp_fix) */ requireSsl?: boolean | null; /** - * Specify how SSL/TLS is enforced in database connections. This flag is supported only for PostgreSQL. Use the legacy `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL Server. But, for PostgreSQL, use the `ssl_mode` flag instead of the legacy `require_ssl` flag. To avoid the conflict between those flags in PostgreSQL, only the following value pairs are valid: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` Note that the value of `ssl_mode` gets priority over the value of the legacy `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means "only accepts SSL connection", while the `require_ssl=false` means "both non-SSL and SSL connections are allowed". The database respects `ssl_mode` in this case and only accepts SSL connections. + * Specify how SSL/TLS will be enforced in database connections. This flag is only supported for PostgreSQL. Use the legacy `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL Server. But, for PostgreSQL, it is recommended to use the `ssl_mode` flag instead of the legacy `require_ssl` flag. To avoid the conflict between those flags in PostgreSQL, only the following value pairs are valid: ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED, require_ssl=false; ssl_mode=ENCRYPTED_ONLY, require_ssl=false; ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED, require_ssl=true; Note that the value of `ssl_mode` gets priority over the value of the legacy `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means "only accepts SSL connection", while the `require_ssl=false` means "both non-SSL and SSL connections are allowed". The database will respect `ssl_mode` in this case and only accept SSL connections. */ sslMode?: string | null; } @@ -1528,6 +1528,10 @@ export namespace sqladmin_v1beta4 { * The complexity of the password. */ complexity?: string | null; + /** + * Disallow credentials that have been previously compromised by a public data breach. + */ + disallowCompromisedCredentials?: boolean | null; /** * Disallow username as a part of the password. */ diff --git a/src/apis/workflowexecutions/v1.ts b/src/apis/workflowexecutions/v1.ts index c7208896bc7..f6afe5c91a5 100644 --- a/src/apis/workflowexecutions/v1.ts +++ b/src/apis/workflowexecutions/v1.ts @@ -1020,11 +1020,11 @@ export namespace workflowexecutions_v1 { export interface Params$Resource$Projects$Locations$Workflows$Executions$List extends StandardParameters { /** - * Optional. Filters applied to the [Executions.ListExecutions] results. The following fields are supported for filtering: executionID, state, startTime, endTime, duration, workflowRevisionID, stepName, and label. + * Optional. Filters applied to the `[Executions.ListExecutions]` results. The following fields are supported for filtering: `executionId`, `state`, `startTime`, `endTime`, `duration`, `workflowRevisionId`, `stepName`, and `label`. For details, see AIP-160. For example, if you are using the Google APIs Explorer: `state="SUCCEEDED"` or `startTime\>"2023-08-01" AND state="FAILED"` */ filter?: string; /** - * Optional. The ordering applied to the [Executions.ListExecutions] results. By default the ordering is based on descending start time. The following fields are supported for order by: executionID, startTime, endTime, duration, state, and workflowRevisionID. + * Optional. Comma-separated list of fields that specify the ordering applied to the `[Executions.ListExecutions]` results. By default the ordering is based on descending `startTime`. The following fields are supported for ordering: `executionId`, `state`, `startTime`, `endTime`, `duration`, and `workflowRevisionId`. For details, see AIP-132. */ orderBy?: string; /**