From f1133e46e97f9677a836d70e9515bc19b43a119f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 3 Mar 2022 08:17:35 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- androidpublisher/v3/androidpublisher-api.json | 6 +- androidpublisher/v3/androidpublisher-gen.go | 1 + assuredworkloads/v1/assuredworkloads-api.json | 38 ++-- assuredworkloads/v1/assuredworkloads-gen.go | 75 ++++--- .../v1/bigquerydatatransfer-api.json | 26 +-- .../v1/bigquerydatatransfer-gen.go | 192 ++++++++++-------- .../v1/bigqueryreservation-api.json | 7 +- .../v1/bigqueryreservation-gen.go | 11 +- .../v1beta1/bigqueryreservation-api.json | 7 +- .../v1beta1/bigqueryreservation-gen.go | 11 +- .../v1/binaryauthorization-api.json | 18 +- .../v1/binaryauthorization-gen.go | 16 ++ .../v1beta1/binaryauthorization-api.json | 18 +- .../v1beta1/binaryauthorization-gen.go | 16 ++ cloudidentity/v1/cloudidentity-api.json | 94 +++++++-- cloudidentity/v1/cloudidentity-gen.go | 96 +++++++-- cloudidentity/v1beta1/cloudidentity-api.json | 88 ++++++-- cloudidentity/v1beta1/cloudidentity-gen.go | 90 ++++++-- documentai/v1/documentai-api.json | 4 +- documentai/v1/documentai-gen.go | 3 +- documentai/v1beta3/documentai-api.json | 4 +- documentai/v1beta3/documentai-gen.go | 3 +- healthcare/v1beta1/healthcare-api.json | 8 +- healthcare/v1beta1/healthcare-gen.go | 3 + people/v1/people-api.json | 4 +- people/v1/people-gen.go | 11 +- speech/v1/speech-api.json | 4 +- speech/v1/speech-gen.go | 5 +- speech/v1p1beta1/speech-api.json | 4 +- speech/v1p1beta1/speech-gen.go | 5 +- 30 files changed, 619 insertions(+), 249 deletions(-) diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index f5c092d6276..7ff1d35054d 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -3040,7 +3040,7 @@ } } }, - "revision": "20220221", + "revision": "20220302", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "Apk": { @@ -4199,13 +4199,15 @@ "TAX_TIER_BOOKS_1", "TAX_TIER_NEWS_1", "TAX_TIER_NEWS_2", - "TAX_TIER_MUSIC_OR_AUDIO_1" + "TAX_TIER_MUSIC_OR_AUDIO_1", + "TAX_TIER_LIVE_OR_BROADCAST_1" ], "enumDescriptions": [ "", "", "", "", + "", "" ], "type": "string" diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index 8c30d7a1dde..a4217adff69 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -2447,6 +2447,7 @@ type RegionalTaxRateInfo struct { // "TAX_TIER_NEWS_1" // "TAX_TIER_NEWS_2" // "TAX_TIER_MUSIC_OR_AUDIO_1" + // "TAX_TIER_LIVE_OR_BROADCAST_1" TaxTier string `json:"taxTier,omitempty"` // ForceSendFields is a list of field names (e.g. diff --git a/assuredworkloads/v1/assuredworkloads-api.json b/assuredworkloads/v1/assuredworkloads-api.json index 1238f9fc960..082acd03e64 100644 --- a/assuredworkloads/v1/assuredworkloads-api.json +++ b/assuredworkloads/v1/assuredworkloads-api.json @@ -351,7 +351,7 @@ } } }, - "revision": "20211202", + "revision": "20220224", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata": { @@ -491,7 +491,7 @@ }, "kmsSettings": { "$ref": "GoogleCloudAssuredworkloadsV1WorkloadKMSSettings", - "description": "Input only. Settings used to create a CMEK crypto key. When set a project with a KMS CMEK key is provisioned. This field is mandatory for a subset of Compliance Regimes." + "description": "Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS CMEK key is provisioned. This field is deprecated as of Feb 28, 2022. In order to create a Keyring, callers should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field." }, "labels": { "additionalProperties": { @@ -587,7 +587,7 @@ "type": "string" }, "resourceId": { - "description": "Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail.", + "description": "Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail. For KeyRing, this represents the keyring_id. For a folder, don't set this value as folder_id is assigned by Google.", "type": "string" }, "resourceType": { @@ -718,7 +718,7 @@ }, "cjisSettings": { "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadCJISSettings", - "description": "Required. Input only. Immutable. Settings specific to resources needed for CJIS." + "description": "Input only. Immutable. Settings specific to resources needed for CJIS." }, "complianceRegime": { "description": "Required. Immutable. Compliance Regime associated with this workload.", @@ -768,15 +768,15 @@ }, "fedrampHighSettings": { "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings", - "description": "Required. Input only. Immutable. Settings specific to resources needed for FedRAMP High." + "description": "Input only. Immutable. Settings specific to resources needed for FedRAMP High." }, "fedrampModerateSettings": { "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings", - "description": "Required. Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate." + "description": "Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate." }, "il4Settings": { "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadIL4Settings", - "description": "Required. Input only. Immutable. Settings specific to resources needed for IL4." + "description": "Input only. Immutable. Settings specific to resources needed for IL4." }, "kajEnrollmentState": { "description": "Output only. Represents the KAJ enrollment state of the given workload.", @@ -795,7 +795,7 @@ }, "kmsSettings": { "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings", - "description": "Input only. Settings used to create a CMEK crypto key. When set a project with a KMS CMEK key is provisioned. This field is mandatory for a subset of Compliance Regimes." + "description": "Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS CMEK key is provisioned. This field is deprecated as of Feb 28, 2022. In order to create a Keyring, callers should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field." }, "labels": { "additionalProperties": { @@ -841,7 +841,7 @@ "properties": { "kmsSettings": { "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings", - "description": "Required. Input only. Immutable. Settings used to create a CMEK crypto key." + "description": "Input only. Immutable. Settings used to create a CMEK crypto key." } }, "type": "object" @@ -852,7 +852,7 @@ "properties": { "kmsSettings": { "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings", - "description": "Required. Input only. Immutable. Settings used to create a CMEK crypto key." + "description": "Input only. Immutable. Settings used to create a CMEK crypto key." } }, "type": "object" @@ -863,7 +863,7 @@ "properties": { "kmsSettings": { "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings", - "description": "Required. Input only. Immutable. Settings used to create a CMEK crypto key." + "description": "Input only. Immutable. Settings used to create a CMEK crypto key." } }, "type": "object" @@ -874,7 +874,7 @@ "properties": { "kmsSettings": { "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings", - "description": "Required. Input only. Immutable. Settings used to create a CMEK crypto key." + "description": "Input only. Immutable. Settings used to create a CMEK crypto key." } }, "type": "object" @@ -935,7 +935,7 @@ "type": "string" }, "resourceId": { - "description": "Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail.", + "description": "Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail. For KeyRing, this represents the keyring_id. For a folder, don't set this value as folder_id is assigned by Google.", "type": "string" }, "resourceType": { @@ -1143,7 +1143,7 @@ }, "kmsSettings": { "$ref": "GoogleCloudAssuredworkloadsVersioningV1mainWorkloadKMSSettings", - "description": "Input only. Settings used to create a CMEK crypto key. When set a project with a KMS CMEK key is provisioned. This field is mandatory for a subset of Compliance Regimes." + "description": "Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS CMEK key is provisioned. This field is deprecated as of Feb 28, 2022. In order to create a Keyring, callers should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field." }, "labels": { "additionalProperties": { @@ -1189,7 +1189,7 @@ "properties": { "kmsSettings": { "$ref": "GoogleCloudAssuredworkloadsVersioningV1mainWorkloadKMSSettings", - "description": "Required. Input only. Immutable. Settings used to create a CMEK crypto key." + "description": "Input only. Immutable. Settings used to create a CMEK crypto key." } }, "type": "object" @@ -1200,7 +1200,7 @@ "properties": { "kmsSettings": { "$ref": "GoogleCloudAssuredworkloadsVersioningV1mainWorkloadKMSSettings", - "description": "Required. Input only. Immutable. Settings used to create a CMEK crypto key." + "description": "Input only. Immutable. Settings used to create a CMEK crypto key." } }, "type": "object" @@ -1211,7 +1211,7 @@ "properties": { "kmsSettings": { "$ref": "GoogleCloudAssuredworkloadsVersioningV1mainWorkloadKMSSettings", - "description": "Required. Input only. Immutable. Settings used to create a CMEK crypto key." + "description": "Input only. Immutable. Settings used to create a CMEK crypto key." } }, "type": "object" @@ -1222,7 +1222,7 @@ "properties": { "kmsSettings": { "$ref": "GoogleCloudAssuredworkloadsVersioningV1mainWorkloadKMSSettings", - "description": "Required. Input only. Immutable. Settings used to create a CMEK crypto key." + "description": "Input only. Immutable. Settings used to create a CMEK crypto key." } }, "type": "object" @@ -1283,7 +1283,7 @@ "type": "string" }, "resourceId": { - "description": "Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail.", + "description": "Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail. For KeyRing, this represents the keyring_id. For a folder, don't set this value as folder_id is assigned by Google.", "type": "string" }, "resourceType": { diff --git a/assuredworkloads/v1/assuredworkloads-gen.go b/assuredworkloads/v1/assuredworkloads-gen.go index 6b61ca58efe..3a00f13d45d 100644 --- a/assuredworkloads/v1/assuredworkloads-gen.go +++ b/assuredworkloads/v1/assuredworkloads-gen.go @@ -340,8 +340,10 @@ type GoogleCloudAssuredworkloadsV1Workload struct { KajEnrollmentState string `json:"kajEnrollmentState,omitempty"` // KmsSettings: Input only. Settings used to create a CMEK crypto key. - // When set a project with a KMS CMEK key is provisioned. This field is - // mandatory for a subset of Compliance Regimes. + // When set, a project with a KMS CMEK key is provisioned. This field is + // deprecated as of Feb 28, 2022. In order to create a Keyring, callers + // should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in + // ResourceSettings.resource_type field. KmsSettings *GoogleCloudAssuredworkloadsV1WorkloadKMSSettings `json:"kmsSettings,omitempty"` // Labels: Optional. Labels applied to the workload. @@ -496,7 +498,8 @@ type GoogleCloudAssuredworkloadsV1WorkloadResourceSettings struct { // ResourceId: Resource identifier. For a project this represents // project_id. If the project is already taken, the workload creation - // will fail. + // will fail. For KeyRing, this represents the keyring_id. For a folder, + // don't set this value as folder_id is assigned by Google. ResourceId string `json:"resourceId,omitempty"` // ResourceType: Indicates the type of resource. This field should be @@ -660,8 +663,8 @@ type GoogleCloudAssuredworkloadsV1beta1Workload struct { // `billingAccounts/012345-567890-ABCDEF`. BillingAccount string `json:"billingAccount,omitempty"` - // CjisSettings: Required. Input only. Immutable. Settings specific to - // resources needed for CJIS. + // CjisSettings: Input only. Immutable. Settings specific to resources + // needed for CJIS. CjisSettings *GoogleCloudAssuredworkloadsV1beta1WorkloadCJISSettings `json:"cjisSettings,omitempty"` // ComplianceRegime: Required. Immutable. Compliance Regime associated @@ -704,16 +707,16 @@ type GoogleCloudAssuredworkloadsV1beta1Workload struct { // operations. Etag string `json:"etag,omitempty"` - // FedrampHighSettings: Required. Input only. Immutable. Settings - // specific to resources needed for FedRAMP High. + // FedrampHighSettings: Input only. Immutable. Settings specific to + // resources needed for FedRAMP High. FedrampHighSettings *GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings `json:"fedrampHighSettings,omitempty"` - // FedrampModerateSettings: Required. Input only. Immutable. Settings - // specific to resources needed for FedRAMP Moderate. + // FedrampModerateSettings: Input only. Immutable. Settings specific to + // resources needed for FedRAMP Moderate. FedrampModerateSettings *GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings `json:"fedrampModerateSettings,omitempty"` - // Il4Settings: Required. Input only. Immutable. Settings specific to - // resources needed for IL4. + // Il4Settings: Input only. Immutable. Settings specific to resources + // needed for IL4. Il4Settings *GoogleCloudAssuredworkloadsV1beta1WorkloadIL4Settings `json:"il4Settings,omitempty"` // KajEnrollmentState: Output only. Represents the KAJ enrollment state @@ -728,8 +731,10 @@ type GoogleCloudAssuredworkloadsV1beta1Workload struct { KajEnrollmentState string `json:"kajEnrollmentState,omitempty"` // KmsSettings: Input only. Settings used to create a CMEK crypto key. - // When set a project with a KMS CMEK key is provisioned. This field is - // mandatory for a subset of Compliance Regimes. + // When set, a project with a KMS CMEK key is provisioned. This field is + // deprecated as of Feb 28, 2022. In order to create a Keyring, callers + // should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in + // ResourceSettings.resource_type field. KmsSettings *GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings `json:"kmsSettings,omitempty"` // Labels: Optional. Labels applied to the workload. @@ -792,8 +797,8 @@ func (s *GoogleCloudAssuredworkloadsV1beta1Workload) MarshalJSON() ([]byte, erro // GoogleCloudAssuredworkloadsV1beta1WorkloadCJISSettings: Settings // specific to resources needed for CJIS. type GoogleCloudAssuredworkloadsV1beta1WorkloadCJISSettings struct { - // KmsSettings: Required. Input only. Immutable. Settings used to create - // a CMEK crypto key. + // KmsSettings: Input only. Immutable. Settings used to create a CMEK + // crypto key. KmsSettings *GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings `json:"kmsSettings,omitempty"` // ForceSendFields is a list of field names (e.g. "KmsSettings") to @@ -822,8 +827,8 @@ func (s *GoogleCloudAssuredworkloadsV1beta1WorkloadCJISSettings) MarshalJSON() ( // GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings: // Settings specific to resources needed for FedRAMP High. type GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings struct { - // KmsSettings: Required. Input only. Immutable. Settings used to create - // a CMEK crypto key. + // KmsSettings: Input only. Immutable. Settings used to create a CMEK + // crypto key. KmsSettings *GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings `json:"kmsSettings,omitempty"` // ForceSendFields is a list of field names (e.g. "KmsSettings") to @@ -852,8 +857,8 @@ func (s *GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampHighSettings) MarshalJ // GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings: // Settings specific to resources needed for FedRAMP Moderate. type GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings struct { - // KmsSettings: Required. Input only. Immutable. Settings used to create - // a CMEK crypto key. + // KmsSettings: Input only. Immutable. Settings used to create a CMEK + // crypto key. KmsSettings *GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings `json:"kmsSettings,omitempty"` // ForceSendFields is a list of field names (e.g. "KmsSettings") to @@ -882,8 +887,8 @@ func (s *GoogleCloudAssuredworkloadsV1beta1WorkloadFedrampModerateSettings) Mars // GoogleCloudAssuredworkloadsV1beta1WorkloadIL4Settings: Settings // specific to resources needed for IL4. type GoogleCloudAssuredworkloadsV1beta1WorkloadIL4Settings struct { - // KmsSettings: Required. Input only. Immutable. Settings used to create - // a CMEK crypto key. + // KmsSettings: Input only. Immutable. Settings used to create a CMEK + // crypto key. KmsSettings *GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings `json:"kmsSettings,omitempty"` // ForceSendFields is a list of field names (e.g. "KmsSettings") to @@ -999,7 +1004,8 @@ type GoogleCloudAssuredworkloadsV1beta1WorkloadResourceSettings struct { // ResourceId: Resource identifier. For a project this represents // project_id. If the project is already taken, the workload creation - // will fail. + // will fail. For KeyRing, this represents the keyring_id. For a folder, + // don't set this value as folder_id is assigned by Google. ResourceId string `json:"resourceId,omitempty"` // ResourceType: Indicates the type of resource. This field should be @@ -1230,8 +1236,10 @@ type GoogleCloudAssuredworkloadsVersioningV1mainWorkload struct { KajEnrollmentState string `json:"kajEnrollmentState,omitempty"` // KmsSettings: Input only. Settings used to create a CMEK crypto key. - // When set a project with a KMS CMEK key is provisioned. This field is - // mandatory for a subset of Compliance Regimes. + // When set, a project with a KMS CMEK key is provisioned. This field is + // deprecated as of Feb 28, 2022. In order to create a Keyring, callers + // should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in + // ResourceSettings.resource_type field. KmsSettings *GoogleCloudAssuredworkloadsVersioningV1mainWorkloadKMSSettings `json:"kmsSettings,omitempty"` // Labels: Optional. Labels applied to the workload. @@ -1294,8 +1302,8 @@ func (s *GoogleCloudAssuredworkloadsVersioningV1mainWorkload) MarshalJSON() ([]b // GoogleCloudAssuredworkloadsVersioningV1mainWorkloadCJISSettings: // Settings specific to resources needed for CJIS. type GoogleCloudAssuredworkloadsVersioningV1mainWorkloadCJISSettings struct { - // KmsSettings: Required. Input only. Immutable. Settings used to create - // a CMEK crypto key. + // KmsSettings: Input only. Immutable. Settings used to create a CMEK + // crypto key. KmsSettings *GoogleCloudAssuredworkloadsVersioningV1mainWorkloadKMSSettings `json:"kmsSettings,omitempty"` // ForceSendFields is a list of field names (e.g. "KmsSettings") to @@ -1324,8 +1332,8 @@ func (s *GoogleCloudAssuredworkloadsVersioningV1mainWorkloadCJISSettings) Marsha // GoogleCloudAssuredworkloadsVersioningV1mainWorkloadFedrampHighSettings // : Settings specific to resources needed for FedRAMP High. type GoogleCloudAssuredworkloadsVersioningV1mainWorkloadFedrampHighSettings struct { - // KmsSettings: Required. Input only. Immutable. Settings used to create - // a CMEK crypto key. + // KmsSettings: Input only. Immutable. Settings used to create a CMEK + // crypto key. KmsSettings *GoogleCloudAssuredworkloadsVersioningV1mainWorkloadKMSSettings `json:"kmsSettings,omitempty"` // ForceSendFields is a list of field names (e.g. "KmsSettings") to @@ -1354,8 +1362,8 @@ func (s *GoogleCloudAssuredworkloadsVersioningV1mainWorkloadFedrampHighSettings) // GoogleCloudAssuredworkloadsVersioningV1mainWorkloadFedrampModerateSett // ings: Settings specific to resources needed for FedRAMP Moderate. type GoogleCloudAssuredworkloadsVersioningV1mainWorkloadFedrampModerateSettings struct { - // KmsSettings: Required. Input only. Immutable. Settings used to create - // a CMEK crypto key. + // KmsSettings: Input only. Immutable. Settings used to create a CMEK + // crypto key. KmsSettings *GoogleCloudAssuredworkloadsVersioningV1mainWorkloadKMSSettings `json:"kmsSettings,omitempty"` // ForceSendFields is a list of field names (e.g. "KmsSettings") to @@ -1384,8 +1392,8 @@ func (s *GoogleCloudAssuredworkloadsVersioningV1mainWorkloadFedrampModerateSetti // GoogleCloudAssuredworkloadsVersioningV1mainWorkloadIL4Settings: // Settings specific to resources needed for IL4. type GoogleCloudAssuredworkloadsVersioningV1mainWorkloadIL4Settings struct { - // KmsSettings: Required. Input only. Immutable. Settings used to create - // a CMEK crypto key. + // KmsSettings: Input only. Immutable. Settings used to create a CMEK + // crypto key. KmsSettings *GoogleCloudAssuredworkloadsVersioningV1mainWorkloadKMSSettings `json:"kmsSettings,omitempty"` // ForceSendFields is a list of field names (e.g. "KmsSettings") to @@ -1501,7 +1509,8 @@ type GoogleCloudAssuredworkloadsVersioningV1mainWorkloadResourceSettings struct // ResourceId: Resource identifier. For a project this represents // project_id. If the project is already taken, the workload creation - // will fail. + // will fail. For KeyRing, this represents the keyring_id. For a folder, + // don't set this value as folder_id is assigned by Google. ResourceId string `json:"resourceId,omitempty"` // ResourceType: Indicates the type of resource. This field should be diff --git a/bigquerydatatransfer/v1/bigquerydatatransfer-api.json b/bigquerydatatransfer/v1/bigquerydatatransfer-api.json index 0387c24b35a..72d787f7d8c 100644 --- a/bigquerydatatransfer/v1/bigquerydatatransfer-api.json +++ b/bigquerydatatransfer/v1/bigquerydatatransfer-api.json @@ -457,7 +457,7 @@ ], "parameters": { "authorizationCode": { - "description": "Optional OAuth2 authorization code to use with this transfer configuration. This is required if new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri= * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. * redirect_uri is an optional parameter. If not specified, then authorization code is posted to the opener of authorization flow window. Otherwise it will be sent to the redirect uri. A special value of urn:ietf:wg:oauth:2.0:oob means that authorization code should be returned in the title bar of the browser, with the page text prompting the user to copy the code and paste it in the application.", + "description": "Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri=urn:ietf:wg:oauth:2.0:oob\u0026response_type=authorization_code * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.", "location": "query", "type": "string" }, @@ -469,12 +469,12 @@ "type": "string" }, "serviceAccountName": { - "description": "Optional service account name. If this field is set, transfer config will be created with this service account credentials. It requires that requesting user calling this API has permissions to act as this service account.", + "description": "Optional service account name. If this field is set, transfer config will be created with this service account credential. It requires that requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating transfer config. Please refer to this public guide for the latest list of data sources with service account support: https://cloud.google.com/bigquery-transfer/docs/use-service-accounts", "location": "query", "type": "string" }, "versionInfo": { - "description": "Optional version info. If users want to find a very recent access token, that is, immediately after approving access, users have to set the version_info claim in the token request. To obtain the version_info, users must use the \"none+gsession\" response type. which be return a version_info back in the authorization response which be be put in a JWT claim in the token request.", + "description": "Optional version info. This is required only if `transferConfig.dataSourceId` is anything else but 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain version info, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri=urn:ietf:wg:oauth:2.0:oob\u0026response_type=version_info * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.", "location": "query", "type": "string" } @@ -597,7 +597,7 @@ ], "parameters": { "authorizationCode": { - "description": "Optional OAuth2 authorization code to use with this transfer configuration. If it is provided, the transfer configuration will be associated with the authorizing user. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri= * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. * redirect_uri is an optional parameter. If not specified, then authorization code is posted to the opener of authorization flow window. Otherwise it will be sent to the redirect uri. A special value of urn:ietf:wg:oauth:2.0:oob means that authorization code should be returned in the title bar of the browser, with the page text prompting the user to copy the code and paste it in the application.", + "description": "Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri=urn:ietf:wg:oauth:2.0:oob\u0026response_type=authorization_code * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.", "location": "query", "type": "string" }, @@ -609,7 +609,7 @@ "type": "string" }, "serviceAccountName": { - "description": "Optional service account name. If this field is set and \"service_account_name\" is set in update_mask, transfer config will be updated to use this service account credentials. It requires that requesting user calling this API has permissions to act as this service account.", + "description": "Optional service account name. If this field is set and \"service_account_name\" is set in update_mask, transfer config will be created with this service account credential. It requires that requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating transfer config. Please refer to this public guide for the latest list of data sources with service account support: https://cloud.google.com/bigquery-transfer/docs/use-service-accounts", "location": "query", "type": "string" }, @@ -620,7 +620,7 @@ "type": "string" }, "versionInfo": { - "description": "Optional version info. If users want to find a very recent access token, that is, immediately after approving access, users have to set the version_info claim in the token request. To obtain the version_info, users must use the \"none+gsession\" response type. which be return a version_info back in the authorization response which be be put in a JWT claim in the token request.", + "description": "Optional version info. This is required only if `transferConfig.dataSourceId` is anything else but 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain version info, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri=urn:ietf:wg:oauth:2.0:oob\u0026response_type=version_info * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.", "location": "query", "type": "string" } @@ -904,7 +904,7 @@ ], "parameters": { "authorizationCode": { - "description": "Optional OAuth2 authorization code to use with this transfer configuration. This is required if new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri= * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. * redirect_uri is an optional parameter. If not specified, then authorization code is posted to the opener of authorization flow window. Otherwise it will be sent to the redirect uri. A special value of urn:ietf:wg:oauth:2.0:oob means that authorization code should be returned in the title bar of the browser, with the page text prompting the user to copy the code and paste it in the application.", + "description": "Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri=urn:ietf:wg:oauth:2.0:oob\u0026response_type=authorization_code * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.", "location": "query", "type": "string" }, @@ -916,12 +916,12 @@ "type": "string" }, "serviceAccountName": { - "description": "Optional service account name. If this field is set, transfer config will be created with this service account credentials. It requires that requesting user calling this API has permissions to act as this service account.", + "description": "Optional service account name. If this field is set, transfer config will be created with this service account credential. It requires that requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating transfer config. Please refer to this public guide for the latest list of data sources with service account support: https://cloud.google.com/bigquery-transfer/docs/use-service-accounts", "location": "query", "type": "string" }, "versionInfo": { - "description": "Optional version info. If users want to find a very recent access token, that is, immediately after approving access, users have to set the version_info claim in the token request. To obtain the version_info, users must use the \"none+gsession\" response type. which be return a version_info back in the authorization response which be be put in a JWT claim in the token request.", + "description": "Optional version info. This is required only if `transferConfig.dataSourceId` is anything else but 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain version info, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri=urn:ietf:wg:oauth:2.0:oob\u0026response_type=version_info * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.", "location": "query", "type": "string" } @@ -1044,7 +1044,7 @@ ], "parameters": { "authorizationCode": { - "description": "Optional OAuth2 authorization code to use with this transfer configuration. If it is provided, the transfer configuration will be associated with the authorizing user. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri= * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. * redirect_uri is an optional parameter. If not specified, then authorization code is posted to the opener of authorization flow window. Otherwise it will be sent to the redirect uri. A special value of urn:ietf:wg:oauth:2.0:oob means that authorization code should be returned in the title bar of the browser, with the page text prompting the user to copy the code and paste it in the application.", + "description": "Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri=urn:ietf:wg:oauth:2.0:oob\u0026response_type=authorization_code * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.", "location": "query", "type": "string" }, @@ -1056,7 +1056,7 @@ "type": "string" }, "serviceAccountName": { - "description": "Optional service account name. If this field is set and \"service_account_name\" is set in update_mask, transfer config will be updated to use this service account credentials. It requires that requesting user calling this API has permissions to act as this service account.", + "description": "Optional service account name. If this field is set and \"service_account_name\" is set in update_mask, transfer config will be created with this service account credential. It requires that requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating transfer config. Please refer to this public guide for the latest list of data sources with service account support: https://cloud.google.com/bigquery-transfer/docs/use-service-accounts", "location": "query", "type": "string" }, @@ -1067,7 +1067,7 @@ "type": "string" }, "versionInfo": { - "description": "Optional version info. If users want to find a very recent access token, that is, immediately after approving access, users have to set the version_info claim in the token request. To obtain the version_info, users must use the \"none+gsession\" response type. which be return a version_info back in the authorization response which be be put in a JWT claim in the token request.", + "description": "Optional version info. This is required only if `transferConfig.dataSourceId` is anything else but 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain version info, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri=urn:ietf:wg:oauth:2.0:oob\u0026response_type=version_info * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.", "location": "query", "type": "string" } @@ -1340,7 +1340,7 @@ } } }, - "revision": "20220116", + "revision": "20220225", "rootUrl": "https://bigquerydatatransfer.googleapis.com/", "schemas": { "CheckValidCredsRequest": { diff --git a/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go b/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go index 881716c749b..388e5d62cab 100644 --- a/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go +++ b/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go @@ -3113,20 +3113,16 @@ func (r *ProjectsLocationsTransferConfigsService) Create(parent string, transfer // AuthorizationCode sets the optional parameter "authorizationCode": // Optional OAuth2 authorization code to use with this transfer -// configuration. This is required if new credentials are needed, as -// indicated by `CheckValidCreds`. In order to obtain -// authorization_code, please make a request to -// https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri= +// configuration. This is required only if `transferConfig.dataSourceId` +// is 'youtube_channel' and new credentials are needed, as indicated by +// `CheckValidCreds`. In order to obtain authorization_code, please make +// a request to +// https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code // * client_id should be OAuth client_id of BigQuery DTS API for the // given data source returned by ListDataSources method. * // data_source_scopes are the scopes returned by ListDataSources method. -// * redirect_uri is an optional parameter. If not specified, then -// authorization code is posted to the opener of authorization flow -// window. Otherwise it will be sent to the redirect uri. A special -// value of urn:ietf:wg:oauth:2.0:oob means that authorization code -// should be returned in the title bar of the browser, with the page -// text prompting the user to copy the code and paste it in the -// application. +// Note that this should not be set when `service_account_name` is used +// to create the transfer config. func (c *ProjectsLocationsTransferConfigsCreateCall) AuthorizationCode(authorizationCode string) *ProjectsLocationsTransferConfigsCreateCall { c.urlParams_.Set("authorizationCode", authorizationCode) return c @@ -3134,21 +3130,29 @@ func (c *ProjectsLocationsTransferConfigsCreateCall) AuthorizationCode(authoriza // ServiceAccountName sets the optional parameter "serviceAccountName": // Optional service account name. If this field is set, transfer config -// will be created with this service account credentials. It requires +// will be created with this service account credential. It requires // that requesting user calling this API has permissions to act as this -// service account. +// service account. Note that not all data sources support service +// account credentials when creating transfer config. Please refer to +// this public guide for the latest list of data sources with service +// account support: +// https://cloud.google.com/bigquery-transfer/docs/use-service-accounts func (c *ProjectsLocationsTransferConfigsCreateCall) ServiceAccountName(serviceAccountName string) *ProjectsLocationsTransferConfigsCreateCall { c.urlParams_.Set("serviceAccountName", serviceAccountName) return c } // VersionInfo sets the optional parameter "versionInfo": Optional -// version info. If users want to find a very recent access token, that -// is, immediately after approving access, users have to set the -// version_info claim in the token request. To obtain the version_info, -// users must use the "none+gsession" response type. which be return a -// version_info back in the authorization response which be be put in a -// JWT claim in the token request. +// version info. This is required only if `transferConfig.dataSourceId` +// is anything else but 'youtube_channel' and new credentials are +// needed, as indicated by `CheckValidCreds`. In order to obtain version +// info, please make a request to +// https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info +// * client_id should be OAuth client_id of BigQuery DTS API for the +// given data source returned by ListDataSources method. * +// data_source_scopes are the scopes returned by ListDataSources method. +// Note that this should not be set when `service_account_name` is used +// to create the transfer config. func (c *ProjectsLocationsTransferConfigsCreateCall) VersionInfo(versionInfo string) *ProjectsLocationsTransferConfigsCreateCall { c.urlParams_.Set("versionInfo", versionInfo) return c @@ -3254,7 +3258,7 @@ func (c *ProjectsLocationsTransferConfigsCreateCall) Do(opts ...googleapi.CallOp // ], // "parameters": { // "authorizationCode": { - // "description": "Optional OAuth2 authorization code to use with this transfer configuration. This is required if new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri= * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. * redirect_uri is an optional parameter. If not specified, then authorization code is posted to the opener of authorization flow window. Otherwise it will be sent to the redirect uri. A special value of urn:ietf:wg:oauth:2.0:oob means that authorization code should be returned in the title bar of the browser, with the page text prompting the user to copy the code and paste it in the application.", + // "description": "Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri=urn:ietf:wg:oauth:2.0:oob\u0026response_type=authorization_code * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.", // "location": "query", // "type": "string" // }, @@ -3266,12 +3270,12 @@ func (c *ProjectsLocationsTransferConfigsCreateCall) Do(opts ...googleapi.CallOp // "type": "string" // }, // "serviceAccountName": { - // "description": "Optional service account name. If this field is set, transfer config will be created with this service account credentials. It requires that requesting user calling this API has permissions to act as this service account.", + // "description": "Optional service account name. If this field is set, transfer config will be created with this service account credential. It requires that requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating transfer config. Please refer to this public guide for the latest list of data sources with service account support: https://cloud.google.com/bigquery-transfer/docs/use-service-accounts", // "location": "query", // "type": "string" // }, // "versionInfo": { - // "description": "Optional version info. If users want to find a very recent access token, that is, immediately after approving access, users have to set the version_info claim in the token request. To obtain the version_info, users must use the \"none+gsession\" response type. which be return a version_info back in the authorization response which be be put in a JWT claim in the token request.", + // "description": "Optional version info. This is required only if `transferConfig.dataSourceId` is anything else but 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain version info, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri=urn:ietf:wg:oauth:2.0:oob\u0026response_type=version_info * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.", // "location": "query", // "type": "string" // } @@ -3822,20 +3826,16 @@ func (r *ProjectsLocationsTransferConfigsService) Patch(name string, transfercon // AuthorizationCode sets the optional parameter "authorizationCode": // Optional OAuth2 authorization code to use with this transfer -// configuration. If it is provided, the transfer configuration will be -// associated with the authorizing user. In order to obtain -// authorization_code, please make a request to -// https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri= +// configuration. This is required only if `transferConfig.dataSourceId` +// is 'youtube_channel' and new credentials are needed, as indicated by +// `CheckValidCreds`. In order to obtain authorization_code, please make +// a request to +// https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code // * client_id should be OAuth client_id of BigQuery DTS API for the // given data source returned by ListDataSources method. * // data_source_scopes are the scopes returned by ListDataSources method. -// * redirect_uri is an optional parameter. If not specified, then -// authorization code is posted to the opener of authorization flow -// window. Otherwise it will be sent to the redirect uri. A special -// value of urn:ietf:wg:oauth:2.0:oob means that authorization code -// should be returned in the title bar of the browser, with the page -// text prompting the user to copy the code and paste it in the -// application. +// Note that this should not be set when `service_account_name` is used +// to create the transfer config. func (c *ProjectsLocationsTransferConfigsPatchCall) AuthorizationCode(authorizationCode string) *ProjectsLocationsTransferConfigsPatchCall { c.urlParams_.Set("authorizationCode", authorizationCode) return c @@ -3844,9 +3844,13 @@ func (c *ProjectsLocationsTransferConfigsPatchCall) AuthorizationCode(authorizat // ServiceAccountName sets the optional parameter "serviceAccountName": // Optional service account name. If this field is set and // "service_account_name" is set in update_mask, transfer config will be -// updated to use this service account credentials. It requires that +// created with this service account credential. It requires that // requesting user calling this API has permissions to act as this -// service account. +// service account. Note that not all data sources support service +// account credentials when creating transfer config. Please refer to +// this public guide for the latest list of data sources with service +// account support: +// https://cloud.google.com/bigquery-transfer/docs/use-service-accounts func (c *ProjectsLocationsTransferConfigsPatchCall) ServiceAccountName(serviceAccountName string) *ProjectsLocationsTransferConfigsPatchCall { c.urlParams_.Set("serviceAccountName", serviceAccountName) return c @@ -3860,12 +3864,16 @@ func (c *ProjectsLocationsTransferConfigsPatchCall) UpdateMask(updateMask string } // VersionInfo sets the optional parameter "versionInfo": Optional -// version info. If users want to find a very recent access token, that -// is, immediately after approving access, users have to set the -// version_info claim in the token request. To obtain the version_info, -// users must use the "none+gsession" response type. which be return a -// version_info back in the authorization response which be be put in a -// JWT claim in the token request. +// version info. This is required only if `transferConfig.dataSourceId` +// is anything else but 'youtube_channel' and new credentials are +// needed, as indicated by `CheckValidCreds`. In order to obtain version +// info, please make a request to +// https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info +// * client_id should be OAuth client_id of BigQuery DTS API for the +// given data source returned by ListDataSources method. * +// data_source_scopes are the scopes returned by ListDataSources method. +// Note that this should not be set when `service_account_name` is used +// to create the transfer config. func (c *ProjectsLocationsTransferConfigsPatchCall) VersionInfo(versionInfo string) *ProjectsLocationsTransferConfigsPatchCall { c.urlParams_.Set("versionInfo", versionInfo) return c @@ -3971,7 +3979,7 @@ func (c *ProjectsLocationsTransferConfigsPatchCall) Do(opts ...googleapi.CallOpt // ], // "parameters": { // "authorizationCode": { - // "description": "Optional OAuth2 authorization code to use with this transfer configuration. If it is provided, the transfer configuration will be associated with the authorizing user. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri= * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. * redirect_uri is an optional parameter. If not specified, then authorization code is posted to the opener of authorization flow window. Otherwise it will be sent to the redirect uri. A special value of urn:ietf:wg:oauth:2.0:oob means that authorization code should be returned in the title bar of the browser, with the page text prompting the user to copy the code and paste it in the application.", + // "description": "Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri=urn:ietf:wg:oauth:2.0:oob\u0026response_type=authorization_code * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.", // "location": "query", // "type": "string" // }, @@ -3983,7 +3991,7 @@ func (c *ProjectsLocationsTransferConfigsPatchCall) Do(opts ...googleapi.CallOpt // "type": "string" // }, // "serviceAccountName": { - // "description": "Optional service account name. If this field is set and \"service_account_name\" is set in update_mask, transfer config will be updated to use this service account credentials. It requires that requesting user calling this API has permissions to act as this service account.", + // "description": "Optional service account name. If this field is set and \"service_account_name\" is set in update_mask, transfer config will be created with this service account credential. It requires that requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating transfer config. Please refer to this public guide for the latest list of data sources with service account support: https://cloud.google.com/bigquery-transfer/docs/use-service-accounts", // "location": "query", // "type": "string" // }, @@ -3994,7 +4002,7 @@ func (c *ProjectsLocationsTransferConfigsPatchCall) Do(opts ...googleapi.CallOpt // "type": "string" // }, // "versionInfo": { - // "description": "Optional version info. If users want to find a very recent access token, that is, immediately after approving access, users have to set the version_info claim in the token request. To obtain the version_info, users must use the \"none+gsession\" response type. which be return a version_info back in the authorization response which be be put in a JWT claim in the token request.", + // "description": "Optional version info. This is required only if `transferConfig.dataSourceId` is anything else but 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain version info, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri=urn:ietf:wg:oauth:2.0:oob\u0026response_type=version_info * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.", // "location": "query", // "type": "string" // } @@ -5128,20 +5136,16 @@ func (r *ProjectsTransferConfigsService) Create(parent string, transferconfig *T // AuthorizationCode sets the optional parameter "authorizationCode": // Optional OAuth2 authorization code to use with this transfer -// configuration. This is required if new credentials are needed, as -// indicated by `CheckValidCreds`. In order to obtain -// authorization_code, please make a request to -// https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri= +// configuration. This is required only if `transferConfig.dataSourceId` +// is 'youtube_channel' and new credentials are needed, as indicated by +// `CheckValidCreds`. In order to obtain authorization_code, please make +// a request to +// https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code // * client_id should be OAuth client_id of BigQuery DTS API for the // given data source returned by ListDataSources method. * // data_source_scopes are the scopes returned by ListDataSources method. -// * redirect_uri is an optional parameter. If not specified, then -// authorization code is posted to the opener of authorization flow -// window. Otherwise it will be sent to the redirect uri. A special -// value of urn:ietf:wg:oauth:2.0:oob means that authorization code -// should be returned in the title bar of the browser, with the page -// text prompting the user to copy the code and paste it in the -// application. +// Note that this should not be set when `service_account_name` is used +// to create the transfer config. func (c *ProjectsTransferConfigsCreateCall) AuthorizationCode(authorizationCode string) *ProjectsTransferConfigsCreateCall { c.urlParams_.Set("authorizationCode", authorizationCode) return c @@ -5149,21 +5153,29 @@ func (c *ProjectsTransferConfigsCreateCall) AuthorizationCode(authorizationCode // ServiceAccountName sets the optional parameter "serviceAccountName": // Optional service account name. If this field is set, transfer config -// will be created with this service account credentials. It requires +// will be created with this service account credential. It requires // that requesting user calling this API has permissions to act as this -// service account. +// service account. Note that not all data sources support service +// account credentials when creating transfer config. Please refer to +// this public guide for the latest list of data sources with service +// account support: +// https://cloud.google.com/bigquery-transfer/docs/use-service-accounts func (c *ProjectsTransferConfigsCreateCall) ServiceAccountName(serviceAccountName string) *ProjectsTransferConfigsCreateCall { c.urlParams_.Set("serviceAccountName", serviceAccountName) return c } // VersionInfo sets the optional parameter "versionInfo": Optional -// version info. If users want to find a very recent access token, that -// is, immediately after approving access, users have to set the -// version_info claim in the token request. To obtain the version_info, -// users must use the "none+gsession" response type. which be return a -// version_info back in the authorization response which be be put in a -// JWT claim in the token request. +// version info. This is required only if `transferConfig.dataSourceId` +// is anything else but 'youtube_channel' and new credentials are +// needed, as indicated by `CheckValidCreds`. In order to obtain version +// info, please make a request to +// https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info +// * client_id should be OAuth client_id of BigQuery DTS API for the +// given data source returned by ListDataSources method. * +// data_source_scopes are the scopes returned by ListDataSources method. +// Note that this should not be set when `service_account_name` is used +// to create the transfer config. func (c *ProjectsTransferConfigsCreateCall) VersionInfo(versionInfo string) *ProjectsTransferConfigsCreateCall { c.urlParams_.Set("versionInfo", versionInfo) return c @@ -5269,7 +5281,7 @@ func (c *ProjectsTransferConfigsCreateCall) Do(opts ...googleapi.CallOption) (*T // ], // "parameters": { // "authorizationCode": { - // "description": "Optional OAuth2 authorization code to use with this transfer configuration. This is required if new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri= * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. * redirect_uri is an optional parameter. If not specified, then authorization code is posted to the opener of authorization flow window. Otherwise it will be sent to the redirect uri. A special value of urn:ietf:wg:oauth:2.0:oob means that authorization code should be returned in the title bar of the browser, with the page text prompting the user to copy the code and paste it in the application.", + // "description": "Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri=urn:ietf:wg:oauth:2.0:oob\u0026response_type=authorization_code * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.", // "location": "query", // "type": "string" // }, @@ -5281,12 +5293,12 @@ func (c *ProjectsTransferConfigsCreateCall) Do(opts ...googleapi.CallOption) (*T // "type": "string" // }, // "serviceAccountName": { - // "description": "Optional service account name. If this field is set, transfer config will be created with this service account credentials. It requires that requesting user calling this API has permissions to act as this service account.", + // "description": "Optional service account name. If this field is set, transfer config will be created with this service account credential. It requires that requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating transfer config. Please refer to this public guide for the latest list of data sources with service account support: https://cloud.google.com/bigquery-transfer/docs/use-service-accounts", // "location": "query", // "type": "string" // }, // "versionInfo": { - // "description": "Optional version info. If users want to find a very recent access token, that is, immediately after approving access, users have to set the version_info claim in the token request. To obtain the version_info, users must use the \"none+gsession\" response type. which be return a version_info back in the authorization response which be be put in a JWT claim in the token request.", + // "description": "Optional version info. This is required only if `transferConfig.dataSourceId` is anything else but 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain version info, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri=urn:ietf:wg:oauth:2.0:oob\u0026response_type=version_info * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.", // "location": "query", // "type": "string" // } @@ -5837,20 +5849,16 @@ func (r *ProjectsTransferConfigsService) Patch(name string, transferconfig *Tran // AuthorizationCode sets the optional parameter "authorizationCode": // Optional OAuth2 authorization code to use with this transfer -// configuration. If it is provided, the transfer configuration will be -// associated with the authorizing user. In order to obtain -// authorization_code, please make a request to -// https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri= +// configuration. This is required only if `transferConfig.dataSourceId` +// is 'youtube_channel' and new credentials are needed, as indicated by +// `CheckValidCreds`. In order to obtain authorization_code, please make +// a request to +// https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code // * client_id should be OAuth client_id of BigQuery DTS API for the // given data source returned by ListDataSources method. * // data_source_scopes are the scopes returned by ListDataSources method. -// * redirect_uri is an optional parameter. If not specified, then -// authorization code is posted to the opener of authorization flow -// window. Otherwise it will be sent to the redirect uri. A special -// value of urn:ietf:wg:oauth:2.0:oob means that authorization code -// should be returned in the title bar of the browser, with the page -// text prompting the user to copy the code and paste it in the -// application. +// Note that this should not be set when `service_account_name` is used +// to create the transfer config. func (c *ProjectsTransferConfigsPatchCall) AuthorizationCode(authorizationCode string) *ProjectsTransferConfigsPatchCall { c.urlParams_.Set("authorizationCode", authorizationCode) return c @@ -5859,9 +5867,13 @@ func (c *ProjectsTransferConfigsPatchCall) AuthorizationCode(authorizationCode s // ServiceAccountName sets the optional parameter "serviceAccountName": // Optional service account name. If this field is set and // "service_account_name" is set in update_mask, transfer config will be -// updated to use this service account credentials. It requires that +// created with this service account credential. It requires that // requesting user calling this API has permissions to act as this -// service account. +// service account. Note that not all data sources support service +// account credentials when creating transfer config. Please refer to +// this public guide for the latest list of data sources with service +// account support: +// https://cloud.google.com/bigquery-transfer/docs/use-service-accounts func (c *ProjectsTransferConfigsPatchCall) ServiceAccountName(serviceAccountName string) *ProjectsTransferConfigsPatchCall { c.urlParams_.Set("serviceAccountName", serviceAccountName) return c @@ -5875,12 +5887,16 @@ func (c *ProjectsTransferConfigsPatchCall) UpdateMask(updateMask string) *Projec } // VersionInfo sets the optional parameter "versionInfo": Optional -// version info. If users want to find a very recent access token, that -// is, immediately after approving access, users have to set the -// version_info claim in the token request. To obtain the version_info, -// users must use the "none+gsession" response type. which be return a -// version_info back in the authorization response which be be put in a -// JWT claim in the token request. +// version info. This is required only if `transferConfig.dataSourceId` +// is anything else but 'youtube_channel' and new credentials are +// needed, as indicated by `CheckValidCreds`. In order to obtain version +// info, please make a request to +// https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info +// * client_id should be OAuth client_id of BigQuery DTS API for the +// given data source returned by ListDataSources method. * +// data_source_scopes are the scopes returned by ListDataSources method. +// Note that this should not be set when `service_account_name` is used +// to create the transfer config. func (c *ProjectsTransferConfigsPatchCall) VersionInfo(versionInfo string) *ProjectsTransferConfigsPatchCall { c.urlParams_.Set("versionInfo", versionInfo) return c @@ -5986,7 +6002,7 @@ func (c *ProjectsTransferConfigsPatchCall) Do(opts ...googleapi.CallOption) (*Tr // ], // "parameters": { // "authorizationCode": { - // "description": "Optional OAuth2 authorization code to use with this transfer configuration. If it is provided, the transfer configuration will be associated with the authorizing user. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri= * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. * redirect_uri is an optional parameter. If not specified, then authorization code is posted to the opener of authorization flow window. Otherwise it will be sent to the redirect uri. A special value of urn:ietf:wg:oauth:2.0:oob means that authorization code should be returned in the title bar of the browser, with the page text prompting the user to copy the code and paste it in the application.", + // "description": "Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri=urn:ietf:wg:oauth:2.0:oob\u0026response_type=authorization_code * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.", // "location": "query", // "type": "string" // }, @@ -5998,7 +6014,7 @@ func (c *ProjectsTransferConfigsPatchCall) Do(opts ...googleapi.CallOption) (*Tr // "type": "string" // }, // "serviceAccountName": { - // "description": "Optional service account name. If this field is set and \"service_account_name\" is set in update_mask, transfer config will be updated to use this service account credentials. It requires that requesting user calling this API has permissions to act as this service account.", + // "description": "Optional service account name. If this field is set and \"service_account_name\" is set in update_mask, transfer config will be created with this service account credential. It requires that requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating transfer config. Please refer to this public guide for the latest list of data sources with service account support: https://cloud.google.com/bigquery-transfer/docs/use-service-accounts", // "location": "query", // "type": "string" // }, @@ -6009,7 +6025,7 @@ func (c *ProjectsTransferConfigsPatchCall) Do(opts ...googleapi.CallOption) (*Tr // "type": "string" // }, // "versionInfo": { - // "description": "Optional version info. If users want to find a very recent access token, that is, immediately after approving access, users have to set the version_info claim in the token request. To obtain the version_info, users must use the \"none+gsession\" response type. which be return a version_info back in the authorization response which be be put in a JWT claim in the token request.", + // "description": "Optional version info. This is required only if `transferConfig.dataSourceId` is anything else but 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain version info, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=\u0026scope=\u0026redirect_uri=urn:ietf:wg:oauth:2.0:oob\u0026response_type=version_info * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config.", // "location": "query", // "type": "string" // } diff --git a/bigqueryreservation/v1/bigqueryreservation-api.json b/bigqueryreservation/v1/bigqueryreservation-api.json index 01899c67f30..7315db5c458 100644 --- a/bigqueryreservation/v1/bigqueryreservation-api.json +++ b/bigqueryreservation/v1/bigqueryreservation-api.json @@ -788,7 +788,7 @@ } } }, - "revision": "20220212", + "revision": "20220226", "rootUrl": "https://bigqueryreservation.googleapis.com/", "schemas": { "Assignment": { @@ -1040,6 +1040,11 @@ "description": "A reservation is a mechanism used to guarantee slots to users.", "id": "Reservation", "properties": { + "concurrency": { + "description": "Maximum number of queries that are allowed to run concurrently in this reservation. This is a soft limit due to asynchronous nature of the system and various optimizations for small queries. Default value is 0 which means that concurrency will be automatically set based on the reservation size.", + "format": "int64", + "type": "string" + }, "creationTime": { "description": "Output only. Creation time of the reservation.", "format": "google-datetime", diff --git a/bigqueryreservation/v1/bigqueryreservation-gen.go b/bigqueryreservation/v1/bigqueryreservation-gen.go index eecf0f659e5..5916f508dff 100644 --- a/bigqueryreservation/v1/bigqueryreservation-gen.go +++ b/bigqueryreservation/v1/bigqueryreservation-gen.go @@ -629,6 +629,13 @@ func (s *MoveAssignmentRequest) MarshalJSON() ([]byte, error) { // Reservation: A reservation is a mechanism used to guarantee slots to // users. type Reservation struct { + // Concurrency: Maximum number of queries that are allowed to run + // concurrently in this reservation. This is a soft limit due to + // asynchronous nature of the system and various optimizations for small + // queries. Default value is 0 which means that concurrency will be + // automatically set based on the reservation size. + Concurrency int64 `json:"concurrency,omitempty,string"` + // CreationTime: Output only. Creation time of the reservation. CreationTime string `json:"creationTime,omitempty"` @@ -673,7 +680,7 @@ type Reservation struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreationTime") to + // ForceSendFields is a list of field names (e.g. "Concurrency") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -681,7 +688,7 @@ type Reservation struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreationTime") to include + // NullFields is a list of field names (e.g. "Concurrency") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as diff --git a/bigqueryreservation/v1beta1/bigqueryreservation-api.json b/bigqueryreservation/v1beta1/bigqueryreservation-api.json index 1cfd8d83139..caf57f33fb0 100644 --- a/bigqueryreservation/v1beta1/bigqueryreservation-api.json +++ b/bigqueryreservation/v1beta1/bigqueryreservation-api.json @@ -786,7 +786,7 @@ } } }, - "revision": "20220212", + "revision": "20220226", "rootUrl": "https://bigqueryreservation.googleapis.com/", "schemas": { "Assignment": { @@ -1038,6 +1038,11 @@ "description": "A reservation is a mechanism used to guarantee slots to users.", "id": "Reservation", "properties": { + "concurrency": { + "description": "Maximum number of queries that are allowed to run concurrently in this reservation. This is a soft limit due to asynchronous nature of the system and various optimizations for small queries. Default value is 0 which means that concurrency will be automatically set based on the reservation size.", + "format": "int64", + "type": "string" + }, "creationTime": { "description": "Output only. Creation time of the reservation.", "format": "google-datetime", diff --git a/bigqueryreservation/v1beta1/bigqueryreservation-gen.go b/bigqueryreservation/v1beta1/bigqueryreservation-gen.go index c67a72c7ddc..12003a6e686 100644 --- a/bigqueryreservation/v1beta1/bigqueryreservation-gen.go +++ b/bigqueryreservation/v1beta1/bigqueryreservation-gen.go @@ -629,6 +629,13 @@ func (s *MoveAssignmentRequest) MarshalJSON() ([]byte, error) { // Reservation: A reservation is a mechanism used to guarantee slots to // users. type Reservation struct { + // Concurrency: Maximum number of queries that are allowed to run + // concurrently in this reservation. This is a soft limit due to + // asynchronous nature of the system and various optimizations for small + // queries. Default value is 0 which means that concurrency will be + // automatically set based on the reservation size. + Concurrency int64 `json:"concurrency,omitempty,string"` + // CreationTime: Output only. Creation time of the reservation. CreationTime string `json:"creationTime,omitempty"` @@ -673,7 +680,7 @@ type Reservation struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreationTime") to + // ForceSendFields is a list of field names (e.g. "Concurrency") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -681,7 +688,7 @@ type Reservation struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreationTime") to include + // NullFields is a list of field names (e.g. "Concurrency") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as diff --git a/binaryauthorization/v1/binaryauthorization-api.json b/binaryauthorization/v1/binaryauthorization-api.json index d52a3d1546f..ba37dc3bd74 100644 --- a/binaryauthorization/v1/binaryauthorization-api.json +++ b/binaryauthorization/v1/binaryauthorization-api.json @@ -551,7 +551,7 @@ } } }, - "revision": "20211112", + "revision": "20220225", "rootUrl": "https://binaryauthorization.googleapis.com/", "schemas": { "AdmissionRule": { @@ -643,6 +643,10 @@ "description": "Optional. A descriptive comment. This field may be updated. The field may be displayed in chooser dialogs.", "type": "string" }, + "etag": { + "description": "Optional. Used to prevent updating the attestor when another request has updated it since it was retrieved.", + "type": "string" + }, "name": { "description": "Required. The resource name, in the format: `projects/*/attestors/*`. This field may not be updated.", "type": "string" @@ -799,9 +803,13 @@ "enum": [ "SIGNATURE_ALGORITHM_UNSPECIFIED", "RSA_PSS_2048_SHA256", + "RSA_SIGN_PSS_2048_SHA256", "RSA_PSS_3072_SHA256", + "RSA_SIGN_PSS_3072_SHA256", "RSA_PSS_4096_SHA256", + "RSA_SIGN_PSS_4096_SHA256", "RSA_PSS_4096_SHA512", + "RSA_SIGN_PSS_4096_SHA512", "RSA_SIGN_PKCS1_2048_SHA256", "RSA_SIGN_PKCS1_3072_SHA256", "RSA_SIGN_PKCS1_4096_SHA256", @@ -816,8 +824,12 @@ "enumDescriptions": [ "Not specified.", "RSASSA-PSS 2048 bit key with a SHA256 digest.", + "RSASSA-PSS 2048 bit key with a SHA256 digest.", + "RSASSA-PSS 3072 bit key with a SHA256 digest.", "RSASSA-PSS 3072 bit key with a SHA256 digest.", "RSASSA-PSS 4096 bit key with a SHA256 digest.", + "RSASSA-PSS 4096 bit key with a SHA256 digest.", + "RSASSA-PSS 4096 bit key with a SHA512 digest.", "RSASSA-PSS 4096 bit key with a SHA512 digest.", "RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.", "RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.", @@ -861,6 +873,10 @@ "description": "Optional. A descriptive comment.", "type": "string" }, + "etag": { + "description": "Optional. Used to prevent updating the policy when another request has updated it since it was retrieved.", + "type": "string" + }, "globalPolicyEvaluationMode": { "description": "Optional. Controls the evaluation of a Google-maintained global admission policy for common system-level images. Images not covered by the global policy will be subject to the project admission policy. This setting has no effect when specified inside a global admission policy.", "enum": [ diff --git a/binaryauthorization/v1/binaryauthorization-gen.go b/binaryauthorization/v1/binaryauthorization-gen.go index dd837985ce0..6c7d409e552 100644 --- a/binaryauthorization/v1/binaryauthorization-gen.go +++ b/binaryauthorization/v1/binaryauthorization-gen.go @@ -339,6 +339,10 @@ type Attestor struct { // updated. The field may be displayed in chooser dialogs. Description string `json:"description,omitempty"` + // Etag: Optional. Used to prevent updating the attestor when another + // request has updated it since it was retrieved. + Etag string `json:"etag,omitempty"` + // Name: Required. The resource name, in the format: // `projects/*/attestors/*`. This field may not be updated. Name string `json:"name,omitempty"` @@ -771,12 +775,20 @@ type PkixPublicKey struct { // "SIGNATURE_ALGORITHM_UNSPECIFIED" - Not specified. // "RSA_PSS_2048_SHA256" - RSASSA-PSS 2048 bit key with a SHA256 // digest. + // "RSA_SIGN_PSS_2048_SHA256" - RSASSA-PSS 2048 bit key with a SHA256 + // digest. // "RSA_PSS_3072_SHA256" - RSASSA-PSS 3072 bit key with a SHA256 // digest. + // "RSA_SIGN_PSS_3072_SHA256" - RSASSA-PSS 3072 bit key with a SHA256 + // digest. // "RSA_PSS_4096_SHA256" - RSASSA-PSS 4096 bit key with a SHA256 // digest. + // "RSA_SIGN_PSS_4096_SHA256" - RSASSA-PSS 4096 bit key with a SHA256 + // digest. // "RSA_PSS_4096_SHA512" - RSASSA-PSS 4096 bit key with a SHA512 // digest. + // "RSA_SIGN_PSS_4096_SHA512" - RSASSA-PSS 4096 bit key with a SHA512 + // digest. // "RSA_SIGN_PKCS1_2048_SHA256" - RSASSA-PKCS1-v1_5 with a 2048 bit // key and a SHA256 digest. // "RSA_SIGN_PKCS1_3072_SHA256" - RSASSA-PKCS1-v1_5 with a 3072 bit @@ -846,6 +858,10 @@ type Policy struct { // Description: Optional. A descriptive comment. Description string `json:"description,omitempty"` + // Etag: Optional. Used to prevent updating the policy when another + // request has updated it since it was retrieved. + Etag string `json:"etag,omitempty"` + // GlobalPolicyEvaluationMode: Optional. Controls the evaluation of a // Google-maintained global admission policy for common system-level // images. Images not covered by the global policy will be subject to diff --git a/binaryauthorization/v1beta1/binaryauthorization-api.json b/binaryauthorization/v1beta1/binaryauthorization-api.json index 2e065f348de..8d6b3f11106 100644 --- a/binaryauthorization/v1beta1/binaryauthorization-api.json +++ b/binaryauthorization/v1beta1/binaryauthorization-api.json @@ -551,7 +551,7 @@ } } }, - "revision": "20211112", + "revision": "20220225", "rootUrl": "https://binaryauthorization.googleapis.com/", "schemas": { "AdmissionRule": { @@ -643,6 +643,10 @@ "description": "Optional. A descriptive comment. This field may be updated. The field may be displayed in chooser dialogs.", "type": "string" }, + "etag": { + "description": "Optional. Used to prevent updating the attestor when another request has updated it since it was retrieved.", + "type": "string" + }, "name": { "description": "Required. The resource name, in the format: `projects/*/attestors/*`. This field may not be updated.", "type": "string" @@ -799,9 +803,13 @@ "enum": [ "SIGNATURE_ALGORITHM_UNSPECIFIED", "RSA_PSS_2048_SHA256", + "RSA_SIGN_PSS_2048_SHA256", "RSA_PSS_3072_SHA256", + "RSA_SIGN_PSS_3072_SHA256", "RSA_PSS_4096_SHA256", + "RSA_SIGN_PSS_4096_SHA256", "RSA_PSS_4096_SHA512", + "RSA_SIGN_PSS_4096_SHA512", "RSA_SIGN_PKCS1_2048_SHA256", "RSA_SIGN_PKCS1_3072_SHA256", "RSA_SIGN_PKCS1_4096_SHA256", @@ -816,8 +824,12 @@ "enumDescriptions": [ "Not specified.", "RSASSA-PSS 2048 bit key with a SHA256 digest.", + "RSASSA-PSS 2048 bit key with a SHA256 digest.", + "RSASSA-PSS 3072 bit key with a SHA256 digest.", "RSASSA-PSS 3072 bit key with a SHA256 digest.", "RSASSA-PSS 4096 bit key with a SHA256 digest.", + "RSASSA-PSS 4096 bit key with a SHA256 digest.", + "RSASSA-PSS 4096 bit key with a SHA512 digest.", "RSASSA-PSS 4096 bit key with a SHA512 digest.", "RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.", "RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.", @@ -861,6 +873,10 @@ "description": "Optional. A descriptive comment.", "type": "string" }, + "etag": { + "description": "Optional. Used to prevent updating the policy when another request has updated it since it was retrieved.", + "type": "string" + }, "globalPolicyEvaluationMode": { "description": "Optional. Controls the evaluation of a Google-maintained global admission policy for common system-level images. Images not covered by the global policy will be subject to the project admission policy. This setting has no effect when specified inside a global admission policy.", "enum": [ diff --git a/binaryauthorization/v1beta1/binaryauthorization-gen.go b/binaryauthorization/v1beta1/binaryauthorization-gen.go index 077a4753ce3..b18659a69f1 100644 --- a/binaryauthorization/v1beta1/binaryauthorization-gen.go +++ b/binaryauthorization/v1beta1/binaryauthorization-gen.go @@ -341,6 +341,10 @@ type Attestor struct { // updated. The field may be displayed in chooser dialogs. Description string `json:"description,omitempty"` + // Etag: Optional. Used to prevent updating the attestor when another + // request has updated it since it was retrieved. + Etag string `json:"etag,omitempty"` + // Name: Required. The resource name, in the format: // `projects/*/attestors/*`. This field may not be updated. Name string `json:"name,omitempty"` @@ -773,12 +777,20 @@ type PkixPublicKey struct { // "SIGNATURE_ALGORITHM_UNSPECIFIED" - Not specified. // "RSA_PSS_2048_SHA256" - RSASSA-PSS 2048 bit key with a SHA256 // digest. + // "RSA_SIGN_PSS_2048_SHA256" - RSASSA-PSS 2048 bit key with a SHA256 + // digest. // "RSA_PSS_3072_SHA256" - RSASSA-PSS 3072 bit key with a SHA256 // digest. + // "RSA_SIGN_PSS_3072_SHA256" - RSASSA-PSS 3072 bit key with a SHA256 + // digest. // "RSA_PSS_4096_SHA256" - RSASSA-PSS 4096 bit key with a SHA256 // digest. + // "RSA_SIGN_PSS_4096_SHA256" - RSASSA-PSS 4096 bit key with a SHA256 + // digest. // "RSA_PSS_4096_SHA512" - RSASSA-PSS 4096 bit key with a SHA512 // digest. + // "RSA_SIGN_PSS_4096_SHA512" - RSASSA-PSS 4096 bit key with a SHA512 + // digest. // "RSA_SIGN_PKCS1_2048_SHA256" - RSASSA-PKCS1-v1_5 with a 2048 bit // key and a SHA256 digest. // "RSA_SIGN_PKCS1_3072_SHA256" - RSASSA-PKCS1-v1_5 with a 3072 bit @@ -848,6 +860,10 @@ type Policy struct { // Description: Optional. A descriptive comment. Description string `json:"description,omitempty"` + // Etag: Optional. Used to prevent updating the policy when another + // request has updated it since it was retrieved. + Etag string `json:"etag,omitempty"` + // GlobalPolicyEvaluationMode: Optional. Controls the evaluation of a // Google-maintained global admission policy for common system-level // images. Images not covered by the global policy will be subject to diff --git a/cloudidentity/v1/cloudidentity-api.json b/cloudidentity/v1/cloudidentity-api.json index b8f93a5b5b2..81e3edfd474 100644 --- a/cloudidentity/v1/cloudidentity-api.json +++ b/cloudidentity/v1/cloudidentity-api.json @@ -2,9 +2,15 @@ "auth": { "oauth2": { "scopes": { + "https://www.googleapis.com/auth/cloud-identity.devices": { + "description": "Private Service: https://www.googleapis.com/auth/cloud-identity.devices" + }, "https://www.googleapis.com/auth/cloud-identity.devices.lookup": { "description": "See your device details" }, + "https://www.googleapis.com/auth/cloud-identity.devices.readonly": { + "description": "Private Service: https://www.googleapis.com/auth/cloud-identity.devices.readonly" + }, "https://www.googleapis.com/auth/cloud-identity.groups": { "description": "See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group" }, @@ -139,7 +145,10 @@ }, "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] }, "create": { "description": "Creates a device. Only company-owned device may be created. **Note**: This method is available only to customers who have one of the following SKUs: Enterprise Standard, Enterprise Plus, Enterprise for Education, and Cloud Identity Premium", @@ -160,7 +169,10 @@ }, "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] }, "delete": { "description": "Deletes the specified device.", @@ -187,7 +199,10 @@ "path": "v1/{+name}", "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] }, "get": { "description": "Retrieves the specified device.", @@ -214,7 +229,11 @@ "path": "v1/{+name}", "response": { "$ref": "GoogleAppsCloudidentityDevicesV1Device" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices", + "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + ] }, "list": { "description": "Lists/Searches devices.", @@ -268,7 +287,11 @@ "path": "v1/devices", "response": { "$ref": "GoogleAppsCloudidentityDevicesV1ListDevicesResponse" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices", + "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + ] }, "wipe": { "description": "Wipes all data on the specified device.", @@ -293,7 +316,10 @@ }, "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] } }, "resources": { @@ -322,7 +348,10 @@ }, "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] }, "block": { "description": "Blocks device from accessing user data", @@ -347,7 +376,10 @@ }, "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] }, "cancelWipe": { "description": "Cancels an unfinished user account wipe. This operation can be used to cancel device wipe in the gap between the wipe operation returning success and the device being wiped.", @@ -372,7 +404,10 @@ }, "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] }, "delete": { "description": "Deletes the specified DeviceUser. This also revokes the user's access to device data.", @@ -399,7 +434,10 @@ "path": "v1/{+name}", "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] }, "get": { "description": "Retrieves the specified DeviceUser", @@ -426,7 +464,11 @@ "path": "v1/{+name}", "response": { "$ref": "GoogleAppsCloudidentityDevicesV1DeviceUser" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices", + "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + ] }, "list": { "description": "Lists/Searches DeviceUsers.", @@ -474,7 +516,11 @@ "path": "v1/{+parent}/deviceUsers", "response": { "$ref": "GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices", + "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + ] }, "lookup": { "description": "Looks up resource names of the DeviceUsers associated with the caller's credentials, as well as the properties provided in the request. This method must be called with end-user credentials with the scope: https://www.googleapis.com/auth/cloud-identity.devices.lookup If multiple properties are provided, only DeviceUsers having all of these properties are considered as matches - i.e. the query behaves like an AND. Different platforms require different amounts of information from the caller to ensure that the DeviceUser is uniquely identified. - iOS: No properties need to be passed, the caller's credentials are sufficient to identify the corresponding DeviceUser. - Android: Specifying the 'android_id' field is required. - Desktop: Specifying the 'raw_resource_id' field is required.", @@ -550,7 +596,10 @@ }, "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] } }, "resources": { @@ -581,7 +630,11 @@ "path": "v1/{+name}", "response": { "$ref": "GoogleAppsCloudidentityDevicesV1ClientState" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices", + "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + ] }, "list": { "description": "Lists the client states for the given search query.", @@ -623,7 +676,11 @@ "path": "v1/{+parent}/clientStates", "response": { "$ref": "GoogleAppsCloudidentityDevicesV1ListClientStatesResponse" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices", + "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + ] }, "patch": { "description": "Updates the client state for the device user **Note**: This method is available only to customers who have one of the following SKUs: Enterprise Standard, Enterprise Plus, Enterprise for Education, and Cloud Identity Premium", @@ -659,7 +716,10 @@ }, "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] } } } @@ -1341,7 +1401,7 @@ } } }, - "revision": "20220221", + "revision": "20220301", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "CheckTransitiveMembershipResponse": { diff --git a/cloudidentity/v1/cloudidentity-gen.go b/cloudidentity/v1/cloudidentity-gen.go index 42bb2fb79c0..b781f0c0f20 100644 --- a/cloudidentity/v1/cloudidentity-gen.go +++ b/cloudidentity/v1/cloudidentity-gen.go @@ -84,9 +84,17 @@ const mtlsBasePath = "https://cloudidentity.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( + // Private Service: + // https://www.googleapis.com/auth/cloud-identity.devices + CloudIdentityDevicesScope = "https://www.googleapis.com/auth/cloud-identity.devices" + // See your device details CloudIdentityDevicesLookupScope = "https://www.googleapis.com/auth/cloud-identity.devices.lookup" + // Private Service: + // https://www.googleapis.com/auth/cloud-identity.devices.readonly + CloudIdentityDevicesReadonlyScope = "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + // See, change, create, and delete any of the Cloud Identity Groups that // you can access, including the members of each group CloudIdentityGroupsScope = "https://www.googleapis.com/auth/cloud-identity.groups" @@ -103,7 +111,9 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { scopesOption := option.WithScopes( + "https://www.googleapis.com/auth/cloud-identity.devices", "https://www.googleapis.com/auth/cloud-identity.devices.lookup", + "https://www.googleapis.com/auth/cloud-identity.devices.readonly", "https://www.googleapis.com/auth/cloud-identity.groups", "https://www.googleapis.com/auth/cloud-identity.groups.readonly", "https://www.googleapis.com/auth/cloud-platform", @@ -2773,7 +2783,10 @@ func (c *DevicesCancelWipeCall) Do(opts ...googleapi.CallOption) (*Operation, er // }, // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } @@ -2915,7 +2928,10 @@ func (c *DevicesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) // }, // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } @@ -3063,7 +3079,10 @@ func (c *DevicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) // "path": "v1/{+name}", // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } @@ -3227,7 +3246,11 @@ func (c *DevicesGetCall) Do(opts ...googleapi.CallOption) (*GoogleAppsCloudident // "path": "v1/{+name}", // "response": { // "$ref": "GoogleAppsCloudidentityDevicesV1Device" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices", + // "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + // ] // } } @@ -3466,7 +3489,11 @@ func (c *DevicesListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsCloudiden // "path": "v1/devices", // "response": { // "$ref": "GoogleAppsCloudidentityDevicesV1ListDevicesResponse" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices", + // "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + // ] // } } @@ -3630,7 +3657,10 @@ func (c *DevicesWipeCall) Do(opts ...googleapi.CallOption) (*Operation, error) { // }, // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } @@ -3773,7 +3803,10 @@ func (c *DevicesDeviceUsersApproveCall) Do(opts ...googleapi.CallOption) (*Opera // }, // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } @@ -3916,7 +3949,10 @@ func (c *DevicesDeviceUsersBlockCall) Do(opts ...googleapi.CallOption) (*Operati // }, // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } @@ -4061,7 +4097,10 @@ func (c *DevicesDeviceUsersCancelWipeCall) Do(opts ...googleapi.CallOption) (*Op // }, // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } @@ -4211,7 +4250,10 @@ func (c *DevicesDeviceUsersDeleteCall) Do(opts ...googleapi.CallOption) (*Operat // "path": "v1/{+name}", // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } @@ -4376,7 +4418,11 @@ func (c *DevicesDeviceUsersGetCall) Do(opts ...googleapi.CallOption) (*GoogleApp // "path": "v1/{+name}", // "response": { // "$ref": "GoogleAppsCloudidentityDevicesV1DeviceUser" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices", + // "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + // ] // } } @@ -4597,7 +4643,11 @@ func (c *DevicesDeviceUsersListCall) Do(opts ...googleapi.CallOption) (*GoogleAp // "path": "v1/{+parent}/deviceUsers", // "response": { // "$ref": "GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices", + // "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + // ] // } } @@ -5023,7 +5073,10 @@ func (c *DevicesDeviceUsersWipeCall) Do(opts ...googleapi.CallOption) (*Operatio // }, // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } @@ -5199,7 +5252,11 @@ func (c *DevicesDeviceUsersClientStatesGetCall) Do(opts ...googleapi.CallOption) // "path": "v1/{+name}", // "response": { // "$ref": "GoogleAppsCloudidentityDevicesV1ClientState" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices", + // "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + // ] // } } @@ -5403,7 +5460,11 @@ func (c *DevicesDeviceUsersClientStatesListCall) Do(opts ...googleapi.CallOption // "path": "v1/{+parent}/clientStates", // "response": { // "$ref": "GoogleAppsCloudidentityDevicesV1ListClientStatesResponse" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices", + // "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + // ] // } } @@ -5612,7 +5673,10 @@ func (c *DevicesDeviceUsersClientStatesPatchCall) Do(opts ...googleapi.CallOptio // }, // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } diff --git a/cloudidentity/v1beta1/cloudidentity-api.json b/cloudidentity/v1beta1/cloudidentity-api.json index 030d3639740..0e8a0d339ec 100644 --- a/cloudidentity/v1beta1/cloudidentity-api.json +++ b/cloudidentity/v1beta1/cloudidentity-api.json @@ -2,9 +2,15 @@ "auth": { "oauth2": { "scopes": { + "https://www.googleapis.com/auth/cloud-identity.devices": { + "description": "Private Service: https://www.googleapis.com/auth/cloud-identity.devices" + }, "https://www.googleapis.com/auth/cloud-identity.devices.lookup": { "description": "See your device details" }, + "https://www.googleapis.com/auth/cloud-identity.devices.readonly": { + "description": "Private Service: https://www.googleapis.com/auth/cloud-identity.devices.readonly" + }, "https://www.googleapis.com/auth/cloud-identity.groups": { "description": "See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group" }, @@ -284,7 +290,10 @@ }, "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] }, "create": { "description": "Creates a device. Only company-owned device may be created. **Note**: This method is available only to customers who have one of the following SKUs: Enterprise Standard, Enterprise Plus, Enterprise for Education, and Cloud Identity Premium", @@ -299,7 +308,10 @@ }, "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] }, "delete": { "description": "Deletes the specified device.", @@ -321,7 +333,10 @@ "path": "v1beta1/{+name}", "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] }, "get": { "description": "Retrieves the specified device.", @@ -343,7 +358,11 @@ "path": "v1beta1/{+name}", "response": { "$ref": "Device" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices", + "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + ] }, "list": { "description": "Lists/Searches devices.", @@ -392,7 +411,11 @@ "path": "v1beta1/devices", "response": { "$ref": "ListDevicesResponse" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices", + "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + ] }, "wipe": { "description": "Wipes all data on the specified device.", @@ -417,7 +440,10 @@ }, "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] } }, "resources": { @@ -446,7 +472,10 @@ }, "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] }, "block": { "description": "Blocks device from accessing user data", @@ -471,7 +500,10 @@ }, "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] }, "cancelWipe": { "description": "Cancels an unfinished user account wipe. This operation can be used to cancel device wipe in the gap between the wipe operation returning success and the device being wiped.", @@ -496,7 +528,10 @@ }, "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] }, "delete": { "description": "Deletes the specified DeviceUser. This also revokes the user's access to device data.", @@ -518,7 +553,10 @@ "path": "v1beta1/{+name}", "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] }, "get": { "description": "Retrieves the specified DeviceUser", @@ -540,7 +578,11 @@ "path": "v1beta1/{+name}", "response": { "$ref": "DeviceUser" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices", + "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + ] }, "list": { "description": "Lists/Searches DeviceUsers.", @@ -583,7 +625,11 @@ "path": "v1beta1/{+parent}/deviceUsers", "response": { "$ref": "ListDeviceUsersResponse" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices", + "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + ] }, "lookup": { "description": "Looks up resource names of the DeviceUsers associated with the caller's credentials, as well as the properties provided in the request. This method must be called with end-user credentials with the scope: https://www.googleapis.com/auth/cloud-identity.devices.lookup If multiple properties are provided, only DeviceUsers having all of these properties are considered as matches - i.e. the query behaves like an AND. Different platforms require different amounts of information from the caller to ensure that the DeviceUser is uniquely identified. - iOS: No properties need to be passed, the caller's credentials are sufficient to identify the corresponding DeviceUser. - Android: Specifying the 'android_id' field is required. - Desktop: Specifying the 'raw_resource_id' field is required.", @@ -659,7 +705,10 @@ }, "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] } }, "resources": { @@ -690,7 +739,11 @@ "path": "v1beta1/{+name}", "response": { "$ref": "ClientState" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices", + "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + ] }, "patch": { "description": "Updates the client state for the device user **Note**: This method is available only to customers who have one of the following SKUs: Enterprise Standard, Enterprise Plus, Enterprise for Education, and Cloud Identity Premium", @@ -726,7 +779,10 @@ }, "response": { "$ref": "Operation" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.devices" + ] } } } @@ -1480,7 +1536,7 @@ } } }, - "revision": "20220208", + "revision": "20220301", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "AndroidAttributes": { diff --git a/cloudidentity/v1beta1/cloudidentity-gen.go b/cloudidentity/v1beta1/cloudidentity-gen.go index c08b01a2627..a057addebf4 100644 --- a/cloudidentity/v1beta1/cloudidentity-gen.go +++ b/cloudidentity/v1beta1/cloudidentity-gen.go @@ -84,9 +84,17 @@ const mtlsBasePath = "https://cloudidentity.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( + // Private Service: + // https://www.googleapis.com/auth/cloud-identity.devices + CloudIdentityDevicesScope = "https://www.googleapis.com/auth/cloud-identity.devices" + // See your device details CloudIdentityDevicesLookupScope = "https://www.googleapis.com/auth/cloud-identity.devices.lookup" + // Private Service: + // https://www.googleapis.com/auth/cloud-identity.devices.readonly + CloudIdentityDevicesReadonlyScope = "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + // See, change, create, and delete any of the Cloud Identity Groups that // you can access, including the members of each group CloudIdentityGroupsScope = "https://www.googleapis.com/auth/cloud-identity.groups" @@ -103,7 +111,9 @@ const ( // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { scopesOption := option.WithScopes( + "https://www.googleapis.com/auth/cloud-identity.devices", "https://www.googleapis.com/auth/cloud-identity.devices.lookup", + "https://www.googleapis.com/auth/cloud-identity.devices.readonly", "https://www.googleapis.com/auth/cloud-identity.groups", "https://www.googleapis.com/auth/cloud-identity.groups.readonly", "https://www.googleapis.com/auth/cloud-platform", @@ -4642,7 +4652,10 @@ func (c *DevicesCancelWipeCall) Do(opts ...googleapi.CallOption) (*Operation, er // }, // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } @@ -4767,7 +4780,10 @@ func (c *DevicesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) // }, // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } @@ -4899,7 +4915,10 @@ func (c *DevicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) // "path": "v1beta1/{+name}", // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } @@ -5045,7 +5064,11 @@ func (c *DevicesGetCall) Do(opts ...googleapi.CallOption) (*Device, error) { // "path": "v1beta1/{+name}", // "response": { // "$ref": "Device" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices", + // "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + // ] // } } @@ -5264,7 +5287,11 @@ func (c *DevicesListCall) Do(opts ...googleapi.CallOption) (*ListDevicesResponse // "path": "v1beta1/devices", // "response": { // "$ref": "ListDevicesResponse" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices", + // "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + // ] // } } @@ -5428,7 +5455,10 @@ func (c *DevicesWipeCall) Do(opts ...googleapi.CallOption) (*Operation, error) { // }, // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } @@ -5571,7 +5601,10 @@ func (c *DevicesDeviceUsersApproveCall) Do(opts ...googleapi.CallOption) (*Opera // }, // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } @@ -5714,7 +5747,10 @@ func (c *DevicesDeviceUsersBlockCall) Do(opts ...googleapi.CallOption) (*Operati // }, // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } @@ -5859,7 +5895,10 @@ func (c *DevicesDeviceUsersCancelWipeCall) Do(opts ...googleapi.CallOption) (*Op // }, // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } @@ -5993,7 +6032,10 @@ func (c *DevicesDeviceUsersDeleteCall) Do(opts ...googleapi.CallOption) (*Operat // "path": "v1beta1/{+name}", // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } @@ -6140,7 +6182,11 @@ func (c *DevicesDeviceUsersGetCall) Do(opts ...googleapi.CallOption) (*DeviceUse // "path": "v1beta1/{+name}", // "response": { // "$ref": "DeviceUser" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices", + // "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + // ] // } } @@ -6342,7 +6388,11 @@ func (c *DevicesDeviceUsersListCall) Do(opts ...googleapi.CallOption) (*ListDevi // "path": "v1beta1/{+parent}/deviceUsers", // "response": { // "$ref": "ListDeviceUsersResponse" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices", + // "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + // ] // } } @@ -6759,7 +6809,10 @@ func (c *DevicesDeviceUsersWipeCall) Do(opts ...googleapi.CallOption) (*Operatio // }, // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } @@ -6934,7 +6987,11 @@ func (c *DevicesDeviceUsersClientStatesGetCall) Do(opts ...googleapi.CallOption) // "path": "v1beta1/{+name}", // "response": { // "$ref": "ClientState" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices", + // "https://www.googleapis.com/auth/cloud-identity.devices.readonly" + // ] // } } @@ -7111,7 +7168,10 @@ func (c *DevicesDeviceUsersClientStatesPatchCall) Do(opts ...googleapi.CallOptio // }, // "response": { // "$ref": "Operation" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.devices" + // ] // } } diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index 636f83f558d..97c9edc0e6f 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -1029,7 +1029,7 @@ } } }, - "revision": "20220222", + "revision": "20220226", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -3088,7 +3088,7 @@ "type": "string" }, "type": { - "description": "The processor type, e.g., INVOICE_PARSING, W2_PARSING, etc.", + "description": "The processor type, e.g., OCR_PROCESSOR, INVOICE_PROCESSOR, etc. To get a list of processors types, see FetchProcessorTypes.", "type": "string" } }, diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index fc078b2054b..07d163723f2 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -3802,7 +3802,8 @@ type GoogleCloudDocumentaiV1Processor struct { // successful. State string `json:"state,omitempty"` - // Type: The processor type, e.g., INVOICE_PARSING, W2_PARSING, etc. + // Type: The processor type, e.g., OCR_PROCESSOR, INVOICE_PROCESSOR, + // etc. To get a list of processors types, see FetchProcessorTypes. Type string `json:"type,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index ba59a56ea98..07988363eca 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -796,7 +796,7 @@ } } }, - "revision": "20220222", + "revision": "20220226", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -5654,7 +5654,7 @@ "type": "string" }, "type": { - "description": "The processor type, e.g., INVOICE_PARSING, W2_PARSING, etc.", + "description": "The processor type, e.g., OCR_PROCESSOR, INVOICE_PROCESSOR, etc. To get a list of processors types, see FetchProcessorTypes.", "type": "string" } }, diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index b315abc5d5a..e0ceb4d9ed5 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -8305,7 +8305,8 @@ type GoogleCloudDocumentaiV1beta3Processor struct { // successful. State string `json:"state,omitempty"` - // Type: The processor type, e.g., INVOICE_PARSING, W2_PARSING, etc. + // Type: The processor type, e.g., OCR_PROCESSOR, INVOICE_PROCESSOR, + // etc. To get a list of processors types, see FetchProcessorTypes. Type string `json:"type,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/healthcare/v1beta1/healthcare-api.json b/healthcare/v1beta1/healthcare-api.json index 96bdfb5af80..74fc4c40421 100644 --- a/healthcare/v1beta1/healthcare-api.json +++ b/healthcare/v1beta1/healthcare-api.json @@ -4865,7 +4865,7 @@ } } }, - "revision": "20220131", + "revision": "20220223", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "ActivateConsentRequest": { @@ -7609,12 +7609,14 @@ "enum": [ "SCHEMA_TYPE_UNSPECIFIED", "LOSSLESS", - "ANALYTICS" + "ANALYTICS", + "ANALYTICS_V2" ], "enumDescriptions": [ "No schema type specified. This type is unsupported.", "A data-driven schema generated from the fields present in the FHIR data being exported, with no additional simplification.", - "Analytics schema defined by the FHIR community. See https://github.com/FHIR/sql-on-fhir/blob/master/sql-on-fhir.md. BigQuery only allows a maximum of 10,000 columns per table. Due to this limitation, the server will not generate schemas for fields of type `Resource`, which can hold any resource type. The affected fields are `Parameters.parameter.resource`, `Bundle.entry.resource`, and `Bundle.entry.response.outcome`." + "Analytics schema defined by the FHIR community. See https://github.com/FHIR/sql-on-fhir/blob/master/sql-on-fhir.md. BigQuery only allows a maximum of 10,000 columns per table. Due to this limitation, the server will not generate schemas for fields of type `Resource`, which can hold any resource type. The affected fields are `Parameters.parameter.resource`, `Bundle.entry.resource`, and `Bundle.entry.response.outcome`.", + "Analytics V2, similar to schema defined by the FHIR community, with added support for extensions with one or more occurrences and contained resources in stringified JSON." ], "type": "string" } diff --git a/healthcare/v1beta1/healthcare-gen.go b/healthcare/v1beta1/healthcare-gen.go index 9dd3f10f5c1..384df4a295d 100644 --- a/healthcare/v1beta1/healthcare-gen.go +++ b/healthcare/v1beta1/healthcare-gen.go @@ -5961,6 +5961,9 @@ type SchemaConfig struct { // type `Resource`, which can hold any resource type. The affected // fields are `Parameters.parameter.resource`, `Bundle.entry.resource`, // and `Bundle.entry.response.outcome`. + // "ANALYTICS_V2" - Analytics V2, similar to schema defined by the + // FHIR community, with added support for extensions with one or more + // occurrences and contained resources in stringified JSON. SchemaType string `json:"schemaType,omitempty"` // ForceSendFields is a list of field names (e.g. diff --git a/people/v1/people-api.json b/people/v1/people-api.json index fc7c8106101..017bbbf4ff2 100644 --- a/people/v1/people-api.json +++ b/people/v1/people-api.json @@ -1172,7 +1172,7 @@ } } }, - "revision": "20220202", + "revision": "20220301", "rootUrl": "https://people.googleapis.com/", "schemas": { "Address": { @@ -1702,7 +1702,7 @@ "type": "object" }, "Date": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "Date", "properties": { "day": { diff --git a/people/v1/people-gen.go b/people/v1/people-gen.go index 1b77d34b84e..7649ff94d88 100644 --- a/people/v1/people-gen.go +++ b/people/v1/people-gen.go @@ -1132,11 +1132,12 @@ func (s *CreateContactGroupRequest) MarshalJSON() ([]byte, error) { // birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day, with a -// zero year (e.g., an anniversary) * A year on its own, with a zero -// month and a zero day * A year and month, with a zero day (e.g., a -// credit card expiration date) Related types: * google.type.TimeOfDay * -// google.type.DateTime * google.protobuf.Timestamp +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp type Date struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the diff --git a/speech/v1/speech-api.json b/speech/v1/speech-api.json index 8630d09a757..4a851ae5757 100644 --- a/speech/v1/speech-api.json +++ b/speech/v1/speech-api.json @@ -524,7 +524,7 @@ } } }, - "revision": "20220128", + "revision": "20220221", "rootUrl": "https://speech.googleapis.com/", "schemas": { "ClassItem": { @@ -1147,7 +1147,7 @@ "type": "number" }, "transcript": { - "description": "Transcript text representing the words that the user spoke.", + "description": "Transcript text representing the words that the user spoke. In languages that use spaces to separate words, the transcript might have a leading space if it isn't the first result. You can concatenate each result to obtain the full transcript without using a separator.", "type": "string" }, "words": { diff --git a/speech/v1/speech-gen.go b/speech/v1/speech-gen.go index b83765a4029..9ad2230af51 100644 --- a/speech/v1/speech-gen.go +++ b/speech/v1/speech-gen.go @@ -1404,7 +1404,10 @@ type SpeechRecognitionAlternative struct { Confidence float64 `json:"confidence,omitempty"` // Transcript: Transcript text representing the words that the user - // spoke. + // spoke. In languages that use spaces to separate words, the transcript + // might have a leading space if it isn't the first result. You can + // concatenate each result to obtain the full transcript without using a + // separator. Transcript string `json:"transcript,omitempty"` // Words: A list of word-specific information for each recognized word. diff --git a/speech/v1p1beta1/speech-api.json b/speech/v1p1beta1/speech-api.json index 60a7138918a..bf4059cb300 100644 --- a/speech/v1p1beta1/speech-api.json +++ b/speech/v1p1beta1/speech-api.json @@ -524,7 +524,7 @@ } } }, - "revision": "20220128", + "revision": "20220221", "rootUrl": "https://speech.googleapis.com/", "schemas": { "ClassItem": { @@ -1191,7 +1191,7 @@ "type": "number" }, "transcript": { - "description": "Transcript text representing the words that the user spoke.", + "description": "Transcript text representing the words that the user spoke. In languages that use spaces to separate words, the transcript might have a leading space if it isn't the first result. You can concatenate each result to obtain the full transcript without using a separator.", "type": "string" }, "words": { diff --git a/speech/v1p1beta1/speech-gen.go b/speech/v1p1beta1/speech-gen.go index 71885bec667..7fdcd075e70 100644 --- a/speech/v1p1beta1/speech-gen.go +++ b/speech/v1p1beta1/speech-gen.go @@ -1469,7 +1469,10 @@ type SpeechRecognitionAlternative struct { Confidence float64 `json:"confidence,omitempty"` // Transcript: Transcript text representing the words that the user - // spoke. + // spoke. In languages that use spaces to separate words, the transcript + // might have a leading space if it isn't the first result. You can + // concatenate each result to obtain the full transcript without using a + // separator. Transcript string `json:"transcript,omitempty"` // Words: A list of word-specific information for each recognized word.