diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index def08a646d3..f6527ef5f4d 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -2395,7 +2395,7 @@ "type": "string" }, "regionsVersion.version": { - "description": "Required. A string representing version of the available regions being used for the specified resource.", + "description": "Required. A string representing version of the available regions being used for the specified resource. The current version is 2022/01.", "location": "query", "type": "string" } @@ -2533,7 +2533,7 @@ "type": "string" }, "regionsVersion.version": { - "description": "Required. A string representing version of the available regions being used for the specified resource.", + "description": "Required. A string representing version of the available regions being used for the specified resource. The current version is 2022/01.", "location": "query", "type": "string" }, @@ -2804,7 +2804,7 @@ "type": "string" }, "regionsVersion.version": { - "description": "Required. A string representing version of the available regions being used for the specified resource.", + "description": "Required. A string representing version of the available regions being used for the specified resource. The current version is 2022/01.", "location": "query", "type": "string" } @@ -3041,7 +3041,7 @@ "type": "string" }, "regionsVersion.version": { - "description": "Required. A string representing version of the available regions being used for the specified resource.", + "description": "Required. A string representing version of the available regions being used for the specified resource. The current version is 2022/01.", "location": "query", "type": "string" }, @@ -3915,7 +3915,7 @@ } } }, - "revision": "20220511", + "revision": "20220609", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "AcquisitionTargetingRule": { @@ -5750,7 +5750,7 @@ "id": "RegionsVersion", "properties": { "version": { - "description": "Required. A string representing version of the available regions being used for the specified resource.", + "description": "Required. A string representing version of the available regions being used for the specified resource. The current version is 2022/01.", "type": "string" } }, diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index 80dfa780bb6..66f1c4c57bb 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -3843,7 +3843,8 @@ func (s *RegionalTaxRateInfo) MarshalJSON() ([]byte, error) { // the specified resource. type RegionsVersion struct { // Version: Required. A string representing version of the available - // regions being used for the specified resource. + // regions being used for the specified resource. The current version is + // 2022/01. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Version") to @@ -15057,7 +15058,8 @@ func (c *MonetizationSubscriptionsCreateCall) ProductId(productId string) *Monet // RegionsVersionVersion sets the optional parameter // "regionsVersion.version": Required. A string representing version of -// the available regions being used for the specified resource. +// the available regions being used for the specified resource. The +// current version is 2022/01. func (c *MonetizationSubscriptionsCreateCall) RegionsVersionVersion(regionsVersionVersion string) *MonetizationSubscriptionsCreateCall { c.urlParams_.Set("regionsVersion.version", regionsVersionVersion) return c @@ -15174,7 +15176,7 @@ func (c *MonetizationSubscriptionsCreateCall) Do(opts ...googleapi.CallOption) ( // "type": "string" // }, // "regionsVersion.version": { - // "description": "Required. A string representing version of the available regions being used for the specified resource.", + // "description": "Required. A string representing version of the available regions being used for the specified resource. The current version is 2022/01.", // "location": "query", // "type": "string" // } @@ -15706,7 +15708,8 @@ func (r *MonetizationSubscriptionsService) Patch(packageName string, productId s // RegionsVersionVersion sets the optional parameter // "regionsVersion.version": Required. A string representing version of -// the available regions being used for the specified resource. +// the available regions being used for the specified resource. The +// current version is 2022/01. func (c *MonetizationSubscriptionsPatchCall) RegionsVersionVersion(regionsVersionVersion string) *MonetizationSubscriptionsPatchCall { c.urlParams_.Set("regionsVersion.version", regionsVersionVersion) return c @@ -15833,7 +15836,7 @@ func (c *MonetizationSubscriptionsPatchCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // }, // "regionsVersion.version": { - // "description": "Required. A string representing version of the available regions being used for the specified resource.", + // "description": "Required. A string representing version of the available regions being used for the specified resource. The current version is 2022/01.", // "location": "query", // "type": "string" // }, @@ -16711,7 +16714,8 @@ func (c *MonetizationSubscriptionsBasePlansOffersCreateCall) OfferId(offerId str // RegionsVersionVersion sets the optional parameter // "regionsVersion.version": Required. A string representing version of -// the available regions being used for the specified resource. +// the available regions being used for the specified resource. The +// current version is 2022/01. func (c *MonetizationSubscriptionsBasePlansOffersCreateCall) RegionsVersionVersion(regionsVersionVersion string) *MonetizationSubscriptionsBasePlansOffersCreateCall { c.urlParams_.Set("regionsVersion.version", regionsVersionVersion) return c @@ -16844,7 +16848,7 @@ func (c *MonetizationSubscriptionsBasePlansOffersCreateCall) Do(opts ...googleap // "type": "string" // }, // "regionsVersion.version": { - // "description": "Required. A string representing version of the available regions being used for the specified resource.", + // "description": "Required. A string representing version of the available regions being used for the specified resource. The current version is 2022/01.", // "location": "query", // "type": "string" // } @@ -17613,7 +17617,8 @@ func (r *MonetizationSubscriptionsBasePlansOffersService) Patch(packageName stri // RegionsVersionVersion sets the optional parameter // "regionsVersion.version": Required. A string representing version of -// the available regions being used for the specified resource. +// the available regions being used for the specified resource. The +// current version is 2022/01. func (c *MonetizationSubscriptionsBasePlansOffersPatchCall) RegionsVersionVersion(regionsVersionVersion string) *MonetizationSubscriptionsBasePlansOffersPatchCall { c.urlParams_.Set("regionsVersion.version", regionsVersionVersion) return c @@ -17756,7 +17761,7 @@ func (c *MonetizationSubscriptionsBasePlansOffersPatchCall) Do(opts ...googleapi // "type": "string" // }, // "regionsVersion.version": { - // "description": "Required. A string representing version of the available regions being used for the specified resource.", + // "description": "Required. A string representing version of the available regions being used for the specified resource. The current version is 2022/01.", // "location": "query", // "type": "string" // }, diff --git a/api-list.json b/api-list.json index f323eb4d356..75cdd0b02c4 100644 --- a/api-list.json +++ b/api-list.json @@ -571,21 +571,6 @@ "documentationLink": "https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/", "preferred": true }, - { - "kind": "discovery#directoryItem", - "id": "baremetalsolution:v1alpha1", - "name": "baremetalsolution", - "version": "v1alpha1", - "title": "Bare Metal Solution API", - "description": "Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center.", - "discoveryRestUrl": "https://baremetalsolution.googleapis.com/$discovery/rest?version=v1alpha1", - "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" - }, - "documentationLink": "https://cloud.google.com/bare-metal", - "preferred": false - }, { "kind": "discovery#directoryItem", "id": "baremetalsolution:v1", diff --git a/assuredworkloads/v1/assuredworkloads-api.json b/assuredworkloads/v1/assuredworkloads-api.json index ebd0187ef80..570b8443f67 100644 --- a/assuredworkloads/v1/assuredworkloads-api.json +++ b/assuredworkloads/v1/assuredworkloads-api.json @@ -351,7 +351,7 @@ } } }, - "revision": "20220317", + "revision": "20220603", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata": { @@ -370,7 +370,8 @@ "HIPAA", "HITRUST", "EU_REGIONS_AND_SUPPORT", - "CA_REGIONS_AND_SUPPORT" + "CA_REGIONS_AND_SUPPORT", + "ITAR" ], "enumDescriptions": [ "Unknown compliance regime.", @@ -382,7 +383,8 @@ "Health Insurance Portability and Accountability Act controls", "Health Information Trust Alliance controls", "Assured Workloads For EU Regions and Support controls", - "Assured Workloads For Canada Regions and Support controls" + "Assured Workloads For Canada Regions and Support controls", + "International Traffic in Arms Regulations" ], "type": "string" }, @@ -440,7 +442,8 @@ "HIPAA", "HITRUST", "EU_REGIONS_AND_SUPPORT", - "CA_REGIONS_AND_SUPPORT" + "CA_REGIONS_AND_SUPPORT", + "ITAR" ], "enumDescriptions": [ "Unknown compliance regime.", @@ -452,7 +455,8 @@ "Health Insurance Portability and Accountability Act controls", "Health Information Trust Alliance controls", "Assured Workloads For EU Regions and Support controls", - "Assured Workloads For Canada Regions and Support controls" + "Assured Workloads For Canada Regions and Support controls", + "International Traffic in Arms Regulations" ], "type": "string" }, @@ -669,7 +673,8 @@ "HIPAA", "HITRUST", "EU_REGIONS_AND_SUPPORT", - "CA_REGIONS_AND_SUPPORT" + "CA_REGIONS_AND_SUPPORT", + "ITAR" ], "enumDescriptions": [ "Unknown compliance regime.", @@ -681,7 +686,8 @@ "Health Insurance Portability and Accountability Act controls", "Health Information Trust Alliance controls", "Assured Workloads For EU Regions and Support controls", - "Assured Workloads For Canada Regions and Support controls" + "Assured Workloads For Canada Regions and Support controls", + "International Traffic in Arms Regulations" ], "type": "string" }, @@ -732,7 +738,8 @@ "HIPAA", "HITRUST", "EU_REGIONS_AND_SUPPORT", - "CA_REGIONS_AND_SUPPORT" + "CA_REGIONS_AND_SUPPORT", + "ITAR" ], "enumDescriptions": [ "Unknown compliance regime.", @@ -744,7 +751,8 @@ "Health Insurance Portability and Accountability Act controls", "Health Information Trust Alliance controls", "Assured Workloads For EU Regions and Support controls", - "Assured Workloads For Canada Regions and Support controls" + "Assured Workloads For Canada Regions and Support controls", + "International Traffic in Arms Regulations" ], "type": "string" }, @@ -1017,7 +1025,8 @@ "HIPAA", "HITRUST", "EU_REGIONS_AND_SUPPORT", - "CA_REGIONS_AND_SUPPORT" + "CA_REGIONS_AND_SUPPORT", + "ITAR" ], "enumDescriptions": [ "Unknown compliance regime.", @@ -1029,7 +1038,8 @@ "Health Insurance Portability and Accountability Act controls", "Health Information Trust Alliance controls", "Assured Workloads For EU Regions and Support controls", - "Assured Workloads For Canada Regions and Support controls" + "Assured Workloads For Canada Regions and Support controls", + "International Traffic in Arms Regulations" ], "type": "string" }, @@ -1080,7 +1090,8 @@ "HIPAA", "HITRUST", "EU_REGIONS_AND_SUPPORT", - "CA_REGIONS_AND_SUPPORT" + "CA_REGIONS_AND_SUPPORT", + "ITAR" ], "enumDescriptions": [ "Unknown compliance regime.", @@ -1092,7 +1103,8 @@ "Health Insurance Portability and Accountability Act controls", "Health Information Trust Alliance controls", "Assured Workloads For EU Regions and Support controls", - "Assured Workloads For Canada Regions and Support controls" + "Assured Workloads For Canada Regions and Support controls", + "International Traffic in Arms Regulations" ], "type": "string" }, diff --git a/assuredworkloads/v1/assuredworkloads-gen.go b/assuredworkloads/v1/assuredworkloads-gen.go index f23c58a2915..a49b4556ec6 100644 --- a/assuredworkloads/v1/assuredworkloads-gen.go +++ b/assuredworkloads/v1/assuredworkloads-gen.go @@ -204,6 +204,7 @@ type GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata struct { // Support controls // "CA_REGIONS_AND_SUPPORT" - Assured Workloads For Canada Regions and // Support controls + // "ITAR" - International Traffic in Arms Regulations ComplianceRegime string `json:"complianceRegime,omitempty"` // CreateTime: Optional. Time when the operation was created. @@ -307,6 +308,7 @@ type GoogleCloudAssuredworkloadsV1Workload struct { // Support controls // "CA_REGIONS_AND_SUPPORT" - Assured Workloads For Canada Regions and // Support controls + // "ITAR" - International Traffic in Arms Regulations ComplianceRegime string `json:"complianceRegime,omitempty"` // CreateTime: Output only. Immutable. The Workload creation timestamp. @@ -612,6 +614,7 @@ type GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata struct { // Support controls // "CA_REGIONS_AND_SUPPORT" - Assured Workloads For Canada Regions and // Support controls + // "ITAR" - International Traffic in Arms Regulations ComplianceRegime string `json:"complianceRegime,omitempty"` // CreateTime: Optional. Time when the operation was created. @@ -686,6 +689,7 @@ type GoogleCloudAssuredworkloadsV1beta1Workload struct { // Support controls // "CA_REGIONS_AND_SUPPORT" - Assured Workloads For Canada Regions and // Support controls + // "ITAR" - International Traffic in Arms Regulations ComplianceRegime string `json:"complianceRegime,omitempty"` // CreateTime: Output only. Immutable. The Workload creation timestamp. @@ -1117,6 +1121,7 @@ type GoogleCloudAssuredworkloadsVersioningV1mainCreateWorkloadOperationMetadata // Support controls // "CA_REGIONS_AND_SUPPORT" - Assured Workloads For Canada Regions and // Support controls + // "ITAR" - International Traffic in Arms Regulations ComplianceRegime string `json:"complianceRegime,omitempty"` // CreateTime: Optional. Time when the operation was created. @@ -1191,6 +1196,7 @@ type GoogleCloudAssuredworkloadsVersioningV1mainWorkload struct { // Support controls // "CA_REGIONS_AND_SUPPORT" - Assured Workloads For Canada Regions and // Support controls + // "ITAR" - International Traffic in Arms Regulations ComplianceRegime string `json:"complianceRegime,omitempty"` // CreateTime: Output only. Immutable. The Workload creation timestamp. diff --git a/connectors/v1/connectors-api.json b/connectors/v1/connectors-api.json index 854e04b7448..867ddecfaf4 100644 --- a/connectors/v1/connectors-api.json +++ b/connectors/v1/connectors-api.json @@ -436,7 +436,7 @@ "type": "string" }, "updateMask": { - "description": "Field mask is used to specify the fields to be overwritten in the Connection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + "description": "Required. Field mask is used to specify the fields to be overwritten in the Connection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1055,7 +1055,7 @@ } } }, - "revision": "20220523", + "revision": "20220603", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "AuditConfig": { @@ -1123,13 +1123,15 @@ "AUTH_TYPE_UNSPECIFIED", "USER_PASSWORD", "OAUTH2_JWT_BEARER", - "OAUTH2_CLIENT_CREDENTIALS" + "OAUTH2_CLIENT_CREDENTIALS", + "SSH_PUBLIC_KEY" ], "enumDescriptions": [ "Authentication type not specified.", "Username and Password Authentication.", "JSON Web Token (JWT) Profile for Oauth 2.0 Authorization Grant based authentication", - "Oauth 2.0 Client Credentials Grant Authentication" + "Oauth 2.0 Client Credentials Grant Authentication", + "SSH Public Key Authentication" ], "type": "string" }, @@ -1141,6 +1143,10 @@ "$ref": "Oauth2JwtBearer", "description": "Oauth2JwtBearer." }, + "sshPublicKey": { + "$ref": "SshPublicKey", + "description": "SSH Public Key." + }, "userPassword": { "$ref": "UserPassword", "description": "UserPassword." @@ -1158,13 +1164,15 @@ "AUTH_TYPE_UNSPECIFIED", "USER_PASSWORD", "OAUTH2_JWT_BEARER", - "OAUTH2_CLIENT_CREDENTIALS" + "OAUTH2_CLIENT_CREDENTIALS", + "SSH_PUBLIC_KEY" ], "enumDescriptions": [ "Authentication type not specified.", "Username and Password Authentication.", "JSON Web Token (JWT) Profile for Oauth 2.0 Authorization Grant based authentication", - "Oauth 2.0 Client Credentials Grant Authentication" + "Oauth 2.0 Client Credentials Grant Authentication", + "SSH Public Key Authentication" ], "type": "string" }, @@ -1321,14 +1329,6 @@ "description": "Optional. Description of the resource.", "type": "string" }, - "egressBackends": { - "description": "Output only. Outbound domains/hosts needs to be allowlisted.", - "items": { - "type": "string" - }, - "readOnly": true, - "type": "array" - }, "envoyImageLocation": { "description": "Output only. GCR location where the envoy image is stored. formatted like: gcr.io/{bucketName}/{imageName}", "readOnly": true, @@ -2647,6 +2647,11 @@ "readOnly": true, "type": "string" }, + "name": { + "description": "Output only. Resource name of the form: `projects/*/locations/*/runtimeConfig`", + "readOnly": true, + "type": "string" + }, "runtimeEndpoint": { "description": "Output only. The endpoint of the connectors runtime ingress.", "readOnly": true, @@ -2758,6 +2763,28 @@ }, "type": "object" }, + "SshPublicKey": { + "id": "SshPublicKey", + "properties": { + "certType": { + "description": "Format of SSH Client cert.", + "type": "string" + }, + "password": { + "$ref": "Secret", + "description": "This is an optional field used in case client has enabled multi-factor authentication" + }, + "sshClientCert": { + "$ref": "Secret", + "description": "SSH Client Cert. It should contain both public and private key." + }, + "username": { + "description": "The user account used to authenticate.", + "type": "string" + } + }, + "type": "object" + }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", diff --git a/connectors/v1/connectors-gen.go b/connectors/v1/connectors-gen.go index 29fe79a6f38..6e2eac64180 100644 --- a/connectors/v1/connectors-gen.go +++ b/connectors/v1/connectors-gen.go @@ -377,6 +377,7 @@ type AuthConfig struct { // Authorization Grant based authentication // "OAUTH2_CLIENT_CREDENTIALS" - Oauth 2.0 Client Credentials Grant // Authentication + // "SSH_PUBLIC_KEY" - SSH Public Key Authentication AuthType string `json:"authType,omitempty"` // Oauth2ClientCredentials: Oauth2ClientCredentials. @@ -385,6 +386,9 @@ type AuthConfig struct { // Oauth2JwtBearer: Oauth2JwtBearer. Oauth2JwtBearer *Oauth2JwtBearer `json:"oauth2JwtBearer,omitempty"` + // SshPublicKey: SSH Public Key. + SshPublicKey *SshPublicKey `json:"sshPublicKey,omitempty"` + // UserPassword: UserPassword. UserPassword *UserPassword `json:"userPassword,omitempty"` @@ -424,6 +428,7 @@ type AuthConfigTemplate struct { // Authorization Grant based authentication // "OAUTH2_CLIENT_CREDENTIALS" - Oauth 2.0 Client Credentials Grant // Authentication + // "SSH_PUBLIC_KEY" - SSH Public Key Authentication AuthType string `json:"authType,omitempty"` // ConfigVariableTemplates: Config variables to describe an `AuthConfig` @@ -654,10 +659,6 @@ type Connection struct { // Description: Optional. Description of the resource. Description string `json:"description,omitempty"` - // EgressBackends: Output only. Outbound domains/hosts needs to be - // allowlisted. - EgressBackends []string `json:"egressBackends,omitempty"` - // EnvoyImageLocation: Output only. GCR location where the envoy image // is stored. formatted like: gcr.io/{bucketName}/{imageName} EnvoyImageLocation string `json:"envoyImageLocation,omitempty"` @@ -2388,6 +2389,10 @@ type RuntimeConfig struct { // "us-west1". LocationId string `json:"locationId,omitempty"` + // Name: Output only. Resource name of the form: + // `projects/*/locations/*/runtimeConfig` + Name string `json:"name,omitempty"` + // RuntimeEndpoint: Output only. The endpoint of the connectors runtime // ingress. RuntimeEndpoint string `json:"runtimeEndpoint,omitempty"` @@ -2572,6 +2577,44 @@ func (s *Source) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type SshPublicKey struct { + // CertType: Format of SSH Client cert. + CertType string `json:"certType,omitempty"` + + // Password: This is an optional field used in case client has enabled + // multi-factor authentication + Password *Secret `json:"password,omitempty"` + + // SshClientCert: SSH Client Cert. It should contain both public and + // private key. + SshClientCert *Secret `json:"sshClientCert,omitempty"` + + // Username: The user account used to authenticate. + Username string `json:"username,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CertType") 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 + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CertType") 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 + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SshPublicKey) MarshalJSON() ([]byte, error) { + type NoMethod SshPublicKey + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Status: The `Status` type defines a logical error model that is // suitable for different programming environments, including REST APIs // and RPC APIs. It is used by gRPC (https://github.com/grpc). Each @@ -4309,12 +4352,12 @@ func (r *ProjectsLocationsConnectionsService) Patch(name string, connection *Con return c } -// UpdateMask sets the optional parameter "updateMask": Field mask is -// used to specify the fields to be overwritten in the Connection -// resource by the update. The fields specified in the update_mask are -// relative to the resource, not the full request. A field will be -// overwritten if it is in the mask. If the user does not provide a mask -// then all fields will be overwritten. +// UpdateMask sets the optional parameter "updateMask": Required. Field +// mask is used to specify the fields to be overwritten in the +// Connection resource by the update. The fields specified in the +// update_mask are relative to the resource, not the full request. A +// field will be overwritten if it is in the mask. If the user does not +// provide a mask then all fields will be overwritten. func (c *ProjectsLocationsConnectionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConnectionsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -4427,7 +4470,7 @@ func (c *ProjectsLocationsConnectionsPatchCall) Do(opts ...googleapi.CallOption) // "type": "string" // }, // "updateMask": { - // "description": "Field mask is used to specify the fields to be overwritten in the Connection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + // "description": "Required. Field mask is used to specify the fields to be overwritten in the Connection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", // "format": "google-fieldmask", // "location": "query", // "type": "string" diff --git a/displayvideo/v1/displayvideo-api.json b/displayvideo/v1/displayvideo-api.json index e077fabf544..deea6155697 100644 --- a/displayvideo/v1/displayvideo-api.json +++ b/displayvideo/v1/displayvideo-api.json @@ -1525,7 +1525,7 @@ "type": "string" }, "filter": { - "description": "Allows filtering by creative properties. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restriction for the same field must be combined by `OR`. * Restriction for different fields must be combined by `AND`. * Between `(` and `)` there can only be restrictions combined by `OR` for the same field. * A restriction has the form of `{field} {operator} {value}`. * The operator must be `EQUALS (=)` for the following fields: - `entityStatus` - `creativeType`. - `dimensions` - `minDuration` - `maxDuration` - `approvalStatus` - `exchangeReviewStatus` - `dynamic` - `creativeId` * The operator must be `HAS (:)` for the following fields: - `lineItemIds` * The operator must be `GREATER THAN OR EQUAL TO (\u003e=)` or `LESS THAN OR EQUAL TO (\u003c=)` for the following fields: - `updateTime` (input in ISO 8601 format, or YYYY-MM-DDTHH:MM:SSZ) * For `entityStatus`, `minDuration`, `maxDuration`, `updateTime`, `and `dynamic`, there may be at most one restriction. * For `dimensions`, the value is in the form of `\"{width}x{height}\"`. * For `exchangeReviewStatus`, the value is in the form of `{exchange}-{reviewStatus}`. * For `minDuration` and `maxDuration`, the value is in the form of `\"{duration}s\"`. Only seconds are supported with millisecond granularity. * For `updateTime`, a creative resource's field value reflects the last time that a creative has been updated, which includes updates made by the system (e.g. creative review updates). * There may be multiple `lineItemIds` restrictions in order to search against multiple possible line item IDs. * There may be multiple `creativeId` restrictions in order to search against multiple possible creative IDs. Examples: * All native creatives: `creativeType=\"CREATIVE_TYPE_NATIVE\"` * All active creatives with 300x400 or 50x100 dimensions: `entityStatus=\"ENTITY_STATUS_ACTIVE\" AND (dimensions=\"300x400\" OR dimensions=\"50x100\")` * All dynamic creatives that are approved by AdX or AppNexus, with a minimum duration of 5 seconds and 200ms. `dynamic=\"true\" AND minDuration=\"5.2s\" AND (exchangeReviewStatus=\"EXCHANGE_GOOGLE_AD_MANAGER-REVIEW_STATUS_APPROVED\" OR exchangeReviewStatus=\"EXCHANGE_APPNEXUS-REVIEW_STATUS_APPROVED\")` * All video creatives that are associated with line item ID 1 or 2: `creativeType=\"CREATIVE_TYPE_VIDEO\" AND (lineItemIds:1 OR lineItemIds:2)` * Find creatives by multiple creative IDs: `creativeId=1 OR creativeId=2` * All creatives with an update time greater than or equal to `2020-11-04T18:54:47Z (format of ISO 8601)`: `updateTime\u003e=\"2020-11-04T18:54:47Z\"` The length of this field should be no more than 500 characters.", + "description": "Allows filtering by creative properties. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restriction for the same field must be combined by `OR`. * Restriction for different fields must be combined by `AND`. * Between `(` and `)` there can only be restrictions combined by `OR` for the same field. * A restriction has the form of `{field} {operator} {value}`. * The operator must be `EQUALS (=)` for the following fields: - `entityStatus` - `creativeType`. - `dimensions` - `minDuration` - `maxDuration` - `approvalStatus` - `exchangeReviewStatus` - `dynamic` - `creativeId` * The operator must be `HAS (:)` for the following fields: - `lineItemIds` * The operator must be `GREATER THAN OR EQUAL TO (\u003e=)` or `LESS THAN OR EQUAL TO (\u003c=)` for the following fields: - `updateTime` (input in ISO 8601 format, or YYYY-MM-DDTHH:MM:SSZ) * For `entityStatus`, `minDuration`, `maxDuration`, `updateTime`, and `dynamic`, there may be at most one restriction. * For `dimensions`, the value is in the form of `\"{width}x{height}\"`. * For `exchangeReviewStatus`, the value is in the form of `{exchange}-{reviewStatus}`. * For `minDuration` and `maxDuration`, the value is in the form of `\"{duration}s\"`. Only seconds are supported with millisecond granularity. * For `updateTime`, a creative resource's field value reflects the last time that a creative has been updated, which includes updates made by the system (e.g. creative review updates). * There may be multiple `lineItemIds` restrictions in order to search against multiple possible line item IDs. * There may be multiple `creativeId` restrictions in order to search against multiple possible creative IDs. Examples: * All native creatives: `creativeType=\"CREATIVE_TYPE_NATIVE\"` * All active creatives with 300x400 or 50x100 dimensions: `entityStatus=\"ENTITY_STATUS_ACTIVE\" AND (dimensions=\"300x400\" OR dimensions=\"50x100\")` * All dynamic creatives that are approved by AdX or AppNexus, with a minimum duration of 5 seconds and 200ms. `dynamic=\"true\" AND minDuration=\"5.2s\" AND (exchangeReviewStatus=\"EXCHANGE_GOOGLE_AD_MANAGER-REVIEW_STATUS_APPROVED\" OR exchangeReviewStatus=\"EXCHANGE_APPNEXUS-REVIEW_STATUS_APPROVED\")` * All video creatives that are associated with line item ID 1 or 2: `creativeType=\"CREATIVE_TYPE_VIDEO\" AND (lineItemIds:1 OR lineItemIds:2)` * Find creatives by multiple creative IDs: `creativeId=1 OR creativeId=2` * All creatives with an update time greater than or equal to `2020-11-04T18:54:47Z (format of ISO 8601)`: `updateTime\u003e=\"2020-11-04T18:54:47Z\"` The length of this field should be no more than 500 characters.", "location": "query", "type": "string" }, @@ -8146,7 +8146,7 @@ } } }, - "revision": "20220607", + "revision": "20220609", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -8488,7 +8488,7 @@ "id": "AgeRangeAssignedTargetingOptionDetails", "properties": { "ageRange": { - "description": "The age range of an audience. We only support targeting a continuous age range of an audience. Thus, the age range represented in this field can be 1) targeted solely, or, 2) part of a larger continuous age range. The reach of a continuous age range targeting can be expanded by also targeting an audience of an unknown age. Output only in v1.", + "description": "The age range of an audience. We only support targeting a continuous age range of an audience. Thus, the age range represented in this field can be 1) targeted solely, or, 2) part of a larger continuous age range. The reach of a continuous age range targeting can be expanded by also targeting an audience of an unknown age. Output only in v1. Required in v2.", "enum": [ "AGE_RANGE_UNSPECIFIED", "AGE_RANGE_18_24", @@ -9153,7 +9153,7 @@ "id": "AudioContentTypeAssignedTargetingOptionDetails", "properties": { "audioContentType": { - "description": "The audio content type. Output only in v1.", + "description": "The audio content type. Output only in v1. Required in v2.", "enum": [ "AUDIO_CONTENT_TYPE_UNSPECIFIED", "AUDIO_CONTENT_TYPE_UNKNOWN", @@ -10504,7 +10504,7 @@ "type": "string" }, "contentInstreamPosition": { - "description": "The content instream position for video or audio ads. Output only in v1.", + "description": "The content instream position for video or audio ads. Output only in v1. Required in v2.", "enum": [ "CONTENT_INSTREAM_POSITION_UNSPECIFIED", "CONTENT_INSTREAM_POSITION_PRE_ROLL", @@ -10576,7 +10576,7 @@ "type": "string" }, "contentOutstreamPosition": { - "description": "The content outstream position. Output only in v1.", + "description": "The content outstream position. Output only in v1. Required in v2.", "enum": [ "CONTENT_OUTSTREAM_POSITION_UNSPECIFIED", "CONTENT_OUTSTREAM_POSITION_UNKNOWN", @@ -11822,7 +11822,7 @@ "id": "DeviceTypeAssignedTargetingOptionDetails", "properties": { "deviceType": { - "description": "The display name of the device type. Output only in v1.", + "description": "The display name of the device type. Output only in v1. Required in v2.", "enum": [ "DEVICE_TYPE_UNSPECIFIED", "DEVICE_TYPE_COMPUTER", @@ -12431,7 +12431,7 @@ "id": "EnvironmentAssignedTargetingOptionDetails", "properties": { "environment": { - "description": "The serving environment. Output only in v1.", + "description": "The serving environment. Output only in v1. Required in v2.", "enum": [ "ENVIRONMENT_UNSPECIFIED", "ENVIRONMENT_WEB_OPTIMIZED", @@ -13321,7 +13321,7 @@ "id": "FrequencyCap", "properties": { "maxImpressions": { - "description": "The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when unlimited is `false`.", + "description": "The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when unlimited is `false` and max_views is not set.", "format": "int32", "type": "integer" }, @@ -13364,7 +13364,7 @@ "id": "GenderAssignedTargetingOptionDetails", "properties": { "gender": { - "description": "The gender of the audience. Output only in v1.", + "description": "The gender of the audience. Output only in v1. Required in v2.", "enum": [ "GENDER_UNSPECIFIED", "GENDER_MALE", @@ -16265,7 +16265,7 @@ "id": "NativeContentPositionAssignedTargetingOptionDetails", "properties": { "contentPosition": { - "description": "The content position. Output only in v1.", + "description": "The content position. Output only in v1. Required in v2.", "enum": [ "NATIVE_CONTENT_POSITION_UNSPECIFIED", "NATIVE_CONTENT_POSITION_UNKNOWN", @@ -16439,7 +16439,7 @@ "id": "OmidAssignedTargetingOptionDetails", "properties": { "omid": { - "description": "The type of Open Measurement enabled inventory. Output only in v1.", + "description": "The type of Open Measurement enabled inventory. Output only in v1. Required in v2.", "enum": [ "OMID_UNSPECIFIED", "OMID_FOR_MOBILE_DISPLAY_ADS" @@ -18469,7 +18469,7 @@ "type": "string" }, "videoPlayerSize": { - "description": "The video player size. Output only in v1.", + "description": "The video player size. Output only in v1. Required in v2.", "enum": [ "VIDEO_PLAYER_SIZE_UNSPECIFIED", "VIDEO_PLAYER_SIZE_SMALL", @@ -18524,7 +18524,7 @@ "type": "string" }, "viewability": { - "description": "The predicted viewability percentage. Output only in v1.", + "description": "The predicted viewability percentage. Output only in v1. Required in v2.", "enum": [ "VIEWABILITY_UNSPECIFIED", "VIEWABILITY_10_PERCENT_OR_MORE", diff --git a/displayvideo/v1/displayvideo-gen.go b/displayvideo/v1/displayvideo-gen.go index 8f4037d310e..e61b491764a 100644 --- a/displayvideo/v1/displayvideo-gen.go +++ b/displayvideo/v1/displayvideo-gen.go @@ -1189,7 +1189,7 @@ type AgeRangeAssignedTargetingOptionDetails struct { // in this field can be 1) targeted solely, or, 2) part of a larger // continuous age range. The reach of a continuous age range targeting // can be expanded by also targeting an audience of an unknown age. - // Output only in v1. + // Output only in v1. Required in v2. // // Possible values: // "AGE_RANGE_UNSPECIFIED" - Default value when age range is not @@ -2206,7 +2206,8 @@ func (s *AudienceGroupAssignedTargetingOptionDetails) MarshalJSON() ([]byte, err // is not supported. Remove all audio content type targeting options to // achieve this effect. type AudioContentTypeAssignedTargetingOptionDetails struct { - // AudioContentType: The audio content type. Output only in v1. + // AudioContentType: The audio content type. Output only in v1. Required + // in v2. // // Possible values: // "AUDIO_CONTENT_TYPE_UNSPECIFIED" - Audio content type is not @@ -4598,7 +4599,7 @@ type ContentInstreamPositionAssignedTargetingOptionDetails struct { AdType string `json:"adType,omitempty"` // ContentInstreamPosition: The content instream position for video or - // audio ads. Output only in v1. + // audio ads. Output only in v1. Required in v2. // // Possible values: // "CONTENT_INSTREAM_POSITION_UNSPECIFIED" - Content instream position @@ -4712,7 +4713,7 @@ type ContentOutstreamPositionAssignedTargetingOptionDetails struct { AdType string `json:"adType,omitempty"` // ContentOutstreamPosition: The content outstream position. Output only - // in v1. + // in v1. Required in v2. // // Possible values: // "CONTENT_OUTSTREAM_POSITION_UNSPECIFIED" - Content outstream @@ -6509,6 +6510,7 @@ func (s *DeviceMakeModelTargetingOptionDetails) MarshalJSON() ([]byte, error) { // `TARGETING_TYPE_DEVICE_TYPE`. type DeviceTypeAssignedTargetingOptionDetails struct { // DeviceType: The display name of the device type. Output only in v1. + // Required in v2. // // Possible values: // "DEVICE_TYPE_UNSPECIFIED" - Default value when device type is not @@ -7351,7 +7353,8 @@ type Empty struct { // of an AssignedTargetingOption when targeting_type is // `TARGETING_TYPE_ENVIRONMENT`. type EnvironmentAssignedTargetingOptionDetails struct { - // Environment: The serving environment. Output only in v1. + // Environment: The serving environment. Output only in v1. Required in + // v2. // // Possible values: // "ENVIRONMENT_UNSPECIFIED" - Default value when environment is not @@ -8268,7 +8271,7 @@ func (s *FloodlightGroup) MarshalJSON() ([]byte, error) { type FrequencyCap struct { // MaxImpressions: The maximum number of times a user may be shown the // same ad during this period. Must be greater than 0. Required when - // unlimited is `false`. + // unlimited is `false` and max_views is not set. MaxImpressions int64 `json:"maxImpressions,omitempty"` // TimeUnit: The time unit in which the frequency cap will be applied. @@ -8334,7 +8337,8 @@ func (s *FrequencyCap) MarshalJSON() ([]byte, error) { // AssignedTargetingOption when targeting_type is // `TARGETING_TYPE_GENDER`. type GenderAssignedTargetingOptionDetails struct { - // Gender: The gender of the audience. Output only in v1. + // Gender: The gender of the audience. Output only in v1. Required in + // v2. // // Possible values: // "GENDER_UNSPECIFIED" - Default value when gender is not specified @@ -12498,7 +12502,8 @@ func (s *Money) MarshalJSON() ([]byte, error) { // Explicitly targeting all options is not supported. Remove all native // content position targeting options to achieve this effect. type NativeContentPositionAssignedTargetingOptionDetails struct { - // ContentPosition: The content position. Output only in v1. + // ContentPosition: The content position. Output only in v1. Required in + // v2. // // Possible values: // "NATIVE_CONTENT_POSITION_UNSPECIFIED" - Native content position is @@ -12797,7 +12802,7 @@ func (s *ObaIcon) MarshalJSON() ([]byte, error) { // `TARGETING_TYPE_OMID`. type OmidAssignedTargetingOptionDetails struct { // Omid: The type of Open Measurement enabled inventory. Output only in - // v1. + // v1. Required in v2. // // Possible values: // "OMID_UNSPECIFIED" - Default value when omid targeting is not @@ -15952,7 +15957,8 @@ type VideoPlayerSizeAssignedTargetingOptionDetails struct { // targeting_type is `TARGETING_TYPE_VIDEO_PLAYER_SIZE`. TargetingOptionId string `json:"targetingOptionId,omitempty"` - // VideoPlayerSize: The video player size. Output only in v1. + // VideoPlayerSize: The video player size. Output only in v1. Required + // in v2. // // Possible values: // "VIDEO_PLAYER_SIZE_UNSPECIFIED" - Video player size is not @@ -16053,6 +16059,7 @@ type ViewabilityAssignedTargetingOptionDetails struct { TargetingOptionId string `json:"targetingOptionId,omitempty"` // Viewability: The predicted viewability percentage. Output only in v1. + // Required in v2. // // Possible values: // "VIEWABILITY_UNSPECIFIED" - Default value when viewability is not @@ -21708,7 +21715,7 @@ func (r *AdvertisersCreativesService) List(advertiserId int64) *AdvertisersCreat // `lineItemIds` * The operator must be `GREATER THAN OR EQUAL TO (>=)` // or `LESS THAN OR EQUAL TO (<=)` for the following fields: - // `updateTime` (input in ISO 8601 format, or YYYY-MM-DDTHH:MM:SSZ) * -// For `entityStatus`, `minDuration`, `maxDuration`, `updateTime`, `and +// For `entityStatus`, `minDuration`, `maxDuration`, `updateTime`, and // `dynamic`, there may be at most one restriction. * For `dimensions`, // the value is in the form of "{width}x{height}". * For // `exchangeReviewStatus`, the value is in the form of @@ -21888,7 +21895,7 @@ func (c *AdvertisersCreativesListCall) Do(opts ...googleapi.CallOption) (*ListCr // "type": "string" // }, // "filter": { - // "description": "Allows filtering by creative properties. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restriction for the same field must be combined by `OR`. * Restriction for different fields must be combined by `AND`. * Between `(` and `)` there can only be restrictions combined by `OR` for the same field. * A restriction has the form of `{field} {operator} {value}`. * The operator must be `EQUALS (=)` for the following fields: - `entityStatus` - `creativeType`. - `dimensions` - `minDuration` - `maxDuration` - `approvalStatus` - `exchangeReviewStatus` - `dynamic` - `creativeId` * The operator must be `HAS (:)` for the following fields: - `lineItemIds` * The operator must be `GREATER THAN OR EQUAL TO (\u003e=)` or `LESS THAN OR EQUAL TO (\u003c=)` for the following fields: - `updateTime` (input in ISO 8601 format, or YYYY-MM-DDTHH:MM:SSZ) * For `entityStatus`, `minDuration`, `maxDuration`, `updateTime`, `and `dynamic`, there may be at most one restriction. * For `dimensions`, the value is in the form of `\"{width}x{height}\"`. * For `exchangeReviewStatus`, the value is in the form of `{exchange}-{reviewStatus}`. * For `minDuration` and `maxDuration`, the value is in the form of `\"{duration}s\"`. Only seconds are supported with millisecond granularity. * For `updateTime`, a creative resource's field value reflects the last time that a creative has been updated, which includes updates made by the system (e.g. creative review updates). * There may be multiple `lineItemIds` restrictions in order to search against multiple possible line item IDs. * There may be multiple `creativeId` restrictions in order to search against multiple possible creative IDs. Examples: * All native creatives: `creativeType=\"CREATIVE_TYPE_NATIVE\"` * All active creatives with 300x400 or 50x100 dimensions: `entityStatus=\"ENTITY_STATUS_ACTIVE\" AND (dimensions=\"300x400\" OR dimensions=\"50x100\")` * All dynamic creatives that are approved by AdX or AppNexus, with a minimum duration of 5 seconds and 200ms. `dynamic=\"true\" AND minDuration=\"5.2s\" AND (exchangeReviewStatus=\"EXCHANGE_GOOGLE_AD_MANAGER-REVIEW_STATUS_APPROVED\" OR exchangeReviewStatus=\"EXCHANGE_APPNEXUS-REVIEW_STATUS_APPROVED\")` * All video creatives that are associated with line item ID 1 or 2: `creativeType=\"CREATIVE_TYPE_VIDEO\" AND (lineItemIds:1 OR lineItemIds:2)` * Find creatives by multiple creative IDs: `creativeId=1 OR creativeId=2` * All creatives with an update time greater than or equal to `2020-11-04T18:54:47Z (format of ISO 8601)`: `updateTime\u003e=\"2020-11-04T18:54:47Z\"` The length of this field should be no more than 500 characters.", + // "description": "Allows filtering by creative properties. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restriction for the same field must be combined by `OR`. * Restriction for different fields must be combined by `AND`. * Between `(` and `)` there can only be restrictions combined by `OR` for the same field. * A restriction has the form of `{field} {operator} {value}`. * The operator must be `EQUALS (=)` for the following fields: - `entityStatus` - `creativeType`. - `dimensions` - `minDuration` - `maxDuration` - `approvalStatus` - `exchangeReviewStatus` - `dynamic` - `creativeId` * The operator must be `HAS (:)` for the following fields: - `lineItemIds` * The operator must be `GREATER THAN OR EQUAL TO (\u003e=)` or `LESS THAN OR EQUAL TO (\u003c=)` for the following fields: - `updateTime` (input in ISO 8601 format, or YYYY-MM-DDTHH:MM:SSZ) * For `entityStatus`, `minDuration`, `maxDuration`, `updateTime`, and `dynamic`, there may be at most one restriction. * For `dimensions`, the value is in the form of `\"{width}x{height}\"`. * For `exchangeReviewStatus`, the value is in the form of `{exchange}-{reviewStatus}`. * For `minDuration` and `maxDuration`, the value is in the form of `\"{duration}s\"`. Only seconds are supported with millisecond granularity. * For `updateTime`, a creative resource's field value reflects the last time that a creative has been updated, which includes updates made by the system (e.g. creative review updates). * There may be multiple `lineItemIds` restrictions in order to search against multiple possible line item IDs. * There may be multiple `creativeId` restrictions in order to search against multiple possible creative IDs. Examples: * All native creatives: `creativeType=\"CREATIVE_TYPE_NATIVE\"` * All active creatives with 300x400 or 50x100 dimensions: `entityStatus=\"ENTITY_STATUS_ACTIVE\" AND (dimensions=\"300x400\" OR dimensions=\"50x100\")` * All dynamic creatives that are approved by AdX or AppNexus, with a minimum duration of 5 seconds and 200ms. `dynamic=\"true\" AND minDuration=\"5.2s\" AND (exchangeReviewStatus=\"EXCHANGE_GOOGLE_AD_MANAGER-REVIEW_STATUS_APPROVED\" OR exchangeReviewStatus=\"EXCHANGE_APPNEXUS-REVIEW_STATUS_APPROVED\")` * All video creatives that are associated with line item ID 1 or 2: `creativeType=\"CREATIVE_TYPE_VIDEO\" AND (lineItemIds:1 OR lineItemIds:2)` * Find creatives by multiple creative IDs: `creativeId=1 OR creativeId=2` * All creatives with an update time greater than or equal to `2020-11-04T18:54:47Z (format of ISO 8601)`: `updateTime\u003e=\"2020-11-04T18:54:47Z\"` The length of this field should be no more than 500 characters.", // "location": "query", // "type": "string" // }, diff --git a/healthcare/v1/healthcare-api.json b/healthcare/v1/healthcare-api.json index 4c6bd77042d..788bdeea332 100644 --- a/healthcare/v1/healthcare-api.json +++ b/healthcare/v1/healthcare-api.json @@ -3596,7 +3596,7 @@ ], "parameters": { "name": { - "description": "Resource name of the HL7v2 store, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`.", + "description": "Resource name of the HL7v2 store, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", "required": true, @@ -3884,7 +3884,7 @@ ], "parameters": { "name": { - "description": "Resource name of the Message, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server.", + "description": "Resource name of the Message, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+/messages/[^/]+$", "required": true, @@ -4053,7 +4053,7 @@ } } }, - "revision": "20220512", + "revision": "20220531", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "ActivateConsentRequest": { @@ -4552,7 +4552,7 @@ "id": "CryptoHashConfig", "properties": { "cryptoKey": { - "description": "An AES 128/192/256 bit key. Causes the hash to be computed based on this key. A default key is generated for each Deidentify operation and is used wherever crypto_key is not specified.", + "description": "An AES 128/192/256 bit key. Causes the hash to be computed based on this key. A default key is generated for each Deidentify operation and is used when neither `crypto_key` nor `kms_wrapped` is specified. Must not be set if `kms_wrapped` is set.", "format": "byte", "type": "string" } @@ -4579,7 +4579,7 @@ "id": "DateShiftConfig", "properties": { "cryptoKey": { - "description": "An AES 128/192/256 bit key. Causes the shift to be computed based on this key and the patient ID. A default key is generated for each Deidentify operation and is used wherever crypto_key is not specified.", + "description": "An AES 128/192/256 bit key. Causes the shift to be computed based on this key and the patient ID. A default key is generated for each de-identification operation and is used when neither `crypto_key` nor `kms_wrapped` is specified. Must not be set if `kms_wrapped` is set.", "format": "byte", "type": "string" } @@ -5059,6 +5059,20 @@ "description": "Represents a FHIR store.", "id": "FhirStore", "properties": { + "complexDataTypeReferenceParsing": { + "description": "Enable parsing of references within complex FHIR data types such as Extensions. If this value is set to ENABLED, then features like referential integrity and Bundle reference rewriting apply to all references. If this flag has not been specified the behavior of the FHIR store will not change, references in complex data types will not be parsed. New stores will have this value set to ENABLED after a notification period. Warning: turning on this flag causes processing existing resources to fail if they contain references to non-existent resources.", + "enum": [ + "COMPLEX_DATA_TYPE_REFERENCE_PARSING_UNSPECIFIED", + "DISABLED", + "ENABLED" + ], + "enumDescriptions": [ + "No parsing behavior specified. This is the same as DISABLED for backwards compatibility.", + "References in complex data types are ignored.", + "References in complex data types are parsed." + ], + "type": "string" + }, "defaultSearchHandlingStrict": { "description": "If true, overrides the default search behavior for this FHIR store to `handling=strict` which returns an error for unrecognized search parameters. If false, uses the FHIR specification default `handling=lenient` which ignores unrecognized search parameters. The handling can always be changed from the default on an individual API call by setting the HTTP header `Prefer: handling=strict` or `Prefer: handling=lenient`.", "type": "boolean" @@ -5470,7 +5484,7 @@ "type": "object" }, "name": { - "description": "Resource name of the HL7v2 store, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`.", + "description": "Resource name of the HL7v2 store, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`.", "type": "string" }, "notificationConfigs": { @@ -5549,7 +5563,7 @@ "enumDescriptions": [ "No text redaction specified. Same as REDACT_NO_TEXT.", "Redact all text.", - "Redact sensitive text.", + "Redact sensitive text. Uses the set of [Default DICOM InfoTypes](https://cloud.google.com/healthcare-api/docs/how-tos/dicom-deidentify#default_dicom_infotypes).", "Do not redact text." ], "type": "string" @@ -5987,7 +6001,7 @@ "type": "string" }, "name": { - "description": "Resource name of the Message, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server.", + "description": "Resource name of the Message, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server.", "type": "string" }, "parsedData": { diff --git a/healthcare/v1/healthcare-gen.go b/healthcare/v1/healthcare-gen.go index db1eebf5fde..98fe43ccc02 100644 --- a/healthcare/v1/healthcare-gen.go +++ b/healthcare/v1/healthcare-gen.go @@ -1255,7 +1255,8 @@ func (s *CreateMessageRequest) MarshalJSON() ([]byte, error) { type CryptoHashConfig struct { // CryptoKey: An AES 128/192/256 bit key. Causes the hash to be computed // based on this key. A default key is generated for each Deidentify - // operation and is used wherever crypto_key is not specified. + // operation and is used when neither `crypto_key` nor `kms_wrapped` is + // specified. Must not be set if `kms_wrapped` is set. CryptoKey string `json:"cryptoKey,omitempty"` // ForceSendFields is a list of field names (e.g. "CryptoKey") to @@ -1329,8 +1330,9 @@ func (s *Dataset) MarshalJSON() ([]byte, error) { type DateShiftConfig struct { // CryptoKey: An AES 128/192/256 bit key. Causes the shift to be // computed based on this key and the patient ID. A default key is - // generated for each Deidentify operation and is used wherever - // crypto_key is not specified. + // generated for each de-identification operation and is used when + // neither `crypto_key` nor `kms_wrapped` is specified. Must not be set + // if `kms_wrapped` is set. CryptoKey string `json:"cryptoKey,omitempty"` // ForceSendFields is a list of field names (e.g. "CryptoKey") to @@ -2331,6 +2333,24 @@ func (s *FhirFilter) MarshalJSON() ([]byte, error) { // FhirStore: Represents a FHIR store. type FhirStore struct { + // ComplexDataTypeReferenceParsing: Enable parsing of references within + // complex FHIR data types such as Extensions. If this value is set to + // ENABLED, then features like referential integrity and Bundle + // reference rewriting apply to all references. If this flag has not + // been specified the behavior of the FHIR store will not change, + // references in complex data types will not be parsed. New stores will + // have this value set to ENABLED after a notification period. Warning: + // turning on this flag causes processing existing resources to fail if + // they contain references to non-existent resources. + // + // Possible values: + // "COMPLEX_DATA_TYPE_REFERENCE_PARSING_UNSPECIFIED" - No parsing + // behavior specified. This is the same as DISABLED for backwards + // compatibility. + // "DISABLED" - References in complex data types are ignored. + // "ENABLED" - References in complex data types are parsed. + ComplexDataTypeReferenceParsing string `json:"complexDataTypeReferenceParsing,omitempty"` + // DefaultSearchHandlingStrict: If true, overrides the default search // behavior for this FHIR store to `handling=strict` which returns an // error for unrecognized search parameters. If false, uses the FHIR @@ -2435,7 +2455,7 @@ type FhirStore struct { googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. - // "DefaultSearchHandlingStrict") to unconditionally include in API + // "ComplexDataTypeReferenceParsing") 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 sent to the server regardless of @@ -2444,8 +2464,8 @@ type FhirStore struct { ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. - // "DefaultSearchHandlingStrict") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted + // "ComplexDataTypeReferenceParsing") 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 null. It is an error if a // field in this list has a non-empty value. This may be used to include @@ -3220,8 +3240,8 @@ type Hl7V2Store struct { Labels map[string]string `json:"labels,omitempty"` // Name: Resource name of the HL7v2 store, of the form - // `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_ - // id}`. + // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/h + // l7V2Stores/{hl7v2_store_id}`. Name string `json:"name,omitempty"` // NotificationConfigs: A list of notification configs. Each @@ -3381,7 +3401,10 @@ type ImageConfig struct { // "TEXT_REDACTION_MODE_UNSPECIFIED" - No text redaction specified. // Same as REDACT_NO_TEXT. // "REDACT_ALL_TEXT" - Redact all text. - // "REDACT_SENSITIVE_TEXT" - Redact sensitive text. + // "REDACT_SENSITIVE_TEXT" - Redact sensitive text. Uses the set of + // [Default DICOM + // InfoTypes](https://cloud.google.com/healthcare-api/docs/how-tos/dicom- + // deidentify#default_dicom_infotypes). // "REDACT_NO_TEXT" - Do not redact text. TextRedactionMode string `json:"textRedactionMode,omitempty"` @@ -4246,8 +4269,9 @@ type Message struct { MessageType string `json:"messageType,omitempty"` // Name: Resource name of the Message, of the form - // `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store - // _id}/messages/{message_id}`. Assigned by the server. + // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/h + // l7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the + // server. Name string `json:"name,omitempty"` // ParsedData: Output only. The parsed version of the raw message data. @@ -23017,8 +23041,8 @@ type ProjectsLocationsDatasetsHl7V2StoresPatchCall struct { // Patch: Updates the HL7v2 store. // // - name: Resource name of the HL7v2 store, of the form -// `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_stor -// e_id}`. +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id} +// /hl7V2Stores/{hl7v2_store_id}`. func (r *ProjectsLocationsDatasetsHl7V2StoresService) Patch(name string, hl7v2store *Hl7V2Store) *ProjectsLocationsDatasetsHl7V2StoresPatchCall { c := &ProjectsLocationsDatasetsHl7V2StoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -23134,7 +23158,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Do(opts ...googleapi.Cal // ], // "parameters": { // "name": { - // "description": "Resource name of the HL7v2 store, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`.", + // "description": "Resource name of the HL7v2 store, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", // "required": true, @@ -24399,8 +24423,9 @@ type ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall struct { // updated. // // - name: Resource name of the Message, of the form -// `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_sto -// re_id}/messages/{message_id}`. Assigned by the server. +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id} +// /hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by +// the server. func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Patch(name string, message *Message) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall { c := &ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -24516,7 +24541,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Do(opts ...googl // ], // "parameters": { // "name": { - // "description": "Resource name of the Message, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server.", + // "description": "Resource name of the Message, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+/messages/[^/]+$", // "required": true, diff --git a/healthcare/v1beta1/healthcare-api.json b/healthcare/v1beta1/healthcare-api.json index b5c6a34caea..d21f22ec5c9 100644 --- a/healthcare/v1beta1/healthcare-api.json +++ b/healthcare/v1beta1/healthcare-api.json @@ -4356,7 +4356,7 @@ ], "parameters": { "name": { - "description": "Resource name of the HL7v2 store, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`.", + "description": "Resource name of the HL7v2 store, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", "required": true, @@ -4696,7 +4696,7 @@ ], "parameters": { "name": { - "description": "Resource name of the Message, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server.", + "description": "Resource name of the Message, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+/messages/[^/]+$", "required": true, @@ -4865,7 +4865,7 @@ } } }, - "revision": "20220525", + "revision": "20220531", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "ActivateConsentRequest": { @@ -6140,6 +6140,20 @@ "description": "Represents a FHIR store.", "id": "FhirStore", "properties": { + "complexDataTypeReferenceParsing": { + "description": "Enable parsing of references within complex FHIR data types such as Extensions. If this value is set to ENABLED, then features like referential integrity and Bundle reference rewriting apply to all references. If this flag has not been specified the behavior of the FHIR store will not change, references in complex data types will not be parsed. New stores will have this value set to ENABLED after a notification period. Warning: turning on this flag causes processing existing resources to fail if they contain references to non-existent resources.", + "enum": [ + "COMPLEX_DATA_TYPE_REFERENCE_PARSING_UNSPECIFIED", + "DISABLED", + "ENABLED" + ], + "enumDescriptions": [ + "No parsing behavior specified. This is the same as DISABLED for backwards compatibility.", + "References in complex data types are ignored.", + "References in complex data types are parsed." + ], + "type": "string" + }, "defaultSearchHandlingStrict": { "description": "If true, overrides the default search behavior for this FHIR store to `handling=strict` which returns an error for unrecognized search parameters. If false, uses the FHIR specification default `handling=lenient` which ignores unrecognized search parameters. The handling can always be changed from the default on an individual API call by setting the HTTP header `Prefer: handling=strict` or `Prefer: handling=lenient`.", "type": "boolean" @@ -6688,7 +6702,7 @@ "type": "object" }, "name": { - "description": "Resource name of the HL7v2 store, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`.", + "description": "Resource name of the HL7v2 store, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`.", "type": "string" }, "notificationConfig": { @@ -6790,7 +6804,7 @@ "enumDescriptions": [ "No text redaction specified. Same as REDACT_NO_TEXT.", "Redact all text.", - "Redact sensitive text.", + "Redact sensitive text. Uses the set of [Default DICOM InfoTypes](https://cloud.google.com/healthcare-api/docs/how-tos/dicom-deidentify#default_dicom_infotypes).", "Do not redact text." ], "type": "string" @@ -6960,7 +6974,7 @@ "id": "KmsWrappedCryptoKey", "properties": { "cryptoKey": { - "description": "Required. The resource name of the KMS CryptoKey to use for unwrapping.", + "description": "Required. The resource name of the KMS CryptoKey to use for unwrapping. For example, `projects/{project_id}/locations/{location_id}/keyRings/{keyring}/cryptoKeys/{key}`.", "type": "string" }, "wrappedKey": { @@ -7307,7 +7321,7 @@ "type": "string" }, "name": { - "description": "Resource name of the Message, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server.", + "description": "Resource name of the Message, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server.", "type": "string" }, "parsedData": { diff --git a/healthcare/v1beta1/healthcare-gen.go b/healthcare/v1beta1/healthcare-gen.go index 64e4966e573..6be86c7c07a 100644 --- a/healthcare/v1beta1/healthcare-gen.go +++ b/healthcare/v1beta1/healthcare-gen.go @@ -2936,6 +2936,24 @@ func (s *FhirOutput) MarshalJSON() ([]byte, error) { // FhirStore: Represents a FHIR store. type FhirStore struct { + // ComplexDataTypeReferenceParsing: Enable parsing of references within + // complex FHIR data types such as Extensions. If this value is set to + // ENABLED, then features like referential integrity and Bundle + // reference rewriting apply to all references. If this flag has not + // been specified the behavior of the FHIR store will not change, + // references in complex data types will not be parsed. New stores will + // have this value set to ENABLED after a notification period. Warning: + // turning on this flag causes processing existing resources to fail if + // they contain references to non-existent resources. + // + // Possible values: + // "COMPLEX_DATA_TYPE_REFERENCE_PARSING_UNSPECIFIED" - No parsing + // behavior specified. This is the same as DISABLED for backwards + // compatibility. + // "DISABLED" - References in complex data types are ignored. + // "ENABLED" - References in complex data types are parsed. + ComplexDataTypeReferenceParsing string `json:"complexDataTypeReferenceParsing,omitempty"` + // DefaultSearchHandlingStrict: If true, overrides the default search // behavior for this FHIR store to `handling=strict` which returns an // error for unrecognized search parameters. If false, uses the FHIR @@ -3047,7 +3065,7 @@ type FhirStore struct { googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. - // "DefaultSearchHandlingStrict") to unconditionally include in API + // "ComplexDataTypeReferenceParsing") 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 sent to the server regardless of @@ -3056,8 +3074,8 @@ type FhirStore struct { ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. - // "DefaultSearchHandlingStrict") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted + // "ComplexDataTypeReferenceParsing") 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 null. It is an error if a // field in this list has a non-empty value. This may be used to include @@ -4106,8 +4124,8 @@ type Hl7V2Store struct { Labels map[string]string `json:"labels,omitempty"` // Name: Resource name of the HL7v2 store, of the form - // `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_ - // id}`. + // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/h + // l7V2Stores/{hl7v2_store_id}`. Name string `json:"name,omitempty"` // NotificationConfig: The notification destination all messages (both @@ -4306,7 +4324,10 @@ type ImageConfig struct { // "TEXT_REDACTION_MODE_UNSPECIFIED" - No text redaction specified. // Same as REDACT_NO_TEXT. // "REDACT_ALL_TEXT" - Redact all text. - // "REDACT_SENSITIVE_TEXT" - Redact sensitive text. + // "REDACT_SENSITIVE_TEXT" - Redact sensitive text. Uses the set of + // [Default DICOM + // InfoTypes](https://cloud.google.com/healthcare-api/docs/how-tos/dicom- + // deidentify#default_dicom_infotypes). // "REDACT_NO_TEXT" - Do not redact text. TextRedactionMode string `json:"textRedactionMode,omitempty"` @@ -4665,7 +4686,9 @@ func (s *IngestMessageResponse) MarshalJSON() ([]byte, error) { // (https://cloud.google.com/dlp/docs/create-wrapped-key). type KmsWrappedCryptoKey struct { // CryptoKey: Required. The resource name of the KMS CryptoKey to use - // for unwrapping. + // for unwrapping. For example, + // `projects/{project_id}/locations/{location_id}/keyRings/{keyring}/cryp + // toKeys/{key}`. CryptoKey string `json:"cryptoKey,omitempty"` // WrappedKey: Required. The wrapped data crypto key. @@ -5365,8 +5388,9 @@ type Message struct { MessageType string `json:"messageType,omitempty"` // Name: Resource name of the Message, of the form - // `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store - // _id}/messages/{message_id}`. Assigned by the server. + // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/h + // l7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the + // server. Name string `json:"name,omitempty"` // ParsedData: Output only. The parsed version of the raw message data. @@ -28109,8 +28133,8 @@ type ProjectsLocationsDatasetsHl7V2StoresPatchCall struct { // Patch: Updates the HL7v2 store. // // - name: Resource name of the HL7v2 store, of the form -// `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_stor -// e_id}`. +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id} +// /hl7V2Stores/{hl7v2_store_id}`. func (r *ProjectsLocationsDatasetsHl7V2StoresService) Patch(name string, hl7v2store *Hl7V2Store) *ProjectsLocationsDatasetsHl7V2StoresPatchCall { c := &ProjectsLocationsDatasetsHl7V2StoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -28226,7 +28250,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Do(opts ...googleapi.Cal // ], // "parameters": { // "name": { - // "description": "Resource name of the HL7v2 store, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`.", + // "description": "Resource name of the HL7v2 store, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", // "required": true, @@ -29699,8 +29723,9 @@ type ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall struct { // updated. // // - name: Resource name of the Message, of the form -// `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_sto -// re_id}/messages/{message_id}`. Assigned by the server. +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id} +// /hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by +// the server. func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Patch(name string, message *Message) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall { c := &ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -29816,7 +29841,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Do(opts ...googl // ], // "parameters": { // "name": { - // "description": "Resource name of the Message, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server.", + // "description": "Resource name of the Message, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+/messages/[^/]+$", // "required": true, diff --git a/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index cece57e16f2..a1ef1ad6cde 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -3784,12 +3784,91 @@ "$ref": "CommentThread" } } + }, + "resources": { + "liveBroadcasts": { + "resources": { + "cuepoint": { + "methods": { + "create": { + "description": "Insert cuepoints in a broadcast", + "flatPath": "youtube/v3/liveBroadcasts/cuepoint", + "httpMethod": "POST", + "id": "youtube.youtube.v3.liveBroadcasts.cuepoint.create", + "parameterOrder": [], + "parameters": { + "id": { + "description": "Broadcast to insert ads to, or equivalently `external_video_id` for internal use.", + "location": "query", + "type": "string" + }, + "onBehalfOfContentOwner": { + "description": "*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.", + "location": "query", + "type": "string" + }, + "onBehalfOfContentOwnerChannel": { + "description": "This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.", + "location": "query", + "type": "string" + }, + "part": { + "description": "The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.", + "location": "query", + "repeated": true, + "type": "string" + }, + "resource.cueType": { + "enum": [ + "cueTypeUnspecified", + "cueTypeAd" + ], + "enumDescriptions": [ + "", + "" + ], + "location": "query", + "type": "string" + }, + "resource.durationSecs": { + "description": "The duration of this cuepoint.", + "format": "uint32", + "location": "query", + "type": "integer" + }, + "resource.id": { + "description": "The identifier for cuepoint resource.", + "location": "query", + "type": "string" + }, + "resource.insertionOffsetTimeMs": { + "description": "The time when the cuepoint should be inserted by offset to the broadcast actual start time.", + "format": "int64", + "location": "query", + "type": "string" + }, + "resource.walltimeMs": { + "description": "The wall clock time at which the cuepoint should be inserted. Only one of insertion_offset_time_ms and walltime_ms may be set at a time.", + "format": "uint64", + "location": "query", + "type": "string" + } + }, + "path": "youtube/v3/liveBroadcasts/cuepoint", + "response": { + "$ref": "Cuepoint" + } + } + } + } + } + } } } } } }, - "revision": "20220515", + "revision": "20220608", "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { @@ -7279,6 +7358,43 @@ }, "type": "object" }, + "Cuepoint": { + "description": "Note that there may be a 5-second end-point resolution issue. For instance, if a cuepoint comes in for 22:03:27, we may stuff the cuepoint into 22:03:25 or 22:03:30, depending. This is an artifact of HLS.", + "id": "Cuepoint", + "properties": { + "cueType": { + "enum": [ + "cueTypeUnspecified", + "cueTypeAd" + ], + "enumDescriptions": [ + "", + "" + ], + "type": "string" + }, + "durationSecs": { + "description": "The duration of this cuepoint.", + "format": "uint32", + "type": "integer" + }, + "id": { + "description": "The identifier for cuepoint resource.", + "type": "string" + }, + "insertionOffsetTimeMs": { + "description": "The time when the cuepoint should be inserted by offset to the broadcast actual start time.", + "format": "int64", + "type": "string" + }, + "walltimeMs": { + "description": "The wall clock time at which the cuepoint should be inserted. Only one of insertion_offset_time_ms and walltime_ms may be set at a time.", + "format": "uint64", + "type": "string" + } + }, + "type": "object" + }, "Entity": { "id": "Entity", "properties": { diff --git a/youtube/v3/youtube-gen.go b/youtube/v3/youtube-gen.go index fec28628082..c106655b041 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -529,11 +529,35 @@ type YoutubeService struct { func NewYoutubeV3Service(s *Service) *YoutubeV3Service { rs := &YoutubeV3Service{s: s} + rs.LiveBroadcasts = NewYoutubeV3LiveBroadcastsService(s) return rs } type YoutubeV3Service struct { s *Service + + LiveBroadcasts *YoutubeV3LiveBroadcastsService +} + +func NewYoutubeV3LiveBroadcastsService(s *Service) *YoutubeV3LiveBroadcastsService { + rs := &YoutubeV3LiveBroadcastsService{s: s} + rs.Cuepoint = NewYoutubeV3LiveBroadcastsCuepointService(s) + return rs +} + +type YoutubeV3LiveBroadcastsService struct { + s *Service + + Cuepoint *YoutubeV3LiveBroadcastsCuepointService +} + +func NewYoutubeV3LiveBroadcastsCuepointService(s *Service) *YoutubeV3LiveBroadcastsCuepointService { + rs := &YoutubeV3LiveBroadcastsCuepointService{s: s} + return rs +} + +type YoutubeV3LiveBroadcastsCuepointService struct { + s *Service } type AbuseReport struct { @@ -4087,6 +4111,58 @@ func (s *ContentRating) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Cuepoint: Note that there may be a 5-second end-point resolution +// issue. For instance, if a cuepoint comes in for 22:03:27, we may +// stuff the cuepoint into 22:03:25 or 22:03:30, depending. This is an +// artifact of HLS. +type Cuepoint struct { + // Possible values: + // "cueTypeUnspecified" + // "cueTypeAd" + CueType string `json:"cueType,omitempty"` + + // DurationSecs: The duration of this cuepoint. + DurationSecs int64 `json:"durationSecs,omitempty"` + + // Id: The identifier for cuepoint resource. + Id string `json:"id,omitempty"` + + // InsertionOffsetTimeMs: The time when the cuepoint should be inserted + // by offset to the broadcast actual start time. + InsertionOffsetTimeMs int64 `json:"insertionOffsetTimeMs,omitempty,string"` + + // WalltimeMs: The wall clock time at which the cuepoint should be + // inserted. Only one of insertion_offset_time_ms and walltime_ms may be + // set at a time. + WalltimeMs uint64 `json:"walltimeMs,omitempty,string"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CueType") 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 + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CueType") 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 + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Cuepoint) MarshalJSON() ([]byte, error) { + type NoMethod Cuepoint + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type Entity struct { Id string `json:"id,omitempty"` @@ -24979,3 +25055,270 @@ func (c *YoutubeV3UpdateCommentThreadsCall) Do(opts ...googleapi.CallOption) (*C // } } + +// method id "youtube.youtube.v3.liveBroadcasts.cuepoint.create": + +type YoutubeV3LiveBroadcastsCuepointCreateCall struct { + s *Service + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Insert cuepoints in a broadcast +func (r *YoutubeV3LiveBroadcastsCuepointService) Create() *YoutubeV3LiveBroadcastsCuepointCreateCall { + c := &YoutubeV3LiveBroadcastsCuepointCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + return c +} + +// Id sets the optional parameter "id": Broadcast to insert ads to, or +// equivalently `external_video_id` for internal use. +func (c *YoutubeV3LiveBroadcastsCuepointCreateCall) Id(id string) *YoutubeV3LiveBroadcastsCuepointCreateCall { + c.urlParams_.Set("id", id) + return c +} + +// OnBehalfOfContentOwner sets the optional parameter +// "onBehalfOfContentOwner": *Note:* This parameter is intended +// exclusively for YouTube content partners. The +// *onBehalfOfContentOwner* parameter indicates that the request's +// authorization credentials identify a YouTube CMS user who is acting +// on behalf of the content owner specified in the parameter value. This +// parameter is intended for YouTube content partners that own and +// manage many different YouTube channels. It allows content owners to +// authenticate once and get access to all their video and channel data, +// without having to provide authentication credentials for each +// individual channel. The CMS account that the user authenticates with +// must be linked to the specified YouTube content owner. +func (c *YoutubeV3LiveBroadcastsCuepointCreateCall) OnBehalfOfContentOwner(onBehalfOfContentOwner string) *YoutubeV3LiveBroadcastsCuepointCreateCall { + c.urlParams_.Set("onBehalfOfContentOwner", onBehalfOfContentOwner) + return c +} + +// OnBehalfOfContentOwnerChannel sets the optional parameter +// "onBehalfOfContentOwnerChannel": This parameter can only be used in a +// properly authorized request. *Note:* This parameter is intended +// exclusively for YouTube content partners. The +// *onBehalfOfContentOwnerChannel* parameter specifies the YouTube +// channel ID of the channel to which a video is being added. This +// parameter is required when a request specifies a value for the +// onBehalfOfContentOwner parameter, and it can only be used in +// conjunction with that parameter. In addition, the request must be +// authorized using a CMS account that is linked to the content owner +// that the onBehalfOfContentOwner parameter specifies. Finally, the +// channel that the onBehalfOfContentOwnerChannel parameter value +// specifies must be linked to the content owner that the +// onBehalfOfContentOwner parameter specifies. This parameter is +// intended for YouTube content partners that own and manage many +// different YouTube channels. It allows content owners to authenticate +// once and perform actions on behalf of the channel specified in the +// parameter value, without having to provide authentication credentials +// for each separate channel. +func (c *YoutubeV3LiveBroadcastsCuepointCreateCall) OnBehalfOfContentOwnerChannel(onBehalfOfContentOwnerChannel string) *YoutubeV3LiveBroadcastsCuepointCreateCall { + c.urlParams_.Set("onBehalfOfContentOwnerChannel", onBehalfOfContentOwnerChannel) + return c +} + +// Part sets the optional parameter "part": The *part* parameter +// specifies a comma-separated list of one or more liveBroadcast +// resource properties that the API response will include. The part +// names that you can include in the parameter value are id, snippet, +// contentDetails, and status. +func (c *YoutubeV3LiveBroadcastsCuepointCreateCall) Part(part ...string) *YoutubeV3LiveBroadcastsCuepointCreateCall { + c.urlParams_.SetMulti("part", append([]string{}, part...)) + return c +} + +// ResourceCueType sets the optional parameter "resource.cueType": +// +// Possible values: +// "cueTypeUnspecified" +// "cueTypeAd" +func (c *YoutubeV3LiveBroadcastsCuepointCreateCall) ResourceCueType(resourceCueType string) *YoutubeV3LiveBroadcastsCuepointCreateCall { + c.urlParams_.Set("resource.cueType", resourceCueType) + return c +} + +// ResourceDurationSecs sets the optional parameter +// "resource.durationSecs": The duration of this cuepoint. +func (c *YoutubeV3LiveBroadcastsCuepointCreateCall) ResourceDurationSecs(resourceDurationSecs int64) *YoutubeV3LiveBroadcastsCuepointCreateCall { + c.urlParams_.Set("resource.durationSecs", fmt.Sprint(resourceDurationSecs)) + return c +} + +// ResourceId sets the optional parameter "resource.id": The identifier +// for cuepoint resource. +func (c *YoutubeV3LiveBroadcastsCuepointCreateCall) ResourceId(resourceId string) *YoutubeV3LiveBroadcastsCuepointCreateCall { + c.urlParams_.Set("resource.id", resourceId) + return c +} + +// ResourceInsertionOffsetTimeMs sets the optional parameter +// "resource.insertionOffsetTimeMs": The time when the cuepoint should +// be inserted by offset to the broadcast actual start time. +func (c *YoutubeV3LiveBroadcastsCuepointCreateCall) ResourceInsertionOffsetTimeMs(resourceInsertionOffsetTimeMs int64) *YoutubeV3LiveBroadcastsCuepointCreateCall { + c.urlParams_.Set("resource.insertionOffsetTimeMs", fmt.Sprint(resourceInsertionOffsetTimeMs)) + return c +} + +// ResourceWalltimeMs sets the optional parameter "resource.walltimeMs": +// The wall clock time at which the cuepoint should be inserted. Only +// one of insertion_offset_time_ms and walltime_ms may be set at a time. +func (c *YoutubeV3LiveBroadcastsCuepointCreateCall) ResourceWalltimeMs(resourceWalltimeMs uint64) *YoutubeV3LiveBroadcastsCuepointCreateCall { + c.urlParams_.Set("resource.walltimeMs", fmt.Sprint(resourceWalltimeMs)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *YoutubeV3LiveBroadcastsCuepointCreateCall) Fields(s ...googleapi.Field) *YoutubeV3LiveBroadcastsCuepointCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *YoutubeV3LiveBroadcastsCuepointCreateCall) Context(ctx context.Context) *YoutubeV3LiveBroadcastsCuepointCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *YoutubeV3LiveBroadcastsCuepointCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *YoutubeV3LiveBroadcastsCuepointCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "youtube/v3/liveBroadcasts/cuepoint") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "youtube.youtube.v3.liveBroadcasts.cuepoint.create" call. +// Exactly one of *Cuepoint or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Cuepoint.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *YoutubeV3LiveBroadcastsCuepointCreateCall) Do(opts ...googleapi.CallOption) (*Cuepoint, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Cuepoint{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Insert cuepoints in a broadcast", + // "flatPath": "youtube/v3/liveBroadcasts/cuepoint", + // "httpMethod": "POST", + // "id": "youtube.youtube.v3.liveBroadcasts.cuepoint.create", + // "parameterOrder": [], + // "parameters": { + // "id": { + // "description": "Broadcast to insert ads to, or equivalently `external_video_id` for internal use.", + // "location": "query", + // "type": "string" + // }, + // "onBehalfOfContentOwner": { + // "description": "*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.", + // "location": "query", + // "type": "string" + // }, + // "onBehalfOfContentOwnerChannel": { + // "description": "This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.", + // "location": "query", + // "type": "string" + // }, + // "part": { + // "description": "The *part* parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "resource.cueType": { + // "enum": [ + // "cueTypeUnspecified", + // "cueTypeAd" + // ], + // "enumDescriptions": [ + // "", + // "" + // ], + // "location": "query", + // "type": "string" + // }, + // "resource.durationSecs": { + // "description": "The duration of this cuepoint.", + // "format": "uint32", + // "location": "query", + // "type": "integer" + // }, + // "resource.id": { + // "description": "The identifier for cuepoint resource.", + // "location": "query", + // "type": "string" + // }, + // "resource.insertionOffsetTimeMs": { + // "description": "The time when the cuepoint should be inserted by offset to the broadcast actual start time.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "resource.walltimeMs": { + // "description": "The wall clock time at which the cuepoint should be inserted. Only one of insertion_offset_time_ms and walltime_ms may be set at a time.", + // "format": "uint64", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "youtube/v3/liveBroadcasts/cuepoint", + // "response": { + // "$ref": "Cuepoint" + // } + // } + +}