From 60f8145333c2a49eb0d21239b0dbe7dc543d04ae Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 29 Mar 2022 07:07:58 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#1492) --- androidpublisher/v3/androidpublisher-api.json | 279 +++++- androidpublisher/v3/androidpublisher-gen.go | 848 ++++++++++++++++++ apigee/v1/apigee-api.json | 23 +- apigee/v1/apigee-gen.go | 14 +- .../v1/baremetalsolution-api.json | 4 +- baremetalsolution/v1/baremetalsolution-gen.go | 3 +- .../v1beta1/bigqueryconnection-api.json | 4 +- .../v1beta1/bigqueryconnection-gen.go | 3 +- .../v1/bigquerydatatransfer-api.json | 4 +- .../v1/bigquerydatatransfer-gen.go | 3 +- bigtableadmin/v2/bigtableadmin-api.json | 4 +- bigtableadmin/v2/bigtableadmin-gen.go | 2 +- chromemanagement/v1/chromemanagement-api.json | 4 +- chromemanagement/v1/chromemanagement-gen.go | 4 +- classroom/v1/classroom-api.json | 8 +- classroom/v1/classroom-gen.go | 17 +- cloudbuild/v1/cloudbuild-api.json | 62 +- cloudbuild/v1/cloudbuild-gen.go | 230 +---- cloudbuild/v1alpha1/cloudbuild-api.json | 4 +- cloudbuild/v1alpha1/cloudbuild-gen.go | 3 +- cloudbuild/v1alpha2/cloudbuild-api.json | 4 +- cloudbuild/v1alpha2/cloudbuild-gen.go | 3 +- cloudbuild/v1beta1/cloudbuild-api.json | 4 +- cloudbuild/v1beta1/cloudbuild-gen.go | 3 +- clouddeploy/v1/clouddeploy-api.json | 10 +- clouddeploy/v1/clouddeploy-gen.go | 16 +- cloudscheduler/v1/cloudscheduler-api.json | 4 +- cloudscheduler/v1/cloudscheduler-gen.go | 3 +- .../v1beta1/cloudscheduler-api.json | 4 +- cloudscheduler/v1beta1/cloudscheduler-gen.go | 3 +- cloudsearch/v1/cloudsearch-api.json | 27 +- cloudsearch/v1/cloudsearch-gen.go | 31 +- compute/v0.alpha/compute-api.json | 24 +- compute/v0.alpha/compute-gen.go | 40 +- compute/v1/compute-api.json | 82 +- compute/v1/compute-gen.go | 164 +++- content/v2.1/content-api.json | 48 +- content/v2.1/content-gen.go | 61 +- datacatalog/v1/datacatalog-api.json | 4 +- datacatalog/v1/datacatalog-gen.go | 3 +- datacatalog/v1beta1/datacatalog-api.json | 4 +- datacatalog/v1beta1/datacatalog-gen.go | 3 +- datamigration/v1/datamigration-api.json | 4 +- datamigration/v1/datamigration-gen.go | 3 +- dataproc/v1/dataproc-api.json | 4 +- dataproc/v1/dataproc-gen.go | 3 +- datastream/v1/datastream-api.json | 12 +- datastream/v1/datastream-gen.go | 11 +- datastream/v1alpha1/datastream-api.json | 12 +- datastream/v1alpha1/datastream-gen.go | 7 + displayvideo/v1/displayvideo-api.json | 192 +++- displayvideo/v1/displayvideo-gen.go | 285 +++++- docs/v1/docs-api.json | 12 +- docs/v1/docs-gen.go | 58 +- documentai/v1/documentai-api.json | 12 +- documentai/v1/documentai-gen.go | 10 +- documentai/v1beta2/documentai-api.json | 6 +- documentai/v1beta2/documentai-gen.go | 4 +- documentai/v1beta3/documentai-api.json | 12 +- documentai/v1beta3/documentai-gen.go | 10 +- eventarc/v1beta1/eventarc-api.json | 4 +- eventarc/v1beta1/eventarc-gen.go | 3 +- .../v1beta/firebaseappcheck-api.json | 138 ++- .../v1beta/firebaseappcheck-gen.go | 584 ++++++++++++ gkehub/v1/gkehub-api.json | 4 +- gkehub/v1/gkehub-gen.go | 3 +- gkehub/v1alpha2/gkehub-api.json | 4 +- gkehub/v1alpha2/gkehub-gen.go | 3 +- gkehub/v1beta/gkehub-api.json | 4 +- gkehub/v1beta/gkehub-gen.go | 3 +- gkehub/v1beta1/gkehub-api.json | 4 +- gkehub/v1beta1/gkehub-gen.go | 3 +- gkehub/v2alpha/gkehub-api.json | 4 +- gkehub/v2alpha/gkehub-gen.go | 3 +- healthcare/v1beta1/healthcare-api.json | 16 +- healthcare/v1beta1/healthcare-gen.go | 45 +- jobs/v3p1beta1/jobs-api.json | 10 +- jobs/v3p1beta1/jobs-gen.go | 33 +- keep/v1/keep-api.json | 4 +- keep/v1/keep-gen.go | 3 +- manufacturers/v1/manufacturers-api.json | 4 +- manufacturers/v1/manufacturers-gen.go | 3 +- .../v1/networkconnectivity-api.json | 4 +- .../v1/networkconnectivity-gen.go | 3 +- .../v1alpha1/networkconnectivity-api.json | 4 +- .../v1alpha1/networkconnectivity-gen.go | 3 +- notebooks/v1/notebooks-api.json | 60 +- notebooks/v1/notebooks-gen.go | 215 ++++- oslogin/v1beta/oslogin-api.json | 4 +- oslogin/v1beta/oslogin-gen.go | 3 +- pubsublite/v1/pubsublite-api.json | 4 +- pubsublite/v1/pubsublite-gen.go | 3 +- script/v1/script-api.json | 4 +- script/v1/script-gen.go | 3 +- securitycenter/v1/securitycenter-api.json | 14 +- securitycenter/v1/securitycenter-gen.go | 2 + .../v1beta1/securitycenter-api.json | 14 +- securitycenter/v1beta1/securitycenter-gen.go | 2 + .../v1beta2/securitycenter-api.json | 14 +- securitycenter/v1beta2/securitycenter-gen.go | 2 + servicecontrol/v2/servicecontrol-api.json | 6 +- servicecontrol/v2/servicecontrol-gen.go | 47 +- sheets/v4/sheets-api.json | 4 +- sheets/v4/sheets-gen.go | 2 + slides/v1/slides-api.json | 8 +- slides/v1/slides-gen.go | 42 +- storagetransfer/v1/storagetransfer-api.json | 30 +- storagetransfer/v1/storagetransfer-gen.go | 33 +- .../v1/workflowexecutions-api.json | 83 +- .../v1/workflowexecutions-gen.go | 247 +++++ 110 files changed, 3771 insertions(+), 696 deletions(-) diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index 54214d7e04d..7e649f95fbf 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -104,6 +104,108 @@ }, "protocol": "rest", "resources": { + "applications": { + "resources": { + "deviceTierConfigs": { + "methods": { + "create": { + "description": "Creates a new device tier config for an app.", + "flatPath": "androidpublisher/v3/applications/{packageName}/deviceTierConfigs", + "httpMethod": "POST", + "id": "androidpublisher.applications.deviceTierConfigs.create", + "parameterOrder": [ + "packageName" + ], + "parameters": { + "packageName": { + "description": "Package name of the app.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "androidpublisher/v3/applications/{packageName}/deviceTierConfigs", + "request": { + "$ref": "DeviceTierConfig" + }, + "response": { + "$ref": "DeviceTierConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + }, + "get": { + "description": "Returns a particular device tier config.", + "flatPath": "androidpublisher/v3/applications/{packageName}/deviceTierConfigs/{deviceTierConfigId}", + "httpMethod": "GET", + "id": "androidpublisher.applications.deviceTierConfigs.get", + "parameterOrder": [ + "packageName", + "deviceTierConfigId" + ], + "parameters": { + "deviceTierConfigId": { + "description": "Required. Id of an existing device tier config.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + }, + "packageName": { + "description": "Package name of the app.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "androidpublisher/v3/applications/{packageName}/deviceTierConfigs/{deviceTierConfigId}", + "response": { + "$ref": "DeviceTierConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + }, + "list": { + "description": "Returns created device tier configs, ordered by descending creation time.", + "flatPath": "androidpublisher/v3/applications/{packageName}/deviceTierConfigs", + "httpMethod": "GET", + "id": "androidpublisher.applications.deviceTierConfigs.list", + "parameterOrder": [ + "packageName" + ], + "parameters": { + "packageName": { + "description": "Package name of the app.", + "location": "path", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The maximum number of device tier configs to return. The service may return fewer than this value. If unspecified, at most 10 device tier configs will be returned. The maximum value for this field is 100; values above 100 will be coerced to 100. Device tier configs will be ordered by descending creation time.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListDeviceTierConfigs` call. Provide this to retrieve the subsequent page.", + "location": "query", + "type": "string" + } + }, + "path": "androidpublisher/v3/applications/{packageName}/deviceTierConfigs", + "response": { + "$ref": "ListDeviceTierConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + } + } + } + } + }, "edits": { "methods": { "commit": { @@ -3040,7 +3142,7 @@ } } }, - "revision": "20220322", + "revision": "20220327", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "Apk": { @@ -3335,6 +3437,39 @@ }, "type": "object" }, + "DeviceGroup": { + "description": "LINT.IfChange A group of devices. A group is defined by a set of device selectors. A device belongs to the group if it matches any selector (logical OR).", + "id": "DeviceGroup", + "properties": { + "deviceSelectors": { + "description": "Device selectors for this group. A device matching any of the selectors is included in this group.", + "items": { + "$ref": "DeviceSelector" + }, + "type": "array" + }, + "name": { + "description": "The name of the group.", + "type": "string" + } + }, + "type": "object" + }, + "DeviceId": { + "description": "Identifier of a device.", + "id": "DeviceId", + "properties": { + "buildBrand": { + "description": "Value of Build.BRAND.", + "type": "string" + }, + "buildDevice": { + "description": "Value of Build.DEVICE.", + "type": "string" + } + }, + "type": "object" + }, "DeviceMetadata": { "description": "Characteristics of the user's device.", "id": "DeviceMetadata", @@ -3391,6 +3526,62 @@ }, "type": "object" }, + "DeviceRam": { + "description": "Conditions about a device's RAM capabilities.", + "id": "DeviceRam", + "properties": { + "maxBytes": { + "description": "Maximum RAM in bytes (bound excluded).", + "format": "int64", + "type": "string" + }, + "minBytes": { + "description": "Minimum RAM in bytes (bound included).", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "DeviceSelector": { + "description": "Selector for a device group. A selector consists of a set of conditions on the device that should all match (logical AND) to determine a device group eligibility. For instance, if a selector specifies RAM conditions, device model inclusion and device model exclusion, a device is considered to match if: device matches RAM conditions AND device matches one of the included device models AND device doesn't match excluded device models", + "id": "DeviceSelector", + "properties": { + "deviceRam": { + "$ref": "DeviceRam", + "description": "Conditions on the device's RAM." + }, + "excludedDeviceIds": { + "description": "Device models excluded by this selector, even if they match all other conditions.", + "items": { + "$ref": "DeviceId" + }, + "type": "array" + }, + "forbiddenSystemFeatures": { + "description": "A device that has any of these system features is excluded by this selector, even if it matches all other conditions.", + "items": { + "$ref": "SystemFeature" + }, + "type": "array" + }, + "includedDeviceIds": { + "description": "Device models included by this selector.", + "items": { + "$ref": "DeviceId" + }, + "type": "array" + }, + "requiredSystemFeatures": { + "description": "A device needs to have all these system features to be included by the selector.", + "items": { + "$ref": "SystemFeature" + }, + "type": "array" + } + }, + "type": "object" + }, "DeviceSpec": { "description": "The device spec used to generate a system APK.", "id": "DeviceSpec", @@ -3417,6 +3608,63 @@ }, "type": "object" }, + "DeviceTier": { + "description": "A single device tier. Devices matching any of the device groups in device_group_names are considered to match the tier.", + "id": "DeviceTier", + "properties": { + "deviceGroupNames": { + "description": "Groups of devices included in this tier. These groups must be defined explicitly under device_groups in this configuration.", + "items": { + "type": "string" + }, + "type": "array" + }, + "level": { + "description": "The priority level of the tier. Tiers are evaluated in descending order of level: the highest level tier has the highest priority. The highest tier matching a given device is selected for that device. You should use a contiguous range of levels for your tiers in a tier set; tier levels in a tier set must be unique. For instance, if your tier set has 4 tiers (including the global fallback), you should define tiers 1, 2 and 3 in this configuration. Note: tier 0 is implicitly defined as a global fallback and selected for devices that don't match any of the tiers explicitly defined here. You mustn't define level 0 explicitly in this configuration.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "DeviceTierConfig": { + "description": "LINT.IfChange Configuration describing device targeting criteria for the content of an app.", + "id": "DeviceTierConfig", + "properties": { + "deviceGroups": { + "description": "Definition of device groups for the app.", + "items": { + "$ref": "DeviceGroup" + }, + "type": "array" + }, + "deviceTierConfigId": { + "description": "Output only. The device tier config ID.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "deviceTierSet": { + "$ref": "DeviceTierSet", + "description": "Definition of the set of device tiers for the app." + } + }, + "type": "object" + }, + "DeviceTierSet": { + "description": "A set of device tiers. A tier set determines what variation of app content gets served to a specific device, for device-targeted content. You should assign a priority level to each tier, which determines the ordering by which they are evaluated by Play. See the documentation of DeviceTier.level for more details.", + "id": "DeviceTierSet", + "properties": { + "deviceTiers": { + "description": "Device tiers belonging to the set.", + "items": { + "$ref": "DeviceTier" + }, + "type": "array" + } + }, + "type": "object" + }, "ExpansionFile": { "description": "An expansion file. The resource for ExpansionFilesService.", "id": "ExpansionFile", @@ -3940,6 +4188,24 @@ }, "type": "object" }, + "ListDeviceTierConfigsResponse": { + "description": "Response listing existing device tier configs.", + "id": "ListDeviceTierConfigsResponse", + "properties": { + "deviceTierConfigs": { + "description": "Device tier configs created by the developer.", + "items": { + "$ref": "DeviceTierConfig" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "ListUsersResponse": { "description": "A response containing one or more users with access to an account.", "id": "ListUsersResponse", @@ -4554,6 +4820,17 @@ }, "type": "object" }, + "SystemFeature": { + "description": "Representation of a system feature.", + "id": "SystemFeature", + "properties": { + "name": { + "description": "The name of the feature.", + "type": "string" + } + }, + "type": "object" + }, "Testers": { "description": "The testers of an app. The resource for TestersService. Note: while it is possible in the Play Console UI to add testers via email lists, email lists are not supported by this resource.", "id": "Testers", diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index a1ab04667cf..2d14bfd320a 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -117,6 +117,7 @@ func New(client *http.Client) (*Service, error) { return nil, errors.New("client is nil") } s := &Service{client: client, BasePath: basePath} + s.Applications = NewApplicationsService(s) s.Edits = NewEditsService(s) s.Generatedapks = NewGeneratedapksService(s) s.Grants = NewGrantsService(s) @@ -136,6 +137,8 @@ type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment + Applications *ApplicationsService + Edits *EditsService Generatedapks *GeneratedapksService @@ -166,6 +169,27 @@ func (s *Service) userAgent() string { return googleapi.UserAgent + " " + s.UserAgent } +func NewApplicationsService(s *Service) *ApplicationsService { + rs := &ApplicationsService{s: s} + rs.DeviceTierConfigs = NewApplicationsDeviceTierConfigsService(s) + return rs +} + +type ApplicationsService struct { + s *Service + + DeviceTierConfigs *ApplicationsDeviceTierConfigsService +} + +func NewApplicationsDeviceTierConfigsService(s *Service) *ApplicationsDeviceTierConfigsService { + rs := &ApplicationsDeviceTierConfigsService{s: s} + return rs +} + +type ApplicationsDeviceTierConfigsService struct { + s *Service +} + func NewEditsService(s *Service) *EditsService { rs := &EditsService{s: s} rs.Apks = NewEditsApksService(s) @@ -1063,6 +1087,72 @@ func (s *DeveloperComment) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DeviceGroup: LINT.IfChange A group of devices. A group is defined by +// a set of device selectors. A device belongs to the group if it +// matches any selector (logical OR). +type DeviceGroup struct { + // DeviceSelectors: Device selectors for this group. A device matching + // any of the selectors is included in this group. + DeviceSelectors []*DeviceSelector `json:"deviceSelectors,omitempty"` + + // Name: The name of the group. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DeviceSelectors") 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. "DeviceSelectors") 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 *DeviceGroup) MarshalJSON() ([]byte, error) { + type NoMethod DeviceGroup + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DeviceId: Identifier of a device. +type DeviceId struct { + // BuildBrand: Value of Build.BRAND. + BuildBrand string `json:"buildBrand,omitempty"` + + // BuildDevice: Value of Build.DEVICE. + BuildDevice string `json:"buildDevice,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BuildBrand") 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. "BuildBrand") 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 *DeviceId) MarshalJSON() ([]byte, error) { + type NoMethod DeviceId + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // DeviceMetadata: Characteristics of the user's device. type DeviceMetadata struct { // CpuMake: Device CPU make, e.g. "Qualcomm" @@ -1122,6 +1212,87 @@ func (s *DeviceMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DeviceRam: Conditions about a device's RAM capabilities. +type DeviceRam struct { + // MaxBytes: Maximum RAM in bytes (bound excluded). + MaxBytes int64 `json:"maxBytes,omitempty,string"` + + // MinBytes: Minimum RAM in bytes (bound included). + MinBytes int64 `json:"minBytes,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "MaxBytes") 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. "MaxBytes") 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 *DeviceRam) MarshalJSON() ([]byte, error) { + type NoMethod DeviceRam + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DeviceSelector: Selector for a device group. A selector consists of a +// set of conditions on the device that should all match (logical AND) +// to determine a device group eligibility. For instance, if a selector +// specifies RAM conditions, device model inclusion and device model +// exclusion, a device is considered to match if: device matches RAM +// conditions AND device matches one of the included device models AND +// device doesn't match excluded device models +type DeviceSelector struct { + // DeviceRam: Conditions on the device's RAM. + DeviceRam *DeviceRam `json:"deviceRam,omitempty"` + + // ExcludedDeviceIds: Device models excluded by this selector, even if + // they match all other conditions. + ExcludedDeviceIds []*DeviceId `json:"excludedDeviceIds,omitempty"` + + // ForbiddenSystemFeatures: A device that has any of these system + // features is excluded by this selector, even if it matches all other + // conditions. + ForbiddenSystemFeatures []*SystemFeature `json:"forbiddenSystemFeatures,omitempty"` + + // IncludedDeviceIds: Device models included by this selector. + IncludedDeviceIds []*DeviceId `json:"includedDeviceIds,omitempty"` + + // RequiredSystemFeatures: A device needs to have all these system + // features to be included by the selector. + RequiredSystemFeatures []*SystemFeature `json:"requiredSystemFeatures,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DeviceRam") 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. "DeviceRam") 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 *DeviceSelector) MarshalJSON() ([]byte, error) { + type NoMethod DeviceSelector + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // DeviceSpec: The device spec used to generate a system APK. type DeviceSpec struct { // ScreenDensity: Screen dpi. @@ -1159,6 +1330,121 @@ func (s *DeviceSpec) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DeviceTier: A single device tier. Devices matching any of the device +// groups in device_group_names are considered to match the tier. +type DeviceTier struct { + // DeviceGroupNames: Groups of devices included in this tier. These + // groups must be defined explicitly under device_groups in this + // configuration. + DeviceGroupNames []string `json:"deviceGroupNames,omitempty"` + + // Level: The priority level of the tier. Tiers are evaluated in + // descending order of level: the highest level tier has the highest + // priority. The highest tier matching a given device is selected for + // that device. You should use a contiguous range of levels for your + // tiers in a tier set; tier levels in a tier set must be unique. For + // instance, if your tier set has 4 tiers (including the global + // fallback), you should define tiers 1, 2 and 3 in this configuration. + // Note: tier 0 is implicitly defined as a global fallback and selected + // for devices that don't match any of the tiers explicitly defined + // here. You mustn't define level 0 explicitly in this configuration. + Level int64 `json:"level,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DeviceGroupNames") 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. "DeviceGroupNames") 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 *DeviceTier) MarshalJSON() ([]byte, error) { + type NoMethod DeviceTier + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DeviceTierConfig: LINT.IfChange Configuration describing device +// targeting criteria for the content of an app. +type DeviceTierConfig struct { + // DeviceGroups: Definition of device groups for the app. + DeviceGroups []*DeviceGroup `json:"deviceGroups,omitempty"` + + // DeviceTierConfigId: Output only. The device tier config ID. + DeviceTierConfigId int64 `json:"deviceTierConfigId,omitempty,string"` + + // DeviceTierSet: Definition of the set of device tiers for the app. + DeviceTierSet *DeviceTierSet `json:"deviceTierSet,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DeviceGroups") 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. "DeviceGroups") 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 *DeviceTierConfig) MarshalJSON() ([]byte, error) { + type NoMethod DeviceTierConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DeviceTierSet: A set of device tiers. A tier set determines what +// variation of app content gets served to a specific device, for +// device-targeted content. You should assign a priority level to each +// tier, which determines the ordering by which they are evaluated by +// Play. See the documentation of DeviceTier.level for more details. +type DeviceTierSet struct { + // DeviceTiers: Device tiers belonging to the set. + DeviceTiers []*DeviceTier `json:"deviceTiers,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DeviceTiers") 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. "DeviceTiers") 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 *DeviceTierSet) MarshalJSON() ([]byte, error) { + type NoMethod DeviceTierSet + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ExpansionFile: An expansion file. The resource for // ExpansionFilesService. type ExpansionFile struct { @@ -1994,6 +2280,45 @@ func (s *IntroductoryPriceInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListDeviceTierConfigsResponse: Response listing existing device tier +// configs. +type ListDeviceTierConfigsResponse struct { + // DeviceTierConfigs: Device tier configs created by the developer. + DeviceTierConfigs []*DeviceTierConfig `json:"deviceTierConfigs,omitempty"` + + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DeviceTierConfigs") + // 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. "DeviceTierConfigs") 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 *ListDeviceTierConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListDeviceTierConfigsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListUsersResponse: A response containing one or more users with // access to an account. type ListUsersResponse struct { @@ -3134,6 +3459,34 @@ func (s *SystemApksListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SystemFeature: Representation of a system feature. +type SystemFeature struct { + // Name: The name of the feature. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *SystemFeature) MarshalJSON() ([]byte, error) { + type NoMethod SystemFeature + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Testers: The testers of an app. The resource for TestersService. // Note: while it is possible in the Play Console UI to add testers via // email lists, email lists are not supported by this resource. @@ -3803,6 +4156,501 @@ func (s *VoidedPurchasesListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// method id "androidpublisher.applications.deviceTierConfigs.create": + +type ApplicationsDeviceTierConfigsCreateCall struct { + s *Service + packageName string + devicetierconfig *DeviceTierConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new device tier config for an app. +// +// - packageName: Package name of the app. +func (r *ApplicationsDeviceTierConfigsService) Create(packageName string, devicetierconfig *DeviceTierConfig) *ApplicationsDeviceTierConfigsCreateCall { + c := &ApplicationsDeviceTierConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.packageName = packageName + c.devicetierconfig = devicetierconfig + 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 *ApplicationsDeviceTierConfigsCreateCall) Fields(s ...googleapi.Field) *ApplicationsDeviceTierConfigsCreateCall { + 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 *ApplicationsDeviceTierConfigsCreateCall) Context(ctx context.Context) *ApplicationsDeviceTierConfigsCreateCall { + 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 *ApplicationsDeviceTierConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ApplicationsDeviceTierConfigsCreateCall) 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 + body, err := googleapi.WithoutDataWrapper.JSONReader(c.devicetierconfig) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "androidpublisher/v3/applications/{packageName}/deviceTierConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "packageName": c.packageName, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "androidpublisher.applications.deviceTierConfigs.create" call. +// Exactly one of *DeviceTierConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *DeviceTierConfig.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 *ApplicationsDeviceTierConfigsCreateCall) Do(opts ...googleapi.CallOption) (*DeviceTierConfig, 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 := &DeviceTierConfig{ + 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": "Creates a new device tier config for an app.", + // "flatPath": "androidpublisher/v3/applications/{packageName}/deviceTierConfigs", + // "httpMethod": "POST", + // "id": "androidpublisher.applications.deviceTierConfigs.create", + // "parameterOrder": [ + // "packageName" + // ], + // "parameters": { + // "packageName": { + // "description": "Package name of the app.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "androidpublisher/v3/applications/{packageName}/deviceTierConfigs", + // "request": { + // "$ref": "DeviceTierConfig" + // }, + // "response": { + // "$ref": "DeviceTierConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/androidpublisher" + // ] + // } + +} + +// method id "androidpublisher.applications.deviceTierConfigs.get": + +type ApplicationsDeviceTierConfigsGetCall struct { + s *Service + packageName string + deviceTierConfigId int64 + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns a particular device tier config. +// +// - deviceTierConfigId: Id of an existing device tier config. +// - packageName: Package name of the app. +func (r *ApplicationsDeviceTierConfigsService) Get(packageName string, deviceTierConfigId int64) *ApplicationsDeviceTierConfigsGetCall { + c := &ApplicationsDeviceTierConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.packageName = packageName + c.deviceTierConfigId = deviceTierConfigId + 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 *ApplicationsDeviceTierConfigsGetCall) Fields(s ...googleapi.Field) *ApplicationsDeviceTierConfigsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ApplicationsDeviceTierConfigsGetCall) IfNoneMatch(entityTag string) *ApplicationsDeviceTierConfigsGetCall { + c.ifNoneMatch_ = entityTag + 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 *ApplicationsDeviceTierConfigsGetCall) Context(ctx context.Context) *ApplicationsDeviceTierConfigsGetCall { + 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 *ApplicationsDeviceTierConfigsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ApplicationsDeviceTierConfigsGetCall) 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()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "androidpublisher/v3/applications/{packageName}/deviceTierConfigs/{deviceTierConfigId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "packageName": c.packageName, + "deviceTierConfigId": strconv.FormatInt(c.deviceTierConfigId, 10), + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "androidpublisher.applications.deviceTierConfigs.get" call. +// Exactly one of *DeviceTierConfig or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *DeviceTierConfig.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 *ApplicationsDeviceTierConfigsGetCall) Do(opts ...googleapi.CallOption) (*DeviceTierConfig, 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 := &DeviceTierConfig{ + 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": "Returns a particular device tier config.", + // "flatPath": "androidpublisher/v3/applications/{packageName}/deviceTierConfigs/{deviceTierConfigId}", + // "httpMethod": "GET", + // "id": "androidpublisher.applications.deviceTierConfigs.get", + // "parameterOrder": [ + // "packageName", + // "deviceTierConfigId" + // ], + // "parameters": { + // "deviceTierConfigId": { + // "description": "Required. Id of an existing device tier config.", + // "format": "int64", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "packageName": { + // "description": "Package name of the app.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "androidpublisher/v3/applications/{packageName}/deviceTierConfigs/{deviceTierConfigId}", + // "response": { + // "$ref": "DeviceTierConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/androidpublisher" + // ] + // } + +} + +// method id "androidpublisher.applications.deviceTierConfigs.list": + +type ApplicationsDeviceTierConfigsListCall struct { + s *Service + packageName string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns created device tier configs, ordered by descending +// creation time. +// +// - packageName: Package name of the app. +func (r *ApplicationsDeviceTierConfigsService) List(packageName string) *ApplicationsDeviceTierConfigsListCall { + c := &ApplicationsDeviceTierConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.packageName = packageName + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of device tier configs to return. The service may return fewer than +// this value. If unspecified, at most 10 device tier configs will be +// returned. The maximum value for this field is 100; values above 100 +// will be coerced to 100. Device tier configs will be ordered by +// descending creation time. +func (c *ApplicationsDeviceTierConfigsListCall) PageSize(pageSize int64) *ApplicationsDeviceTierConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListDeviceTierConfigs` call. Provide this +// to retrieve the subsequent page. +func (c *ApplicationsDeviceTierConfigsListCall) PageToken(pageToken string) *ApplicationsDeviceTierConfigsListCall { + c.urlParams_.Set("pageToken", pageToken) + 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 *ApplicationsDeviceTierConfigsListCall) Fields(s ...googleapi.Field) *ApplicationsDeviceTierConfigsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ApplicationsDeviceTierConfigsListCall) IfNoneMatch(entityTag string) *ApplicationsDeviceTierConfigsListCall { + c.ifNoneMatch_ = entityTag + 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 *ApplicationsDeviceTierConfigsListCall) Context(ctx context.Context) *ApplicationsDeviceTierConfigsListCall { + 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 *ApplicationsDeviceTierConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ApplicationsDeviceTierConfigsListCall) 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()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "androidpublisher/v3/applications/{packageName}/deviceTierConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "packageName": c.packageName, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "androidpublisher.applications.deviceTierConfigs.list" call. +// Exactly one of *ListDeviceTierConfigsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListDeviceTierConfigsResponse.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 *ApplicationsDeviceTierConfigsListCall) Do(opts ...googleapi.CallOption) (*ListDeviceTierConfigsResponse, 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 := &ListDeviceTierConfigsResponse{ + 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": "Returns created device tier configs, ordered by descending creation time.", + // "flatPath": "androidpublisher/v3/applications/{packageName}/deviceTierConfigs", + // "httpMethod": "GET", + // "id": "androidpublisher.applications.deviceTierConfigs.list", + // "parameterOrder": [ + // "packageName" + // ], + // "parameters": { + // "packageName": { + // "description": "Package name of the app.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of device tier configs to return. The service may return fewer than this value. If unspecified, at most 10 device tier configs will be returned. The maximum value for this field is 100; values above 100 will be coerced to 100. Device tier configs will be ordered by descending creation time.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListDeviceTierConfigs` call. Provide this to retrieve the subsequent page.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "androidpublisher/v3/applications/{packageName}/deviceTierConfigs", + // "response": { + // "$ref": "ListDeviceTierConfigsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/androidpublisher" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ApplicationsDeviceTierConfigsListCall) Pages(ctx context.Context, f func(*ListDeviceTierConfigsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + // method id "androidpublisher.edits.commit": type EditsCommitCall struct { diff --git a/apigee/v1/apigee-api.json b/apigee/v1/apigee-api.json index 9e6c8b051de..3618d149e9a 100644 --- a/apigee/v1/apigee-api.json +++ b/apigee/v1/apigee-api.json @@ -7588,7 +7588,7 @@ } } }, - "revision": "20220310", + "revision": "20220324", "rootUrl": "https://apigee.googleapis.com/", "schemas": { "EdgeConfigstoreBundleBadBundle": { @@ -9669,6 +9669,25 @@ "serviceAttachment": { "description": "Format: projects/*/regions/*/serviceAttachments/*", "type": "string" + }, + "state": { + "description": "Output only. State of the endpoint attachment. Values other than `ACTIVE` mean the resource is not ready to use.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "DELETING", + "UPDATING" + ], + "enumDescriptions": [ + "Resource is in an unspecified state.", + "Resource is being created.", + "Resource is provisioned and ready to use.", + "The resource is being deleted.", + "The resource is being updated." + ], + "readOnly": true, + "type": "string" } }, "type": "object" @@ -13167,7 +13186,7 @@ "type": "object" }, "GoogleProtobufEmpty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "GoogleProtobufEmpty", "properties": {}, "type": "object" diff --git a/apigee/v1/apigee-gen.go b/apigee/v1/apigee-gen.go index 92b03a7a71f..eac1a1f8c99 100644 --- a/apigee/v1/apigee-gen.go +++ b/apigee/v1/apigee-gen.go @@ -4003,6 +4003,17 @@ type GoogleCloudApigeeV1EndpointAttachment struct { // ServiceAttachment: Format: projects/*/regions/*/serviceAttachments/* ServiceAttachment string `json:"serviceAttachment,omitempty"` + // State: Output only. State of the endpoint attachment. Values other + // than `ACTIVE` mean the resource is not ready to use. + // + // Possible values: + // "STATE_UNSPECIFIED" - Resource is in an unspecified state. + // "CREATING" - Resource is being created. + // "ACTIVE" - Resource is provisioned and ready to use. + // "DELETING" - The resource is being deleted. + // "UPDATING" - The resource is being updated. + State string `json:"state,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -10025,8 +10036,7 @@ func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { // avoid defining duplicated empty messages in your APIs. A typical // example is to use it as the request or the response type of an API // method. For instance: service Foo { rpc Bar(google.protobuf.Empty) -// returns (google.protobuf.Empty); } The JSON representation for -// `Empty` is empty JSON object `{}`. +// returns (google.protobuf.Empty); } type GoogleProtobufEmpty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/baremetalsolution/v1/baremetalsolution-api.json b/baremetalsolution/v1/baremetalsolution-api.json index 87381f72568..240f392acf9 100644 --- a/baremetalsolution/v1/baremetalsolution-api.json +++ b/baremetalsolution/v1/baremetalsolution-api.json @@ -268,7 +268,7 @@ } } }, - "revision": "20220118", + "revision": "20220322", "rootUrl": "https://baremetalsolution.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -278,7 +278,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/baremetalsolution/v1/baremetalsolution-gen.go b/baremetalsolution/v1/baremetalsolution-gen.go index 4f7e5021e05..db741009284 100644 --- a/baremetalsolution/v1/baremetalsolution-gen.go +++ b/baremetalsolution/v1/baremetalsolution-gen.go @@ -191,8 +191,7 @@ type CancelOperationRequest struct { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/bigqueryconnection/v1beta1/bigqueryconnection-api.json b/bigqueryconnection/v1beta1/bigqueryconnection-api.json index 38df378f9e0..489589405b0 100644 --- a/bigqueryconnection/v1beta1/bigqueryconnection-api.json +++ b/bigqueryconnection/v1beta1/bigqueryconnection-api.json @@ -395,7 +395,7 @@ } } }, - "revision": "20211130", + "revision": "20220319", "rootUrl": "https://bigqueryconnection.googleapis.com/", "schemas": { "AuditConfig": { @@ -568,7 +568,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/bigqueryconnection/v1beta1/bigqueryconnection-gen.go b/bigqueryconnection/v1beta1/bigqueryconnection-gen.go index d6e39d91a51..359e4c478ee 100644 --- a/bigqueryconnection/v1beta1/bigqueryconnection-gen.go +++ b/bigqueryconnection/v1beta1/bigqueryconnection-gen.go @@ -510,8 +510,7 @@ func (s *ConnectionCredential) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/bigquerydatatransfer/v1/bigquerydatatransfer-api.json b/bigquerydatatransfer/v1/bigquerydatatransfer-api.json index 72d787f7d8c..328a6ecc0fc 100644 --- a/bigquerydatatransfer/v1/bigquerydatatransfer-api.json +++ b/bigquerydatatransfer/v1/bigquerydatatransfer-api.json @@ -1340,7 +1340,7 @@ } } }, - "revision": "20220225", + "revision": "20220319", "rootUrl": "https://bigquerydatatransfer.googleapis.com/", "schemas": { "CheckValidCredsRequest": { @@ -1590,7 +1590,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go b/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go index 7eb9ac79f4d..1313687917c 100644 --- a/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go +++ b/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go @@ -578,8 +578,7 @@ func (s *EmailPreferences) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/bigtableadmin/v2/bigtableadmin-api.json b/bigtableadmin/v2/bigtableadmin-api.json index f7be36cd4d4..640e81a9569 100644 --- a/bigtableadmin/v2/bigtableadmin-api.json +++ b/bigtableadmin/v2/bigtableadmin-api.json @@ -1803,7 +1803,7 @@ } } }, - "revision": "20220211", + "revision": "20220313", "rootUrl": "https://bigtableadmin.googleapis.com/", "schemas": { "AppProfile": { @@ -1903,7 +1903,7 @@ "id": "AutoscalingTargets", "properties": { "cpuUtilizationPercent": { - "description": "The cpu utilization that the Autoscaler should be trying to achieve. This number is on a scale from 0 (no utilization) to 100 (total utilization), and is limited between 10 and 80.", + "description": "The cpu utilization that the Autoscaler should be trying to achieve. This number is on a scale from 0 (no utilization) to 100 (total utilization), and is limited between 10 and 80, otherwise it will return INVALID_ARGUMENT error.", "format": "int32", "type": "integer" } diff --git a/bigtableadmin/v2/bigtableadmin-gen.go b/bigtableadmin/v2/bigtableadmin-gen.go index 37486d30cb6..86d72e6c061 100644 --- a/bigtableadmin/v2/bigtableadmin-gen.go +++ b/bigtableadmin/v2/bigtableadmin-gen.go @@ -479,7 +479,7 @@ type AutoscalingTargets struct { // CpuUtilizationPercent: The cpu utilization that the Autoscaler should // be trying to achieve. This number is on a scale from 0 (no // utilization) to 100 (total utilization), and is limited between 10 - // and 80. + // and 80, otherwise it will return INVALID_ARGUMENT error. CpuUtilizationPercent int64 `json:"cpuUtilizationPercent,omitempty"` // ForceSendFields is a list of field names (e.g. diff --git a/chromemanagement/v1/chromemanagement-api.json b/chromemanagement/v1/chromemanagement-api.json index b1db628a6ce..9029a5571ff 100644 --- a/chromemanagement/v1/chromemanagement-api.json +++ b/chromemanagement/v1/chromemanagement-api.json @@ -444,7 +444,7 @@ ], "parameters": { "filter": { - "description": "Optional. Only include resources that match the filter. Supported filter fields: - org_unit_id - serial_number ", + "description": "Optional. Only include resources that match the filter. Supported filter fields: - org_unit_id - serial_number - device_id ", "location": "query", "type": "string" }, @@ -488,7 +488,7 @@ } } }, - "revision": "20220228", + "revision": "20220326", "rootUrl": "https://chromemanagement.googleapis.com/", "schemas": { "GoogleChromeManagementV1AndroidAppInfo": { diff --git a/chromemanagement/v1/chromemanagement-gen.go b/chromemanagement/v1/chromemanagement-gen.go index a32f97d4e36..e89838c8ef8 100644 --- a/chromemanagement/v1/chromemanagement-gen.go +++ b/chromemanagement/v1/chromemanagement-gen.go @@ -3354,7 +3354,7 @@ func (r *CustomersTelemetryDevicesService) List(parent string) *CustomersTelemet // Filter sets the optional parameter "filter": Only include resources // that match the filter. Supported filter fields: - org_unit_id - -// serial_number +// serial_number - device_id func (c *CustomersTelemetryDevicesListCall) Filter(filter string) *CustomersTelemetryDevicesListCall { c.urlParams_.Set("filter", filter) return c @@ -3491,7 +3491,7 @@ func (c *CustomersTelemetryDevicesListCall) Do(opts ...googleapi.CallOption) (*G // ], // "parameters": { // "filter": { - // "description": "Optional. Only include resources that match the filter. Supported filter fields: - org_unit_id - serial_number ", + // "description": "Optional. Only include resources that match the filter. Supported filter fields: - org_unit_id - serial_number - device_id ", // "location": "query", // "type": "string" // }, diff --git a/classroom/v1/classroom-api.json b/classroom/v1/classroom-api.json index fe64270c54e..aff4b4e0fd0 100644 --- a/classroom/v1/classroom-api.json +++ b/classroom/v1/classroom-api.json @@ -297,7 +297,7 @@ ] }, "patch": { - "description": "Updates one or more fields in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if no update mask is supplied. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable", + "description": "Updates one or more fields in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if no update mask is supplied. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable * InactiveCourseOwner", "flatPath": "v1/courses/{id}", "httpMethod": "PATCH", "id": "classroom.courses.patch", @@ -1471,7 +1471,7 @@ "students": { "methods": { "create": { - "description": "Adds a user as a student of a course. Domain administrators are permitted to [directly add](https://developers.google.com/classroom/guides/manage-users) users within their domain as students to courses within their domain. Students are permitted to add themselves to a course using an enrollment code. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create students in this course or for access errors. * `NOT_FOUND` if the requested course ID does not exist. * `FAILED_PRECONDITION` if the requested user's account is disabled, for the following request errors: * CourseMemberLimitReached * CourseNotModifiable * UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if the user is already a student or teacher in the course.", + "description": "Adds a user as a student of a course. Domain administrators are permitted to [directly add](https://developers.google.com/classroom/guides/manage-users) users within their domain as students to courses within their domain. Students are permitted to add themselves to a course using an enrollment code. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create students in this course or for access errors. * `NOT_FOUND` if the requested course ID does not exist. * `FAILED_PRECONDITION` if the requested user's account is disabled, for the following request errors: * CourseMemberLimitReached * CourseNotModifiable * UserGroupsMembershipLimitReached * InactiveCourseOwner * `ALREADY_EXISTS` if the user is already a student or teacher in the course.", "flatPath": "v1/courses/{courseId}/students", "httpMethod": "POST", "id": "classroom.courses.students.create", @@ -1612,7 +1612,7 @@ "teachers": { "methods": { "create": { - "description": "Creates a teacher of a course. Domain administrators are permitted to [directly add](https://developers.google.com/classroom/guides/manage-users) users within their domain as teachers to courses within their domain. Non-admin users should send an Invitation instead. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create teachers in this course or for access errors. * `NOT_FOUND` if the requested course ID does not exist. * `FAILED_PRECONDITION` if the requested user's account is disabled, for the following request errors: * CourseMemberLimitReached * CourseNotModifiable * CourseTeacherLimitReached * UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if the user is already a teacher or student in the course.", + "description": "Creates a teacher of a course. Domain administrators are permitted to [directly add](https://developers.google.com/classroom/guides/manage-users) users within their domain as teachers to courses within their domain. Non-admin users should send an Invitation instead. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create teachers in this course or for access errors. * `NOT_FOUND` if the requested course ID does not exist. * `FAILED_PRECONDITION` if the requested user's account is disabled, for the following request errors: * CourseMemberLimitReached * CourseNotModifiable * CourseTeacherLimitReached * UserGroupsMembershipLimitReached * InactiveCourseOwner * `ALREADY_EXISTS` if the user is already a teacher or student in the course.", "flatPath": "v1/courses/{courseId}/teachers", "httpMethod": "POST", "id": "classroom.courses.teachers.create", @@ -2400,7 +2400,7 @@ } } }, - "revision": "20220319", + "revision": "20220323", "rootUrl": "https://classroom.googleapis.com/", "schemas": { "Announcement": { diff --git a/classroom/v1/classroom-gen.go b/classroom/v1/classroom-gen.go index bd203e6304d..d9210c7fe04 100644 --- a/classroom/v1/classroom-gen.go +++ b/classroom/v1/classroom-gen.go @@ -3938,7 +3938,7 @@ type CoursesPatchCall struct { // errors. * `NOT_FOUND` if no course exists with the requested ID. * // `INVALID_ARGUMENT` if invalid fields are specified in the update mask // or if no update mask is supplied. * `FAILED_PRECONDITION` for the -// following request errors: * CourseNotModifiable +// following request errors: * CourseNotModifiable * InactiveCourseOwner // // - id: Identifier of the course to update. This identifier can be // either the Classroom-assigned identifier or an alias. @@ -4054,7 +4054,7 @@ func (c *CoursesPatchCall) Do(opts ...googleapi.CallOption) (*Course, error) { } return ret, nil // { - // "description": "Updates one or more fields in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if no update mask is supplied. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable", + // "description": "Updates one or more fields in a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or if no update mask is supplied. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable * InactiveCourseOwner", // "flatPath": "v1/courses/{id}", // "httpMethod": "PATCH", // "id": "classroom.courses.patch", @@ -9208,8 +9208,9 @@ type CoursesStudentsCreateCall struct { // requested course ID does not exist. * `FAILED_PRECONDITION` if the // requested user's account is disabled, for the following request // errors: * CourseMemberLimitReached * CourseNotModifiable * -// UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if the user is -// already a student or teacher in the course. +// UserGroupsMembershipLimitReached * InactiveCourseOwner * +// `ALREADY_EXISTS` if the user is already a student or teacher in the +// course. // // - courseId: Identifier of the course to create the student in. This // identifier can be either the Classroom-assigned identifier or an @@ -9322,7 +9323,7 @@ func (c *CoursesStudentsCreateCall) Do(opts ...googleapi.CallOption) (*Student, } return ret, nil // { - // "description": "Adds a user as a student of a course. Domain administrators are permitted to [directly add](https://developers.google.com/classroom/guides/manage-users) users within their domain as students to courses within their domain. Students are permitted to add themselves to a course using an enrollment code. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create students in this course or for access errors. * `NOT_FOUND` if the requested course ID does not exist. * `FAILED_PRECONDITION` if the requested user's account is disabled, for the following request errors: * CourseMemberLimitReached * CourseNotModifiable * UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if the user is already a student or teacher in the course.", + // "description": "Adds a user as a student of a course. Domain administrators are permitted to [directly add](https://developers.google.com/classroom/guides/manage-users) users within their domain as students to courses within their domain. Students are permitted to add themselves to a course using an enrollment code. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create students in this course or for access errors. * `NOT_FOUND` if the requested course ID does not exist. * `FAILED_PRECONDITION` if the requested user's account is disabled, for the following request errors: * CourseMemberLimitReached * CourseNotModifiable * UserGroupsMembershipLimitReached * InactiveCourseOwner * `ALREADY_EXISTS` if the user is already a student or teacher in the course.", // "flatPath": "v1/courses/{courseId}/students", // "httpMethod": "POST", // "id": "classroom.courses.students.create", @@ -9899,8 +9900,8 @@ type CoursesTeachersCreateCall struct { // disabled, for the following request errors: * // CourseMemberLimitReached * CourseNotModifiable * // CourseTeacherLimitReached * UserGroupsMembershipLimitReached * -// `ALREADY_EXISTS` if the user is already a teacher or student in the -// course. +// InactiveCourseOwner * `ALREADY_EXISTS` if the user is already a +// teacher or student in the course. // // - courseId: Identifier of the course. This identifier can be either // the Classroom-assigned identifier or an alias. @@ -10002,7 +10003,7 @@ func (c *CoursesTeachersCreateCall) Do(opts ...googleapi.CallOption) (*Teacher, } return ret, nil // { - // "description": "Creates a teacher of a course. Domain administrators are permitted to [directly add](https://developers.google.com/classroom/guides/manage-users) users within their domain as teachers to courses within their domain. Non-admin users should send an Invitation instead. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create teachers in this course or for access errors. * `NOT_FOUND` if the requested course ID does not exist. * `FAILED_PRECONDITION` if the requested user's account is disabled, for the following request errors: * CourseMemberLimitReached * CourseNotModifiable * CourseTeacherLimitReached * UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if the user is already a teacher or student in the course.", + // "description": "Creates a teacher of a course. Domain administrators are permitted to [directly add](https://developers.google.com/classroom/guides/manage-users) users within their domain as teachers to courses within their domain. Non-admin users should send an Invitation instead. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create teachers in this course or for access errors. * `NOT_FOUND` if the requested course ID does not exist. * `FAILED_PRECONDITION` if the requested user's account is disabled, for the following request errors: * CourseMemberLimitReached * CourseNotModifiable * CourseTeacherLimitReached * UserGroupsMembershipLimitReached * InactiveCourseOwner * `ALREADY_EXISTS` if the user is already a teacher or student in the course.", // "flatPath": "v1/courses/{courseId}/teachers", // "httpMethod": "POST", // "id": "classroom.courses.teachers.create", diff --git a/cloudbuild/v1/cloudbuild-api.json b/cloudbuild/v1/cloudbuild-api.json index b7109ef3eaa..33579f85b81 100644 --- a/cloudbuild/v1/cloudbuild-api.json +++ b/cloudbuild/v1/cloudbuild-api.json @@ -591,34 +591,6 @@ "resources": { "bitbucketServerConfigs": { "methods": { - "addBitbucketServerConnectedRepository": { - "description": "Add a Bitbucket Server repository to a given BitbucketServerConfig's connected repositories. This API is experimental.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/bitbucketServerConfigs/{bitbucketServerConfigsId}:addBitbucketServerConnectedRepository", - "httpMethod": "POST", - "id": "cloudbuild.projects.locations.bitbucketServerConfigs.addBitbucketServerConnectedRepository", - "parameterOrder": [ - "config" - ], - "parameters": { - "config": { - "description": "Required. The name of the `BitbucketServerConfig` to add a connected repository. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/bitbucketServerConfigs/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+config}:addBitbucketServerConnectedRepository", - "request": { - "$ref": "AddBitbucketServerConnectedRepositoryRequest" - }, - "response": { - "$ref": "AddBitbucketServerConnectedRepositoryResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "create": { "description": "Creates a new `BitbucketServerConfig`. This API is experimental.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/bitbucketServerConfigs", @@ -2039,35 +2011,9 @@ } } }, - "revision": "20220310", + "revision": "20220322", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { - "AddBitbucketServerConnectedRepositoryRequest": { - "description": "RPC request object accepted by the AddBitbucketServerConnectedRepository RPC method.", - "id": "AddBitbucketServerConnectedRepositoryRequest", - "properties": { - "connectedRepository": { - "$ref": "BitbucketServerRepositoryId", - "description": "The connected repository to add." - } - }, - "type": "object" - }, - "AddBitbucketServerConnectedRepositoryResponse": { - "description": "RPC request object returned by the AddBitbucketServerConnectedRepository RPC method.", - "id": "AddBitbucketServerConnectedRepositoryResponse", - "properties": { - "config": { - "description": "The name of the `BitbucketServerConfig` that added connected repository. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}`", - "type": "string" - }, - "connectedRepository": { - "$ref": "BitbucketServerRepositoryId", - "description": "The connected repository." - } - }, - "type": "object" - }, "ApprovalConfig": { "description": "ApprovalConfig describes configuration for manual approval of a build.", "id": "ApprovalConfig", @@ -3251,7 +3197,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" @@ -3340,7 +3286,7 @@ "type": "string" }, "uri": { - "description": "The URI of the repo (optional). If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.", + "description": "The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.", "type": "string" } }, @@ -3496,7 +3442,7 @@ "type": "string" }, "uri": { - "description": "The URI of the repo (required).", + "description": "The URI of the repo. Either uri or repository can be specified and is required.", "type": "string" } }, diff --git a/cloudbuild/v1/cloudbuild-gen.go b/cloudbuild/v1/cloudbuild-gen.go index a49e7b7d69e..cac623b6aeb 100644 --- a/cloudbuild/v1/cloudbuild-gen.go +++ b/cloudbuild/v1/cloudbuild-gen.go @@ -326,75 +326,6 @@ type V1Service struct { s *Service } -// AddBitbucketServerConnectedRepositoryRequest: RPC request object -// accepted by the AddBitbucketServerConnectedRepository RPC method. -type AddBitbucketServerConnectedRepositoryRequest struct { - // ConnectedRepository: The connected repository to add. - ConnectedRepository *BitbucketServerRepositoryId `json:"connectedRepository,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ConnectedRepository") - // 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. "ConnectedRepository") 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 *AddBitbucketServerConnectedRepositoryRequest) MarshalJSON() ([]byte, error) { - type NoMethod AddBitbucketServerConnectedRepositoryRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AddBitbucketServerConnectedRepositoryResponse: RPC request object -// returned by the AddBitbucketServerConnectedRepository RPC method. -type AddBitbucketServerConnectedRepositoryResponse struct { - // Config: The name of the `BitbucketServerConfig` that added connected - // repository. Format: - // `projects/{project}/locations/{location}/bitbucketServerConfigs/{confi - // g}` - Config string `json:"config,omitempty"` - - // ConnectedRepository: The connected repository. - ConnectedRepository *BitbucketServerRepositoryId `json:"connectedRepository,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Config") 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. "Config") 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 *AddBitbucketServerConnectedRepositoryResponse) MarshalJSON() ([]byte, error) { - type NoMethod AddBitbucketServerConnectedRepositoryResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // ApprovalConfig: ApprovalConfig describes configuration for manual // approval of a build. type ApprovalConfig struct { @@ -2114,8 +2045,7 @@ func (s *DeleteWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. @@ -2231,9 +2161,9 @@ type GitFileSource struct { // revision from which to read the specified path. Revision string `json:"revision,omitempty"` - // Uri: The URI of the repo (optional). If unspecified, the repo from - // which the trigger invocation originated is assumed to be the repo - // from which to read the specified path. + // Uri: The URI of the repo. Either uri or repository can be specified. + // If unspecified, the repo from which the trigger invocation originated + // is assumed to be the repo from which to read the specified path. Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -2474,7 +2404,8 @@ type GitRepoSource struct { // "BITBUCKET_SERVER" - A Bitbucket Server-hosted repo. RepoType string `json:"repoType,omitempty"` - // Uri: The URI of the repo (required). + // Uri: The URI of the repo. Either uri or repository can be specified + // and is required. Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -6941,155 +6872,6 @@ func (c *ProjectsGithubEnterpriseConfigsPatchCall) Do(opts ...googleapi.CallOpti } -// method id "cloudbuild.projects.locations.bitbucketServerConfigs.addBitbucketServerConnectedRepository": - -type ProjectsLocationsBitbucketServerConfigsAddBitbucketServerConnectedRepositoryCall struct { - s *Service - config string - addbitbucketserverconnectedrepositoryrequest *AddBitbucketServerConnectedRepositoryRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// AddBitbucketServerConnectedRepository: Add a Bitbucket Server -// repository to a given BitbucketServerConfig's connected repositories. -// This API is experimental. -// -// - config: The name of the `BitbucketServerConfig` to add a connected -// repository. Format: -// `projects/{project}/locations/{location}/bitbucketServerConfigs/{con -// fig}`. -func (r *ProjectsLocationsBitbucketServerConfigsService) AddBitbucketServerConnectedRepository(config string, addbitbucketserverconnectedrepositoryrequest *AddBitbucketServerConnectedRepositoryRequest) *ProjectsLocationsBitbucketServerConfigsAddBitbucketServerConnectedRepositoryCall { - c := &ProjectsLocationsBitbucketServerConfigsAddBitbucketServerConnectedRepositoryCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.config = config - c.addbitbucketserverconnectedrepositoryrequest = addbitbucketserverconnectedrepositoryrequest - 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 *ProjectsLocationsBitbucketServerConfigsAddBitbucketServerConnectedRepositoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsBitbucketServerConfigsAddBitbucketServerConnectedRepositoryCall { - 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 *ProjectsLocationsBitbucketServerConfigsAddBitbucketServerConnectedRepositoryCall) Context(ctx context.Context) *ProjectsLocationsBitbucketServerConfigsAddBitbucketServerConnectedRepositoryCall { - 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 *ProjectsLocationsBitbucketServerConfigsAddBitbucketServerConnectedRepositoryCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsBitbucketServerConfigsAddBitbucketServerConnectedRepositoryCall) 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 - body, err := googleapi.WithoutDataWrapper.JSONReader(c.addbitbucketserverconnectedrepositoryrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+config}:addBitbucketServerConnectedRepository") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "config": c.config, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "cloudbuild.projects.locations.bitbucketServerConfigs.addBitbucketServerConnectedRepository" call. -// Exactly one of *AddBitbucketServerConnectedRepositoryResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *AddBitbucketServerConnectedRepositoryResponse.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 *ProjectsLocationsBitbucketServerConfigsAddBitbucketServerConnectedRepositoryCall) Do(opts ...googleapi.CallOption) (*AddBitbucketServerConnectedRepositoryResponse, 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 := &AddBitbucketServerConnectedRepositoryResponse{ - 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": "Add a Bitbucket Server repository to a given BitbucketServerConfig's connected repositories. This API is experimental.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/bitbucketServerConfigs/{bitbucketServerConfigsId}:addBitbucketServerConnectedRepository", - // "httpMethod": "POST", - // "id": "cloudbuild.projects.locations.bitbucketServerConfigs.addBitbucketServerConnectedRepository", - // "parameterOrder": [ - // "config" - // ], - // "parameters": { - // "config": { - // "description": "Required. The name of the `BitbucketServerConfig` to add a connected repository. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/bitbucketServerConfigs/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+config}:addBitbucketServerConnectedRepository", - // "request": { - // "$ref": "AddBitbucketServerConnectedRepositoryRequest" - // }, - // "response": { - // "$ref": "AddBitbucketServerConnectedRepositoryResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "cloudbuild.projects.locations.bitbucketServerConfigs.create": type ProjectsLocationsBitbucketServerConfigsCreateCall struct { diff --git a/cloudbuild/v1alpha1/cloudbuild-api.json b/cloudbuild/v1alpha1/cloudbuild-api.json index 97eede179e8..d7e6b4b63e7 100644 --- a/cloudbuild/v1alpha1/cloudbuild-api.json +++ b/cloudbuild/v1alpha1/cloudbuild-api.json @@ -306,7 +306,7 @@ } } }, - "revision": "20220218", + "revision": "20220322", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -1170,7 +1170,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/cloudbuild/v1alpha1/cloudbuild-gen.go b/cloudbuild/v1alpha1/cloudbuild-gen.go index d45c634123b..85a6e770d65 100644 --- a/cloudbuild/v1alpha1/cloudbuild-gen.go +++ b/cloudbuild/v1alpha1/cloudbuild-gen.go @@ -1387,8 +1387,7 @@ func (s *DeleteWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/cloudbuild/v1alpha2/cloudbuild-api.json b/cloudbuild/v1alpha2/cloudbuild-api.json index 87ab1d51596..cb9505495df 100644 --- a/cloudbuild/v1alpha2/cloudbuild-api.json +++ b/cloudbuild/v1alpha2/cloudbuild-api.json @@ -317,7 +317,7 @@ } } }, - "revision": "20220218", + "revision": "20220322", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -1181,7 +1181,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/cloudbuild/v1alpha2/cloudbuild-gen.go b/cloudbuild/v1alpha2/cloudbuild-gen.go index 232bed767b2..b831aaaad73 100644 --- a/cloudbuild/v1alpha2/cloudbuild-gen.go +++ b/cloudbuild/v1alpha2/cloudbuild-gen.go @@ -1387,8 +1387,7 @@ func (s *DeleteWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/cloudbuild/v1beta1/cloudbuild-api.json b/cloudbuild/v1beta1/cloudbuild-api.json index 515ea9144e7..08001cea753 100644 --- a/cloudbuild/v1beta1/cloudbuild-api.json +++ b/cloudbuild/v1beta1/cloudbuild-api.json @@ -322,7 +322,7 @@ } } }, - "revision": "20220218", + "revision": "20220322", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -1186,7 +1186,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/cloudbuild/v1beta1/cloudbuild-gen.go b/cloudbuild/v1beta1/cloudbuild-gen.go index 559f274fa13..8c7a5adf2fe 100644 --- a/cloudbuild/v1beta1/cloudbuild-gen.go +++ b/cloudbuild/v1beta1/cloudbuild-gen.go @@ -1387,8 +1387,7 @@ func (s *DeleteWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/clouddeploy/v1/clouddeploy-api.json b/clouddeploy/v1/clouddeploy-api.json index d7618bfe5d5..bd7a19283b6 100644 --- a/clouddeploy/v1/clouddeploy-api.json +++ b/clouddeploy/v1/clouddeploy-api.json @@ -363,7 +363,7 @@ ], "parameters": { "filter": { - "description": "Filter builds to be returned. See https://google.aip.dev/160 for more details.", + "description": "Filter pipelines to be returned. See https://google.aip.dev/160 for more details.", "location": "query", "type": "string" }, @@ -586,7 +586,7 @@ ], "parameters": { "filter": { - "description": "Optional. Filter builds to be returned. See https://google.aip.dev/160 for more details.", + "description": "Optional. Filter releases to be returned. See https://google.aip.dev/160 for more details.", "location": "query", "type": "string" }, @@ -732,7 +732,7 @@ ], "parameters": { "filter": { - "description": "Optional. Filter builds to be returned. See https://google.aip.dev/160 for more details.", + "description": "Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more details.", "location": "query", "type": "string" }, @@ -1053,7 +1053,7 @@ ], "parameters": { "filter": { - "description": "Optional. Filter builds to be returned. See https://google.aip.dev/160 for more details.", + "description": "Optional. Filter targets to be returned. See https://google.aip.dev/160 for more details.", "location": "query", "type": "string" }, @@ -1201,7 +1201,7 @@ } } }, - "revision": "20220309", + "revision": "20220314", "rootUrl": "https://clouddeploy.googleapis.com/", "schemas": { "AnthosCluster": { diff --git a/clouddeploy/v1/clouddeploy-gen.go b/clouddeploy/v1/clouddeploy-gen.go index d2ded271e67..62e4d9990a2 100644 --- a/clouddeploy/v1/clouddeploy-gen.go +++ b/clouddeploy/v1/clouddeploy-gen.go @@ -3463,7 +3463,7 @@ func (r *ProjectsLocationsDeliveryPipelinesService) List(parent string) *Project return c } -// Filter sets the optional parameter "filter": Filter builds to be +// Filter sets the optional parameter "filter": Filter pipelines to be // returned. See https://google.aip.dev/160 for more details. func (c *ProjectsLocationsDeliveryPipelinesListCall) Filter(filter string) *ProjectsLocationsDeliveryPipelinesListCall { c.urlParams_.Set("filter", filter) @@ -3603,7 +3603,7 @@ func (c *ProjectsLocationsDeliveryPipelinesListCall) Do(opts ...googleapi.CallOp // ], // "parameters": { // "filter": { - // "description": "Filter builds to be returned. See https://google.aip.dev/160 for more details.", + // "description": "Filter pipelines to be returned. See https://google.aip.dev/160 for more details.", // "location": "query", // "type": "string" // }, @@ -4528,7 +4528,7 @@ func (r *ProjectsLocationsDeliveryPipelinesReleasesService) List(parent string) return c } -// Filter sets the optional parameter "filter": Filter builds to be +// Filter sets the optional parameter "filter": Filter releases to be // returned. See https://google.aip.dev/160 for more details. func (c *ProjectsLocationsDeliveryPipelinesReleasesListCall) Filter(filter string) *ProjectsLocationsDeliveryPipelinesReleasesListCall { c.urlParams_.Set("filter", filter) @@ -4669,7 +4669,7 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesListCall) Do(opts ...googleap // ], // "parameters": { // "filter": { - // "description": "Optional. Filter builds to be returned. See https://google.aip.dev/160 for more details.", + // "description": "Optional. Filter releases to be returned. See https://google.aip.dev/160 for more details.", // "location": "query", // "type": "string" // }, @@ -5234,7 +5234,7 @@ func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsService) List(parent return c } -// Filter sets the optional parameter "filter": Filter builds to be +// Filter sets the optional parameter "filter": Filter rollouts to be // returned. See https://google.aip.dev/160 for more details. func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall) Filter(filter string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall { c.urlParams_.Set("filter", filter) @@ -5375,7 +5375,7 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall) Do(opts ... // ], // "parameters": { // "filter": { - // "description": "Optional. Filter builds to be returned. See https://google.aip.dev/160 for more details.", + // "description": "Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more details.", // "location": "query", // "type": "string" // }, @@ -6812,7 +6812,7 @@ func (r *ProjectsLocationsTargetsService) List(parent string) *ProjectsLocations return c } -// Filter sets the optional parameter "filter": Filter builds to be +// Filter sets the optional parameter "filter": Filter targets to be // returned. See https://google.aip.dev/160 for more details. func (c *ProjectsLocationsTargetsListCall) Filter(filter string) *ProjectsLocationsTargetsListCall { c.urlParams_.Set("filter", filter) @@ -6952,7 +6952,7 @@ func (c *ProjectsLocationsTargetsListCall) Do(opts ...googleapi.CallOption) (*Li // ], // "parameters": { // "filter": { - // "description": "Optional. Filter builds to be returned. See https://google.aip.dev/160 for more details.", + // "description": "Optional. Filter targets to be returned. See https://google.aip.dev/160 for more details.", // "location": "query", // "type": "string" // }, diff --git a/cloudscheduler/v1/cloudscheduler-api.json b/cloudscheduler/v1/cloudscheduler-api.json index e13bd4836fa..b99f93367d2 100644 --- a/cloudscheduler/v1/cloudscheduler-api.json +++ b/cloudscheduler/v1/cloudscheduler-api.json @@ -418,7 +418,7 @@ } } }, - "revision": "20220212", + "revision": "20220321", "rootUrl": "https://cloudscheduler.googleapis.com/", "schemas": { "AppEngineHttpTarget": { @@ -496,7 +496,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/cloudscheduler/v1/cloudscheduler-gen.go b/cloudscheduler/v1/cloudscheduler-gen.go index e79a8973bcc..d3c98b450b0 100644 --- a/cloudscheduler/v1/cloudscheduler-gen.go +++ b/cloudscheduler/v1/cloudscheduler-gen.go @@ -343,8 +343,7 @@ func (s *AppEngineRouting) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/cloudscheduler/v1beta1/cloudscheduler-api.json b/cloudscheduler/v1beta1/cloudscheduler-api.json index 6463b7340c7..b55244397a0 100644 --- a/cloudscheduler/v1beta1/cloudscheduler-api.json +++ b/cloudscheduler/v1beta1/cloudscheduler-api.json @@ -433,7 +433,7 @@ } } }, - "revision": "20220212", + "revision": "20220321", "rootUrl": "https://cloudscheduler.googleapis.com/", "schemas": { "AppEngineHttpTarget": { @@ -511,7 +511,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/cloudscheduler/v1beta1/cloudscheduler-gen.go b/cloudscheduler/v1beta1/cloudscheduler-gen.go index a94d42b6a22..e98c1f3b8cd 100644 --- a/cloudscheduler/v1beta1/cloudscheduler-gen.go +++ b/cloudscheduler/v1beta1/cloudscheduler-gen.go @@ -343,8 +343,7 @@ func (s *AppEngineRouting) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/cloudsearch/v1/cloudsearch-api.json b/cloudsearch/v1/cloudsearch-api.json index 6822a003d59..47bcf74ce26 100644 --- a/cloudsearch/v1/cloudsearch-api.json +++ b/cloudsearch/v1/cloudsearch-api.json @@ -1994,7 +1994,7 @@ } } }, - "revision": "20220310", + "revision": "20220322", "rootUrl": "https://cloudsearch.googleapis.com/", "schemas": { "AclInfo": { @@ -2753,10 +2753,22 @@ "format": "double", "type": "number" }, + "lastMessagePostedTimestampMicros": { + "format": "int64", + "type": "string" + }, + "memberMetadataCount": { + "format": "double", + "type": "number" + }, "messageScore": { "format": "double", "type": "number" }, + "numAucContacts": { + "format": "int64", + "type": "string" + }, "smallContactListAffinityScore": { "format": "double", "type": "number" @@ -2769,6 +2781,10 @@ "format": "double", "type": "number" }, + "spaceCreationTimestampMicros": { + "format": "int64", + "type": "string" + }, "topicalityScore": { "format": "double", "type": "number" @@ -4799,15 +4815,14 @@ "id": "RestrictItem", "properties": { "driveFollowUpRestrict": { - "$ref": "DriveFollowUpRestrict", - "description": "LINT.ThenChange(//depot/google3/java/com/google/apps/search/quality/itemsuggest/utils/SubtypeRerankingUtils.java)" + "$ref": "DriveFollowUpRestrict" }, "driveLocationRestrict": { "$ref": "DriveLocationRestrict" }, "driveMimeTypeRestrict": { "$ref": "DriveMimeTypeRestrict", - "description": "LINT.IfChange Drive Types." + "description": "Drive Types." }, "driveTimeSpanRestrict": { "$ref": "DriveTimeSpanRestrict" @@ -5849,6 +5864,10 @@ "description": "Primary key for User resource.", "id": "UserId", "properties": { + "actingUserId": { + "description": "Optional. Opaque, server-assigned ID of the user profile associated with App/user acting on behalf of the human user. This is currently only set when a 3P application is acting on the user's behalf.", + "type": "string" + }, "id": { "description": "Opaque, server-assigned ID of the User.", "type": "string" diff --git a/cloudsearch/v1/cloudsearch-gen.go b/cloudsearch/v1/cloudsearch-gen.go index 111e91930b0..92ee36e648f 100644 --- a/cloudsearch/v1/cloudsearch-gen.go +++ b/cloudsearch/v1/cloudsearch-gen.go @@ -1860,14 +1860,22 @@ type DynamiteSpacesScoringInfo struct { JoinedSpacesAffinityScore float64 `json:"joinedSpacesAffinityScore,omitempty"` + LastMessagePostedTimestampMicros int64 `json:"lastMessagePostedTimestampMicros,omitempty,string"` + + MemberMetadataCount float64 `json:"memberMetadataCount,omitempty"` + MessageScore float64 `json:"messageScore,omitempty"` + NumAucContacts int64 `json:"numAucContacts,omitempty,string"` + SmallContactListAffinityScore float64 `json:"smallContactListAffinityScore,omitempty"` SmallUnjoinedSpacesAffinityScore float64 `json:"smallUnjoinedSpacesAffinityScore,omitempty"` SpaceAgeInDays float64 `json:"spaceAgeInDays,omitempty"` + SpaceCreationTimestampMicros int64 `json:"spaceCreationTimestampMicros,omitempty,string"` + TopicalityScore float64 `json:"topicalityScore,omitempty"` // ForceSendFields is a list of field names (e.g. "AffinityScore") to @@ -1902,6 +1910,7 @@ func (s *DynamiteSpacesScoringInfo) UnmarshalJSON(data []byte) error { FinalScore gensupport.JSONFloat64 `json:"finalScore"` FreshnessScore gensupport.JSONFloat64 `json:"freshnessScore"` JoinedSpacesAffinityScore gensupport.JSONFloat64 `json:"joinedSpacesAffinityScore"` + MemberMetadataCount gensupport.JSONFloat64 `json:"memberMetadataCount"` MessageScore gensupport.JSONFloat64 `json:"messageScore"` SmallContactListAffinityScore gensupport.JSONFloat64 `json:"smallContactListAffinityScore"` SmallUnjoinedSpacesAffinityScore gensupport.JSONFloat64 `json:"smallUnjoinedSpacesAffinityScore"` @@ -1919,6 +1928,7 @@ func (s *DynamiteSpacesScoringInfo) UnmarshalJSON(data []byte) error { s.FinalScore = float64(s1.FinalScore) s.FreshnessScore = float64(s1.FreshnessScore) s.JoinedSpacesAffinityScore = float64(s1.JoinedSpacesAffinityScore) + s.MemberMetadataCount = float64(s1.MemberMetadataCount) s.MessageScore = float64(s1.MessageScore) s.SmallContactListAffinityScore = float64(s1.SmallContactListAffinityScore) s.SmallUnjoinedSpacesAffinityScore = float64(s1.SmallUnjoinedSpacesAffinityScore) @@ -5580,14 +5590,11 @@ func (s *ResponseDebugInfo) MarshalJSON() ([]byte, error) { // RestrictItem: Information relevant only to a restrict entry. NextId: // 12 type RestrictItem struct { - // DriveFollowUpRestrict: - // LINT.ThenChange(//depot/google3/java/com/google/apps/search/quality/it - // emsuggest/utils/SubtypeRerankingUtils.java) DriveFollowUpRestrict *DriveFollowUpRestrict `json:"driveFollowUpRestrict,omitempty"` DriveLocationRestrict *DriveLocationRestrict `json:"driveLocationRestrict,omitempty"` - // DriveMimeTypeRestrict: LINT.IfChange Drive Types. + // DriveMimeTypeRestrict: Drive Types. DriveMimeTypeRestrict *DriveMimeTypeRestrict `json:"driveMimeTypeRestrict,omitempty"` DriveTimeSpanRestrict *DriveTimeSpanRestrict `json:"driveTimeSpanRestrict,omitempty"` @@ -7461,6 +7468,12 @@ func (s *UploadItemRef) MarshalJSON() ([]byte, error) { // UserId: Primary key for User resource. type UserId struct { + // ActingUserId: Optional. Opaque, server-assigned ID of the user + // profile associated with App/user acting on behalf of the human user. + // This is currently only set when a 3P application is acting on the + // user's behalf. + ActingUserId string `json:"actingUserId,omitempty"` + // Id: Opaque, server-assigned ID of the User. Id string `json:"id,omitempty"` @@ -7495,7 +7508,7 @@ type UserId struct { // "BOT" Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Id") to + // ForceSendFields is a list of field names (e.g. "ActingUserId") 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 @@ -7503,10 +7516,10 @@ type UserId struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Id") 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 + // NullFields is a list of field names (e.g. "ActingUserId") 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:"-"` diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index abb628313c8..e8359f723b0 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -38660,7 +38660,7 @@ } } }, - "revision": "20220312", + "revision": "20220315", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -47163,7 +47163,7 @@ "additionalProperties": { "type": "string" }, - "description": "A list of labels to apply for this resource. Each label key \u0026 value must comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. For example, \"webserver-frontend\": \"images\". A label value can also be empty (e.g. \"my-label\": \"\").", + "description": "A list of labels to apply for this resource. Each label must comply with the requirements for labels. For example, \"webserver-frontend\": \"images\". A label value can also be empty (e.g. \"my-label\": \"\").", "type": "object" } }, @@ -47279,7 +47279,7 @@ "id": "GuestOsFeature", "properties": { "type": { - "description": "The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - SECURE_BOOT - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_SNP_CAPABLE For more information, see Enabling guest operating system features.", + "description": "The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_SNP_CAPABLE For more information, see Enabling guest operating system features.", "enum": [ "BARE_METAL_LINUX_COMPATIBLE", "FEATURE_TYPE_UNSPECIFIED", @@ -57884,7 +57884,7 @@ "id": "NetworkEndpointGroupServerlessDeployment", "properties": { "platform": { - "description": "The platform of the backend target(s) of this NEG. Possible values include: 1. API Gateway: apigateway.googleapis.com 2. App Engine: appengine.googleapis.com 3. Cloud Functions: cloudfunctions.googleapis.com 4. Cloud Run: run.googleapis.com ", + "description": "The platform of the backend target(s) of this NEG. The only supported value is API Gateway: apigateway.googleapis.com.", "type": "string" }, "resource": { @@ -58494,6 +58494,18 @@ "format": "int32", "type": "integer" }, + "stackType": { + "description": "Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY.", + "enum": [ + "IPV4_IPV6", + "IPV4_ONLY" + ], + "enumDescriptions": [ + "This Peering will allow IPv4 traffic and routes to be exchanged. Additionally if the matching peering is IPV4_IPV6, IPv6 traffic and routes will be exchanged as well.", + "This Peering will only allow IPv4 traffic and routes to be exchanged, even if the matching peering is IPV4_IPV6." + ], + "type": "string" + }, "state": { "description": "[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network.", "enum": [ @@ -66416,6 +66428,10 @@ "description": "Specifies the availability domain (AD), which this instance should be scheduled on. The AD belongs to the spread GroupPlacementPolicy resource policy that has been assigned to the instance. Specify a value between 1-max count of availability domains in your GroupPlacementPolicy. See go/placement-policy-extension for more details.", "format": "int32", "type": "integer" + }, + "terminationTimestamp": { + "description": "Time in future when the instance will be terminated in RFC3339 text format.", + "type": "string" } }, "type": "object" diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index 3c6959a95f6..7a167d994b2 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -14766,14 +14766,10 @@ type GlobalSetLabelsRequest struct { // resource to get the latest fingerprint. LabelFingerprint string `json:"labelFingerprint,omitempty"` - // Labels: A list of labels to apply for this resource. Each label key & - // value must comply with RFC1035. Specifically, the name must be 1-63 - // characters long and match the regular expression - // `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be - // a lowercase letter, and all following characters must be a dash, - // lowercase letter, or digit, except the last character, which cannot - // be a dash. For example, "webserver-frontend": "images". A label value - // can also be empty (e.g. "my-label": ""). + // Labels: A list of labels to apply for this resource. Each label must + // comply with the requirements for labels. For example, + // "webserver-frontend": "images". A label value can also be empty (e.g. + // "my-label": ""). Labels map[string]string `json:"labels,omitempty"` // ForceSendFields is a list of field names (e.g. "LabelFingerprint") to @@ -14990,9 +14986,9 @@ type GuestOsFeature struct { // Type: The ID of a supported feature. To add multiple values, use // commas to separate values. Set to one or more of the following // values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - - // UEFI_COMPATIBLE - SECURE_BOOT - GVNIC - SEV_CAPABLE - - // SUSPEND_RESUME_COMPATIBLE - SEV_SNP_CAPABLE For more information, see - // Enabling guest operating system features. + // UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - + // SEV_SNP_CAPABLE For more information, see Enabling guest operating + // system features. // // Possible values: // "BARE_METAL_LINUX_COMPATIBLE" @@ -31817,10 +31813,8 @@ func (s *NetworkEndpointGroupListWarningData) MarshalJSON() ([]byte, error) { // provided. Note: The target backend service must be in the same // project and located in the same region as the Serverless NEG. type NetworkEndpointGroupServerlessDeployment struct { - // Platform: The platform of the backend target(s) of this NEG. Possible - // values include: 1. API Gateway: apigateway.googleapis.com 2. App - // Engine: appengine.googleapis.com 3. Cloud Functions: - // cloudfunctions.googleapis.com 4. Cloud Run: run.googleapis.com + // Platform: The platform of the backend target(s) of this NEG. The only + // supported value is API Gateway: apigateway.googleapis.com. Platform string `json:"platform,omitempty"` // Resource: The user-defined name of the workload/instance. This value @@ -32803,6 +32797,18 @@ type NetworkPeering struct { // PeerMtu: Maximum Transmission Unit in bytes. PeerMtu int64 `json:"peerMtu,omitempty"` + // StackType: Which IP version(s) of traffic and routes are allowed to + // be imported or exported between peer networks. The default value is + // IPV4_ONLY. + // + // Possible values: + // "IPV4_IPV6" - This Peering will allow IPv4 traffic and routes to be + // exchanged. Additionally if the matching peering is IPV4_IPV6, IPv6 + // traffic and routes will be exchanged as well. + // "IPV4_ONLY" - This Peering will only allow IPv4 traffic and routes + // to be exchanged, even if the matching peering is IPV4_IPV6. + StackType string `json:"stackType,omitempty"` + // State: [Output Only] State for the peering, either `ACTIVE` or // `INACTIVE`. The peering is `ACTIVE` when there's a matching // configuration in the peer network. @@ -45126,6 +45132,10 @@ type ResourceStatusScheduling struct { // more details. AvailabilityDomain int64 `json:"availabilityDomain,omitempty"` + // TerminationTimestamp: Time in future when the instance will be + // terminated in RFC3339 text format. + TerminationTimestamp string `json:"terminationTimestamp,omitempty"` + // ForceSendFields is a list of field names (e.g. "AvailabilityDomain") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index b902fc2b68b..a69d8a8c76c 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -31075,7 +31075,7 @@ } } }, - "revision": "20220315", + "revision": "20220322", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -33571,6 +33571,13 @@ ], "type": "string" }, + "localityLbPolicies": { + "description": "A list of locality load balancing policies to be used in order of preference. Either the policy or the customPolicy field should be set. Overrides any value set in the localityLbPolicy field. localityLbPolicies is only supported when the BackendService is referenced by a URL Map that is referenced by a target gRPC proxy that has the validateForProxyless field set to true.", + "items": { + "$ref": "BackendServiceLocalityLoadBalancingPolicyConfig" + }, + "type": "array" + }, "localityLbPolicy": { "description": "The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.", "enum": [ @@ -34159,6 +34166,63 @@ }, "type": "object" }, + "BackendServiceLocalityLoadBalancingPolicyConfig": { + "description": "Container for either a built-in LB policy supported by gRPC or Envoy or a custom one implemented by the end user.", + "id": "BackendServiceLocalityLoadBalancingPolicyConfig", + "properties": { + "customPolicy": { + "$ref": "BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy" + }, + "policy": { + "$ref": "BackendServiceLocalityLoadBalancingPolicyConfigPolicy" + } + }, + "type": "object" + }, + "BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy": { + "description": "The configuration for a custom policy implemented by the user and deployed with the client.", + "id": "BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy", + "properties": { + "data": { + "description": "An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.", + "type": "string" + }, + "name": { + "description": "Identifies the custom policy. The value should match the type the custom implementation is registered with on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (e.g. myorg.CustomLbPolicy). The maximum length is 256 characters. Note that specifying the same custom policy more than once for a backend is not a valid configuration and will be rejected.", + "type": "string" + } + }, + "type": "object" + }, + "BackendServiceLocalityLoadBalancingPolicyConfigPolicy": { + "description": "The configuration for a built-in load balancing policy.", + "id": "BackendServiceLocalityLoadBalancingPolicyConfigPolicy", + "properties": { + "name": { + "description": "The name of a locality load balancer policy to be used. The value should be one of the predefined ones as supported by localityLbPolicy, although at the moment only ROUND_ROBIN is supported. This field should only be populated when the customPolicy field is not used. Note that specifying the same policy more than once for a backend is not a valid configuration and will be rejected.", + "enum": [ + "INVALID_LB_POLICY", + "LEAST_REQUEST", + "MAGLEV", + "ORIGINAL_DESTINATION", + "RANDOM", + "RING_HASH", + "ROUND_ROBIN" + ], + "enumDescriptions": [ + "", + "An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests.", + "This algorithm implements consistent hashing to backends. Maglev can be used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824", + "Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer.", + "The load balancer selects a random healthy host.", + "The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests.", + "This is a simple policy in which each healthy backend is selected in round robin order. This is the default." + ], + "type": "string" + } + }, + "type": "object" + }, "BackendServiceLogConfig": { "description": "The available logging options for the load balancer traffic served by this backend service.", "id": "BackendServiceLogConfig", @@ -37518,6 +37582,10 @@ "format": "int32", "type": "integer" }, + "ruleName": { + "description": "An optional name for the rule. This field is not a unique identifier and can be updated.", + "type": "string" + }, "ruleTupleCount": { "description": "[Output Only] Calculation of the complexity of a single firewall policy rule.", "format": "int32", @@ -59043,7 +59111,7 @@ "type": "boolean" }, "externalIpv6Prefix": { - "description": "[Output Only] The range of external IPv6 addresses that are owned by this subnetwork.", + "description": "[Output Only] The external IPv6 address range that is assigned to this subnetwork.", "type": "string" }, "fingerprint": { @@ -59061,7 +59129,7 @@ "type": "string" }, "internalIpv6Prefix": { - "description": "[Output Only] The range of internal IPv6 addresses that are owned by this subnetwork. Note this is for general VM to VM communication, not to be confused with the ipv6_cidr_range field.", + "description": "[Output Only] The internal IPv6 address range that is assigned to this subnetwork.", "type": "string" }, "ipCidrRange": { @@ -59069,19 +59137,19 @@ "type": "string" }, "ipv6AccessType": { - "description": "The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. If the ipv6_type is EXTERNAL then this subnet cannot enable direct path.", + "description": "The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack.", "enum": [ "EXTERNAL", "INTERNAL" ], "enumDescriptions": [ - "VMs on this subnet will be assigned IPv6 addresses that are accesible via the Internet, as well as the VPC network.", + "VMs on this subnet will be assigned IPv6 addresses that are accessible via the Internet, as well as the VPC network.", "VMs on this subnet will be assigned IPv6 addresses that are only accessible over the VPC network." ], "type": "string" }, "ipv6CidrRange": { - "description": "[Output Only] The range of internal IPv6 addresses that are owned by this subnetwork. Note this will be for private google access only eventually.", + "description": "[Output Only] This field is for internal use.", "type": "string" }, "kind": { @@ -59107,7 +59175,7 @@ "type": "boolean" }, "privateIpv6GoogleAccess": { - "description": "The private IPv6 google access type for the VMs in this subnet. This is an expanded field of enablePrivateV6Access. If both fields are set, privateIpv6GoogleAccess will take priority. This field can be both set at resource creation time and updated using patch.", + "description": "This field is for internal use. This field can be both set at resource creation time and updated using patch.", "enum": [ "DISABLE_GOOGLE_ACCESS", "ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE", diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index a8fb4f92d60..ad39992599d 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -5244,6 +5244,14 @@ type BackendService struct { // "INVALID_LOAD_BALANCING_SCHEME" LoadBalancingScheme string `json:"loadBalancingScheme,omitempty"` + // LocalityLbPolicies: A list of locality load balancing policies to be + // used in order of preference. Either the policy or the customPolicy + // field should be set. Overrides any value set in the localityLbPolicy + // field. localityLbPolicies is only supported when the BackendService + // is referenced by a URL Map that is referenced by a target gRPC proxy + // that has the validateForProxyless field set to true. + LocalityLbPolicies []*BackendServiceLocalityLoadBalancingPolicyConfig `json:"localityLbPolicies,omitempty"` + // LocalityLbPolicy: The load balancing algorithm used within the scope // of the locality. The possible values are: - ROUND_ROBIN: This is a // simple policy in which each healthy backend is selected in round @@ -6317,6 +6325,132 @@ func (s *BackendServiceListWarningData) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// BackendServiceLocalityLoadBalancingPolicyConfig: Container for either +// a built-in LB policy supported by gRPC or Envoy or a custom one +// implemented by the end user. +type BackendServiceLocalityLoadBalancingPolicyConfig struct { + CustomPolicy *BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy `json:"customPolicy,omitempty"` + + Policy *BackendServiceLocalityLoadBalancingPolicyConfigPolicy `json:"policy,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomPolicy") 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. "CustomPolicy") 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 *BackendServiceLocalityLoadBalancingPolicyConfig) MarshalJSON() ([]byte, error) { + type NoMethod BackendServiceLocalityLoadBalancingPolicyConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy: The +// configuration for a custom policy implemented by the user and +// deployed with the client. +type BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy struct { + // Data: An optional, arbitrary JSON object with configuration data, + // understood by a locally installed custom policy implementation. + Data string `json:"data,omitempty"` + + // Name: Identifies the custom policy. The value should match the type + // the custom implementation is registered with on the gRPC clients. It + // should follow protocol buffer message naming conventions and include + // the full path (e.g. myorg.CustomLbPolicy). The maximum length is 256 + // characters. Note that specifying the same custom policy more than + // once for a backend is not a valid configuration and will be rejected. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Data") 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. "Data") 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 *BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy) MarshalJSON() ([]byte, error) { + type NoMethod BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// BackendServiceLocalityLoadBalancingPolicyConfigPolicy: The +// configuration for a built-in load balancing policy. +type BackendServiceLocalityLoadBalancingPolicyConfigPolicy struct { + // Name: The name of a locality load balancer policy to be used. The + // value should be one of the predefined ones as supported by + // localityLbPolicy, although at the moment only ROUND_ROBIN is + // supported. This field should only be populated when the customPolicy + // field is not used. Note that specifying the same policy more than + // once for a backend is not a valid configuration and will be rejected. + // + // Possible values: + // "INVALID_LB_POLICY" + // "LEAST_REQUEST" - An O(1) algorithm which selects two random + // healthy hosts and picks the host which has fewer active requests. + // "MAGLEV" - This algorithm implements consistent hashing to + // backends. Maglev can be used as a drop in replacement for the ring + // hash load balancer. Maglev is not as stable as ring hash but has + // faster table lookup build times and host selection times. For more + // information about Maglev, see + // https://ai.google/research/pubs/pub44824 + // "ORIGINAL_DESTINATION" - Backend host is selected based on the + // client connection metadata, i.e., connections are opened to the same + // address as the destination address of the incoming connection before + // the connection was redirected to the load balancer. + // "RANDOM" - The load balancer selects a random healthy host. + // "RING_HASH" - The ring/modulo hash load balancer implements + // consistent hashing to backends. The algorithm has the property that + // the addition/removal of a host from a set of N hosts only affects 1/N + // of the requests. + // "ROUND_ROBIN" - This is a simple policy in which each healthy + // backend is selected in round robin order. This is the default. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *BackendServiceLocalityLoadBalancingPolicyConfigPolicy) MarshalJSON() ([]byte, error) { + type NoMethod BackendServiceLocalityLoadBalancingPolicyConfigPolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // BackendServiceLogConfig: The available logging options for the load // balancer traffic served by this backend service. type BackendServiceLogConfig struct { @@ -11583,6 +11717,10 @@ type FirewallPolicyRule struct { // priority and 2147483647 is the lowest prority. Priority int64 `json:"priority,omitempty"` + // RuleName: An optional name for the rule. This field is not a unique + // identifier and can be updated. + RuleName string `json:"ruleName,omitempty"` + // RuleTupleCount: [Output Only] Calculation of the complexity of a // single firewall policy rule. RuleTupleCount int64 `json:"ruleTupleCount,omitempty"` @@ -45180,8 +45318,8 @@ type Subnetwork struct { // INTERNAL_HTTPS_LOAD_BALANCER. EnableFlowLogs bool `json:"enableFlowLogs,omitempty"` - // ExternalIpv6Prefix: [Output Only] The range of external IPv6 - // addresses that are owned by this subnetwork. + // ExternalIpv6Prefix: [Output Only] The external IPv6 address range + // that is assigned to this subnetwork. ExternalIpv6Prefix string `json:"externalIpv6Prefix,omitempty"` // Fingerprint: Fingerprint of this resource. A hash of the contents @@ -45201,10 +45339,8 @@ type Subnetwork struct { // identifier is defined by the server. Id uint64 `json:"id,omitempty,string"` - // InternalIpv6Prefix: [Output Only] The range of internal IPv6 - // addresses that are owned by this subnetwork. Note this is for general - // VM to VM communication, not to be confused with the ipv6_cidr_range - // field. + // InternalIpv6Prefix: [Output Only] The internal IPv6 address range + // that is assigned to this subnetwork. InternalIpv6Prefix string `json:"internalIpv6Prefix,omitempty"` // IpCidrRange: The range of internal addresses that are owned by this @@ -45218,19 +45354,16 @@ type Subnetwork struct { // Ipv6AccessType: The access type of IPv6 address this subnet holds. // It's immutable and can only be specified during creation or the first - // time the subnet is updated into IPV4_IPV6 dual stack. If the - // ipv6_type is EXTERNAL then this subnet cannot enable direct path. + // time the subnet is updated into IPV4_IPV6 dual stack. // // Possible values: // "EXTERNAL" - VMs on this subnet will be assigned IPv6 addresses - // that are accesible via the Internet, as well as the VPC network. + // that are accessible via the Internet, as well as the VPC network. // "INTERNAL" - VMs on this subnet will be assigned IPv6 addresses // that are only accessible over the VPC network. Ipv6AccessType string `json:"ipv6AccessType,omitempty"` - // Ipv6CidrRange: [Output Only] The range of internal IPv6 addresses - // that are owned by this subnetwork. Note this will be for private - // google access only eventually. + // Ipv6CidrRange: [Output Only] This field is for internal use. Ipv6CidrRange string `json:"ipv6CidrRange,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#subnetwork @@ -45262,11 +45395,8 @@ type Subnetwork struct { // setPrivateIpGoogleAccess. PrivateIpGoogleAccess bool `json:"privateIpGoogleAccess,omitempty"` - // PrivateIpv6GoogleAccess: The private IPv6 google access type for the - // VMs in this subnet. This is an expanded field of - // enablePrivateV6Access. If both fields are set, - // privateIpv6GoogleAccess will take priority. This field can be both - // set at resource creation time and updated using patch. + // PrivateIpv6GoogleAccess: This field is for internal use. This field + // can be both set at resource creation time and updated using patch. // // Possible values: // "DISABLE_GOOGLE_ACCESS" - Disable private IPv6 access to/from diff --git a/content/v2.1/content-api.json b/content/v2.1/content-api.json index 15d6cc2e8d7..18b6ef6fbac 100644 --- a/content/v2.1/content-api.json +++ b/content/v2.1/content-api.json @@ -1962,7 +1962,7 @@ ] }, "requestreview": { - "description": "Requests a review for free listings program in a specific region. Important: This method is only whitelisted for selected merchants.", + "description": "Requests a review of free listings in a specific region Important: This method is only whitelisted for selected merchants.", "flatPath": "{merchantId}/freelistingsprogram/requestreview", "httpMethod": "POST", "id": "content.freelistingsprogram.requestreview", @@ -5788,7 +5788,7 @@ ] }, "requestreview": { - "description": "Requests a review for Shopping Ads program in a specific region.", + "description": "Requests a review of Shopping ads in a specific region.", "flatPath": "{merchantId}/shoppingadsprogram/requestreview", "httpMethod": "POST", "id": "content.shoppingadsprogram.requestreview", @@ -5815,7 +5815,7 @@ } } }, - "revision": "20220317", + "revision": "20220325", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { @@ -8142,7 +8142,7 @@ "enumDescriptions": [ "State is unknown.", "Program is not enabled for any country.", - "No offers have been uploaded for any region.", + "No products have been uploaded for any region. Upload products to Merchant Center.", "Program is enabled and offers are uploaded for at least one country." ], "type": "string" @@ -8162,7 +8162,7 @@ "id": "FreeListingsProgramStatusRegionStatus", "properties": { "disapprovalDate": { - "description": "Date your `eligibilityStatus` will become `DISAPPROVED`. Only visible when your `eligibilityStatus` is `WARNING`. In [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DD`.", + "description": "Date by which eligibilityStatus will go from `WARNING` to `DISAPPROVED`. Only visible when your eligibilityStatus is WARNING. In [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DD`.", "type": "string" }, "eligibilityStatus": { @@ -8181,14 +8181,14 @@ "If the account has no issues and review is completed successfully.", "There are one or more issues that needs to be resolved for account to be active for the program. Detailed list of account issues are available in [accountstatuses](https://developers.google.com/shopping-content/reference/rest/v2.1/accountstatuses) API.", "If account has issues but offers are servable. Some of the issue can make account DISAPPROVED after a certain deadline.", - "Account is under review. Deprecated: This state is not created.", + "Account is under review.", "Account is waiting for review to start.", "Program is currently onboarding. Upload valid offers to complete onboarding." ], "type": "string" }, "onboardingIssues": { - "description": "Must be fixed to be eligible for review.", + "description": "Issues that must be fixed to be eligible for review.", "items": { "type": "string" }, @@ -8223,7 +8223,10 @@ "NOT_ENOUGH_OFFERS", "IN_COOLDOWN_PERIOD", "ALREADY_UNDER_REVIEW", - "NO_REVIEW_REQUIRED" + "NO_REVIEW_REQUIRED", + "WILL_BE_REVIEWED_AUTOMATICALLY", + "IS_RETIRED", + "ALREADY_REVIEWED" ], "enumDescriptions": [ "Requesting a review from Google is not possible.", @@ -8231,7 +8234,10 @@ "Not enough offers uploaded for this country.", "Cooldown period applies. Wait until cooldown period ends.", "Account is already under review.", - "No issues available to review." + "No issues available to review.", + "Account will be automatically reviewed at the end of the grace period.", + "Account is retired. Should not appear in MC.", + "Account was already reviewd." ], "type": "string" }, @@ -12416,7 +12422,7 @@ "type": "string" }, "externalSellerId": { - "description": "Used by a marketplace to externally identify a seller.", + "description": "Required for multi-seller accounts. Use this attribute if you're a marketplace uploading products for various sellers to your multi-seller account.", "type": "string" }, "gender": { @@ -13288,7 +13294,7 @@ "type": "array" }, "contentLanguage": { - "description": "Required. The content language used as part of the unique identifier.", + "description": "Required. The content language used as part of the unique identifier. Currently only en value is supported.", "type": "string" }, "couponValueType": { @@ -13513,7 +13519,7 @@ "type": "array" }, "targetCountry": { - "description": "Required. The target country used as part of the unique identifier.", + "description": "Required. The target country used as part of the unique identifier. Currently only US and CA are supported.", "type": "string" } }, @@ -15557,7 +15563,7 @@ "enumDescriptions": [ "State is unknown.", "Program is not enabled for any country.", - "No offers have been uploaded for any region.", + "No products have been uploaded for any region. Upload products to Merchant Center.", "Program is enabled and offers are uploaded for at least one country." ], "type": "string" @@ -15577,7 +15583,7 @@ "id": "ShoppingAdsProgramStatusRegionStatus", "properties": { "disapprovalDate": { - "description": "Date your `eligibilityStatus` will become `DISAPPROVED`. Only visible when your `eligibilityStatus` is `WARNING`. In [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DD`.", + "description": "Date by which eligibilityStatus will go from `WARNING` to `DISAPPROVED`. Only visible when your eligibilityStatus is WARNING. In [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DD`.", "type": "string" }, "eligibilityStatus": { @@ -15596,14 +15602,14 @@ "If the account has no issues and review is completed successfully.", "There are one or more issues that needs to be resolved for account to be active for the program. Detailed list of account issues are available in [accountstatuses](https://developers.google.com/shopping-content/reference/rest/v2.1/accountstatuses) API.", "If account has issues but offers are servable. Some of the issue can make account DISAPPROVED after a certain deadline.", - "Account is under review. Deprecated: This state is not created.", + "Account is under review.", "Account is waiting for review to start.", "Program is currently onboarding. Upload valid offers to complete onboarding." ], "type": "string" }, "onboardingIssues": { - "description": "Must be fixed to be eligible for review.", + "description": "Issues that must be fixed to be eligible for review.", "items": { "type": "string" }, @@ -15638,7 +15644,10 @@ "NOT_ENOUGH_OFFERS", "IN_COOLDOWN_PERIOD", "ALREADY_UNDER_REVIEW", - "NO_REVIEW_REQUIRED" + "NO_REVIEW_REQUIRED", + "WILL_BE_REVIEWED_AUTOMATICALLY", + "IS_RETIRED", + "ALREADY_REVIEWED" ], "enumDescriptions": [ "Requesting a review from Google is not possible.", @@ -15646,7 +15655,10 @@ "Not enough offers uploaded for this country.", "Cooldown period applies. Wait until cooldown period ends.", "Account is already under review.", - "No issues available to review." + "No issues available to review.", + "Account will be automatically reviewed at the end of the grace period.", + "Account is retired. Should not appear in MC.", + "Account was already reviewd." ], "type": "string" }, diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index eebf1d78ee4..5b6ad50e476 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -4481,7 +4481,8 @@ type FreeListingsProgramStatus struct { // Possible values: // "PROGRAM_STATE_UNSPECIFIED" - State is unknown. // "NOT_ENABLED" - Program is not enabled for any country. - // "NO_OFFERS_UPLOADED" - No offers have been uploaded for any region. + // "NO_OFFERS_UPLOADED" - No products have been uploaded for any + // region. Upload products to Merchant Center. // "ENABLED" - Program is enabled and offers are uploaded for at least // one country. GlobalState string `json:"globalState,omitempty"` @@ -4520,9 +4521,9 @@ func (s *FreeListingsProgramStatus) MarshalJSON() ([]byte, error) { // FreeListingsProgramStatusRegionStatus: Status of program and region. type FreeListingsProgramStatusRegionStatus struct { - // DisapprovalDate: Date your `eligibilityStatus` will become - // `DISAPPROVED`. Only visible when your `eligibilityStatus` is - // `WARNING`. In ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601) + // DisapprovalDate: Date by which eligibilityStatus will go from + // `WARNING` to `DISAPPROVED`. Only visible when your eligibilityStatus + // is WARNING. In ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601) // format: `YYYY-MM-DD`. DisapprovalDate string `json:"disapprovalDate,omitempty"` @@ -4540,14 +4541,14 @@ type FreeListingsProgramStatusRegionStatus struct { // ence/rest/v2.1/accountstatuses) API. // "WARNING" - If account has issues but offers are servable. Some of // the issue can make account DISAPPROVED after a certain deadline. - // "UNDER_REVIEW" - Account is under review. Deprecated: This state is - // not created. + // "UNDER_REVIEW" - Account is under review. // "PENDING_REVIEW" - Account is waiting for review to start. // "ONBOARDING" - Program is currently onboarding. Upload valid offers // to complete onboarding. EligibilityStatus string `json:"eligibilityStatus,omitempty"` - // OnboardingIssues: Must be fixed to be eligible for review. + // OnboardingIssues: Issues that must be fixed to be eligible for + // review. OnboardingIssues []string `json:"onboardingIssues,omitempty"` // RegionCodes: The two-letter ISO 3166-1 alpha-2 @@ -4580,6 +4581,10 @@ type FreeListingsProgramStatusRegionStatus struct { // period ends. // "ALREADY_UNDER_REVIEW" - Account is already under review. // "NO_REVIEW_REQUIRED" - No issues available to review. + // "WILL_BE_REVIEWED_AUTOMATICALLY" - Account will be automatically + // reviewed at the end of the grace period. + // "IS_RETIRED" - Account is retired. Should not appear in MC. + // "ALREADY_REVIEWED" - Account was already reviewd. ReviewIneligibilityReason string `json:"reviewIneligibilityReason,omitempty"` // ReviewIneligibilityReasonDescription: Reason a program in a specific @@ -11901,8 +11906,9 @@ type Product struct { // too far in the future. ExpirationDate string `json:"expirationDate,omitempty"` - // ExternalSellerId: Used by a marketplace to externally identify a - // seller. + // ExternalSellerId: Required for multi-seller accounts. Use this + // attribute if you're a marketplace uploading products for various + // sellers to your multi-seller account. ExternalSellerId string `json:"externalSellerId,omitempty"` // Gender: Target gender of the item. @@ -13241,7 +13247,7 @@ type Promotion struct { BrandExclusion []string `json:"brandExclusion,omitempty"` // ContentLanguage: Required. The content language used as part of the - // unique identifier. + // unique identifier. Currently only en value is supported. ContentLanguage string `json:"contentLanguage,omitempty"` // CouponValueType: Required. Coupon value type for the promotion. @@ -13403,7 +13409,7 @@ type Promotion struct { ShippingServiceNames []string `json:"shippingServiceNames,omitempty"` // TargetCountry: Required. The target country used as part of the - // unique identifier. + // unique identifier. Currently only US and CA are supported. TargetCountry string `json:"targetCountry,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -16916,7 +16922,8 @@ type ShoppingAdsProgramStatus struct { // Possible values: // "PROGRAM_STATE_UNSPECIFIED" - State is unknown. // "NOT_ENABLED" - Program is not enabled for any country. - // "NO_OFFERS_UPLOADED" - No offers have been uploaded for any region. + // "NO_OFFERS_UPLOADED" - No products have been uploaded for any + // region. Upload products to Merchant Center. // "ENABLED" - Program is enabled and offers are uploaded for at least // one country. GlobalState string `json:"globalState,omitempty"` @@ -16955,9 +16962,9 @@ func (s *ShoppingAdsProgramStatus) MarshalJSON() ([]byte, error) { // ShoppingAdsProgramStatusRegionStatus: Status of program and region. type ShoppingAdsProgramStatusRegionStatus struct { - // DisapprovalDate: Date your `eligibilityStatus` will become - // `DISAPPROVED`. Only visible when your `eligibilityStatus` is - // `WARNING`. In ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601) + // DisapprovalDate: Date by which eligibilityStatus will go from + // `WARNING` to `DISAPPROVED`. Only visible when your eligibilityStatus + // is WARNING. In ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601) // format: `YYYY-MM-DD`. DisapprovalDate string `json:"disapprovalDate,omitempty"` @@ -16974,14 +16981,14 @@ type ShoppingAdsProgramStatusRegionStatus struct { // ence/rest/v2.1/accountstatuses) API. // "WARNING" - If account has issues but offers are servable. Some of // the issue can make account DISAPPROVED after a certain deadline. - // "UNDER_REVIEW" - Account is under review. Deprecated: This state is - // not created. + // "UNDER_REVIEW" - Account is under review. // "PENDING_REVIEW" - Account is waiting for review to start. // "ONBOARDING" - Program is currently onboarding. Upload valid offers // to complete onboarding. EligibilityStatus string `json:"eligibilityStatus,omitempty"` - // OnboardingIssues: Must be fixed to be eligible for review. + // OnboardingIssues: Issues that must be fixed to be eligible for + // review. OnboardingIssues []string `json:"onboardingIssues,omitempty"` // RegionCodes: The two-letter ISO 3166-1 alpha-2 @@ -17014,6 +17021,10 @@ type ShoppingAdsProgramStatusRegionStatus struct { // period ends. // "ALREADY_UNDER_REVIEW" - Account is already under review. // "NO_REVIEW_REQUIRED" - No issues available to review. + // "WILL_BE_REVIEWED_AUTOMATICALLY" - Account will be automatically + // reviewed at the end of the grace period. + // "IS_RETIRED" - Account is retired. Should not appear in MC. + // "ALREADY_REVIEWED" - Account was already reviewd. ReviewIneligibilityReason string `json:"reviewIneligibilityReason,omitempty"` // ReviewIneligibilityReasonDescription: Reason a program in a specific @@ -26700,9 +26711,9 @@ type FreelistingsprogramRequestreviewCall struct { header_ http.Header } -// Requestreview: Requests a review for free listings program in a -// specific region. Important: This method is only whitelisted for -// selected merchants. +// Requestreview: Requests a review of free listings in a specific +// region Important: This method is only whitelisted for selected +// merchants. // // - merchantId: The ID of the account. func (r *FreelistingsprogramService) Requestreview(merchantId int64, requestreviewfreelistingsrequest *RequestReviewFreeListingsRequest) *FreelistingsprogramRequestreviewCall { @@ -26778,7 +26789,7 @@ func (c *FreelistingsprogramRequestreviewCall) Do(opts ...googleapi.CallOption) } return nil // { - // "description": "Requests a review for free listings program in a specific region. Important: This method is only whitelisted for selected merchants.", + // "description": "Requests a review of free listings in a specific region Important: This method is only whitelisted for selected merchants.", // "flatPath": "{merchantId}/freelistingsprogram/requestreview", // "httpMethod": "POST", // "id": "content.freelistingsprogram.requestreview", @@ -44037,8 +44048,8 @@ type ShoppingadsprogramRequestreviewCall struct { header_ http.Header } -// Requestreview: Requests a review for Shopping Ads program in a -// specific region. +// Requestreview: Requests a review of Shopping ads in a specific +// region. // // - merchantId: The ID of the account. func (r *ShoppingadsprogramService) Requestreview(merchantId int64, requestreviewshoppingadsrequest *RequestReviewShoppingAdsRequest) *ShoppingadsprogramRequestreviewCall { @@ -44114,7 +44125,7 @@ func (c *ShoppingadsprogramRequestreviewCall) Do(opts ...googleapi.CallOption) e } return nil // { - // "description": "Requests a review for Shopping Ads program in a specific region.", + // "description": "Requests a review of Shopping ads in a specific region.", // "flatPath": "{merchantId}/shoppingadsprogram/requestreview", // "httpMethod": "POST", // "id": "content.shoppingadsprogram.requestreview", diff --git a/datacatalog/v1/datacatalog-api.json b/datacatalog/v1/datacatalog-api.json index 54d63814dd0..c2d4f87e2ba 100644 --- a/datacatalog/v1/datacatalog-api.json +++ b/datacatalog/v1/datacatalog-api.json @@ -1953,7 +1953,7 @@ } } }, - "revision": "20220224", + "revision": "20220321", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -1979,7 +1979,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/datacatalog/v1/datacatalog-gen.go b/datacatalog/v1/datacatalog-gen.go index 57fa90732fb..da6d91ac9d7 100644 --- a/datacatalog/v1/datacatalog-gen.go +++ b/datacatalog/v1/datacatalog-gen.go @@ -367,8 +367,7 @@ func (s *Binding) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/datacatalog/v1beta1/datacatalog-api.json b/datacatalog/v1beta1/datacatalog-api.json index 66bf5ea390e..4781a873b23 100644 --- a/datacatalog/v1beta1/datacatalog-api.json +++ b/datacatalog/v1beta1/datacatalog-api.json @@ -1808,7 +1808,7 @@ } } }, - "revision": "20211230", + "revision": "20220321", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -1834,7 +1834,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/datacatalog/v1beta1/datacatalog-gen.go b/datacatalog/v1beta1/datacatalog-gen.go index 53f06866301..dff36ecfa62 100644 --- a/datacatalog/v1beta1/datacatalog-gen.go +++ b/datacatalog/v1beta1/datacatalog-gen.go @@ -367,8 +367,7 @@ func (s *Binding) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index 2c88d94fa27..b693f3f3aa3 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -1049,7 +1049,7 @@ } } }, - "revision": "20220216", + "revision": "20220321", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AuditConfig": { @@ -1436,7 +1436,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index 3318b39a1ed..d5a9885bbb2 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -730,8 +730,7 @@ func (s *DumpFlags) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/dataproc/v1/dataproc-api.json b/dataproc/v1/dataproc-api.json index 65f85a04810..90746f11491 100644 --- a/dataproc/v1/dataproc-api.json +++ b/dataproc/v1/dataproc-api.json @@ -2444,7 +2444,7 @@ } } }, - "revision": "20220201", + "revision": "20220324", "rootUrl": "https://dataproc.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3167,7 +3167,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for Empty is empty JSON object {}.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } ", "id": "Empty", "properties": {}, "type": "object" diff --git a/dataproc/v1/dataproc-gen.go b/dataproc/v1/dataproc-gen.go index 22efc4224a4..4acfb81cb8f 100644 --- a/dataproc/v1/dataproc-gen.go +++ b/dataproc/v1/dataproc-gen.go @@ -1375,8 +1375,7 @@ func (s *DiskConfig) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for Empty is empty -// JSON object {}. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/datastream/v1/datastream-api.json b/datastream/v1/datastream-api.json index 9c0dca14b1b..eb1b95b1239 100644 --- a/datastream/v1/datastream-api.json +++ b/datastream/v1/datastream-api.json @@ -1217,7 +1217,7 @@ } } }, - "revision": "20220302", + "revision": "20220316", "rootUrl": "https://datastream.googleapis.com/", "schemas": { "AvroFileFormat": { @@ -2110,6 +2110,12 @@ }, "type": "object" }, + "OracleDropLargeObjects": { + "description": "Configuration to drop large object values.", + "id": "OracleDropLargeObjects", + "properties": {}, + "type": "object" + }, "OracleObjectIdentifier": { "description": "Oracle data source object identifier.", "id": "OracleObjectIdentifier", @@ -2196,6 +2202,10 @@ "description": "Oracle data source configuration", "id": "OracleSourceConfig", "properties": { + "dropLargeObjects": { + "$ref": "OracleDropLargeObjects", + "description": "Drop large object values." + }, "excludeObjects": { "$ref": "OracleRdbms", "description": "Oracle objects to exclude from the stream." diff --git a/datastream/v1/datastream-gen.go b/datastream/v1/datastream-gen.go index 264d8d00acb..f14974ee72a 100644 --- a/datastream/v1/datastream-gen.go +++ b/datastream/v1/datastream-gen.go @@ -1589,6 +1589,10 @@ func (s *OracleColumn) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// OracleDropLargeObjects: Configuration to drop large object values. +type OracleDropLargeObjects struct { +} + // OracleObjectIdentifier: Oracle data source object identifier. type OracleObjectIdentifier struct { // Schema: Required. The schema name. @@ -1726,13 +1730,16 @@ func (s *OracleSchema) MarshalJSON() ([]byte, error) { // OracleSourceConfig: Oracle data source configuration type OracleSourceConfig struct { + // DropLargeObjects: Drop large object values. + DropLargeObjects *OracleDropLargeObjects `json:"dropLargeObjects,omitempty"` + // ExcludeObjects: Oracle objects to exclude from the stream. ExcludeObjects *OracleRdbms `json:"excludeObjects,omitempty"` // IncludeObjects: Oracle objects to include in the stream. IncludeObjects *OracleRdbms `json:"includeObjects,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExcludeObjects") to + // ForceSendFields is a list of field names (e.g. "DropLargeObjects") 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 @@ -1740,7 +1747,7 @@ type OracleSourceConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ExcludeObjects") to + // NullFields is a list of field names (e.g. "DropLargeObjects") 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 diff --git a/datastream/v1alpha1/datastream-api.json b/datastream/v1alpha1/datastream-api.json index 120633b3ace..83cd1e9c100 100644 --- a/datastream/v1alpha1/datastream-api.json +++ b/datastream/v1alpha1/datastream-api.json @@ -1196,7 +1196,7 @@ } } }, - "revision": "20220112", + "revision": "20220316", "rootUrl": "https://datastream.googleapis.com/", "schemas": { "AvroFileFormat": { @@ -2115,6 +2115,12 @@ }, "type": "object" }, + "OracleDropLargeObjects": { + "description": "Configuration to drop large object values.", + "id": "OracleDropLargeObjects", + "properties": {}, + "type": "object" + }, "OracleObjectIdentifier": { "description": "Oracle data source object identifier.", "id": "OracleObjectIdentifier", @@ -2205,6 +2211,10 @@ "$ref": "OracleRdbms", "description": "Oracle objects to include in the stream." }, + "dropLargeObjects": { + "$ref": "OracleDropLargeObjects", + "description": "Drop large object values." + }, "rejectlist": { "$ref": "OracleRdbms", "description": "Oracle objects to exclude from the stream." diff --git a/datastream/v1alpha1/datastream-gen.go b/datastream/v1alpha1/datastream-gen.go index 0bec3c19f1c..77efe2f43d2 100644 --- a/datastream/v1alpha1/datastream-gen.go +++ b/datastream/v1alpha1/datastream-gen.go @@ -1595,6 +1595,10 @@ func (s *OracleColumn) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// OracleDropLargeObjects: Configuration to drop large object values. +type OracleDropLargeObjects struct { +} + // OracleObjectIdentifier: Oracle data source object identifier. type OracleObjectIdentifier struct { // Schema: Required. The schema name. @@ -1735,6 +1739,9 @@ type OracleSourceConfig struct { // Allowlist: Oracle objects to include in the stream. Allowlist *OracleRdbms `json:"allowlist,omitempty"` + // DropLargeObjects: Drop large object values. + DropLargeObjects *OracleDropLargeObjects `json:"dropLargeObjects,omitempty"` + // Rejectlist: Oracle objects to exclude from the stream. Rejectlist *OracleRdbms `json:"rejectlist,omitempty"` diff --git a/displayvideo/v1/displayvideo-api.json b/displayvideo/v1/displayvideo-api.json index 9979abb2041..ece0639771a 100644 --- a/displayvideo/v1/displayvideo-api.json +++ b/displayvideo/v1/displayvideo-api.json @@ -7844,7 +7844,7 @@ } } }, - "revision": "20220317", + "revision": "20220324", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -8496,6 +8496,14 @@ "$ref": "ChannelAssignedTargetingOptionDetails", "description": "Channel details. This field will be populated when the targeting_type is `TARGETING_TYPE_CHANNEL`." }, + "contentDurationDetails": { + "$ref": "ContentDurationAssignedTargetingOptionDetails", + "description": "Content duration details. This field will be populated when the targeting_type is `TARGETING_TYPE_CONTENT_DURATION`." + }, + "contentGenreDetails": { + "$ref": "ContentGenreAssignedTargetingOptionDetails", + "description": "Content genre details. This field will be populated when the targeting_type is `TARGETING_TYPE_CONTENT_GENRE`." + }, "contentInstreamPositionDetails": { "$ref": "ContentInstreamPositionAssignedTargetingOptionDetails", "description": "Content instream position details. This field will be populated when the targeting_type is `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`." @@ -8504,6 +8512,10 @@ "$ref": "ContentOutstreamPositionAssignedTargetingOptionDetails", "description": "Content outstream position details. This field will be populated when the targeting_type is `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`." }, + "contentStreamTypeDetails": { + "$ref": "ContentStreamTypeAssignedTargetingOptionDetails", + "description": "Content duration details. This field will be populated when the TargetingType is `TARGETING_TYPE_CONTENT_STREAM_TYPE`." + }, "dayAndTimeDetails": { "$ref": "DayAndTimeAssignedTargetingOptionDetails", "description": "Day and time details. This field will be populated when the targeting_type is `TARGETING_TYPE_DAY_AND_TIME`." @@ -10068,6 +10080,106 @@ }, "type": "object" }, + "ContentDurationAssignedTargetingOptionDetails": { + "description": "Details for content duration assigned targeting option. This will be populated in the content_duration_details field when targeting_type is `TARGETING_TYPE_CONTENT_DURATION`. Explicitly targeting all options is not supported. Remove all content duration targeting options to achieve this effect.", + "id": "ContentDurationAssignedTargetingOptionDetails", + "properties": { + "contentDuration": { + "description": "Output only. The content duration.", + "enum": [ + "CONTENT_DURATION_UNSPECIFIED", + "CONTENT_DURATION_UNKNOWN", + "CONTENT_DURATION_0_TO_1_MIN", + "CONTENT_DURATION_1_TO_5_MIN", + "CONTENT_DURATION_5_TO_15_MIN", + "CONTENT_DURATION_15_TO_30_MIN", + "CONTENT_DURATION_30_TO_60_MIN", + "CONTENT_DURATION_OVER_60_MIN" + ], + "enumDescriptions": [ + "Content duration is not specified in this version. This enum is a place holder for a default value and does not represent a real content duration.", + "The content duration is unknown.", + "Content is 0-1 minute long.", + "Content is 1-5 minutes long.", + "Content is 5-15 minutes long.", + "Content is 15-30 minutes long.", + "Content is 30-60 minutes long.", + "Content is over 60 minutes long." + ], + "readOnly": true, + "type": "string" + }, + "targetingOptionId": { + "description": "Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_CONTENT_DURATION`.", + "type": "string" + } + }, + "type": "object" + }, + "ContentDurationTargetingOptionDetails": { + "description": "Represents a targetable content duration. This will be populated in the content_duration_details field when targeting_type is `TARGETING_TYPE_CONTENT_DURATION`.", + "id": "ContentDurationTargetingOptionDetails", + "properties": { + "contentDuration": { + "description": "Output only. The content duration.", + "enum": [ + "CONTENT_DURATION_UNSPECIFIED", + "CONTENT_DURATION_UNKNOWN", + "CONTENT_DURATION_0_TO_1_MIN", + "CONTENT_DURATION_1_TO_5_MIN", + "CONTENT_DURATION_5_TO_15_MIN", + "CONTENT_DURATION_15_TO_30_MIN", + "CONTENT_DURATION_30_TO_60_MIN", + "CONTENT_DURATION_OVER_60_MIN" + ], + "enumDescriptions": [ + "Content duration is not specified in this version. This enum is a place holder for a default value and does not represent a real content duration.", + "The content duration is unknown.", + "Content is 0-1 minute long.", + "Content is 1-5 minutes long.", + "Content is 5-15 minutes long.", + "Content is 15-30 minutes long.", + "Content is 30-60 minutes long.", + "Content is over 60 minutes long." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "ContentGenreAssignedTargetingOptionDetails": { + "description": "Details for content genre assigned targeting option. This will be populated in the content_genre_details field when targeting_type is `TARGETING_TYPE_CONTENT_GENRE`. Explicitly targeting all options is not supported. Remove all content genre targeting options to achieve this effect.", + "id": "ContentGenreAssignedTargetingOptionDetails", + "properties": { + "displayName": { + "description": "Output only. The display name of the content genre.", + "readOnly": true, + "type": "string" + }, + "negative": { + "description": "Indicates if this option is being negatively targeted.", + "type": "boolean" + }, + "targetingOptionId": { + "description": "Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_CONTENT_GENRE`.", + "type": "string" + } + }, + "type": "object" + }, + "ContentGenreTargetingOptionDetails": { + "description": "Represents a targetable content genre. This will be populated in the content_genre_details field when targeting_type is `TARGETING_TYPE_CONTENT_GENRE`.", + "id": "ContentGenreTargetingOptionDetails", + "properties": { + "displayName": { + "description": "Output only. The display name of the content genre", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ContentInstreamPositionAssignedTargetingOptionDetails": { "description": "Assigned content instream position targeting option details. This will be populated in the content_instream_position_details field when targeting_type is `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`.", "id": "ContentInstreamPositionAssignedTargetingOptionDetails", @@ -10216,6 +10328,54 @@ }, "type": "object" }, + "ContentStreamTypeAssignedTargetingOptionDetails": { + "description": "Details for content stream type assigned targeting option. This will be populated in the content_stream_type_details field when targeting_type is `TARGETING_TYPE_CONTENT_STREAM_TYPE`. Explicitly targeting all options is not supported. Remove all content stream type targeting options to achieve this effect.", + "id": "ContentStreamTypeAssignedTargetingOptionDetails", + "properties": { + "contentStreamType": { + "description": "Output only. The content stream type.", + "enum": [ + "CONTENT_STREAM_TYPE_UNSPECIFIED", + "CONTENT_LIVE_STREAM", + "CONTENT_ON_DEMAND" + ], + "enumDescriptions": [ + "Content stream type is not specified in this version. This enum is a place holder for a default value and does not represent a real content stream type.", + "The content is being live-streamed.", + "The content is viewed on-demand." + ], + "readOnly": true, + "type": "string" + }, + "targetingOptionId": { + "description": "Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_CONTENT_STREAM_TYPE`.", + "type": "string" + } + }, + "type": "object" + }, + "ContentStreamTypeTargetingOptionDetails": { + "description": "Represents a targetable content stream type. This will be populated in the content_stream_type_details field when targeting_type is `TARGETING_TYPE_CONTENT_STREAM_TYPE`.", + "id": "ContentStreamTypeTargetingOptionDetails", + "properties": { + "contentStreamType": { + "description": "Output only. The content stream type.", + "enum": [ + "CONTENT_STREAM_TYPE_UNSPECIFIED", + "CONTENT_LIVE_STREAM", + "CONTENT_ON_DEMAND" + ], + "enumDescriptions": [ + "Content stream type is not specified in this version. This enum is a place holder for a default value and does not represent a real content stream type.", + "The content is being live-streamed.", + "The content is viewed on-demand." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ConversionCountingConfig": { "description": "Settings that control how conversions are counted. All post-click conversions will be counted. A percentage value can be set for post-view conversions counting.", "id": "ConversionCountingConfig", @@ -11826,7 +11986,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" @@ -13258,6 +13418,22 @@ "$ref": "BiddingStrategy", "description": "The bidding strategy of the insertion order. By default, fixed_bid is set." }, + "billableOutcome": { + "description": "Immutable. The billable outcome of the insertion order.", + "enum": [ + "BILLABLE_OUTCOME_UNSPECIFIED", + "BILLABLE_OUTCOME_PAY_PER_IMPRESSION", + "BILLABLE_OUTCOME_PAY_PER_CLICK", + "BILLABLE_OUTCOME_PAY_PER_VIEWABLE_IMPRESSION" + ], + "enumDescriptions": [ + "Unspecified billable outcome.", + "Pay per impressions.", + "Pay per click.", + "Pay per active view." + ], + "type": "string" + }, "budget": { "$ref": "InsertionOrderBudget", "description": "Required. The budget allocation settings of the insertion order." @@ -16944,6 +17120,14 @@ "$ref": "CategoryTargetingOptionDetails", "description": "Category resource details." }, + "contentDurationDetails": { + "$ref": "ContentDurationTargetingOptionDetails", + "description": "Content duration resource details." + }, + "contentGenreDetails": { + "$ref": "ContentGenreTargetingOptionDetails", + "description": "Content genre resource details." + }, "contentInstreamPositionDetails": { "$ref": "ContentInstreamPositionTargetingOptionDetails", "description": "Content instream position details." @@ -16952,6 +17136,10 @@ "$ref": "ContentOutstreamPositionTargetingOptionDetails", "description": "Content outstream position details." }, + "contentStreamTypeDetails": { + "$ref": "ContentStreamTypeTargetingOptionDetails", + "description": "Content stream type resource details." + }, "deviceMakeModelDetails": { "$ref": "DeviceMakeModelTargetingOptionDetails", "description": "Device make and model resource details." diff --git a/displayvideo/v1/displayvideo-gen.go b/displayvideo/v1/displayvideo-gen.go index 90201ca85e0..03736fd5106 100644 --- a/displayvideo/v1/displayvideo-gen.go +++ b/displayvideo/v1/displayvideo-gen.go @@ -1710,6 +1710,15 @@ type AssignedTargetingOption struct { // the targeting_type is `TARGETING_TYPE_CHANNEL`. ChannelDetails *ChannelAssignedTargetingOptionDetails `json:"channelDetails,omitempty"` + // ContentDurationDetails: Content duration details. This field will be + // populated when the targeting_type is + // `TARGETING_TYPE_CONTENT_DURATION`. + ContentDurationDetails *ContentDurationAssignedTargetingOptionDetails `json:"contentDurationDetails,omitempty"` + + // ContentGenreDetails: Content genre details. This field will be + // populated when the targeting_type is `TARGETING_TYPE_CONTENT_GENRE`. + ContentGenreDetails *ContentGenreAssignedTargetingOptionDetails `json:"contentGenreDetails,omitempty"` + // ContentInstreamPositionDetails: Content instream position details. // This field will be populated when the targeting_type is // `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`. @@ -1720,6 +1729,11 @@ type AssignedTargetingOption struct { // `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`. ContentOutstreamPositionDetails *ContentOutstreamPositionAssignedTargetingOptionDetails `json:"contentOutstreamPositionDetails,omitempty"` + // ContentStreamTypeDetails: Content duration details. This field will + // be populated when the TargetingType is + // `TARGETING_TYPE_CONTENT_STREAM_TYPE`. + ContentStreamTypeDetails *ContentStreamTypeAssignedTargetingOptionDetails `json:"contentStreamTypeDetails,omitempty"` + // DayAndTimeDetails: Day and time details. This field will be populated // when the targeting_type is `TARGETING_TYPE_DAY_AND_TIME`. DayAndTimeDetails *DayAndTimeAssignedTargetingOptionDetails `json:"dayAndTimeDetails,omitempty"` @@ -4384,6 +4398,170 @@ func (s *ContactInfoList) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ContentDurationAssignedTargetingOptionDetails: Details for content +// duration assigned targeting option. This will be populated in the +// content_duration_details field when targeting_type is +// `TARGETING_TYPE_CONTENT_DURATION`. Explicitly targeting all options +// is not supported. Remove all content duration targeting options to +// achieve this effect. +type ContentDurationAssignedTargetingOptionDetails struct { + // ContentDuration: Output only. The content duration. + // + // Possible values: + // "CONTENT_DURATION_UNSPECIFIED" - Content duration is not specified + // in this version. This enum is a place holder for a default value and + // does not represent a real content duration. + // "CONTENT_DURATION_UNKNOWN" - The content duration is unknown. + // "CONTENT_DURATION_0_TO_1_MIN" - Content is 0-1 minute long. + // "CONTENT_DURATION_1_TO_5_MIN" - Content is 1-5 minutes long. + // "CONTENT_DURATION_5_TO_15_MIN" - Content is 5-15 minutes long. + // "CONTENT_DURATION_15_TO_30_MIN" - Content is 15-30 minutes long. + // "CONTENT_DURATION_30_TO_60_MIN" - Content is 30-60 minutes long. + // "CONTENT_DURATION_OVER_60_MIN" - Content is over 60 minutes long. + ContentDuration string `json:"contentDuration,omitempty"` + + // TargetingOptionId: Required. The targeting_option_id field when + // targeting_type is `TARGETING_TYPE_CONTENT_DURATION`. + TargetingOptionId string `json:"targetingOptionId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ContentDuration") 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. "ContentDuration") 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 *ContentDurationAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { + type NoMethod ContentDurationAssignedTargetingOptionDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ContentDurationTargetingOptionDetails: Represents a targetable +// content duration. This will be populated in the +// content_duration_details field when targeting_type is +// `TARGETING_TYPE_CONTENT_DURATION`. +type ContentDurationTargetingOptionDetails struct { + // ContentDuration: Output only. The content duration. + // + // Possible values: + // "CONTENT_DURATION_UNSPECIFIED" - Content duration is not specified + // in this version. This enum is a place holder for a default value and + // does not represent a real content duration. + // "CONTENT_DURATION_UNKNOWN" - The content duration is unknown. + // "CONTENT_DURATION_0_TO_1_MIN" - Content is 0-1 minute long. + // "CONTENT_DURATION_1_TO_5_MIN" - Content is 1-5 minutes long. + // "CONTENT_DURATION_5_TO_15_MIN" - Content is 5-15 minutes long. + // "CONTENT_DURATION_15_TO_30_MIN" - Content is 15-30 minutes long. + // "CONTENT_DURATION_30_TO_60_MIN" - Content is 30-60 minutes long. + // "CONTENT_DURATION_OVER_60_MIN" - Content is over 60 minutes long. + ContentDuration string `json:"contentDuration,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ContentDuration") 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. "ContentDuration") 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 *ContentDurationTargetingOptionDetails) MarshalJSON() ([]byte, error) { + type NoMethod ContentDurationTargetingOptionDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ContentGenreAssignedTargetingOptionDetails: Details for content genre +// assigned targeting option. This will be populated in the +// content_genre_details field when targeting_type is +// `TARGETING_TYPE_CONTENT_GENRE`. Explicitly targeting all options is +// not supported. Remove all content genre targeting options to achieve +// this effect. +type ContentGenreAssignedTargetingOptionDetails struct { + // DisplayName: Output only. The display name of the content genre. + DisplayName string `json:"displayName,omitempty"` + + // Negative: Indicates if this option is being negatively targeted. + Negative bool `json:"negative,omitempty"` + + // TargetingOptionId: Required. The targeting_option_id field when + // targeting_type is `TARGETING_TYPE_CONTENT_GENRE`. + TargetingOptionId string `json:"targetingOptionId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") 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. "DisplayName") 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 *ContentGenreAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { + type NoMethod ContentGenreAssignedTargetingOptionDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ContentGenreTargetingOptionDetails: Represents a targetable content +// genre. This will be populated in the content_genre_details field when +// targeting_type is `TARGETING_TYPE_CONTENT_GENRE`. +type ContentGenreTargetingOptionDetails struct { + // DisplayName: Output only. The display name of the content genre + DisplayName string `json:"displayName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") 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. "DisplayName") 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 *ContentGenreTargetingOptionDetails) MarshalJSON() ([]byte, error) { + type NoMethod ContentGenreTargetingOptionDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ContentInstreamPositionAssignedTargetingOptionDetails: Assigned // content instream position targeting option details. This will be // populated in the content_instream_position_details field when @@ -4623,6 +4801,90 @@ func (s *ContentOutstreamPositionTargetingOptionDetails) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ContentStreamTypeAssignedTargetingOptionDetails: Details for content +// stream type assigned targeting option. This will be populated in the +// content_stream_type_details field when targeting_type is +// `TARGETING_TYPE_CONTENT_STREAM_TYPE`. Explicitly targeting all +// options is not supported. Remove all content stream type targeting +// options to achieve this effect. +type ContentStreamTypeAssignedTargetingOptionDetails struct { + // ContentStreamType: Output only. The content stream type. + // + // Possible values: + // "CONTENT_STREAM_TYPE_UNSPECIFIED" - Content stream type is not + // specified in this version. This enum is a place holder for a default + // value and does not represent a real content stream type. + // "CONTENT_LIVE_STREAM" - The content is being live-streamed. + // "CONTENT_ON_DEMAND" - The content is viewed on-demand. + ContentStreamType string `json:"contentStreamType,omitempty"` + + // TargetingOptionId: Required. The targeting_option_id field when + // targeting_type is `TARGETING_TYPE_CONTENT_STREAM_TYPE`. + TargetingOptionId string `json:"targetingOptionId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ContentStreamType") + // 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. "ContentStreamType") 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 *ContentStreamTypeAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { + type NoMethod ContentStreamTypeAssignedTargetingOptionDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ContentStreamTypeTargetingOptionDetails: Represents a targetable +// content stream type. This will be populated in the +// content_stream_type_details field when targeting_type is +// `TARGETING_TYPE_CONTENT_STREAM_TYPE`. +type ContentStreamTypeTargetingOptionDetails struct { + // ContentStreamType: Output only. The content stream type. + // + // Possible values: + // "CONTENT_STREAM_TYPE_UNSPECIFIED" - Content stream type is not + // specified in this version. This enum is a place holder for a default + // value and does not represent a real content stream type. + // "CONTENT_LIVE_STREAM" - The content is being live-streamed. + // "CONTENT_ON_DEMAND" - The content is viewed on-demand. + ContentStreamType string `json:"contentStreamType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ContentStreamType") + // 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. "ContentStreamType") 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 *ContentStreamTypeTargetingOptionDetails) MarshalJSON() ([]byte, error) { + type NoMethod ContentStreamTypeTargetingOptionDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ConversionCountingConfig: Settings that control how conversions are // counted. All post-click conversions will be counted. A percentage // value can be set for post-view conversions counting. @@ -6852,8 +7114,7 @@ func (s *EditCustomerMatchMembersResponse) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. @@ -8506,6 +8767,17 @@ type InsertionOrder struct { // fixed_bid is set. BidStrategy *BiddingStrategy `json:"bidStrategy,omitempty"` + // BillableOutcome: Immutable. The billable outcome of the insertion + // order. + // + // Possible values: + // "BILLABLE_OUTCOME_UNSPECIFIED" - Unspecified billable outcome. + // "BILLABLE_OUTCOME_PAY_PER_IMPRESSION" - Pay per impressions. + // "BILLABLE_OUTCOME_PAY_PER_CLICK" - Pay per click. + // "BILLABLE_OUTCOME_PAY_PER_VIEWABLE_IMPRESSION" - Pay per active + // view. + BillableOutcome string `json:"billableOutcome,omitempty"` + // Budget: Required. The budget allocation settings of the insertion // order. Budget *InsertionOrderBudget `json:"budget,omitempty"` @@ -14262,12 +14534,21 @@ type TargetingOption struct { // CategoryDetails: Category resource details. CategoryDetails *CategoryTargetingOptionDetails `json:"categoryDetails,omitempty"` + // ContentDurationDetails: Content duration resource details. + ContentDurationDetails *ContentDurationTargetingOptionDetails `json:"contentDurationDetails,omitempty"` + + // ContentGenreDetails: Content genre resource details. + ContentGenreDetails *ContentGenreTargetingOptionDetails `json:"contentGenreDetails,omitempty"` + // ContentInstreamPositionDetails: Content instream position details. ContentInstreamPositionDetails *ContentInstreamPositionTargetingOptionDetails `json:"contentInstreamPositionDetails,omitempty"` // ContentOutstreamPositionDetails: Content outstream position details. ContentOutstreamPositionDetails *ContentOutstreamPositionTargetingOptionDetails `json:"contentOutstreamPositionDetails,omitempty"` + // ContentStreamTypeDetails: Content stream type resource details. + ContentStreamTypeDetails *ContentStreamTypeTargetingOptionDetails `json:"contentStreamTypeDetails,omitempty"` + // DeviceMakeModelDetails: Device make and model resource details. DeviceMakeModelDetails *DeviceMakeModelTargetingOptionDetails `json:"deviceMakeModelDetails,omitempty"` diff --git a/docs/v1/docs-api.json b/docs/v1/docs-api.json index 28c2e679a70..0c395651a58 100644 --- a/docs/v1/docs-api.json +++ b/docs/v1/docs-api.json @@ -216,7 +216,7 @@ } } }, - "revision": "20210707", + "revision": "20220325", "rootUrl": "https://docs.googleapis.com/", "schemas": { "AutoText": { @@ -424,7 +424,7 @@ "type": "object" }, "CreateFooterRequest": { - "description": "Creates a Footer. The new footer is applied to the SectionStyle at the location of the SectionBreak if specificed, otherwise it is applied to the DocumentStyle. If a footer of the specified type already exists, a 400 bad request error is returned.", + "description": "Creates a Footer. The new footer is applied to the SectionStyle at the location of the SectionBreak if specified, otherwise it is applied to the DocumentStyle. If a footer of the specified type already exists, a 400 bad request error is returned.", "id": "CreateFooterRequest", "properties": { "sectionBreakLocation": { @@ -484,7 +484,7 @@ "type": "object" }, "CreateHeaderRequest": { - "description": "Creates a Header. The new header is applied to the SectionStyle at the location of the SectionBreak if specificed, otherwise it is applied to the DocumentStyle. If a header of the specified type already exists, a 400 bad request error is returned.", + "description": "Creates a Header. The new header is applied to the SectionStyle at the location of the SectionBreak if specified, otherwise it is applied to the DocumentStyle. If a header of the specified type already exists, a 400 bad request error is returned.", "id": "CreateHeaderRequest", "properties": { "sectionBreakLocation": { @@ -839,7 +839,7 @@ "type": "object" }, "revisionId": { - "description": "Output only. The revision ID of the document. Can be used in update requests to specify which revision of a document to apply updates to and how the request should behave if the document has been edited since that revision. Only populated if the user has edit access to the document. The format of the revision ID may change over time, so it should be treated opaquely. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the document has not changed. Conversely, a changed ID (for the same document and user) usually means the document has been updated; however, a changed ID can also be due to internal factors such as ID format changes.", + "description": "Output only. The revision ID of the document. Can be used in update requests to specify which revision of a document to apply updates to and how the request should behave if the document has been edited since that revision. Only populated if the user has edit access to the document. The revision ID is not a sequential number but an opaque string. The format of the revision ID might change over time. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the document has not changed. Conversely, a changed ID (for the same document and user) usually means the document has been updated. However, a changed ID can also be due to internal factors such as ID format changes.", "type": "string" }, "suggestedDocumentStyleChanges": { @@ -4288,11 +4288,11 @@ "id": "WriteControl", "properties": { "requiredRevisionId": { - "description": "The revision ID of the document that the write request will be applied to. If this is not the latest revision of the document, the request will not be processed and will return a 400 bad request error. When a required revision ID is returned in a response, it indicates the revision ID of the document after the request was applied.", + "description": "The optional revision ID of the document the write request is applied to. If this is not the latest revision of the document, the request is not processed and returns a 400 bad request error. When a required revision ID is returned in a response, it indicates the revision ID of the document after the request was applied.", "type": "string" }, "targetRevisionId": { - "description": "The target revision ID of the document that the write request will be applied to. If collaborator changes have occurred after the document was read using the API, the changes produced by this write request will be transformed against the collaborator changes. This results in a new revision of the document which incorporates both the changes in the request and the collaborator changes, and the Docs server will resolve conflicting changes. When using `target_revision_id`, the API client can be thought of as another collaborator of the document. The target revision ID may only be used to write to recent versions of a document. If the target revision is too far behind the latest revision, the request will not be processed and will return a 400 bad request error and the request should be retried after reading the latest version of the document. In most cases a `revision_id` will remain valid for use as a target revision for several minutes after it is read, but for frequently-edited documents this window may be shorter.", + "description": "The optional target revision ID of the document the write request is applied to. If collaborator changes have occurred after the document was read using the API, the changes produced by this write request are applied against the collaborator changes. This results in a new revision of the document that incorporates both the collaborator changes and the changes in the request, with the Docs server resolving conflicting changes. When using target revision ID, the API client can be thought of as another collaborator of the document. The target revision ID can only be used to write to recent versions of a document. If the target revision is too far behind the latest revision, the request is not processed and returns a 400 bad request error. The request should be tried again after retrieving the latest version of the document. Usually a revision ID remains valid for use as a target revision for several minutes after it's read, but for frequently edited documents this window might be shorter.", "type": "string" } }, diff --git a/docs/v1/docs-gen.go b/docs/v1/docs-gen.go index 61009670a20..0cb0e2ff051 100644 --- a/docs/v1/docs-gen.go +++ b/docs/v1/docs-gen.go @@ -534,7 +534,7 @@ func (s *ColumnBreak) MarshalJSON() ([]byte, error) { } // CreateFooterRequest: Creates a Footer. The new footer is applied to -// the SectionStyle at the location of the SectionBreak if specificed, +// the SectionStyle at the location of the SectionBreak if specified, // otherwise it is applied to the DocumentStyle. If a footer of the // specified type already exists, a 400 bad request error is returned. type CreateFooterRequest struct { @@ -678,7 +678,7 @@ func (s *CreateFootnoteResponse) MarshalJSON() ([]byte, error) { } // CreateHeaderRequest: Creates a Header. The new header is applied to -// the SectionStyle at the location of the SectionBreak if specificed, +// the SectionStyle at the location of the SectionBreak if specified, // otherwise it is applied to the DocumentStyle. If a header of the // specified type already exists, a 400 bad request error is returned. type CreateHeaderRequest struct { @@ -1383,14 +1383,14 @@ type Document struct { // in update requests to specify which revision of a document to apply // updates to and how the request should behave if the document has been // edited since that revision. Only populated if the user has edit - // access to the document. The format of the revision ID may change over - // time, so it should be treated opaquely. A returned revision ID is - // only guaranteed to be valid for 24 hours after it has been returned - // and cannot be shared across users. If the revision ID is unchanged - // between calls, then the document has not changed. Conversely, a - // changed ID (for the same document and user) usually means the - // document has been updated; however, a changed ID can also be due to - // internal factors such as ID format changes. + // access to the document. The revision ID is not a sequential number + // but an opaque string. The format of the revision ID might change over + // time. A returned revision ID is only guaranteed to be valid for 24 + // hours after it has been returned and cannot be shared across users. + // If the revision ID is unchanged between calls, then the document has + // not changed. Conversely, a changed ID (for the same document and + // user) usually means the document has been updated. However, a changed + // ID can also be due to internal factors such as ID format changes. RevisionId string `json:"revisionId,omitempty"` // SuggestedDocumentStyleChanges: Output only. The suggested changes to @@ -7104,31 +7104,29 @@ func (s *WeightedFontFamily) MarshalJSON() ([]byte, error) { // WriteControl: Provides control over how write requests are executed. type WriteControl struct { - // RequiredRevisionId: The revision ID of the document that the write - // request will be applied to. If this is not the latest revision of the - // document, the request will not be processed and will return a 400 bad + // RequiredRevisionId: The optional revision ID of the document the + // write request is applied to. If this is not the latest revision of + // the document, the request is not processed and returns a 400 bad // request error. When a required revision ID is returned in a response, // it indicates the revision ID of the document after the request was // applied. RequiredRevisionId string `json:"requiredRevisionId,omitempty"` - // TargetRevisionId: The target revision ID of the document that the - // write request will be applied to. If collaborator changes have - // occurred after the document was read using the API, the changes - // produced by this write request will be transformed against the - // collaborator changes. This results in a new revision of the document - // which incorporates both the changes in the request and the - // collaborator changes, and the Docs server will resolve conflicting - // changes. When using `target_revision_id`, the API client can be - // thought of as another collaborator of the document. The target - // revision ID may only be used to write to recent versions of a - // document. If the target revision is too far behind the latest - // revision, the request will not be processed and will return a 400 bad - // request error and the request should be retried after reading the - // latest version of the document. In most cases a `revision_id` will - // remain valid for use as a target revision for several minutes after - // it is read, but for frequently-edited documents this window may be - // shorter. + // TargetRevisionId: The optional target revision ID of the document the + // write request is applied to. If collaborator changes have occurred + // after the document was read using the API, the changes produced by + // this write request are applied against the collaborator changes. This + // results in a new revision of the document that incorporates both the + // collaborator changes and the changes in the request, with the Docs + // server resolving conflicting changes. When using target revision ID, + // the API client can be thought of as another collaborator of the + // document. The target revision ID can only be used to write to recent + // versions of a document. If the target revision is too far behind the + // latest revision, the request is not processed and returns a 400 bad + // request error. The request should be tried again after retrieving the + // latest version of the document. Usually a revision ID remains valid + // for use as a target revision for several minutes after it's read, but + // for frequently edited documents this window might be shorter. TargetRevisionId string `json:"targetRevisionId,omitempty"` // ForceSendFields is a list of field names (e.g. "RequiredRevisionId") diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index 377d6cdec8b..8940aea0b7d 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -1029,7 +1029,7 @@ } } }, - "revision": "20220321", + "revision": "20220326", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -1947,7 +1947,7 @@ "description": "Optional. Provenance of the entity. Text anchor indexing into the Document.text." }, "type": { - "description": "Entity type from a schema e.g. `Address`.", + "description": "Required. Entity type from a schema e.g. `Address`.", "type": "string" } }, @@ -3192,6 +3192,10 @@ "description": "The display name of the processor version.", "type": "string" }, + "googleManaged": { + "description": "Denotes that this ProcessorVersion is managed by google.", + "type": "boolean" + }, "kmsKeyName": { "description": "The KMS key name used for encryption.", "type": "string" @@ -3586,7 +3590,7 @@ "description": "Optional. Provenance of the entity. Text anchor indexing into the Document.text." }, "type": { - "description": "Entity type from a schema e.g. `Address`.", + "description": "Required. Entity type from a schema e.g. `Address`.", "type": "string" } }, @@ -4783,7 +4787,7 @@ "description": "Optional. Provenance of the entity. Text anchor indexing into the Document.text." }, "type": { - "description": "Entity type from a schema e.g. `Address`.", + "description": "Required. Entity type from a schema e.g. `Address`.", "type": "string" } }, diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index e4f67edafc8..b113955d6ef 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -1869,7 +1869,7 @@ type GoogleCloudDocumentaiV1DocumentEntity struct { // into the Document.text. TextAnchor *GoogleCloudDocumentaiV1DocumentTextAnchor `json:"textAnchor,omitempty"` - // Type: Entity type from a schema e.g. `Address`. + // Type: Required. Entity type from a schema e.g. `Address`. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Confidence") to @@ -3975,6 +3975,10 @@ type GoogleCloudDocumentaiV1ProcessorVersion struct { // DisplayName: The display name of the processor version. DisplayName string `json:"displayName,omitempty"` + // GoogleManaged: Denotes that this ProcessorVersion is managed by + // google. + GoogleManaged bool `json:"googleManaged,omitempty"` + // KmsKeyName: The KMS key name used for encryption. KmsKeyName string `json:"kmsKeyName,omitempty"` @@ -4585,7 +4589,7 @@ type GoogleCloudDocumentaiV1beta1DocumentEntity struct { // into the Document.text. TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"` - // Type: Entity type from a schema e.g. `Address`. + // Type: Required. Entity type from a schema e.g. `Address`. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Confidence") to @@ -6509,7 +6513,7 @@ type GoogleCloudDocumentaiV1beta2DocumentEntity struct { // into the Document.text. TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"` - // Type: Entity type from a schema e.g. `Address`. + // Type: Required. Entity type from a schema e.g. `Address`. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Confidence") to diff --git a/documentai/v1beta2/documentai-api.json b/documentai/v1beta2/documentai-api.json index d2e16a128d5..026f76c6471 100644 --- a/documentai/v1beta2/documentai-api.json +++ b/documentai/v1beta2/documentai-api.json @@ -292,7 +292,7 @@ } } }, - "revision": "20220321", + "revision": "20220326", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -1344,7 +1344,7 @@ "description": "Optional. Provenance of the entity. Text anchor indexing into the Document.text." }, "type": { - "description": "Entity type from a schema e.g. `Address`.", + "description": "Required. Entity type from a schema e.g. `Address`.", "type": "string" } }, @@ -2566,7 +2566,7 @@ "description": "Optional. Provenance of the entity. Text anchor indexing into the Document.text." }, "type": { - "description": "Entity type from a schema e.g. `Address`.", + "description": "Required. Entity type from a schema e.g. `Address`.", "type": "string" } }, diff --git a/documentai/v1beta2/documentai-gen.go b/documentai/v1beta2/documentai-gen.go index eb45e361b2c..997cbc575d5 100644 --- a/documentai/v1beta2/documentai-gen.go +++ b/documentai/v1beta2/documentai-gen.go @@ -2051,7 +2051,7 @@ type GoogleCloudDocumentaiV1beta1DocumentEntity struct { // into the Document.text. TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"` - // Type: Entity type from a schema e.g. `Address`. + // Type: Required. Entity type from a schema e.g. `Address`. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Confidence") to @@ -4039,7 +4039,7 @@ type GoogleCloudDocumentaiV1beta2DocumentEntity struct { // into the Document.text. TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"` - // Type: Entity type from a schema e.g. `Address`. + // Type: Required. Entity type from a schema e.g. `Address`. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Confidence") to diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index be065f20b83..6a9ce968727 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -796,7 +796,7 @@ } } }, - "revision": "20220321", + "revision": "20220326", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -1848,7 +1848,7 @@ "description": "Optional. Provenance of the entity. Text anchor indexing into the Document.text." }, "type": { - "description": "Entity type from a schema e.g. `Address`.", + "description": "Required. Entity type from a schema e.g. `Address`.", "type": "string" } }, @@ -3045,7 +3045,7 @@ "description": "Optional. Provenance of the entity. Text anchor indexing into the Document.text." }, "type": { - "description": "Entity type from a schema e.g. `Address`.", + "description": "Required. Entity type from a schema e.g. `Address`.", "type": "string" } }, @@ -4513,7 +4513,7 @@ "description": "Optional. Provenance of the entity. Text anchor indexing into the Document.text." }, "type": { - "description": "Entity type from a schema e.g. `Address`.", + "description": "Required. Entity type from a schema e.g. `Address`.", "type": "string" } }, @@ -5766,6 +5766,10 @@ "description": "The display name of the processor version.", "type": "string" }, + "googleManaged": { + "description": "Denotes that this ProcessorVersion is managed by google.", + "type": "boolean" + }, "kmsKeyName": { "description": "The KMS key name used for encryption.", "type": "string" diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index 56e6445d7e6..0f201f6ccd5 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -2051,7 +2051,7 @@ type GoogleCloudDocumentaiV1beta1DocumentEntity struct { // into the Document.text. TextAnchor *GoogleCloudDocumentaiV1beta1DocumentTextAnchor `json:"textAnchor,omitempty"` - // Type: Entity type from a schema e.g. `Address`. + // Type: Required. Entity type from a schema e.g. `Address`. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Confidence") to @@ -3975,7 +3975,7 @@ type GoogleCloudDocumentaiV1beta2DocumentEntity struct { // into the Document.text. TextAnchor *GoogleCloudDocumentaiV1beta2DocumentTextAnchor `json:"textAnchor,omitempty"` - // Type: Entity type from a schema e.g. `Address`. + // Type: Required. Entity type from a schema e.g. `Address`. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Confidence") to @@ -6375,7 +6375,7 @@ type GoogleCloudDocumentaiV1beta3DocumentEntity struct { // into the Document.text. TextAnchor *GoogleCloudDocumentaiV1beta3DocumentTextAnchor `json:"textAnchor,omitempty"` - // Type: Entity type from a schema e.g. `Address`. + // Type: Required. Entity type from a schema e.g. `Address`. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Confidence") to @@ -8493,6 +8493,10 @@ type GoogleCloudDocumentaiV1beta3ProcessorVersion struct { // DisplayName: The display name of the processor version. DisplayName string `json:"displayName,omitempty"` + // GoogleManaged: Denotes that this ProcessorVersion is managed by + // google. + GoogleManaged bool `json:"googleManaged,omitempty"` + // KmsKeyName: The KMS key name used for encryption. KmsKeyName string `json:"kmsKeyName,omitempty"` diff --git a/eventarc/v1beta1/eventarc-api.json b/eventarc/v1beta1/eventarc-api.json index 46e1334cee5..6e781a1155d 100644 --- a/eventarc/v1beta1/eventarc-api.json +++ b/eventarc/v1beta1/eventarc-api.json @@ -584,7 +584,7 @@ } } }, - "revision": "20211105", + "revision": "20220318", "rootUrl": "https://eventarc.googleapis.com/", "schemas": { "AuditConfig": { @@ -694,7 +694,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/eventarc/v1beta1/eventarc-gen.go b/eventarc/v1beta1/eventarc-gen.go index 8b5042f266c..ec901849315 100644 --- a/eventarc/v1beta1/eventarc-gen.go +++ b/eventarc/v1beta1/eventarc-gen.go @@ -433,8 +433,7 @@ func (s *Destination) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/firebaseappcheck/v1beta/firebaseappcheck-api.json b/firebaseappcheck/v1beta/firebaseappcheck-api.json index 4db6f0af4a5..180c1040231 100644 --- a/firebaseappcheck/v1beta/firebaseappcheck-api.json +++ b/firebaseappcheck/v1beta/firebaseappcheck-api.json @@ -979,6 +979,103 @@ } } }, + "recaptchaV3Config": { + "methods": { + "batchGet": { + "description": "Atomically gets the RecaptchaV3Configs for the specified list of apps. For security reasons, the `site_secret` field is never populated in the response.", + "flatPath": "v1beta/projects/{projectsId}/apps/-/recaptchaV3Config:batchGet", + "httpMethod": "GET", + "id": "firebaseappcheck.projects.apps.recaptchaV3Config.batchGet", + "parameterOrder": [ + "parent" + ], + "parameters": { + "names": { + "description": "Required. The relative resource names of the RecaptchaV3Configs to retrieve, in the format: ``` projects/{project_number}/apps/{app_id}/recaptchaV3Config ``` A maximum of 100 objects can be retrieved in a batch.", + "location": "query", + "repeated": true, + "type": "string" + }, + "parent": { + "description": "Required. The parent project name shared by all RecaptchaV3Configs being retrieved, in the format ``` projects/{project_number} ``` The parent collection in the `name` field of any resource being retrieved must match this field, or the entire batch fails.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/apps/-/recaptchaV3Config:batchGet", + "response": { + "$ref": "GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "get": { + "description": "Gets the RecaptchaV3Config for the specified app. For security reasons, the `site_secret` field is never populated in the response.", + "flatPath": "v1beta/projects/{projectsId}/apps/{appsId}/recaptchaV3Config", + "httpMethod": "GET", + "id": "firebaseappcheck.projects.apps.recaptchaV3Config.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The relative resource name of the RecaptchaV3Config, in the format: ``` projects/{project_number}/apps/{app_id}/recaptchaV3Config ```", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+/recaptchaV3Config$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "GoogleFirebaseAppcheckV1betaRecaptchaV3Config" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "patch": { + "description": "Updates the RecaptchaV3Config for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange reCAPTCHA V3 tokens for App Check tokens. For security reasons, the `site_secret` field is never populated in the response.", + "flatPath": "v1beta/projects/{projectsId}/apps/{appsId}/recaptchaV3Config", + "httpMethod": "PATCH", + "id": "firebaseappcheck.projects.apps.recaptchaV3Config.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The relative resource name of the reCAPTCHA v3 configuration object, in the format: ``` projects/{project_number}/apps/{app_id}/recaptchaV3Config ```", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+/recaptchaV3Config$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. A comma-separated list of names of fields in the RecaptchaV3Config to update. Example: `site_secret`.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta/{+name}", + "request": { + "$ref": "GoogleFirebaseAppcheckV1betaRecaptchaV3Config" + }, + "response": { + "$ref": "GoogleFirebaseAppcheckV1betaRecaptchaV3Config" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + } + } + }, "safetyNetConfig": { "methods": { "batchGet": { @@ -1212,7 +1309,7 @@ } } }, - "revision": "20220318", + "revision": "20220325", "rootUrl": "https://firebaseappcheck.googleapis.com/", "schemas": { "GoogleFirebaseAppcheckV1betaAppAttestConfig": { @@ -1323,6 +1420,20 @@ }, "type": "object" }, + "GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse": { + "description": "Response message for the BatchGetRecaptchaV3Configs method.", + "id": "GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse", + "properties": { + "configs": { + "description": "RecaptchaV3Configs retrieved.", + "items": { + "$ref": "GoogleFirebaseAppcheckV1betaRecaptchaV3Config" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse": { "description": "Response message for the BatchGetSafetyNetConfigs method.", "id": "GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse", @@ -1708,6 +1819,31 @@ }, "type": "object" }, + "GoogleFirebaseAppcheckV1betaRecaptchaV3Config": { + "description": "An app's reCAPTCHA v3 configuration object. This configuration is used by ExchangeRecaptchaV3Token to validate reCAPTCHA tokens issued to apps by reCAPTCHA v3. It also controls certain properties of the returned App Check token, such as its ttl.", + "id": "GoogleFirebaseAppcheckV1betaRecaptchaV3Config", + "properties": { + "name": { + "description": "Required. The relative resource name of the reCAPTCHA v3 configuration object, in the format: ``` projects/{project_number}/apps/{app_id}/recaptchaV3Config ```", + "type": "string" + }, + "siteSecret": { + "description": "Required. Input only. The site secret used to identify your service for reCAPTCHA v3 verification. For security reasons, this field will never be populated in any response.", + "type": "string" + }, + "siteSecretSet": { + "description": "Output only. Whether the `site_secret` field was previously set. Since we will never return the `site_secret` field, this field is the only way to find out whether it was previously set.", + "readOnly": true, + "type": "boolean" + }, + "tokenTtl": { + "description": "Specifies the duration for which App Check tokens exchanged from reCAPTCHA tokens will be valid. If unset, a default value of 1 day is assumed. Must be between 30 minutes and 7 days, inclusive.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, "GoogleFirebaseAppcheckV1betaSafetyNetConfig": { "description": "An app's SafetyNet configuration object. This configuration controls certain properties of the App Check token returned by ExchangeSafetyNetToken, such as its ttl. Note that your registered SHA-256 certificate fingerprints are used to validate tokens issued by SafetyNet; please register them via the Firebase Console or programmatically via the [Firebase Management Service](https://firebase.google.com/docs/projects/api/reference/rest/v1beta1/projects.androidApps.sha/create).", "id": "GoogleFirebaseAppcheckV1betaSafetyNetConfig", diff --git a/firebaseappcheck/v1beta/firebaseappcheck-gen.go b/firebaseappcheck/v1beta/firebaseappcheck-gen.go index 3a220085311..fed7ffcb2af 100644 --- a/firebaseappcheck/v1beta/firebaseappcheck-gen.go +++ b/firebaseappcheck/v1beta/firebaseappcheck-gen.go @@ -179,6 +179,7 @@ func NewProjectsAppsService(s *Service) *ProjectsAppsService { rs.DeviceCheckConfig = NewProjectsAppsDeviceCheckConfigService(s) rs.RecaptchaConfig = NewProjectsAppsRecaptchaConfigService(s) rs.RecaptchaEnterpriseConfig = NewProjectsAppsRecaptchaEnterpriseConfigService(s) + rs.RecaptchaV3Config = NewProjectsAppsRecaptchaV3ConfigService(s) rs.SafetyNetConfig = NewProjectsAppsSafetyNetConfigService(s) return rs } @@ -196,6 +197,8 @@ type ProjectsAppsService struct { RecaptchaEnterpriseConfig *ProjectsAppsRecaptchaEnterpriseConfigService + RecaptchaV3Config *ProjectsAppsRecaptchaV3ConfigService + SafetyNetConfig *ProjectsAppsSafetyNetConfigService } @@ -244,6 +247,15 @@ type ProjectsAppsRecaptchaEnterpriseConfigService struct { s *Service } +func NewProjectsAppsRecaptchaV3ConfigService(s *Service) *ProjectsAppsRecaptchaV3ConfigService { + rs := &ProjectsAppsRecaptchaV3ConfigService{s: s} + return rs +} + +type ProjectsAppsRecaptchaV3ConfigService struct { + s *Service +} + func NewProjectsAppsSafetyNetConfigService(s *Service) *ProjectsAppsSafetyNetConfigService { rs := &ProjectsAppsSafetyNetConfigService{s: s} return rs @@ -530,6 +542,39 @@ func (s *GoogleFirebaseAppcheckV1betaBatchGetRecaptchaEnterpriseConfigsResponse) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse: +// Response message for the BatchGetRecaptchaV3Configs method. +type GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse struct { + // Configs: RecaptchaV3Configs retrieved. + Configs []*GoogleFirebaseAppcheckV1betaRecaptchaV3Config `json:"configs,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Configs") 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. "Configs") 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 *GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse: // Response message for the BatchGetSafetyNetConfigs method. type GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse struct { @@ -1407,6 +1452,59 @@ func (s *GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfig) MarshalJSON() ([ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleFirebaseAppcheckV1betaRecaptchaV3Config: An app's reCAPTCHA v3 +// configuration object. This configuration is used by +// ExchangeRecaptchaV3Token to validate reCAPTCHA tokens issued to apps +// by reCAPTCHA v3. It also controls certain properties of the returned +// App Check token, such as its ttl. +type GoogleFirebaseAppcheckV1betaRecaptchaV3Config struct { + // Name: Required. The relative resource name of the reCAPTCHA v3 + // configuration object, in the format: ``` + // projects/{project_number}/apps/{app_id}/recaptchaV3Config ``` + Name string `json:"name,omitempty"` + + // SiteSecret: Required. Input only. The site secret used to identify + // your service for reCAPTCHA v3 verification. For security reasons, + // this field will never be populated in any response. + SiteSecret string `json:"siteSecret,omitempty"` + + // SiteSecretSet: Output only. Whether the `site_secret` field was + // previously set. Since we will never return the `site_secret` field, + // this field is the only way to find out whether it was previously set. + SiteSecretSet bool `json:"siteSecretSet,omitempty"` + + // TokenTtl: Specifies the duration for which App Check tokens exchanged + // from reCAPTCHA tokens will be valid. If unset, a default value of 1 + // day is assumed. Must be between 30 minutes and 7 days, inclusive. + TokenTtl string `json:"tokenTtl,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *GoogleFirebaseAppcheckV1betaRecaptchaV3Config) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppcheckV1betaRecaptchaV3Config + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleFirebaseAppcheckV1betaSafetyNetConfig: An app's SafetyNet // configuration object. This configuration controls certain properties // of the App Check token returned by ExchangeSafetyNetToken, such as @@ -6003,6 +6101,492 @@ func (c *ProjectsAppsRecaptchaEnterpriseConfigPatchCall) Do(opts ...googleapi.Ca } +// method id "firebaseappcheck.projects.apps.recaptchaV3Config.batchGet": + +type ProjectsAppsRecaptchaV3ConfigBatchGetCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// BatchGet: Atomically gets the RecaptchaV3Configs for the specified +// list of apps. For security reasons, the `site_secret` field is never +// populated in the response. +// +// - parent: The parent project name shared by all RecaptchaV3Configs +// being retrieved, in the format ``` projects/{project_number} ``` +// The parent collection in the `name` field of any resource being +// retrieved must match this field, or the entire batch fails. +func (r *ProjectsAppsRecaptchaV3ConfigService) BatchGet(parent string) *ProjectsAppsRecaptchaV3ConfigBatchGetCall { + c := &ProjectsAppsRecaptchaV3ConfigBatchGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Names sets the optional parameter "names": Required. The relative +// resource names of the RecaptchaV3Configs to retrieve, in the format: +// ``` projects/{project_number}/apps/{app_id}/recaptchaV3Config ``` A +// maximum of 100 objects can be retrieved in a batch. +func (c *ProjectsAppsRecaptchaV3ConfigBatchGetCall) Names(names ...string) *ProjectsAppsRecaptchaV3ConfigBatchGetCall { + c.urlParams_.SetMulti("names", append([]string{}, names...)) + 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 *ProjectsAppsRecaptchaV3ConfigBatchGetCall) Fields(s ...googleapi.Field) *ProjectsAppsRecaptchaV3ConfigBatchGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsAppsRecaptchaV3ConfigBatchGetCall) IfNoneMatch(entityTag string) *ProjectsAppsRecaptchaV3ConfigBatchGetCall { + c.ifNoneMatch_ = entityTag + 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 *ProjectsAppsRecaptchaV3ConfigBatchGetCall) Context(ctx context.Context) *ProjectsAppsRecaptchaV3ConfigBatchGetCall { + 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 *ProjectsAppsRecaptchaV3ConfigBatchGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsRecaptchaV3ConfigBatchGetCall) 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()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/apps/-/recaptchaV3Config:batchGet") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappcheck.projects.apps.recaptchaV3Config.batchGet" call. +// Exactly one of +// *GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse.Server +// Response.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 *ProjectsAppsRecaptchaV3ConfigBatchGetCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse, 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 := &GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse{ + 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": "Atomically gets the RecaptchaV3Configs for the specified list of apps. For security reasons, the `site_secret` field is never populated in the response.", + // "flatPath": "v1beta/projects/{projectsId}/apps/-/recaptchaV3Config:batchGet", + // "httpMethod": "GET", + // "id": "firebaseappcheck.projects.apps.recaptchaV3Config.batchGet", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "names": { + // "description": "Required. The relative resource names of the RecaptchaV3Configs to retrieve, in the format: ``` projects/{project_number}/apps/{app_id}/recaptchaV3Config ``` A maximum of 100 objects can be retrieved in a batch.", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent project name shared by all RecaptchaV3Configs being retrieved, in the format ``` projects/{project_number} ``` The parent collection in the `name` field of any resource being retrieved must match this field, or the entire batch fails.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}/apps/-/recaptchaV3Config:batchGet", + // "response": { + // "$ref": "GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "firebaseappcheck.projects.apps.recaptchaV3Config.get": + +type ProjectsAppsRecaptchaV3ConfigGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the RecaptchaV3Config for the specified app. For security +// reasons, the `site_secret` field is never populated in the response. +// +// - name: The relative resource name of the RecaptchaV3Config, in the +// format: ``` +// projects/{project_number}/apps/{app_id}/recaptchaV3Config ```. +func (r *ProjectsAppsRecaptchaV3ConfigService) Get(name string) *ProjectsAppsRecaptchaV3ConfigGetCall { + c := &ProjectsAppsRecaptchaV3ConfigGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + 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 *ProjectsAppsRecaptchaV3ConfigGetCall) Fields(s ...googleapi.Field) *ProjectsAppsRecaptchaV3ConfigGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsAppsRecaptchaV3ConfigGetCall) IfNoneMatch(entityTag string) *ProjectsAppsRecaptchaV3ConfigGetCall { + c.ifNoneMatch_ = entityTag + 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 *ProjectsAppsRecaptchaV3ConfigGetCall) Context(ctx context.Context) *ProjectsAppsRecaptchaV3ConfigGetCall { + 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 *ProjectsAppsRecaptchaV3ConfigGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsRecaptchaV3ConfigGetCall) 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()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappcheck.projects.apps.recaptchaV3Config.get" call. +// Exactly one of *GoogleFirebaseAppcheckV1betaRecaptchaV3Config or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleFirebaseAppcheckV1betaRecaptchaV3Config.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 *ProjectsAppsRecaptchaV3ConfigGetCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppcheckV1betaRecaptchaV3Config, 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 := &GoogleFirebaseAppcheckV1betaRecaptchaV3Config{ + 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": "Gets the RecaptchaV3Config for the specified app. For security reasons, the `site_secret` field is never populated in the response.", + // "flatPath": "v1beta/projects/{projectsId}/apps/{appsId}/recaptchaV3Config", + // "httpMethod": "GET", + // "id": "firebaseappcheck.projects.apps.recaptchaV3Config.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The relative resource name of the RecaptchaV3Config, in the format: ``` projects/{project_number}/apps/{app_id}/recaptchaV3Config ```", + // "location": "path", + // "pattern": "^projects/[^/]+/apps/[^/]+/recaptchaV3Config$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}", + // "response": { + // "$ref": "GoogleFirebaseAppcheckV1betaRecaptchaV3Config" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "firebaseappcheck.projects.apps.recaptchaV3Config.patch": + +type ProjectsAppsRecaptchaV3ConfigPatchCall struct { + s *Service + name string + googlefirebaseappcheckv1betarecaptchav3config *GoogleFirebaseAppcheckV1betaRecaptchaV3Config + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the RecaptchaV3Config for the specified app. While +// this configuration is incomplete or invalid, the app will be unable +// to exchange reCAPTCHA V3 tokens for App Check tokens. For security +// reasons, the `site_secret` field is never populated in the response. +// +// - name: The relative resource name of the reCAPTCHA v3 configuration +// object, in the format: ``` +// projects/{project_number}/apps/{app_id}/recaptchaV3Config ```. +func (r *ProjectsAppsRecaptchaV3ConfigService) Patch(name string, googlefirebaseappcheckv1betarecaptchav3config *GoogleFirebaseAppcheckV1betaRecaptchaV3Config) *ProjectsAppsRecaptchaV3ConfigPatchCall { + c := &ProjectsAppsRecaptchaV3ConfigPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlefirebaseappcheckv1betarecaptchav3config = googlefirebaseappcheckv1betarecaptchav3config + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. A +// comma-separated list of names of fields in the RecaptchaV3Config to +// update. Example: `site_secret`. +func (c *ProjectsAppsRecaptchaV3ConfigPatchCall) UpdateMask(updateMask string) *ProjectsAppsRecaptchaV3ConfigPatchCall { + c.urlParams_.Set("updateMask", updateMask) + 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 *ProjectsAppsRecaptchaV3ConfigPatchCall) Fields(s ...googleapi.Field) *ProjectsAppsRecaptchaV3ConfigPatchCall { + 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 *ProjectsAppsRecaptchaV3ConfigPatchCall) Context(ctx context.Context) *ProjectsAppsRecaptchaV3ConfigPatchCall { + 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 *ProjectsAppsRecaptchaV3ConfigPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsRecaptchaV3ConfigPatchCall) 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 + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappcheckv1betarecaptchav3config) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappcheck.projects.apps.recaptchaV3Config.patch" call. +// Exactly one of *GoogleFirebaseAppcheckV1betaRecaptchaV3Config or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleFirebaseAppcheckV1betaRecaptchaV3Config.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 *ProjectsAppsRecaptchaV3ConfigPatchCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppcheckV1betaRecaptchaV3Config, 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 := &GoogleFirebaseAppcheckV1betaRecaptchaV3Config{ + 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": "Updates the RecaptchaV3Config for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange reCAPTCHA V3 tokens for App Check tokens. For security reasons, the `site_secret` field is never populated in the response.", + // "flatPath": "v1beta/projects/{projectsId}/apps/{appsId}/recaptchaV3Config", + // "httpMethod": "PATCH", + // "id": "firebaseappcheck.projects.apps.recaptchaV3Config.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The relative resource name of the reCAPTCHA v3 configuration object, in the format: ``` projects/{project_number}/apps/{app_id}/recaptchaV3Config ```", + // "location": "path", + // "pattern": "^projects/[^/]+/apps/[^/]+/recaptchaV3Config$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. A comma-separated list of names of fields in the RecaptchaV3Config to update. Example: `site_secret`.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta/{+name}", + // "request": { + // "$ref": "GoogleFirebaseAppcheckV1betaRecaptchaV3Config" + // }, + // "response": { + // "$ref": "GoogleFirebaseAppcheckV1betaRecaptchaV3Config" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + // method id "firebaseappcheck.projects.apps.safetyNetConfig.batchGet": type ProjectsAppsSafetyNetConfigBatchGetCall struct { diff --git a/gkehub/v1/gkehub-api.json b/gkehub/v1/gkehub-api.json index 66ab90fe999..4f06167108d 100644 --- a/gkehub/v1/gkehub-api.json +++ b/gkehub/v1/gkehub-api.json @@ -905,7 +905,7 @@ } } }, - "revision": "20220204", + "revision": "20220318", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -1731,7 +1731,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/gkehub/v1/gkehub-gen.go b/gkehub/v1/gkehub-gen.go index dd4aaf211b6..942f1414eac 100644 --- a/gkehub/v1/gkehub-gen.go +++ b/gkehub/v1/gkehub-gen.go @@ -1534,8 +1534,7 @@ func (s *EdgeCluster) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/gkehub/v1alpha2/gkehub-api.json b/gkehub/v1alpha2/gkehub-api.json index 004e0b5c44f..1569dfbaa8f 100644 --- a/gkehub/v1alpha2/gkehub-api.json +++ b/gkehub/v1alpha2/gkehub-api.json @@ -652,7 +652,7 @@ } } }, - "revision": "20220122", + "revision": "20220318", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AuditConfig": { @@ -784,7 +784,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/gkehub/v1alpha2/gkehub-gen.go b/gkehub/v1alpha2/gkehub-gen.go index 389985cd975..bd3720e5bfb 100644 --- a/gkehub/v1alpha2/gkehub-gen.go +++ b/gkehub/v1alpha2/gkehub-gen.go @@ -507,8 +507,7 @@ func (s *EdgeCluster) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/gkehub/v1beta/gkehub-api.json b/gkehub/v1beta/gkehub-api.json index c0f57d96d85..9119c80fd96 100644 --- a/gkehub/v1beta/gkehub-api.json +++ b/gkehub/v1beta/gkehub-api.json @@ -670,7 +670,7 @@ } } }, - "revision": "20220303", + "revision": "20220318", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -1535,7 +1535,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index bd41f8ad10c..0c002b57f0b 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -1588,8 +1588,7 @@ func (s *ConfigManagementSyncState) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/gkehub/v1beta1/gkehub-api.json b/gkehub/v1beta1/gkehub-api.json index 0037073522a..8de6cd2b53c 100644 --- a/gkehub/v1beta1/gkehub-api.json +++ b/gkehub/v1beta1/gkehub-api.json @@ -706,7 +706,7 @@ } } }, - "revision": "20220122", + "revision": "20220318", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AuditConfig": { @@ -838,7 +838,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/gkehub/v1beta1/gkehub-gen.go b/gkehub/v1beta1/gkehub-gen.go index 4d7cbc47e7e..396ff653614 100644 --- a/gkehub/v1beta1/gkehub-gen.go +++ b/gkehub/v1beta1/gkehub-gen.go @@ -483,8 +483,7 @@ func (s *EdgeCluster) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/gkehub/v2alpha/gkehub-api.json b/gkehub/v2alpha/gkehub-api.json index 85cb50158e2..3e3c1367ef6 100644 --- a/gkehub/v2alpha/gkehub-api.json +++ b/gkehub/v2alpha/gkehub-api.json @@ -280,7 +280,7 @@ } } }, - "revision": "20220303", + "revision": "20220318", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -290,7 +290,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/gkehub/v2alpha/gkehub-gen.go b/gkehub/v2alpha/gkehub-gen.go index ac1119910e0..f4913d847d6 100644 --- a/gkehub/v2alpha/gkehub-gen.go +++ b/gkehub/v2alpha/gkehub-gen.go @@ -179,8 +179,7 @@ type CancelOperationRequest struct { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/healthcare/v1beta1/healthcare-api.json b/healthcare/v1beta1/healthcare-api.json index 56701803a5c..435baa98858 100644 --- a/healthcare/v1beta1/healthcare-api.json +++ b/healthcare/v1beta1/healthcare-api.json @@ -3721,7 +3721,7 @@ ] }, "conditionalDelete": { - "description": "Deletes FHIR resources that match a search query. Implements the FHIR standard conditional delete interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.12.1), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.1), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#3.1.0.7.1)). If multiple resources match, all matching resources are deleted. Search terms are provided as query parameters following the same pattern as the search method. Note: Unless resource versioning is disabled by setting the disable_resource_versioning flag on the FHIR store, the deleted resources are moved to a history repository that can still be retrieved through vread and related methods, unless they are removed by the purge method. This method requires the`healthcare.fhirStores.searchResources` and `healthcare.fhirResources.delete` permissions on the parent FHIR store. For samples that show how to call `conditionalDelete`, see [Conditionally deleting a FHIR resource](/healthcare/docs/how-tos/fhir-resources#conditionally_deleting_a_fhir_resource).", + "description": "Deletes FHIR resources that match a search query. Implements the FHIR standard conditional delete interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.12.1), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.1), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#3.1.0.7.1)). If multiple resources match, all matching resources are deleted. Search terms are provided as query parameters following the same pattern as the search method. Not all FHIR resources that match the search query might be deleted because, by default, a maximum of 100 FHIR resources can be deleted. The number of FHIR resources that can be deleted depends on the page size of the returned resources, which you can control using the `_count` query parameter. Even when using `_count`, you can delete a maximum 1,000 FHIR resources per each call of `conditionalDelete`. Note: Unless resource versioning is disabled by setting the disable_resource_versioning flag on the FHIR store, the deleted resources are moved to a history repository that can still be retrieved through vread and related methods, unless they are removed by the purge method. This method requires the`healthcare.fhirStores.searchResources` and `healthcare.fhirResources.delete` permissions on the parent FHIR store. For samples that show how to call `conditionalDelete`, see [Conditionally deleting a FHIR resource](/healthcare/docs/how-tos/fhir-resources#conditionally_deleting_a_fhir_resource).", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}", "httpMethod": "DELETE", "id": "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalDelete", @@ -4865,7 +4865,7 @@ } } }, - "revision": "20220224", + "revision": "20220317", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "ActivateConsentRequest": { @@ -5587,6 +5587,10 @@ "destinationDataset": { "description": "The name of the dataset resource to create and write the redacted data to. * The destination dataset must not exist. * The destination dataset must be in the same location as the source dataset. De-identifying data across multiple locations is not supported.", "type": "string" + }, + "gcsConfigUri": { + "description": "Cloud Storage location to read the JSON cloud.healthcare.deidentify.DeidentifyConfig from, overriding the default config. Must be of the form `gs://{bucket_id}/path/to/object`. The Cloud Storage location must grant the Cloud IAM role `roles/storage.objectViewer` to the project's Cloud Healthcare Service Agent service account. Only one of `config` and `gcs_config_uri` can be specified.", + "type": "string" } }, "type": "object" @@ -5606,6 +5610,10 @@ "filterConfig": { "$ref": "DicomFilterConfig", "description": "Filter configuration." + }, + "gcsConfigUri": { + "description": "Cloud Storage location to read the JSON cloud.healthcare.deidentify.DeidentifyConfig from, overriding the default config. Must be of the form `gs://{bucket_id}/path/to/object`. The Cloud Storage location must grant the Cloud IAM role `roles/storage.objectViewer` to the project's Cloud Healthcare Service Agent service account. Only one of `config` and `gcs_config_uri` can be specified.", + "type": "string" } }, "type": "object" @@ -5622,6 +5630,10 @@ "description": "The name of the FHIR store to create and write the redacted data to. For example, `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`. * The destination dataset must exist. * The source dataset and destination dataset must both reside in the same location. De-identifying data across multiple locations is not supported. * The destination FHIR store must exist. * The caller must have the healthcare.fhirResources.update permission to write to the destination FHIR store.", "type": "string" }, + "gcsConfigUri": { + "description": "Cloud Storage location to read the JSON cloud.healthcare.deidentify.DeidentifyConfig from, overriding the default config. Must be of the form `gs://{bucket_id}/path/to/object`. The Cloud Storage location must grant the Cloud IAM role `roles/storage.objectViewer` to the project's Cloud Healthcare Service Agent service account. Only one of `config` and `gcs_config_uri` can be specified.", + "type": "string" + }, "resourceFilter": { "$ref": "FhirFilter", "description": "A filter specifying the resources to include in the output. If not specified, all resources are included in the output." diff --git a/healthcare/v1beta1/healthcare-gen.go b/healthcare/v1beta1/healthcare-gen.go index 837bc7c406a..c7ff101b64c 100644 --- a/healthcare/v1beta1/healthcare-gen.go +++ b/healthcare/v1beta1/healthcare-gen.go @@ -1753,6 +1753,15 @@ type DeidentifyDatasetRequest struct { // supported. DestinationDataset string `json:"destinationDataset,omitempty"` + // GcsConfigUri: Cloud Storage location to read the JSON + // cloud.healthcare.deidentify.DeidentifyConfig from, overriding the + // default config. Must be of the form + // `gs://{bucket_id}/path/to/object`. The Cloud Storage location must + // grant the Cloud IAM role `roles/storage.objectViewer` to the + // project's Cloud Healthcare Service Agent service account. Only one of + // `config` and `gcs_config_uri` can be specified. + GcsConfigUri string `json:"gcsConfigUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "Config") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1796,6 +1805,15 @@ type DeidentifyDicomStoreRequest struct { // FilterConfig: Filter configuration. FilterConfig *DicomFilterConfig `json:"filterConfig,omitempty"` + // GcsConfigUri: Cloud Storage location to read the JSON + // cloud.healthcare.deidentify.DeidentifyConfig from, overriding the + // default config. Must be of the form + // `gs://{bucket_id}/path/to/object`. The Cloud Storage location must + // grant the Cloud IAM role `roles/storage.objectViewer` to the + // project's Cloud Healthcare Service Agent service account. Only one of + // `config` and `gcs_config_uri` can be specified. + GcsConfigUri string `json:"gcsConfigUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "Config") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1836,6 +1854,15 @@ type DeidentifyFhirStoreRequest struct { // destination FHIR store. DestinationStore string `json:"destinationStore,omitempty"` + // GcsConfigUri: Cloud Storage location to read the JSON + // cloud.healthcare.deidentify.DeidentifyConfig from, overriding the + // default config. Must be of the form + // `gs://{bucket_id}/path/to/object`. The Cloud Storage location must + // grant the Cloud IAM role `roles/storage.objectViewer` to the + // project's Cloud Healthcare Service Agent service account. Only one of + // `config` and `gcs_config_uri` can be specified. + GcsConfigUri string `json:"gcsConfigUri,omitempty"` + // ResourceFilter: A filter specifying the resources to include in the // output. If not specified, all resources are included in the output. ResourceFilter *FhirFilter `json:"resourceFilter,omitempty"` @@ -24926,11 +24953,17 @@ type ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall struct { // (https://hl7.org/implement/standards/fhir/R4/http.html#3.1.0.7.1)). // If multiple resources match, all matching resources are deleted. // Search terms are provided as query parameters following the same -// pattern as the search method. Note: Unless resource versioning is -// disabled by setting the disable_resource_versioning flag on the FHIR -// store, the deleted resources are moved to a history repository that -// can still be retrieved through vread and related methods, unless they -// are removed by the purge method. This method requires +// pattern as the search method. Not all FHIR resources that match the +// search query might be deleted because, by default, a maximum of 100 +// FHIR resources can be deleted. The number of FHIR resources that can +// be deleted depends on the page size of the returned resources, which +// you can control using the `_count` query parameter. Even when using +// `_count`, you can delete a maximum 1,000 FHIR resources per each call +// of `conditionalDelete`. Note: Unless resource versioning is disabled +// by setting the disable_resource_versioning flag on the FHIR store, +// the deleted resources are moved to a history repository that can +// still be retrieved through vread and related methods, unless they are +// removed by the purge method. This method requires // the`healthcare.fhirStores.searchResources` and // `healthcare.fhirResources.delete` permissions on the parent FHIR // store. For samples that show how to call `conditionalDelete`, see @@ -25041,7 +25074,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Do(opts . } return ret, nil // { - // "description": "Deletes FHIR resources that match a search query. Implements the FHIR standard conditional delete interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.12.1), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.1), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#3.1.0.7.1)). If multiple resources match, all matching resources are deleted. Search terms are provided as query parameters following the same pattern as the search method. Note: Unless resource versioning is disabled by setting the disable_resource_versioning flag on the FHIR store, the deleted resources are moved to a history repository that can still be retrieved through vread and related methods, unless they are removed by the purge method. This method requires the`healthcare.fhirStores.searchResources` and `healthcare.fhirResources.delete` permissions on the parent FHIR store. For samples that show how to call `conditionalDelete`, see [Conditionally deleting a FHIR resource](/healthcare/docs/how-tos/fhir-resources#conditionally_deleting_a_fhir_resource).", + // "description": "Deletes FHIR resources that match a search query. Implements the FHIR standard conditional delete interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.12.1), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.1), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#3.1.0.7.1)). If multiple resources match, all matching resources are deleted. Search terms are provided as query parameters following the same pattern as the search method. Not all FHIR resources that match the search query might be deleted because, by default, a maximum of 100 FHIR resources can be deleted. The number of FHIR resources that can be deleted depends on the page size of the returned resources, which you can control using the `_count` query parameter. Even when using `_count`, you can delete a maximum 1,000 FHIR resources per each call of `conditionalDelete`. Note: Unless resource versioning is disabled by setting the disable_resource_versioning flag on the FHIR store, the deleted resources are moved to a history repository that can still be retrieved through vread and related methods, unless they are removed by the purge method. This method requires the`healthcare.fhirStores.searchResources` and `healthcare.fhirResources.delete` permissions on the parent FHIR store. For samples that show how to call `conditionalDelete`, see [Conditionally deleting a FHIR resource](/healthcare/docs/how-tos/fhir-resources#conditionally_deleting_a_fhir_resource).", // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}", // "httpMethod": "DELETE", // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalDelete", diff --git a/jobs/v3p1beta1/jobs-api.json b/jobs/v3p1beta1/jobs-api.json index 4ed25a7f2ff..0e0fb64e778 100644 --- a/jobs/v3p1beta1/jobs-api.json +++ b/jobs/v3p1beta1/jobs-api.json @@ -681,7 +681,7 @@ } } }, - "revision": "20220303", + "revision": "20220325", "rootUrl": "https://jobs.googleapis.com/", "schemas": { "ApplicationInfo": { @@ -1395,7 +1395,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" @@ -1998,7 +1998,7 @@ "description": "Optional. Allows filtering jobs by commute time with different travel methods (for example, driving or public transit). Note: This only works with COMMUTE MODE. When specified, [JobQuery.location_filters] is ignored. Currently we don't support sorting by commute time." }, "companyDisplayNames": { - "description": "Optional. This filter specifies the company Company.display_name of the jobs to search against. The company name must match the value exactly. Alternatively, if the value being searched for is wrapped in SUBSTRING_MATCH([value]), the company name must contain a case insensitive substring match of the value. Using this function may increase latency. Sample Value: SUBSTRING_MATCH(google) If a value isn't specified, jobs within the search results are associated with any company. If multiple values are specified, jobs within the search results may be associated with any of the specified companies. At most 20 company display name filters are allowed.", + "description": "Optional. This filter specifies the company Company.display_name of the jobs to search against. The company name must match the value exactly. Alternatively, if the value being searched for is wrapped in `SUBSTRING_MATCH([value])`, the company name must contain a case insensitive substring match of the value. Using this function may increase latency. Sample Value: `SUBSTRING_MATCH(google)` If a value isn't specified, jobs within the search results are associated with any company. If multiple values are specified, jobs within the search results may be associated with any of the specified companies. At most 20 company display name filters are allowed.", "items": { "type": "string" }, @@ -2298,7 +2298,7 @@ "type": "string" }, "telecommutePreference": { - "description": "Optional. Allows the client to return jobs without a set location, specifically, telecommuting jobs (telecommuting is considered by the service as a special location. Job.posting_region indicates if a job permits telecommuting. If this field is set to TelecommutePreference.TELECOMMUTE_ALLOWED, telecommuting jobs are searched, and address and lat_lng are ignored. If not set or set to TelecommutePreference.TELECOMMUTE_EXCLUDED, telecommute job are not searched. This filter can be used by itself to search exclusively for telecommuting jobs, or it can be combined with another location filter to search for a combination of job locations, such as \"Mountain View\" or \"telecommuting\" jobs. However, when used in combination with other location filters, telecommuting jobs can be treated as less relevant than other jobs in the search response.", + "description": "Optional. Allows the client to return jobs without a set location, specifically, telecommuting jobs (telecommuting is considered by the service as a special location). Job.posting_region indicates if a job permits telecommuting. If this field is set to TelecommutePreference.TELECOMMUTE_ALLOWED, telecommuting jobs are searched, and address and lat_lng are ignored. If not set or set to TelecommutePreference.TELECOMMUTE_EXCLUDED, the telecommute status of the jobs is ignored. Jobs that have PostingRegion.TELECOMMUTE and have additional Job.addresses may still be matched based on other location filters using address or latlng. This filter can be used by itself to search exclusively for telecommuting jobs, or it can be combined with another location filter to search for a combination of job locations, such as \"Mountain View\" or \"telecommuting\" jobs. However, when used in combination with other location filters, telecommuting jobs can be treated as less relevant than other jobs in the search response.", "enum": [ "TELECOMMUTE_PREFERENCE_UNSPECIFIED", "TELECOMMUTE_EXCLUDED", @@ -2306,7 +2306,7 @@ ], "enumDescriptions": [ "Default value if the telecommute preference is not specified.", - "Exclude telecommute jobs.", + "Ignore telecommute status of jobs.", "Allow telecommute jobs." ], "type": "string" diff --git a/jobs/v3p1beta1/jobs-gen.go b/jobs/v3p1beta1/jobs-gen.go index a17033aaa75..edc38ec7fe6 100644 --- a/jobs/v3p1beta1/jobs-gen.go +++ b/jobs/v3p1beta1/jobs-gen.go @@ -1429,8 +1429,7 @@ func (s *DeviceInfo) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. @@ -2352,10 +2351,10 @@ type JobQuery struct { // CompanyDisplayNames: Optional. This filter specifies the company // Company.display_name of the jobs to search against. The company name // must match the value exactly. Alternatively, if the value being - // searched for is wrapped in SUBSTRING_MATCH([value]), the company name - // must contain a case insensitive substring match of the value. Using - // this function may increase latency. Sample Value: - // SUBSTRING_MATCH(google) If a value isn't specified, jobs within the + // searched for is wrapped in `SUBSTRING_MATCH([value])`, the company + // name must contain a case insensitive substring match of the value. + // Using this function may increase latency. Sample Value: + // `SUBSTRING_MATCH(google)` If a value isn't specified, jobs within the // search results are associated with any company. If multiple values // are specified, jobs within the search results may be associated with // any of the specified companies. At most 20 company display name @@ -2813,23 +2812,25 @@ type LocationFilter struct { // TelecommutePreference: Optional. Allows the client to return jobs // without a set location, specifically, telecommuting jobs - // (telecommuting is considered by the service as a special location. + // (telecommuting is considered by the service as a special location). // Job.posting_region indicates if a job permits telecommuting. If this // field is set to TelecommutePreference.TELECOMMUTE_ALLOWED, // telecommuting jobs are searched, and address and lat_lng are ignored. - // If not set or set to TelecommutePreference.TELECOMMUTE_EXCLUDED, - // telecommute job are not searched. This filter can be used by itself - // to search exclusively for telecommuting jobs, or it can be combined - // with another location filter to search for a combination of job - // locations, such as "Mountain View" or "telecommuting" jobs. However, - // when used in combination with other location filters, telecommuting - // jobs can be treated as less relevant than other jobs in the search - // response. + // If not set or set to TelecommutePreference.TELECOMMUTE_EXCLUDED, the + // telecommute status of the jobs is ignored. Jobs that have + // PostingRegion.TELECOMMUTE and have additional Job.addresses may still + // be matched based on other location filters using address or latlng. + // This filter can be used by itself to search exclusively for + // telecommuting jobs, or it can be combined with another location + // filter to search for a combination of job locations, such as + // "Mountain View" or "telecommuting" jobs. However, when used in + // combination with other location filters, telecommuting jobs can be + // treated as less relevant than other jobs in the search response. // // Possible values: // "TELECOMMUTE_PREFERENCE_UNSPECIFIED" - Default value if the // telecommute preference is not specified. - // "TELECOMMUTE_EXCLUDED" - Exclude telecommute jobs. + // "TELECOMMUTE_EXCLUDED" - Ignore telecommute status of jobs. // "TELECOMMUTE_ALLOWED" - Allow telecommute jobs. TelecommutePreference string `json:"telecommutePreference,omitempty"` diff --git a/keep/v1/keep-api.json b/keep/v1/keep-api.json index d4a00f2eacf..05a86882c5b 100644 --- a/keep/v1/keep-api.json +++ b/keep/v1/keep-api.json @@ -314,7 +314,7 @@ } } }, - "revision": "20220308", + "revision": "20220322", "rootUrl": "https://keep.googleapis.com/", "schemas": { "Attachment": { @@ -393,7 +393,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/keep/v1/keep-gen.go b/keep/v1/keep-gen.go index 6391242a7fb..1ca58909deb 100644 --- a/keep/v1/keep-gen.go +++ b/keep/v1/keep-gen.go @@ -348,8 +348,7 @@ func (s *CreatePermissionRequest) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/manufacturers/v1/manufacturers-api.json b/manufacturers/v1/manufacturers-api.json index 2d29a1168c7..b9b748d697a 100644 --- a/manufacturers/v1/manufacturers-api.json +++ b/manufacturers/v1/manufacturers-api.json @@ -287,7 +287,7 @@ } } }, - "revision": "20220126", + "revision": "20220323", "rootUrl": "https://manufacturers.googleapis.com/", "schemas": { "Attributes": { @@ -538,7 +538,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/manufacturers/v1/manufacturers-gen.go b/manufacturers/v1/manufacturers-gen.go index 939f13629f4..c159e659f78 100644 --- a/manufacturers/v1/manufacturers-gen.go +++ b/manufacturers/v1/manufacturers-gen.go @@ -456,8 +456,7 @@ func (s *DestinationStatus) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/networkconnectivity/v1/networkconnectivity-api.json b/networkconnectivity/v1/networkconnectivity-api.json index 71bfc1383a4..ec6d88ed8cb 100644 --- a/networkconnectivity/v1/networkconnectivity-api.json +++ b/networkconnectivity/v1/networkconnectivity-api.json @@ -938,7 +938,7 @@ } } }, - "revision": "20220210", + "revision": "20220321", "rootUrl": "https://networkconnectivity.googleapis.com/", "schemas": { "AuditConfig": { @@ -1012,7 +1012,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/networkconnectivity/v1/networkconnectivity-gen.go b/networkconnectivity/v1/networkconnectivity-gen.go index 0b4cca143f7..bf286e88869 100644 --- a/networkconnectivity/v1/networkconnectivity-gen.go +++ b/networkconnectivity/v1/networkconnectivity-gen.go @@ -392,8 +392,7 @@ func (s *Binding) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/networkconnectivity/v1alpha1/networkconnectivity-api.json b/networkconnectivity/v1alpha1/networkconnectivity-api.json index 9516da9d578..37db1f175ca 100644 --- a/networkconnectivity/v1alpha1/networkconnectivity-api.json +++ b/networkconnectivity/v1alpha1/networkconnectivity-api.json @@ -938,7 +938,7 @@ } } }, - "revision": "20211113", + "revision": "20220321", "rootUrl": "https://networkconnectivity.googleapis.com/", "schemas": { "AuditConfig": { @@ -1012,7 +1012,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/networkconnectivity/v1alpha1/networkconnectivity-gen.go b/networkconnectivity/v1alpha1/networkconnectivity-gen.go index 317a3f50753..a61f75146b2 100644 --- a/networkconnectivity/v1alpha1/networkconnectivity-gen.go +++ b/networkconnectivity/v1alpha1/networkconnectivity-gen.go @@ -392,8 +392,7 @@ func (s *Binding) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/notebooks/v1/notebooks-api.json b/notebooks/v1/notebooks-api.json index 6d04ad17809..b6bf851bc8c 100644 --- a/notebooks/v1/notebooks-api.json +++ b/notebooks/v1/notebooks-api.json @@ -1389,6 +1389,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "refreshRuntimeTokenInternal": { + "description": "Gets an access token for the consumer service account that the customer attached to the runtime. Only accessible from the tenant instance.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/runtimes/{runtimesId}:refreshRuntimeTokenInternal", + "httpMethod": "POST", + "id": "notebooks.projects.locations.runtimes.refreshRuntimeTokenInternal", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/runtimes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:refreshRuntimeTokenInternal", + "request": { + "$ref": "RefreshRuntimeTokenInternalRequest" + }, + "response": { + "$ref": "RefreshRuntimeTokenInternalResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "reportEvent": { "description": "Report and process a runtime event.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/runtimes/{runtimesId}:reportEvent", @@ -1753,7 +1781,7 @@ } } }, - "revision": "20220303", + "revision": "20220319", "rootUrl": "https://notebooks.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -1924,7 +1952,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" @@ -2956,6 +2984,34 @@ }, "type": "object" }, + "RefreshRuntimeTokenInternalRequest": { + "description": "Request for getting a new access token.", + "id": "RefreshRuntimeTokenInternalRequest", + "properties": { + "vmId": { + "description": "Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity", + "type": "string" + } + }, + "type": "object" + }, + "RefreshRuntimeTokenInternalResponse": { + "description": "Response with a new access token.", + "id": "RefreshRuntimeTokenInternalResponse", + "properties": { + "accessToken": { + "description": "The OAuth 2.0 access token.", + "type": "string" + }, + "expireTime": { + "description": "Output only. Token expiration time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "RegisterInstanceRequest": { "description": "Request for registering a notebook instance.", "id": "RegisterInstanceRequest", diff --git a/notebooks/v1/notebooks-gen.go b/notebooks/v1/notebooks-gen.go index 60ef273bbef..b2415b1d854 100644 --- a/notebooks/v1/notebooks-gen.go +++ b/notebooks/v1/notebooks-gen.go @@ -518,8 +518,7 @@ func (s *Disk) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. @@ -2044,6 +2043,72 @@ func (s *Policy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// RefreshRuntimeTokenInternalRequest: Request for getting a new access +// token. +type RefreshRuntimeTokenInternalRequest struct { + // VmId: Required. The VM hardware token for authenticating the VM. + // https://cloud.google.com/compute/docs/instances/verifying-instance-identity + VmId string `json:"vmId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "VmId") 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. "VmId") 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 *RefreshRuntimeTokenInternalRequest) MarshalJSON() ([]byte, error) { + type NoMethod RefreshRuntimeTokenInternalRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RefreshRuntimeTokenInternalResponse: Response with a new access +// token. +type RefreshRuntimeTokenInternalResponse struct { + // AccessToken: The OAuth 2.0 access token. + AccessToken string `json:"accessToken,omitempty"` + + // ExpireTime: Output only. Token expiration time. + ExpireTime string `json:"expireTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AccessToken") 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. "AccessToken") 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 *RefreshRuntimeTokenInternalResponse) MarshalJSON() ([]byte, error) { + type NoMethod RefreshRuntimeTokenInternalResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // RegisterInstanceRequest: Request for registering a notebook instance. type RegisterInstanceRequest struct { // InstanceId: Required. User defined unique ID of this instance. The @@ -10220,6 +10285,152 @@ func (c *ProjectsLocationsRuntimesListCall) Pages(ctx context.Context, f func(*L } } +// method id "notebooks.projects.locations.runtimes.refreshRuntimeTokenInternal": + +type ProjectsLocationsRuntimesRefreshRuntimeTokenInternalCall struct { + s *Service + name string + refreshruntimetokeninternalrequest *RefreshRuntimeTokenInternalRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RefreshRuntimeTokenInternal: Gets an access token for the consumer +// service account that the customer attached to the runtime. Only +// accessible from the tenant instance. +// +// - name: Format: +// `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`. +func (r *ProjectsLocationsRuntimesService) RefreshRuntimeTokenInternal(name string, refreshruntimetokeninternalrequest *RefreshRuntimeTokenInternalRequest) *ProjectsLocationsRuntimesRefreshRuntimeTokenInternalCall { + c := &ProjectsLocationsRuntimesRefreshRuntimeTokenInternalCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.refreshruntimetokeninternalrequest = refreshruntimetokeninternalrequest + 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 *ProjectsLocationsRuntimesRefreshRuntimeTokenInternalCall) Fields(s ...googleapi.Field) *ProjectsLocationsRuntimesRefreshRuntimeTokenInternalCall { + 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 *ProjectsLocationsRuntimesRefreshRuntimeTokenInternalCall) Context(ctx context.Context) *ProjectsLocationsRuntimesRefreshRuntimeTokenInternalCall { + 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 *ProjectsLocationsRuntimesRefreshRuntimeTokenInternalCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRuntimesRefreshRuntimeTokenInternalCall) 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 + body, err := googleapi.WithoutDataWrapper.JSONReader(c.refreshruntimetokeninternalrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:refreshRuntimeTokenInternal") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "notebooks.projects.locations.runtimes.refreshRuntimeTokenInternal" call. +// Exactly one of *RefreshRuntimeTokenInternalResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *RefreshRuntimeTokenInternalResponse.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 *ProjectsLocationsRuntimesRefreshRuntimeTokenInternalCall) Do(opts ...googleapi.CallOption) (*RefreshRuntimeTokenInternalResponse, 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 := &RefreshRuntimeTokenInternalResponse{ + 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": "Gets an access token for the consumer service account that the customer attached to the runtime. Only accessible from the tenant instance.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/runtimes/{runtimesId}:refreshRuntimeTokenInternal", + // "httpMethod": "POST", + // "id": "notebooks.projects.locations.runtimes.refreshRuntimeTokenInternal", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/runtimes/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:refreshRuntimeTokenInternal", + // "request": { + // "$ref": "RefreshRuntimeTokenInternalRequest" + // }, + // "response": { + // "$ref": "RefreshRuntimeTokenInternalResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "notebooks.projects.locations.runtimes.reportEvent": type ProjectsLocationsRuntimesReportEventCall struct { diff --git a/oslogin/v1beta/oslogin-api.json b/oslogin/v1beta/oslogin-api.json index e45ae1af91a..c9f0561aaa6 100644 --- a/oslogin/v1beta/oslogin-api.json +++ b/oslogin/v1beta/oslogin-api.json @@ -373,11 +373,11 @@ } } }, - "revision": "20211203", + "revision": "20220319", "rootUrl": "https://oslogin.googleapis.com/", "schemas": { "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/oslogin/v1beta/oslogin-gen.go b/oslogin/v1beta/oslogin-gen.go index 408261ebbc2..b9c6fe34889 100644 --- a/oslogin/v1beta/oslogin-gen.go +++ b/oslogin/v1beta/oslogin-gen.go @@ -193,8 +193,7 @@ type UsersSshPublicKeysService struct { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/pubsublite/v1/pubsublite-api.json b/pubsublite/v1/pubsublite-api.json index 61320bc4ba7..6bb85efb998 100644 --- a/pubsublite/v1/pubsublite-api.json +++ b/pubsublite/v1/pubsublite-api.json @@ -1040,7 +1040,7 @@ } } }, - "revision": "20210909", + "revision": "20220318", "rootUrl": "https://pubsublite.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -1219,7 +1219,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/pubsublite/v1/pubsublite-gen.go b/pubsublite/v1/pubsublite-gen.go index f0b78bde71e..91ca9d22947 100644 --- a/pubsublite/v1/pubsublite-gen.go +++ b/pubsublite/v1/pubsublite-gen.go @@ -723,8 +723,7 @@ func (s *DeliveryConfig) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/script/v1/script-api.json b/script/v1/script-api.json index 812669517fe..87a5d34ea92 100644 --- a/script/v1/script-api.json +++ b/script/v1/script-api.json @@ -887,7 +887,7 @@ } } }, - "revision": "20211230", + "revision": "20220323", "rootUrl": "https://script.googleapis.com/", "schemas": { "Content": { @@ -975,7 +975,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" diff --git a/script/v1/script-gen.go b/script/v1/script-gen.go index c45637f7a37..2423825b4aa 100644 --- a/script/v1/script-gen.go +++ b/script/v1/script-gen.go @@ -422,8 +422,7 @@ func (s *DeploymentConfig) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/securitycenter/v1/securitycenter-api.json b/securitycenter/v1/securitycenter-api.json index f2bc6935a5a..aae779f745c 100644 --- a/securitycenter/v1/securitycenter-api.json +++ b/securitycenter/v1/securitycenter-api.json @@ -3058,7 +3058,7 @@ } } }, - "revision": "20220318", + "revision": "20220324", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -4554,7 +4554,8 @@ "STEAL_WEB_SESSION_COOKIE", "MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE", "EXPLOIT_PUBLIC_FACING_APPLICATION", - "MODIFY_AUTHENTICATION_PROCESS" + "MODIFY_AUTHENTICATION_PROCESS", + "DATA_DESTRUCTION" ], "enumDescriptions": [ "Unspecified value.", @@ -4585,7 +4586,8 @@ "T1539", "T1578", "T1190", - "T1556" + "T1556", + "T1485" ], "type": "string" }, @@ -4661,7 +4663,8 @@ "STEAL_WEB_SESSION_COOKIE", "MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE", "EXPLOIT_PUBLIC_FACING_APPLICATION", - "MODIFY_AUTHENTICATION_PROCESS" + "MODIFY_AUTHENTICATION_PROCESS", + "DATA_DESTRUCTION" ], "enumDescriptions": [ "Unspecified value.", @@ -4692,7 +4695,8 @@ "T1539", "T1578", "T1190", - "T1556" + "T1556", + "T1485" ], "type": "string" }, diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index 3c84cf6ac87..6cf7868a6f8 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -2984,6 +2984,7 @@ type MitreAttack struct { // "MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE" - T1578 // "EXPLOIT_PUBLIC_FACING_APPLICATION" - T1190 // "MODIFY_AUTHENTICATION_PROCESS" - T1556 + // "DATA_DESTRUCTION" - T1485 AdditionalTechniques []string `json:"additionalTechniques,omitempty"` // PrimaryTactic: The MITRE ATT&CK tactic most closely represented by @@ -3045,6 +3046,7 @@ type MitreAttack struct { // "MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE" - T1578 // "EXPLOIT_PUBLIC_FACING_APPLICATION" - T1190 // "MODIFY_AUTHENTICATION_PROCESS" - T1556 + // "DATA_DESTRUCTION" - T1485 PrimaryTechniques []string `json:"primaryTechniques,omitempty"` // Version: The MITRE ATT&CK version referenced by the above fields. diff --git a/securitycenter/v1beta1/securitycenter-api.json b/securitycenter/v1beta1/securitycenter-api.json index 6f79fd4613f..cebbe082484 100644 --- a/securitycenter/v1beta1/securitycenter-api.json +++ b/securitycenter/v1beta1/securitycenter-api.json @@ -896,7 +896,7 @@ } } }, - "revision": "20220318", + "revision": "20220324", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -2337,7 +2337,8 @@ "STEAL_WEB_SESSION_COOKIE", "MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE", "EXPLOIT_PUBLIC_FACING_APPLICATION", - "MODIFY_AUTHENTICATION_PROCESS" + "MODIFY_AUTHENTICATION_PROCESS", + "DATA_DESTRUCTION" ], "enumDescriptions": [ "Unspecified value.", @@ -2368,7 +2369,8 @@ "T1539", "T1578", "T1190", - "T1556" + "T1556", + "T1485" ], "type": "string" }, @@ -2444,7 +2446,8 @@ "STEAL_WEB_SESSION_COOKIE", "MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE", "EXPLOIT_PUBLIC_FACING_APPLICATION", - "MODIFY_AUTHENTICATION_PROCESS" + "MODIFY_AUTHENTICATION_PROCESS", + "DATA_DESTRUCTION" ], "enumDescriptions": [ "Unspecified value.", @@ -2475,7 +2478,8 @@ "T1539", "T1578", "T1190", - "T1556" + "T1556", + "T1485" ], "type": "string" }, diff --git a/securitycenter/v1beta1/securitycenter-gen.go b/securitycenter/v1beta1/securitycenter-gen.go index c156ea78906..5a02538858d 100644 --- a/securitycenter/v1beta1/securitycenter-gen.go +++ b/securitycenter/v1beta1/securitycenter-gen.go @@ -2538,6 +2538,7 @@ type MitreAttack struct { // "MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE" - T1578 // "EXPLOIT_PUBLIC_FACING_APPLICATION" - T1190 // "MODIFY_AUTHENTICATION_PROCESS" - T1556 + // "DATA_DESTRUCTION" - T1485 AdditionalTechniques []string `json:"additionalTechniques,omitempty"` // PrimaryTactic: The MITRE ATT&CK tactic most closely represented by @@ -2599,6 +2600,7 @@ type MitreAttack struct { // "MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE" - T1578 // "EXPLOIT_PUBLIC_FACING_APPLICATION" - T1190 // "MODIFY_AUTHENTICATION_PROCESS" - T1556 + // "DATA_DESTRUCTION" - T1485 PrimaryTechniques []string `json:"primaryTechniques,omitempty"` // Version: The MITRE ATT&CK version referenced by the above fields. diff --git a/securitycenter/v1beta2/securitycenter-api.json b/securitycenter/v1beta2/securitycenter-api.json index 083f1764d6c..dabfd114ec2 100644 --- a/securitycenter/v1beta2/securitycenter-api.json +++ b/securitycenter/v1beta2/securitycenter-api.json @@ -1592,7 +1592,7 @@ } } }, - "revision": "20220318", + "revision": "20220324", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -2662,7 +2662,8 @@ "STEAL_WEB_SESSION_COOKIE", "MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE", "EXPLOIT_PUBLIC_FACING_APPLICATION", - "MODIFY_AUTHENTICATION_PROCESS" + "MODIFY_AUTHENTICATION_PROCESS", + "DATA_DESTRUCTION" ], "enumDescriptions": [ "Unspecified value.", @@ -2693,7 +2694,8 @@ "T1539", "T1578", "T1190", - "T1556" + "T1556", + "T1485" ], "type": "string" }, @@ -2769,7 +2771,8 @@ "STEAL_WEB_SESSION_COOKIE", "MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE", "EXPLOIT_PUBLIC_FACING_APPLICATION", - "MODIFY_AUTHENTICATION_PROCESS" + "MODIFY_AUTHENTICATION_PROCESS", + "DATA_DESTRUCTION" ], "enumDescriptions": [ "Unspecified value.", @@ -2800,7 +2803,8 @@ "T1539", "T1578", "T1190", - "T1556" + "T1556", + "T1485" ], "type": "string" }, diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index 85f2207e82a..da44407c30f 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -1908,6 +1908,7 @@ type MitreAttack struct { // "MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE" - T1578 // "EXPLOIT_PUBLIC_FACING_APPLICATION" - T1190 // "MODIFY_AUTHENTICATION_PROCESS" - T1556 + // "DATA_DESTRUCTION" - T1485 AdditionalTechniques []string `json:"additionalTechniques,omitempty"` // PrimaryTactic: The MITRE ATT&CK tactic most closely represented by @@ -1969,6 +1970,7 @@ type MitreAttack struct { // "MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE" - T1578 // "EXPLOIT_PUBLIC_FACING_APPLICATION" - T1190 // "MODIFY_AUTHENTICATION_PROCESS" - T1556 + // "DATA_DESTRUCTION" - T1485 PrimaryTechniques []string `json:"primaryTechniques,omitempty"` // Version: The MITRE ATT&CK version referenced by the above fields. diff --git a/servicecontrol/v2/servicecontrol-api.json b/servicecontrol/v2/servicecontrol-api.json index f7102d05103..8000c8b2c96 100644 --- a/servicecontrol/v2/servicecontrol-api.json +++ b/servicecontrol/v2/servicecontrol-api.json @@ -111,7 +111,7 @@ "services": { "methods": { "check": { - "description": "Private Preview. This feature is only available for approved services. This method provides admission control for services that are integrated with [Service Infrastructure](/service-infrastructure). It checks whether an operation should be allowed based on the service configuration and relevant policies. It must be called before the operation is executed. For more information, see [Admission Control](/service-infrastructure/docs/admission-control). NOTE: The admission control has an expected policy propagation delay of 60s. The caller **must** not depend on the most recent policy changes. NOTE: The admission control has a hard limit of 1 referenced resources per call. If an operation refers to more than 1 resources, the caller must call the Check method multiple times. This method requires the `servicemanagement.services.check` permission on the specified service. For more information, see [Service Control API Access Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control).", + "description": "Private Preview. This feature is only available for approved services. This method provides admission control for services that are integrated with [Service Infrastructure](https://cloud.google.com/service-infrastructure). It checks whether an operation should be allowed based on the service configuration and relevant policies. It must be called before the operation is executed. For more information, see [Admission Control](https://cloud.google.com/service-infrastructure/docs/admission-control). NOTE: The admission control has an expected policy propagation delay of 60s. The caller **must** not depend on the most recent policy changes. NOTE: The admission control has a hard limit of 1 referenced resources per call. If an operation refers to more than 1 resources, the caller must call the Check method multiple times. This method requires the `servicemanagement.services.check` permission on the specified service. For more information, see [Service Control API Access Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control).", "flatPath": "v2/services/{serviceName}:check", "httpMethod": "POST", "id": "servicecontrol.services.check", @@ -139,7 +139,7 @@ ] }, "report": { - "description": "Private Preview. This feature is only available for approved services. This method provides telemetry reporting for services that are integrated with [Service Infrastructure](/service-infrastructure). It reports a list of operations that have occurred on a service. It must be called after the operations have been executed. For more information, see [Telemetry Reporting](/service-infrastructure/docs/telemetry-reporting). NOTE: The telemetry reporting has a hard limit of 1000 operations and 1MB per Report call. It is recommended to have no more than 100 operations per call. This method requires the `servicemanagement.services.report` permission on the specified service. For more information, see [Service Control API Access Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control).", + "description": "Private Preview. This feature is only available for approved services. This method provides telemetry reporting for services that are integrated with [Service Infrastructure](https://cloud.google.com/service-infrastructure). It reports a list of operations that have occurred on a service. It must be called after the operations have been executed. For more information, see [Telemetry Reporting](https://cloud.google.com/service-infrastructure/docs/telemetry-reporting). NOTE: The telemetry reporting has a hard limit of 1000 operations and 1MB per Report call. It is recommended to have no more than 100 operations per call. This method requires the `servicemanagement.services.report` permission on the specified service. For more information, see [Service Control API Access Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control).", "flatPath": "v2/services/{serviceName}:report", "httpMethod": "POST", "id": "servicecontrol.services.report", @@ -169,7 +169,7 @@ } } }, - "revision": "20220315", + "revision": "20220325", "rootUrl": "https://servicecontrol.googleapis.com/", "schemas": { "Api": { diff --git a/servicecontrol/v2/servicecontrol-gen.go b/servicecontrol/v2/servicecontrol-gen.go index 216eba8f81d..a6ef6efd564 100644 --- a/servicecontrol/v2/servicecontrol-gen.go +++ b/servicecontrol/v2/servicecontrol-gen.go @@ -1715,18 +1715,20 @@ type ServicesCheckCall struct { // Check: Private Preview. This feature is only available for approved // services. This method provides admission control for services that -// are integrated with Service Infrastructure (/service-infrastructure). -// It checks whether an operation should be allowed based on the service -// configuration and relevant policies. It must be called before the -// operation is executed. For more information, see Admission Control -// (/service-infrastructure/docs/admission-control). NOTE: The admission -// control has an expected policy propagation delay of 60s. The caller -// **must** not depend on the most recent policy changes. NOTE: The -// admission control has a hard limit of 1 referenced resources per -// call. If an operation refers to more than 1 resources, the caller -// must call the Check method multiple times. This method requires the -// `servicemanagement.services.check` permission on the specified -// service. For more information, see Service Control API Access Control +// are integrated with Service Infrastructure +// (https://cloud.google.com/service-infrastructure). It checks whether +// an operation should be allowed based on the service configuration and +// relevant policies. It must be called before the operation is +// executed. For more information, see Admission Control +// (https://cloud.google.com/service-infrastructure/docs/admission-control). +// NOTE: The admission control has an expected policy propagation delay +// of 60s. The caller **must** not depend on the most recent policy +// changes. NOTE: The admission control has a hard limit of 1 referenced +// resources per call. If an operation refers to more than 1 resources, +// the caller must call the Check method multiple times. This method +// requires the `servicemanagement.services.check` permission on the +// specified service. For more information, see Service Control API +// Access Control // (https://cloud.google.com/service-infrastructure/docs/service-control/access-control). // // - serviceName: The service name as specified in its service @@ -1832,7 +1834,7 @@ func (c *ServicesCheckCall) Do(opts ...googleapi.CallOption) (*CheckResponse, er } return ret, nil // { - // "description": "Private Preview. This feature is only available for approved services. This method provides admission control for services that are integrated with [Service Infrastructure](/service-infrastructure). It checks whether an operation should be allowed based on the service configuration and relevant policies. It must be called before the operation is executed. For more information, see [Admission Control](/service-infrastructure/docs/admission-control). NOTE: The admission control has an expected policy propagation delay of 60s. The caller **must** not depend on the most recent policy changes. NOTE: The admission control has a hard limit of 1 referenced resources per call. If an operation refers to more than 1 resources, the caller must call the Check method multiple times. This method requires the `servicemanagement.services.check` permission on the specified service. For more information, see [Service Control API Access Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control).", + // "description": "Private Preview. This feature is only available for approved services. This method provides admission control for services that are integrated with [Service Infrastructure](https://cloud.google.com/service-infrastructure). It checks whether an operation should be allowed based on the service configuration and relevant policies. It must be called before the operation is executed. For more information, see [Admission Control](https://cloud.google.com/service-infrastructure/docs/admission-control). NOTE: The admission control has an expected policy propagation delay of 60s. The caller **must** not depend on the most recent policy changes. NOTE: The admission control has a hard limit of 1 referenced resources per call. If an operation refers to more than 1 resources, the caller must call the Check method multiple times. This method requires the `servicemanagement.services.check` permission on the specified service. For more information, see [Service Control API Access Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control).", // "flatPath": "v2/services/{serviceName}:check", // "httpMethod": "POST", // "id": "servicecontrol.services.check", @@ -1875,14 +1877,15 @@ type ServicesReportCall struct { // Report: Private Preview. This feature is only available for approved // services. This method provides telemetry reporting for services that -// are integrated with Service Infrastructure (/service-infrastructure). -// It reports a list of operations that have occurred on a service. It -// must be called after the operations have been executed. For more -// information, see Telemetry Reporting -// (/service-infrastructure/docs/telemetry-reporting). NOTE: The -// telemetry reporting has a hard limit of 1000 operations and 1MB per -// Report call. It is recommended to have no more than 100 operations -// per call. This method requires the +// are integrated with Service Infrastructure +// (https://cloud.google.com/service-infrastructure). It reports a list +// of operations that have occurred on a service. It must be called +// after the operations have been executed. For more information, see +// Telemetry Reporting +// (https://cloud.google.com/service-infrastructure/docs/telemetry-reporting). +// NOTE: The telemetry reporting has a hard limit of 1000 operations and +// 1MB per Report call. It is recommended to have no more than 100 +// operations per call. This method requires the // `servicemanagement.services.report` permission on the specified // service. For more information, see Service Control API Access Control // (https://cloud.google.com/service-infrastructure/docs/service-control/access-control). @@ -1990,7 +1993,7 @@ func (c *ServicesReportCall) Do(opts ...googleapi.CallOption) (*ReportResponse, } return ret, nil // { - // "description": "Private Preview. This feature is only available for approved services. This method provides telemetry reporting for services that are integrated with [Service Infrastructure](/service-infrastructure). It reports a list of operations that have occurred on a service. It must be called after the operations have been executed. For more information, see [Telemetry Reporting](/service-infrastructure/docs/telemetry-reporting). NOTE: The telemetry reporting has a hard limit of 1000 operations and 1MB per Report call. It is recommended to have no more than 100 operations per call. This method requires the `servicemanagement.services.report` permission on the specified service. For more information, see [Service Control API Access Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control).", + // "description": "Private Preview. This feature is only available for approved services. This method provides telemetry reporting for services that are integrated with [Service Infrastructure](https://cloud.google.com/service-infrastructure). It reports a list of operations that have occurred on a service. It must be called after the operations have been executed. For more information, see [Telemetry Reporting](https://cloud.google.com/service-infrastructure/docs/telemetry-reporting). NOTE: The telemetry reporting has a hard limit of 1000 operations and 1MB per Report call. It is recommended to have no more than 100 operations per call. This method requires the `servicemanagement.services.report` permission on the specified service. For more information, see [Service Control API Access Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control).", // "flatPath": "v2/services/{serviceName}:report", // "httpMethod": "POST", // "id": "servicecontrol.services.report", diff --git a/sheets/v4/sheets-api.json b/sheets/v4/sheets-api.json index d3fdd10c9b6..b8ce8a881de 100644 --- a/sheets/v4/sheets-api.json +++ b/sheets/v4/sheets-api.json @@ -870,7 +870,7 @@ } } }, - "revision": "20220308", + "revision": "20220322", "rootUrl": "https://sheets.googleapis.com/", "schemas": { "AddBandingRequest": { @@ -3147,6 +3147,7 @@ "DATA_EXECUTION_ERROR_CODE_UNSPECIFIED", "TIMED_OUT", "TOO_MANY_ROWS", + "TOO_MANY_COLUMNS", "TOO_MANY_CELLS", "ENGINE", "PARAMETER_INVALID", @@ -3167,6 +3168,7 @@ "Default value, do not use.", "The data execution timed out.", "The data execution returns more rows than the limit.", + "The data execution returns more columns than the limit.", "The data execution returns more cells than the limit.", "Error is received from the backend data execution engine (e.g. BigQuery). Check error_message for details.", "One or some of the provided data source parameters are invalid.", diff --git a/sheets/v4/sheets-gen.go b/sheets/v4/sheets-gen.go index 678b16b8ad6..abbdc3ed2cc 100644 --- a/sheets/v4/sheets-gen.go +++ b/sheets/v4/sheets-gen.go @@ -4052,6 +4052,8 @@ type DataExecutionStatus struct { // "TIMED_OUT" - The data execution timed out. // "TOO_MANY_ROWS" - The data execution returns more rows than the // limit. + // "TOO_MANY_COLUMNS" - The data execution returns more columns than + // the limit. // "TOO_MANY_CELLS" - The data execution returns more cells than the // limit. // "ENGINE" - Error is received from the backend data execution engine diff --git a/slides/v1/slides-api.json b/slides/v1/slides-api.json index 320f2f336f9..733a666b45a 100644 --- a/slides/v1/slides-api.json +++ b/slides/v1/slides-api.json @@ -313,7 +313,7 @@ } } }, - "revision": "20210820", + "revision": "20220322", "rootUrl": "https://slides.googleapis.com/", "schemas": { "AffineTransform": { @@ -2054,7 +2054,7 @@ "type": "string" }, "revisionId": { - "description": "The revision ID of the presentation containing this page. Can be used in update requests to assert that the presentation revision hasn't changed since the last read operation. Only populated if the user has edit access to the presentation. The format of the revision ID may change over time, so it should be treated opaquely. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the presentation has not changed. Conversely, a changed ID (for the same presentation and user) usually means the presentation has been updated; however, a changed ID can also be due to internal factors such as ID format changes.", + "description": "Output only. The revision ID of the presentation. Can be used in update requests to assert the presentation revision hasn't changed since the last read operation. Only populated if the user has edit access to the presentation. The revision ID is not a sequential number but an opaque string. The format of the revision ID might change over time. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the presentation has not changed. Conversely, a changed ID (for the same presentation and user) usually means the presentation has been updated. However, a changed ID can also be due to internal factors such as ID format changes.", "type": "string" }, "slideProperties": { @@ -2372,7 +2372,7 @@ "type": "string" }, "revisionId": { - "description": "The revision ID of the presentation. Can be used in update requests to assert that the presentation revision hasn't changed since the last read operation. Only populated if the user has edit access to the presentation. The format of the revision ID may change over time, so it should be treated opaquely. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the presentation has not changed. Conversely, a changed ID (for the same presentation and user) usually means the presentation has been updated; however, a changed ID can also be due to internal factors such as ID format changes.", + "description": "Output only. The revision ID of the presentation. Can be used in update requests to assert the presentation revision hasn't changed since the last read operation. Only populated if the user has edit access to the presentation. The revision ID is not a sequential number but a nebulous string. The format of the revision ID may change over time, so it should be treated opaquely. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the presentation has not changed. Conversely, a changed ID (for the same presentation and user) usually means the presentation has been updated. However, a changed ID can also be due to internal factors such as ID format changes.", "type": "string" }, "slides": { @@ -4582,7 +4582,7 @@ "id": "WriteControl", "properties": { "requiredRevisionId": { - "description": "The revision ID of the presentation required for the write request. If specified and the `required_revision_id` doesn't exactly match the presentation's current `revision_id`, the request will not be processed and will return a 400 bad request error.", + "description": "The revision ID of the presentation required for the write request. If specified and the required revision ID doesn't match the presentation's current revision ID, the request is not processed and returns a 400 bad request error. When a required revision ID is returned in a response, it indicates the revision ID of the document after the request was applied.", "type": "string" } }, diff --git a/slides/v1/slides-gen.go b/slides/v1/slides-gen.go index 38e506e1f12..2edeef57f98 100644 --- a/slides/v1/slides-gen.go +++ b/slides/v1/slides-gen.go @@ -3108,18 +3108,18 @@ type Page struct { // "NOTES_MASTER" - A notes master page. PageType string `json:"pageType,omitempty"` - // RevisionId: The revision ID of the presentation containing this page. - // Can be used in update requests to assert that the presentation - // revision hasn't changed since the last read operation. Only populated - // if the user has edit access to the presentation. The format of the - // revision ID may change over time, so it should be treated opaquely. A - // returned revision ID is only guaranteed to be valid for 24 hours - // after it has been returned and cannot be shared across users. If the - // revision ID is unchanged between calls, then the presentation has not - // changed. Conversely, a changed ID (for the same presentation and - // user) usually means the presentation has been updated; however, a - // changed ID can also be due to internal factors such as ID format - // changes. + // RevisionId: Output only. The revision ID of the presentation. Can be + // used in update requests to assert the presentation revision hasn't + // changed since the last read operation. Only populated if the user has + // edit access to the presentation. The revision ID is not a sequential + // number but an opaque string. The format of the revision ID might + // change over time. A returned revision ID is only guaranteed to be + // valid for 24 hours after it has been returned and cannot be shared + // across users. If the revision ID is unchanged between calls, then the + // presentation has not changed. Conversely, a changed ID (for the same + // presentation and user) usually means the presentation has been + // updated. However, a changed ID can also be due to internal factors + // such as ID format changes. RevisionId string `json:"revisionId,omitempty"` // SlideProperties: Slide specific properties. Only set if page_type = @@ -3603,16 +3603,17 @@ type Presentation struct { // PresentationId: The ID of the presentation. PresentationId string `json:"presentationId,omitempty"` - // RevisionId: The revision ID of the presentation. Can be used in - // update requests to assert that the presentation revision hasn't + // RevisionId: Output only. The revision ID of the presentation. Can be + // used in update requests to assert the presentation revision hasn't // changed since the last read operation. Only populated if the user has - // edit access to the presentation. The format of the revision ID may + // edit access to the presentation. The revision ID is not a sequential + // number but a nebulous string. The format of the revision ID may // change over time, so it should be treated opaquely. A returned // revision ID is only guaranteed to be valid for 24 hours after it has // been returned and cannot be shared across users. If the revision ID // is unchanged between calls, then the presentation has not changed. // Conversely, a changed ID (for the same presentation and user) usually - // means the presentation has been updated; however, a changed ID can + // means the presentation has been updated. However, a changed ID can // also be due to internal factors such as ID format changes. RevisionId string `json:"revisionId,omitempty"` @@ -7132,10 +7133,11 @@ func (s *WordArt) MarshalJSON() ([]byte, error) { // WriteControl: Provides control over how write requests are executed. type WriteControl struct { // RequiredRevisionId: The revision ID of the presentation required for - // the write request. If specified and the `required_revision_id` - // doesn't exactly match the presentation's current `revision_id`, the - // request will not be processed and will return a 400 bad request - // error. + // the write request. If specified and the required revision ID doesn't + // match the presentation's current revision ID, the request is not + // processed and returns a 400 bad request error. When a required + // revision ID is returned in a response, it indicates the revision ID + // of the document after the request was applied. RequiredRevisionId string `json:"requiredRevisionId,omitempty"` // ForceSendFields is a list of field names (e.g. "RequiredRevisionId") diff --git a/storagetransfer/v1/storagetransfer-api.json b/storagetransfer/v1/storagetransfer-api.json index cec3ed6730c..6d7eccc43f2 100644 --- a/storagetransfer/v1/storagetransfer-api.json +++ b/storagetransfer/v1/storagetransfer-api.json @@ -600,7 +600,7 @@ } } }, - "revision": "20220310", + "revision": "20220324", "rootUrl": "https://storagetransfer.googleapis.com/", "schemas": { "AgentPool": { @@ -752,7 +752,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "type": "object" @@ -979,7 +979,7 @@ "type": "object" }, "MetadataOptions": { - "description": "Specifies the metadata options for running a transfer. These options only apply to transfers involving a POSIX filesystem and are ignored for other transfers.", + "description": "Specifies the metadata options for running a transfer.", "id": "MetadataOptions", "properties": { "acl": { @@ -997,7 +997,7 @@ "type": "string" }, "gid": { - "description": "Specifies how each file's POSIX group ID (GID) attribute should be handled by the transfer. By default, GID is not preserved.", + "description": "Specifies how each file's POSIX group ID (GID) attribute should be handled by the transfer. By default, GID is not preserved. Only applicable to transfers involving POSIX file systems, and ignored for other transfers.", "enum": [ "GID_UNSPECIFIED", "GID_SKIP", @@ -1025,7 +1025,7 @@ "type": "string" }, "mode": { - "description": "Specifies how each file's mode attribute should be handled by the transfer. By default, mode is not preserved.", + "description": "Specifies how each file's mode attribute should be handled by the transfer. By default, mode is not preserved. Only applicable to transfers involving POSIX file systems, and ignored for other transfers.", "enum": [ "MODE_UNSPECIFIED", "MODE_SKIP", @@ -1061,7 +1061,7 @@ "type": "string" }, "symlink": { - "description": "Specifies how symlinks should be handled by the transfer. By default, symlinks are not preserved.", + "description": "Specifies how symlinks should be handled by the transfer. By default, symlinks are not preserved. Only applicable to transfers involving POSIX file systems, and ignored for other transfers.", "enum": [ "SYMLINK_UNSPECIFIED", "SYMLINK_SKIP", @@ -1103,7 +1103,7 @@ "type": "string" }, "uid": { - "description": "Specifies how each file's POSIX user ID (UID) attribute should be handled by the transfer. By default, UID is not preserved.", + "description": "Specifies how each file's POSIX user ID (UID) attribute should be handled by the transfer. By default, UID is not preserved. Only applicable to transfers involving POSIX file systems, and ignored for other transfers.", "enum": [ "UID_UNSPECIFIED", "UID_SKIP", @@ -1640,6 +1640,22 @@ "overwriteObjectsAlreadyExistingInSink": { "description": "When to overwrite objects that already exist in the sink. The default is that only objects that are different from the source are ovewritten. If true, all objects in the sink whose name matches an object in the source are overwritten with the source object.", "type": "boolean" + }, + "overwriteWhen": { + "description": "When to overwrite objects that already exist in the sink. If not set overwrite behavior is determined by overwrite_objects_already_existing_in_sink.", + "enum": [ + "OVERWRITE_WHEN_UNSPECIFIED", + "DIFFERENT", + "NEVER", + "ALWAYS" + ], + "enumDescriptions": [ + "Indicate the option is not set.", + "Overwrite destination object with source if the two objects are different.", + "Never overwrite destination object.", + "Always overwrite destination object." + ], + "type": "string" } }, "type": "object" diff --git a/storagetransfer/v1/storagetransfer-gen.go b/storagetransfer/v1/storagetransfer-gen.go index 53a42e4e875..b4c9282fc53 100644 --- a/storagetransfer/v1/storagetransfer-gen.go +++ b/storagetransfer/v1/storagetransfer-gen.go @@ -507,8 +507,7 @@ func (s *Date) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. @@ -974,8 +973,7 @@ func (s *LoggingConfig) MarshalJSON() ([]byte, error) { } // MetadataOptions: Specifies the metadata options for running a -// transfer. These options only apply to transfers involving a POSIX -// filesystem and are ignored for other transfers. +// transfer. type MetadataOptions struct { // Acl: Specifies how each object's ACLs should be preserved for // transfers between Google Cloud Storage buckets. If unspecified, the @@ -993,7 +991,9 @@ type MetadataOptions struct { Acl string `json:"acl,omitempty"` // Gid: Specifies how each file's POSIX group ID (GID) attribute should - // be handled by the transfer. By default, GID is not preserved. + // be handled by the transfer. By default, GID is not preserved. Only + // applicable to transfers involving POSIX file systems, and ignored for + // other transfers. // // Possible values: // "GID_UNSPECIFIED" - GID behavior is unspecified. @@ -1017,7 +1017,9 @@ type MetadataOptions struct { KmsKey string `json:"kmsKey,omitempty"` // Mode: Specifies how each file's mode attribute should be handled by - // the transfer. By default, mode is not preserved. + // the transfer. By default, mode is not preserved. Only applicable to + // transfers involving POSIX file systems, and ignored for other + // transfers. // // Possible values: // "MODE_UNSPECIFIED" - Mode behavior is unspecified. @@ -1045,7 +1047,8 @@ type MetadataOptions struct { StorageClass string `json:"storageClass,omitempty"` // Symlink: Specifies how symlinks should be handled by the transfer. By - // default, symlinks are not preserved. + // default, symlinks are not preserved. Only applicable to transfers + // involving POSIX file systems, and ignored for other transfers. // // Possible values: // "SYMLINK_UNSPECIFIED" - Symlink behavior is unspecified. @@ -1082,7 +1085,9 @@ type MetadataOptions struct { TimeCreated string `json:"timeCreated,omitempty"` // Uid: Specifies how each file's POSIX user ID (UID) attribute should - // be handled by the transfer. By default, UID is not preserved. + // be handled by the transfer. By default, UID is not preserved. Only + // applicable to transfers involving POSIX file systems, and ignored for + // other transfers. // // Possible values: // "UID_UNSPECIFIED" - UID behavior is unspecified. @@ -1921,6 +1926,18 @@ type TransferOptions struct { // the source object. OverwriteObjectsAlreadyExistingInSink bool `json:"overwriteObjectsAlreadyExistingInSink,omitempty"` + // OverwriteWhen: When to overwrite objects that already exist in the + // sink. If not set overwrite behavior is determined by + // overwrite_objects_already_existing_in_sink. + // + // Possible values: + // "OVERWRITE_WHEN_UNSPECIFIED" - Indicate the option is not set. + // "DIFFERENT" - Overwrite destination object with source if the two + // objects are different. + // "NEVER" - Never overwrite destination object. + // "ALWAYS" - Always overwrite destination object. + OverwriteWhen string `json:"overwriteWhen,omitempty"` + // ForceSendFields is a list of field names (e.g. // "DeleteObjectsFromSourceAfterTransfer") to unconditionally include in // API requests. By default, fields with empty or default values are diff --git a/workflowexecutions/v1/workflowexecutions-api.json b/workflowexecutions/v1/workflowexecutions-api.json index a4dcac91f05..f34e725c05c 100644 --- a/workflowexecutions/v1/workflowexecutions-api.json +++ b/workflowexecutions/v1/workflowexecutions-api.json @@ -110,6 +110,36 @@ "locations": { "resources": { "workflows": { + "methods": { + "triggerPubsubExecution": { + "description": "Triggers a new execution using the latest revision of the given workflow by a Pub/Sub push notification.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflows/{workflowsId}:triggerPubsubExecution", + "httpMethod": "POST", + "id": "workflowexecutions.projects.locations.workflows.triggerPubsubExecution", + "parameterOrder": [ + "workflow" + ], + "parameters": { + "workflow": { + "description": "Required. Name of the workflow for which an execution should be created. Format: projects/{project}/locations/{location}/workflows/{workflow}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workflows/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+workflow}:triggerPubsubExecution", + "request": { + "$ref": "TriggerPubsubExecutionRequest" + }, + "response": { + "$ref": "Execution" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, "resources": { "executions": { "methods": { @@ -269,7 +299,7 @@ } } }, - "revision": "20211019", + "revision": "20220315", "rootUrl": "https://workflowexecutions.googleapis.com/", "schemas": { "CancelExecutionRequest": { @@ -413,6 +443,38 @@ }, "type": "object" }, + "PubsubMessage": { + "description": "A message that is published by publishers and consumed by subscribers. The message must contain either a non-empty data field or at least one attribute. Note that client libraries represent this object differently depending on the language. See the corresponding [client library documentation](https://cloud.google.com/pubsub/docs/reference/libraries) for more information. See [quotas and limits] (https://cloud.google.com/pubsub/quotas) for more information about message limits.", + "id": "PubsubMessage", + "properties": { + "attributes": { + "additionalProperties": { + "type": "string" + }, + "description": "Attributes for this message. If this field is empty, the message must contain non-empty data. This can be used to filter messages on the subscription.", + "type": "object" + }, + "data": { + "description": "The message data field. If this field is empty, the message must contain at least one attribute.", + "format": "byte", + "type": "string" + }, + "messageId": { + "description": "ID of this message, assigned by the server when the message is published. Guaranteed to be unique within the topic. This value may be read by a subscriber that receives a `PubsubMessage` via a `Pull` call or a push delivery. It must not be populated by the publisher in a `Publish` call.", + "type": "string" + }, + "orderingKey": { + "description": "If non-empty, identifies related messages for which publish order should be respected. If a `Subscription` has `enable_message_ordering` set to `true`, messages published with the same non-empty `ordering_key` value will be delivered to subscribers in the order in which they are received by the Pub/Sub system. All `PubsubMessage`s published in a given `PublishRequest` must specify the same `ordering_key` value.", + "type": "string" + }, + "publishTime": { + "description": "The time at which the message was published, populated by the server when it receives the `Publish` call. It must not be populated by the publisher in a `Publish` call.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "StackTrace": { "description": "A collection of stack elements (frames) where an error occurred.", "id": "StackTrace", @@ -445,6 +507,25 @@ } }, "type": "object" + }, + "TriggerPubsubExecutionRequest": { + "description": "Request for the TriggerPubsubExecution method.", + "id": "TriggerPubsubExecutionRequest", + "properties": { + "GCPCloudEventsMode": { + "description": "Required. LINT: LEGACY_NAMES The query parameter value for __GCP_CloudEventsMode, set by the Eventarc service when configuring triggers.", + "type": "string" + }, + "message": { + "$ref": "PubsubMessage", + "description": "Required. The message of the Pub/Sub push notification." + }, + "subscription": { + "description": "Required. The subscription of the Pub/Sub push notification. Format: projects/{project}/subscriptions/{sub}", + "type": "string" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/workflowexecutions/v1/workflowexecutions-gen.go b/workflowexecutions/v1/workflowexecutions-gen.go index 080fa511dac..c449ee187b3 100644 --- a/workflowexecutions/v1/workflowexecutions-gen.go +++ b/workflowexecutions/v1/workflowexecutions-gen.go @@ -380,6 +380,69 @@ func (s *Position) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PubsubMessage: A message that is published by publishers and consumed +// by subscribers. The message must contain either a non-empty data +// field or at least one attribute. Note that client libraries represent +// this object differently depending on the language. See the +// corresponding client library documentation +// (https://cloud.google.com/pubsub/docs/reference/libraries) for more +// information. See [quotas and limits] +// (https://cloud.google.com/pubsub/quotas) for more information about +// message limits. +type PubsubMessage struct { + // Attributes: Attributes for this message. If this field is empty, the + // message must contain non-empty data. This can be used to filter + // messages on the subscription. + Attributes map[string]string `json:"attributes,omitempty"` + + // Data: The message data field. If this field is empty, the message + // must contain at least one attribute. + Data string `json:"data,omitempty"` + + // MessageId: ID of this message, assigned by the server when the + // message is published. Guaranteed to be unique within the topic. This + // value may be read by a subscriber that receives a `PubsubMessage` via + // a `Pull` call or a push delivery. It must not be populated by the + // publisher in a `Publish` call. + MessageId string `json:"messageId,omitempty"` + + // OrderingKey: If non-empty, identifies related messages for which + // publish order should be respected. If a `Subscription` has + // `enable_message_ordering` set to `true`, messages published with the + // same non-empty `ordering_key` value will be delivered to subscribers + // in the order in which they are received by the Pub/Sub system. All + // `PubsubMessage`s published in a given `PublishRequest` must specify + // the same `ordering_key` value. + OrderingKey string `json:"orderingKey,omitempty"` + + // PublishTime: The time at which the message was published, populated + // by the server when it receives the `Publish` call. It must not be + // populated by the publisher in a `Publish` call. + PublishTime string `json:"publishTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Attributes") 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. "Attributes") 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 *PubsubMessage) MarshalJSON() ([]byte, error) { + type NoMethod PubsubMessage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // StackTrace: A collection of stack elements (frames) where an error // occurred. type StackTrace struct { @@ -444,6 +507,190 @@ func (s *StackTraceElement) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TriggerPubsubExecutionRequest: Request for the TriggerPubsubExecution +// method. +type TriggerPubsubExecutionRequest struct { + // GCPCloudEventsMode: Required. LINT: LEGACY_NAMES The query parameter + // value for __GCP_CloudEventsMode, set by the Eventarc service when + // configuring triggers. + GCPCloudEventsMode string `json:"GCPCloudEventsMode,omitempty"` + + // Message: Required. The message of the Pub/Sub push notification. + Message *PubsubMessage `json:"message,omitempty"` + + // Subscription: Required. The subscription of the Pub/Sub push + // notification. Format: projects/{project}/subscriptions/{sub} + Subscription string `json:"subscription,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GCPCloudEventsMode") + // 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. "GCPCloudEventsMode") 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 *TriggerPubsubExecutionRequest) MarshalJSON() ([]byte, error) { + type NoMethod TriggerPubsubExecutionRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "workflowexecutions.projects.locations.workflows.triggerPubsubExecution": + +type ProjectsLocationsWorkflowsTriggerPubsubExecutionCall struct { + s *Service + workflow string + triggerpubsubexecutionrequest *TriggerPubsubExecutionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TriggerPubsubExecution: Triggers a new execution using the latest +// revision of the given workflow by a Pub/Sub push notification. +// +// - workflow: Name of the workflow for which an execution should be +// created. Format: +// projects/{project}/locations/{location}/workflows/{workflow}. +func (r *ProjectsLocationsWorkflowsService) TriggerPubsubExecution(workflow string, triggerpubsubexecutionrequest *TriggerPubsubExecutionRequest) *ProjectsLocationsWorkflowsTriggerPubsubExecutionCall { + c := &ProjectsLocationsWorkflowsTriggerPubsubExecutionCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.workflow = workflow + c.triggerpubsubexecutionrequest = triggerpubsubexecutionrequest + 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 *ProjectsLocationsWorkflowsTriggerPubsubExecutionCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkflowsTriggerPubsubExecutionCall { + 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 *ProjectsLocationsWorkflowsTriggerPubsubExecutionCall) Context(ctx context.Context) *ProjectsLocationsWorkflowsTriggerPubsubExecutionCall { + 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 *ProjectsLocationsWorkflowsTriggerPubsubExecutionCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkflowsTriggerPubsubExecutionCall) 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 + body, err := googleapi.WithoutDataWrapper.JSONReader(c.triggerpubsubexecutionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+workflow}:triggerPubsubExecution") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "workflow": c.workflow, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workflowexecutions.projects.locations.workflows.triggerPubsubExecution" call. +// Exactly one of *Execution or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Execution.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 *ProjectsLocationsWorkflowsTriggerPubsubExecutionCall) Do(opts ...googleapi.CallOption) (*Execution, 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 := &Execution{ + 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": "Triggers a new execution using the latest revision of the given workflow by a Pub/Sub push notification.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workflows/{workflowsId}:triggerPubsubExecution", + // "httpMethod": "POST", + // "id": "workflowexecutions.projects.locations.workflows.triggerPubsubExecution", + // "parameterOrder": [ + // "workflow" + // ], + // "parameters": { + // "workflow": { + // "description": "Required. Name of the workflow for which an execution should be created. Format: projects/{project}/locations/{location}/workflows/{workflow}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workflows/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+workflow}:triggerPubsubExecution", + // "request": { + // "$ref": "TriggerPubsubExecutionRequest" + // }, + // "response": { + // "$ref": "Execution" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "workflowexecutions.projects.locations.workflows.executions.cancel": type ProjectsLocationsWorkflowsExecutionsCancelCall struct {