From bd9630ab6fc22bc2bf7108d72457f914c69a4b14 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 20 Sep 2024 00:22:24 -0700 Subject: [PATCH 1/9] feat(all): auto-regenerate discovery clients (#2791) --- admin/directory/v1/admin-api.json | 4 +- admin/directory/v1/admin-gen.go | 3 +- batch/v1/batch-api.json | 4 +- batch/v1/batch-gen.go | 5 +- .../v1/bigquerydatatransfer-api.json | 68 +- .../v1/bigquerydatatransfer-gen.go | 109 ++ drive/v2/drive-api.json | 4 +- drive/v2/drive-gen.go | 23 +- drive/v3/drive-api.json | 4 +- drive/v3/drive-gen.go | 19 +- eventarc/v1/eventarc-api.json | 366 +++- eventarc/v1/eventarc-gen.go | 1704 +++++++++++++++-- firebaseml/v2beta/firebaseml-api.json | 9 +- firebaseml/v2beta/firebaseml-gen.go | 7 +- logging/v2/logging-api.json | 4 +- logging/v2/logging-gen.go | 4 +- .../v1/networkmanagement-api.json | 40 +- networkmanagement/v1/networkmanagement-gen.go | 48 +- .../v1beta1/networkservices-api.json | 51 +- .../v1beta1/networkservices-gen.go | 68 +- pubsub/v1/pubsub-api.json | 4 +- pubsub/v1/pubsub-gen.go | 4 +- run/v1/run-api.json | 6 +- run/v1/run-gen.go | 20 +- securitycenter/v1/securitycenter-api.json | 10 +- securitycenter/v1/securitycenter-gen.go | 28 +- .../serviceconsumermanagement-api.json | 4 +- .../v1beta1/serviceconsumermanagement-gen.go | 5 +- 28 files changed, 2394 insertions(+), 231 deletions(-) diff --git a/admin/directory/v1/admin-api.json b/admin/directory/v1/admin-api.json index b510a271cb8..a52687760da 100644 --- a/admin/directory/v1/admin-api.json +++ b/admin/directory/v1/admin-api.json @@ -1677,7 +1677,7 @@ "type": "string" }, "userKey": { - "description": "Email or immutable ID of the user if only those groups are to be listed, the given user is a member of. If it's an ID, it should match with the ID of the user object.", + "description": "Email or immutable ID of the user if only those groups are to be listed, the given user is a member of. If it's an ID, it should match with the ID of the user object. Cannot be used with the `customer` parameter.", "location": "query", "type": "string" } @@ -4671,7 +4671,7 @@ } } }, - "revision": "20240903", + "revision": "20240917", "rootUrl": "https://admin.googleapis.com/", "schemas": { "Alias": { diff --git a/admin/directory/v1/admin-gen.go b/admin/directory/v1/admin-gen.go index 8bf0eb359c9..10dcb7724c6 100644 --- a/admin/directory/v1/admin-gen.go +++ b/admin/directory/v1/admin-gen.go @@ -10069,7 +10069,8 @@ func (c *GroupsListCall) SortOrder(sortOrder string) *GroupsListCall { // UserKey sets the optional parameter "userKey": Email or immutable ID of the // user if only those groups are to be listed, the given user is a member of. -// If it's an ID, it should match with the ID of the user object. +// If it's an ID, it should match with the ID of the user object. Cannot be +// used with the `customer` parameter. func (c *GroupsListCall) UserKey(userKey string) *GroupsListCall { c.urlParams_.Set("userKey", userKey) return c diff --git a/batch/v1/batch-api.json b/batch/v1/batch-api.json index 15ae00738c7..13e4a9ca627 100644 --- a/batch/v1/batch-api.json +++ b/batch/v1/batch-api.json @@ -561,7 +561,7 @@ } } }, - "revision": "20240821", + "revision": "20240911", "rootUrl": "https://batch.googleapis.com/", "schemas": { "Accelerator": { @@ -1287,7 +1287,7 @@ "type": "boolean" }, "instanceTemplate": { - "description": "Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid c++ keyword conflict.", + "description": "Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid C++ keyword conflict. Batch only supports global instance templates. You can specify the global instance template as a full or partial URL.", "type": "string" }, "policy": { diff --git a/batch/v1/batch-gen.go b/batch/v1/batch-gen.go index 9256063e932..aa9e70d935e 100644 --- a/batch/v1/batch-gen.go +++ b/batch/v1/batch-gen.go @@ -1233,8 +1233,9 @@ type InstancePolicyOrTemplate struct { // Ops Agent on your behalf. Default is false. InstallOpsAgent bool `json:"installOpsAgent,omitempty"` // InstanceTemplate: Name of an instance template used to create VMs. Named the - // field as 'instance_template' instead of 'template' to avoid c++ keyword - // conflict. + // field as 'instance_template' instead of 'template' to avoid C++ keyword + // conflict. Batch only supports global instance templates. You can specify the + // global instance template as a full or partial URL. InstanceTemplate string `json:"instanceTemplate,omitempty"` // Policy: InstancePolicy. Policy *InstancePolicy `json:"policy,omitempty"` diff --git a/bigquerydatatransfer/v1/bigquerydatatransfer-api.json b/bigquerydatatransfer/v1/bigquerydatatransfer-api.json index a62d4d2ace1..24b2a2e1057 100644 --- a/bigquerydatatransfer/v1/bigquerydatatransfer-api.json +++ b/bigquerydatatransfer/v1/bigquerydatatransfer-api.json @@ -1407,7 +1407,7 @@ } } }, - "revision": "20240806", + "revision": "20240914", "rootUrl": "https://bigquerydatatransfer.googleapis.com/", "schemas": { "CheckValidCredsRequest": { @@ -1691,6 +1691,17 @@ }, "type": "object" }, + "EventDrivenSchedule": { + "description": "Options customizing EventDriven transfers schedule.", + "id": "EventDrivenSchedule", + "properties": { + "pubsubSubscription": { + "description": "Pub/Sub subscription name used to receive events. Only Google Cloud Storage data source support this option. Format: projects/{project}/subscriptions/{subscription}", + "type": "string" + } + }, + "type": "object" + }, "ListDataSourcesResponse": { "description": "Returns list of supported data sources and their metadata.", "id": "ListDataSourcesResponse", @@ -1822,6 +1833,12 @@ }, "type": "object" }, + "ManualSchedule": { + "description": "Options customizing manual transfers schedule.", + "id": "ManualSchedule", + "properties": {}, + "type": "object" + }, "ScheduleOptions": { "description": "Options customizing the data transfer schedule.", "id": "ScheduleOptions", @@ -1843,6 +1860,25 @@ }, "type": "object" }, + "ScheduleOptionsV2": { + "description": "V2 options customizing different types of data transfer schedule. This field supports existing time-based and manual transfer schedule. Also supports Event-Driven transfer schedule. ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule.", + "id": "ScheduleOptionsV2", + "properties": { + "eventDrivenSchedule": { + "$ref": "EventDrivenSchedule", + "description": "Event driven transfer schedule options. If set, the transfer will be scheduled upon events arrial." + }, + "manualSchedule": { + "$ref": "ManualSchedule", + "description": "Manual transfer schedule. If set, the transfer run will not be auto-scheduled by the system, unless the client invokes StartManualTransferRuns. This is equivalent to disable_auto_scheduling = true." + }, + "timeBasedSchedule": { + "$ref": "TimeBasedSchedule", + "description": "Time based transfer schedule options. This is the default schedule option." + } + }, + "type": "object" + }, "ScheduleTransferRunsRequest": { "description": "A request to schedule transfer runs for a time range.", "id": "ScheduleTransferRunsRequest", @@ -1931,6 +1967,27 @@ }, "type": "object" }, + "TimeBasedSchedule": { + "description": "Options customizing the time based transfer schedule. Options are migrated from the original ScheduleOptions message.", + "id": "TimeBasedSchedule", + "properties": { + "endTime": { + "description": "Defines time to stop scheduling transfer runs. A transfer run cannot be scheduled at or after the end time. The end time can be changed at any moment.", + "format": "google-datetime", + "type": "string" + }, + "schedule": { + "description": "Data transfer schedule. If the data source does not support a custom schedule, this should be empty. If it is empty, the default value for the data source will be used. The specified times are in UTC. Examples of valid format: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of quarter 00:00`. See more explanation about the format here: https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format NOTE: The minimum interval time between recurring transfers depends on the data source; refer to the documentation for your data source.", + "type": "string" + }, + "startTime": { + "description": "Specifies time to start scheduling transfer runs. The first run will be scheduled at or after the start time according to a recurrence pattern defined in the schedule string. The start time can be changed at any moment.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "TimeRange": { "description": "A specification for a time range, this will request transfer runs with run_time between start_time (inclusive) and end_time (exclusive).", "id": "TimeRange", @@ -1986,6 +2043,11 @@ "$ref": "EncryptionConfiguration", "description": "The encryption configuration part. Currently, it is only used for the optional KMS key name. The BigQuery service account of your project must be granted permissions to use the key. Read methods will return the key name applied in effect. Write methods will apply the key if it is present, or otherwise try to apply project default keys if it is absent." }, + "error": { + "$ref": "Status", + "description": "Output only. Error code with detailed information about reason of the latest config failure.", + "readOnly": true + }, "name": { "description": "Identifier. The resource name of the transfer config. Transfer config names have the form either `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or `projects/{project_id}/transferConfigs/{config_id}`, where `config_id` is usually a UUID, even though it is not guaranteed or required. The name is ignored when creating a transfer config.", "type": "string" @@ -2021,6 +2083,10 @@ "$ref": "ScheduleOptions", "description": "Options customizing the data transfer schedule." }, + "scheduleOptionsV2": { + "$ref": "ScheduleOptionsV2", + "description": "Options customizing different types of data transfer schedule. This field replaces \"schedule\" and \"schedule_options\" fields. ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule." + }, "state": { "description": "Output only. State of the most recently updated transfer run.", "enum": [ diff --git a/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go b/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go index 3b7ead7aeae..adf9fe08078 100644 --- a/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go +++ b/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go @@ -584,6 +584,30 @@ func (s EnrollDataSourcesRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// EventDrivenSchedule: Options customizing EventDriven transfers schedule. +type EventDrivenSchedule struct { + // PubsubSubscription: Pub/Sub subscription name used to receive events. Only + // Google Cloud Storage data source support this option. Format: + // projects/{project}/subscriptions/{subscription} + PubsubSubscription string `json:"pubsubSubscription,omitempty"` + // ForceSendFields is a list of field names (e.g. "PubsubSubscription") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PubsubSubscription") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s EventDrivenSchedule) MarshalJSON() ([]byte, error) { + type NoMethod EventDrivenSchedule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ListDataSourcesResponse: Returns list of supported data sources and their // metadata. type ListDataSourcesResponse struct { @@ -771,6 +795,10 @@ func (s Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ManualSchedule: Options customizing manual transfers schedule. +type ManualSchedule struct { +} + // ScheduleOptions: Options customizing the data transfer schedule. type ScheduleOptions struct { // DisableAutoScheduling: If true, automatic scheduling of data transfer runs @@ -807,6 +835,40 @@ func (s ScheduleOptions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ScheduleOptionsV2: V2 options customizing different types of data transfer +// schedule. This field supports existing time-based and manual transfer +// schedule. Also supports Event-Driven transfer schedule. ScheduleOptionsV2 +// cannot be used together with ScheduleOptions/Schedule. +type ScheduleOptionsV2 struct { + // EventDrivenSchedule: Event driven transfer schedule options. If set, the + // transfer will be scheduled upon events arrial. + EventDrivenSchedule *EventDrivenSchedule `json:"eventDrivenSchedule,omitempty"` + // ManualSchedule: Manual transfer schedule. If set, the transfer run will not + // be auto-scheduled by the system, unless the client invokes + // StartManualTransferRuns. This is equivalent to disable_auto_scheduling = + // true. + ManualSchedule *ManualSchedule `json:"manualSchedule,omitempty"` + // TimeBasedSchedule: Time based transfer schedule options. This is the default + // schedule option. + TimeBasedSchedule *TimeBasedSchedule `json:"timeBasedSchedule,omitempty"` + // ForceSendFields is a list of field names (e.g. "EventDrivenSchedule") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EventDrivenSchedule") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ScheduleOptionsV2) MarshalJSON() ([]byte, error) { + type NoMethod ScheduleOptionsV2 + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ScheduleTransferRunsRequest: A request to schedule transfer runs for a time // range. type ScheduleTransferRunsRequest struct { @@ -949,6 +1011,46 @@ func (s Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// TimeBasedSchedule: Options customizing the time based transfer schedule. +// Options are migrated from the original ScheduleOptions message. +type TimeBasedSchedule struct { + // EndTime: Defines time to stop scheduling transfer runs. A transfer run + // cannot be scheduled at or after the end time. The end time can be changed at + // any moment. + EndTime string `json:"endTime,omitempty"` + // Schedule: Data transfer schedule. If the data source does not support a + // custom schedule, this should be empty. If it is empty, the default value for + // the data source will be used. The specified times are in UTC. Examples of + // valid format: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun + // 13:15`, and `first sunday of quarter 00:00`. See more explanation about the + // format here: + // https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format + // NOTE: The minimum interval time between recurring transfers depends on the + // data source; refer to the documentation for your data source. + Schedule string `json:"schedule,omitempty"` + // StartTime: Specifies time to start scheduling transfer runs. The first run + // will be scheduled at or after the start time according to a recurrence + // pattern defined in the schedule string. The start time can be changed at any + // moment. + StartTime string `json:"startTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s TimeBasedSchedule) MarshalJSON() ([]byte, error) { + type NoMethod TimeBasedSchedule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // TimeRange: A specification for a time range, this will request transfer runs // with run_time between start_time (inclusive) and end_time (exclusive). type TimeRange struct { @@ -1017,6 +1119,9 @@ type TransferConfig struct { // it is present, or otherwise try to apply project default keys if it is // absent. EncryptionConfiguration *EncryptionConfiguration `json:"encryptionConfiguration,omitempty"` + // Error: Output only. Error code with detailed information about reason of the + // latest config failure. + Error *Status `json:"error,omitempty"` // Name: Identifier. The resource name of the transfer config. Transfer config // names have the form either // `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or @@ -1052,6 +1157,10 @@ type TransferConfig struct { Schedule string `json:"schedule,omitempty"` // ScheduleOptions: Options customizing the data transfer schedule. ScheduleOptions *ScheduleOptions `json:"scheduleOptions,omitempty"` + // ScheduleOptionsV2: Options customizing different types of data transfer + // schedule. This field replaces "schedule" and "schedule_options" fields. + // ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule. + ScheduleOptionsV2 *ScheduleOptionsV2 `json:"scheduleOptionsV2,omitempty"` // State: Output only. State of the most recently updated transfer run. // // Possible values: diff --git a/drive/v2/drive-api.json b/drive/v2/drive-api.json index 137b4ec21ad..267fe0b1293 100644 --- a/drive/v2/drive-api.json +++ b/drive/v2/drive-api.json @@ -1758,7 +1758,7 @@ "type": "integer" }, "orderBy": { - "description": "A comma-separated list of sort keys. Valid keys are `createdDate`, `folder`, `lastViewedByMeDate`, `modifiedByMeDate`, `modifiedDate`, `quotaBytesUsed`, `recency`, `sharedWithMeDate`, `starred`, `title`, and `title_natural`. Each key sorts ascending by default, but may be reversed with the `desc` modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored.", + "description": "A comma-separated list of sort keys. Valid keys are: * `createdDate`: When the file was created. * `folder`: The folder ID. This field is sorted using alphabetical ordering. * `lastViewedByMeDate`: The last time the file was viewed by the user. * `modifiedByMeDate`: The last time the file was modified by the user. * `modifiedDate`: The last time the file was modified by anyone. * `quotaBytesUsed`: The number of storage quota bytes used by the file. * `recency`: The most recent timestamp from the file's date-time fields. * `sharedWithMeDate`: When the file was shared with the user, if applicable. * `starred`: Whether the user has starred the file. * `title`: The title of the file. This field is sorted using alphabetical ordering, so 1, 12, 2, 22. * `title_natural`: The title of the file. This field is sorted using natural sort ordering, so 1, 2, 12, 22. Each key sorts ascending by default, but can be reversed with the 'desc' modifier. Example usage: `?orderBy=folder,modifiedDate desc,title`. Note that there's a current limitation for users with approximately one million files in which the requested sort order is ignored.", "location": "query", "type": "string" }, @@ -3869,7 +3869,7 @@ } } }, - "revision": "20240809", + "revision": "20240914", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { diff --git a/drive/v2/drive-gen.go b/drive/v2/drive-gen.go index aa0ea731906..f997a7fdff7 100644 --- a/drive/v2/drive-gen.go +++ b/drive/v2/drive-gen.go @@ -7706,13 +7706,22 @@ func (c *FilesListCall) MaxResults(maxResults int64) *FilesListCall { } // OrderBy sets the optional parameter "orderBy": A comma-separated list of -// sort keys. Valid keys are `createdDate`, `folder`, `lastViewedByMeDate`, -// `modifiedByMeDate`, `modifiedDate`, `quotaBytesUsed`, `recency`, -// `sharedWithMeDate`, `starred`, `title`, and `title_natural`. Each key sorts -// ascending by default, but may be reversed with the `desc` modifier. Example -// usage: ?orderBy=folder,modifiedDate desc,title. Please note that there is a -// current limitation for users with approximately one million files in which -// the requested sort order is ignored. +// sort keys. Valid keys are: * `createdDate`: When the file was created. * +// `folder`: The folder ID. This field is sorted using alphabetical ordering. * +// `lastViewedByMeDate`: The last time the file was viewed by the user. * +// `modifiedByMeDate`: The last time the file was modified by the user. * +// `modifiedDate`: The last time the file was modified by anyone. * +// `quotaBytesUsed`: The number of storage quota bytes used by the file. * +// `recency`: The most recent timestamp from the file's date-time fields. * +// `sharedWithMeDate`: When the file was shared with the user, if applicable. * +// `starred`: Whether the user has starred the file. * `title`: The title of +// the file. This field is sorted using alphabetical ordering, so 1, 12, 2, 22. +// * `title_natural`: The title of the file. This field is sorted using natural +// sort ordering, so 1, 2, 12, 22. Each key sorts ascending by default, but can +// be reversed with the 'desc' modifier. Example usage: +// `?orderBy=folder,modifiedDate desc,title`. Note that there's a current +// limitation for users with approximately one million files in which the +// requested sort order is ignored. func (c *FilesListCall) OrderBy(orderBy string) *FilesListCall { c.urlParams_.Set("orderBy", orderBy) return c diff --git a/drive/v3/drive-api.json b/drive/v3/drive-api.json index 79d55f441ec..834c0b327df 100644 --- a/drive/v3/drive-api.json +++ b/drive/v3/drive-api.json @@ -1396,7 +1396,7 @@ "type": "boolean" }, "orderBy": { - "description": "A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but can be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime desc,name.", + "description": "A comma-separated list of sort keys. Valid keys are: * `createdTime`: When the file was created. * `folder`: The folder ID. This field is sorted using alphabetical ordering. * `modifiedByMeTime`: The last time the file was modified by the user. * `modifiedTime`: The last time the file was modified by anyone. * `name`: The name of the file. This field is sorted using alphabetical ordering, so 1, 12, 2, 22. * `name_natural`: The name of the file. This field is sorted using natural sort ordering, so 1, 2, 12, 22. * `quotaBytesUsed`: The number of storage quota bytes used by the file. * `recency`: The most recent timestamp from the file's date-time fields. * `sharedWithMeTime`: When the file was shared with the user, if applicable. * `starred`: Whether the user has starred the file. * `viewedByMeTime`: The last time the file was viewed by the user. Each key sorts ascending by default, but can be reversed with the 'desc' modifier. Example usage: `?orderBy=folder,modifiedTime desc,name`.", "location": "query", "type": "string" }, @@ -2664,7 +2664,7 @@ } } }, - "revision": "20240903", + "revision": "20240914", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { diff --git a/drive/v3/drive-gen.go b/drive/v3/drive-gen.go index 03e968b26c1..122526d467b 100644 --- a/drive/v3/drive-gen.go +++ b/drive/v3/drive-gen.go @@ -6504,11 +6504,20 @@ func (c *FilesListCall) IncludeTeamDriveItems(includeTeamDriveItems bool) *Files } // OrderBy sets the optional parameter "orderBy": A comma-separated list of -// sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', -// 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', -// 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts -// ascending by default, but can be reversed with the 'desc' modifier. Example -// usage: ?orderBy=folder,modifiedTime desc,name. +// sort keys. Valid keys are: * `createdTime`: When the file was created. * +// `folder`: The folder ID. This field is sorted using alphabetical ordering. * +// `modifiedByMeTime`: The last time the file was modified by the user. * +// `modifiedTime`: The last time the file was modified by anyone. * `name`: The +// name of the file. This field is sorted using alphabetical ordering, so 1, +// 12, 2, 22. * `name_natural`: The name of the file. This field is sorted +// using natural sort ordering, so 1, 2, 12, 22. * `quotaBytesUsed`: The number +// of storage quota bytes used by the file. * `recency`: The most recent +// timestamp from the file's date-time fields. * `sharedWithMeTime`: When the +// file was shared with the user, if applicable. * `starred`: Whether the user +// has starred the file. * `viewedByMeTime`: The last time the file was viewed +// by the user. Each key sorts ascending by default, but can be reversed with +// the 'desc' modifier. Example usage: `?orderBy=folder,modifiedTime +// desc,name`. func (c *FilesListCall) OrderBy(orderBy string) *FilesListCall { c.urlParams_.Set("orderBy", orderBy) return c diff --git a/eventarc/v1/eventarc-api.json b/eventarc/v1/eventarc-api.json index 010179db5b5..6940648dad9 100644 --- a/eventarc/v1/eventarc-api.json +++ b/eventarc/v1/eventarc-api.json @@ -710,6 +710,279 @@ } } }, + "enrollments": { + "methods": { + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/enrollments/{enrollmentsId}:getIamPolicy", + "httpMethod": "GET", + "id": "eventarc.projects.locations.enrollments.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/enrollments/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/enrollments/{enrollmentsId}:setIamPolicy", + "httpMethod": "POST", + "id": "eventarc.projects.locations.enrollments.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/enrollments/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/enrollments/{enrollmentsId}:testIamPermissions", + "httpMethod": "POST", + "id": "eventarc.projects.locations.enrollments.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/enrollments/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "googleApiSources": { + "methods": { + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/googleApiSources/{googleApiSourcesId}:getIamPolicy", + "httpMethod": "GET", + "id": "eventarc.projects.locations.googleApiSources.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/googleApiSources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/googleApiSources/{googleApiSourcesId}:setIamPolicy", + "httpMethod": "POST", + "id": "eventarc.projects.locations.googleApiSources.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/googleApiSources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/googleApiSources/{googleApiSourcesId}:testIamPermissions", + "httpMethod": "POST", + "id": "eventarc.projects.locations.googleApiSources.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/googleApiSources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "messageBuses": { + "methods": { + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/messageBuses/{messageBusesId}:getIamPolicy", + "httpMethod": "GET", + "id": "eventarc.projects.locations.messageBuses.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/messageBuses/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/messageBuses/{messageBusesId}:setIamPolicy", + "httpMethod": "POST", + "id": "eventarc.projects.locations.messageBuses.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/messageBuses/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/messageBuses/{messageBusesId}:testIamPermissions", + "httpMethod": "POST", + "id": "eventarc.projects.locations.messageBuses.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/messageBuses/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "operations": { "methods": { "cancel": { @@ -833,6 +1106,97 @@ } } }, + "pipelines": { + "methods": { + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/pipelines/{pipelinesId}:getIamPolicy", + "httpMethod": "GET", + "id": "eventarc.projects.locations.pipelines.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/pipelines/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/pipelines/{pipelinesId}:setIamPolicy", + "httpMethod": "POST", + "id": "eventarc.projects.locations.pipelines.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/pipelines/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/pipelines/{pipelinesId}:testIamPermissions", + "httpMethod": "POST", + "id": "eventarc.projects.locations.pipelines.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/pipelines/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "providers": { "methods": { "get": { @@ -1197,7 +1561,7 @@ } } }, - "revision": "20240510", + "revision": "20240913", "rootUrl": "https://eventarc.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/eventarc/v1/eventarc-gen.go b/eventarc/v1/eventarc-gen.go index 9a6d07584b8..9bbe32db05f 100644 --- a/eventarc/v1/eventarc-gen.go +++ b/eventarc/v1/eventarc-gen.go @@ -170,7 +170,11 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.ChannelConnections = NewProjectsLocationsChannelConnectionsService(s) rs.Channels = NewProjectsLocationsChannelsService(s) + rs.Enrollments = NewProjectsLocationsEnrollmentsService(s) + rs.GoogleApiSources = NewProjectsLocationsGoogleApiSourcesService(s) + rs.MessageBuses = NewProjectsLocationsMessageBusesService(s) rs.Operations = NewProjectsLocationsOperationsService(s) + rs.Pipelines = NewProjectsLocationsPipelinesService(s) rs.Providers = NewProjectsLocationsProvidersService(s) rs.Triggers = NewProjectsLocationsTriggersService(s) return rs @@ -183,8 +187,16 @@ type ProjectsLocationsService struct { Channels *ProjectsLocationsChannelsService + Enrollments *ProjectsLocationsEnrollmentsService + + GoogleApiSources *ProjectsLocationsGoogleApiSourcesService + + MessageBuses *ProjectsLocationsMessageBusesService + Operations *ProjectsLocationsOperationsService + Pipelines *ProjectsLocationsPipelinesService + Providers *ProjectsLocationsProvidersService Triggers *ProjectsLocationsTriggersService @@ -208,6 +220,33 @@ type ProjectsLocationsChannelsService struct { s *Service } +func NewProjectsLocationsEnrollmentsService(s *Service) *ProjectsLocationsEnrollmentsService { + rs := &ProjectsLocationsEnrollmentsService{s: s} + return rs +} + +type ProjectsLocationsEnrollmentsService struct { + s *Service +} + +func NewProjectsLocationsGoogleApiSourcesService(s *Service) *ProjectsLocationsGoogleApiSourcesService { + rs := &ProjectsLocationsGoogleApiSourcesService{s: s} + return rs +} + +type ProjectsLocationsGoogleApiSourcesService struct { + s *Service +} + +func NewProjectsLocationsMessageBusesService(s *Service) *ProjectsLocationsMessageBusesService { + rs := &ProjectsLocationsMessageBusesService{s: s} + return rs +} + +type ProjectsLocationsMessageBusesService struct { + s *Service +} + func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { rs := &ProjectsLocationsOperationsService{s: s} return rs @@ -217,6 +256,15 @@ type ProjectsLocationsOperationsService struct { s *Service } +func NewProjectsLocationsPipelinesService(s *Service) *ProjectsLocationsPipelinesService { + rs := &ProjectsLocationsPipelinesService{s: s} + return rs +} + +type ProjectsLocationsPipelinesService struct { + s *Service +} + func NewProjectsLocationsProvidersService(s *Service) *ProjectsLocationsProvidersService { rs := &ProjectsLocationsProvidersService{s: s} return rs @@ -3890,84 +3938,102 @@ func (c *ProjectsLocationsChannelsTestIamPermissionsCall) Do(opts ...googleapi.C return ret, nil } -type ProjectsLocationsOperationsCancelCall struct { - s *Service - name string - googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEnrollmentsGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. The -// server makes a best effort to cancel the operation, but success is not -// guaranteed. If the server doesn't support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or -// other methods to check whether the cancellation succeeded or whether the -// operation completed despite cancellation. On successful cancellation, the -// operation is not deleted; instead, it becomes an operation with an -// Operation.error value with a google.rpc.Status.code of 1, corresponding to -// `Code.CANCELLED`. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsOperationsCancelCall { - c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsEnrollmentsService) GetIamPolicy(resource string) *ProjectsLocationsEnrollmentsGetIamPolicyCall { + c := &ProjectsLocationsEnrollmentsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that will be +// used to format the policy. Valid values are 0, 1, and 3. Requests specifying +// an invalid value will be rejected. Requests for policies with any +// conditional role bindings must specify version 3. Policies with no +// conditional role bindings may specify any valid value or leave the field +// unset. The policy in the response might use the policy version that you +// specified, or it might use a lower policy version. For example, if you +// specify version 3, but the policy has no conditional role bindings, the +// response uses version 1. To learn which resources support conditions in +// their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsEnrollmentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsEnrollmentsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { +func (c *ProjectsLocationsEnrollmentsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEnrollmentsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsEnrollmentsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsEnrollmentsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { +func (c *ProjectsLocationsEnrollmentsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEnrollmentsGetIamPolicyCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsEnrollmentsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsEnrollmentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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, "v1/{+name}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + 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, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "eventarc.projects.locations.operations.cancel" call. +// Do executes the "eventarc.projects.locations.enrollments.getIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) in +// *Policy.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 *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *ProjectsLocationsEnrollmentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3986,7 +4052,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3999,73 +4065,80 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) return ret, nil } -type ProjectsLocationsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEnrollmentsSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that the -// client is no longer interested in the operation result. It does not cancel -// the operation. If the server doesn't support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { - c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsEnrollmentsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsEnrollmentsSetIamPolicyCall { + c := &ProjectsLocationsEnrollmentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { +func (c *ProjectsLocationsEnrollmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEnrollmentsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { +func (c *ProjectsLocationsEnrollmentsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEnrollmentsSetIamPolicyCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsEnrollmentsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ProjectsLocationsEnrollmentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + 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, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "eventarc.projects.locations.operations.delete" call. +// Do executes the "eventarc.projects.locations.enrollments.setIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) in +// *Policy.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 *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *ProjectsLocationsEnrollmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4084,7 +4157,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4097,85 +4170,84 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) return ret, nil } -type ProjectsLocationsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEnrollmentsTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can use this -// method to poll the operation result at intervals as recommended by the API -// service. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { - c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *ProjectsLocationsEnrollmentsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsEnrollmentsTestIamPermissionsCall { + c := &ProjectsLocationsEnrollmentsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { +func (c *ProjectsLocationsEnrollmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEnrollmentsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an 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. -func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { +func (c *ProjectsLocationsEnrollmentsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsEnrollmentsTestIamPermissionsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsEnrollmentsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +func (c *ProjectsLocationsEnrollmentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + 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, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "eventarc.projects.locations.operations.get" call. +// Do executes the "eventarc.projects.locations.enrollments.testIamPermissions" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// *TestIamPermissionsResponse.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 *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEnrollmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4194,7 +4266,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4207,49 +4279,1197 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* return ret, nil } -type ProjectsLocationsOperationsListCall struct { +type ProjectsLocationsGoogleApiSourcesGetIamPolicyCall struct { s *Service - name string + resource string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists operations that match the specified filter in the request. If -// the server doesn't support this method, it returns `UNIMPLEMENTED`. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { - c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsGoogleApiSourcesService) GetIamPolicy(resource string) *ProjectsLocationsGoogleApiSourcesGetIamPolicyCall { + c := &ProjectsLocationsGoogleApiSourcesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource return c } -// Filter sets the optional parameter "filter": The standard list filter. -func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { - c.urlParams_.Set("filter", filter) +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that will be +// used to format the policy. Valid values are 0, 1, and 3. Requests specifying +// an invalid value will be rejected. Requests for policies with any +// conditional role bindings must specify version 3. Policies with no +// conditional role bindings may specify any valid value or leave the field +// unset. The policy in the response might use the policy version that you +// specified, or it might use a lower policy version. For example, if you +// specify version 3, but the policy has no conditional role bindings, the +// response uses version 1. To learn which resources support conditions in +// their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsGoogleApiSourcesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsGoogleApiSourcesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } -// PageSize sets the optional parameter "pageSize": The standard list page -// size. +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsGoogleApiSourcesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGoogleApiSourcesGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsGoogleApiSourcesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsGoogleApiSourcesGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGoogleApiSourcesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGoogleApiSourcesGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsGoogleApiSourcesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGoogleApiSourcesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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, "v1/{+resource}:getIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.googleApiSources.getIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsGoogleApiSourcesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &Policy{ + 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 +} + +type ProjectsLocationsGoogleApiSourcesSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsGoogleApiSourcesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsGoogleApiSourcesSetIamPolicyCall { + c := &ProjectsLocationsGoogleApiSourcesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsGoogleApiSourcesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGoogleApiSourcesSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGoogleApiSourcesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGoogleApiSourcesSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsGoogleApiSourcesSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGoogleApiSourcesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.googleApiSources.setIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsGoogleApiSourcesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &Policy{ + 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 +} + +type ProjectsLocationsGoogleApiSourcesTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *ProjectsLocationsGoogleApiSourcesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsGoogleApiSourcesTestIamPermissionsCall { + c := &ProjectsLocationsGoogleApiSourcesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsGoogleApiSourcesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGoogleApiSourcesTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGoogleApiSourcesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsGoogleApiSourcesTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsGoogleApiSourcesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGoogleApiSourcesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.googleApiSources.testIamPermissions" call. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.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 *ProjectsLocationsGoogleApiSourcesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &TestIamPermissionsResponse{ + 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 +} + +type ProjectsLocationsMessageBusesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsMessageBusesService) GetIamPolicy(resource string) *ProjectsLocationsMessageBusesGetIamPolicyCall { + c := &ProjectsLocationsMessageBusesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that will be +// used to format the policy. Valid values are 0, 1, and 3. Requests specifying +// an invalid value will be rejected. Requests for policies with any +// conditional role bindings must specify version 3. Policies with no +// conditional role bindings may specify any valid value or leave the field +// unset. The policy in the response might use the policy version that you +// specified, or it might use a lower policy version. For example, if you +// specify version 3, but the policy has no conditional role bindings, the +// response uses version 1. To learn which resources support conditions in +// their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsMessageBusesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsMessageBusesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsMessageBusesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsMessageBusesGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsMessageBusesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsMessageBusesGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsMessageBusesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsMessageBusesGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsMessageBusesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMessageBusesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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, "v1/{+resource}:getIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.messageBuses.getIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsMessageBusesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &Policy{ + 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 +} + +type ProjectsLocationsMessageBusesSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsMessageBusesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsMessageBusesSetIamPolicyCall { + c := &ProjectsLocationsMessageBusesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsMessageBusesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsMessageBusesSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsMessageBusesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsMessageBusesSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsMessageBusesSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMessageBusesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.messageBuses.setIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsMessageBusesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &Policy{ + 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 +} + +type ProjectsLocationsMessageBusesTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *ProjectsLocationsMessageBusesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsMessageBusesTestIamPermissionsCall { + c := &ProjectsLocationsMessageBusesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsMessageBusesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMessageBusesTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsMessageBusesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsMessageBusesTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsMessageBusesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMessageBusesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.messageBuses.testIamPermissions" call. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.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 *ProjectsLocationsMessageBusesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &TestIamPermissionsResponse{ + 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 +} + +type ProjectsLocationsOperationsCancelCall struct { + s *Service + name string + googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + 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 "eventarc.projects.locations.operations.cancel" call. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.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 *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &Empty{ + 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 +} + +type ProjectsLocationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { + c := &ProjectsLocationsOperationsDeleteCall{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 +// details. +func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", 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 "eventarc.projects.locations.operations.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.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 *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &Empty{ + 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 +} + +type ProjectsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{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 +// details. +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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, "v1/{+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 "eventarc.projects.locations.operations.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + 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 +} + +type ProjectsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list page -// token. -func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + 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 +// details. +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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, "v1/{+name}/operations") + 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 "eventarc.projects.locations.operations.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningListOperationsResponse.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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleLongrunningListOperationsResponse{ + 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 +} + +// 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 *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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) + } +} + +type ProjectsLocationsPipelinesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsPipelinesService) GetIamPolicy(resource string) *ProjectsLocationsPipelinesGetIamPolicyCall { + c := &ProjectsLocationsPipelinesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that will be +// used to format the policy. Valid values are 0, 1, and 3. Requests specifying +// an invalid value will be rejected. Requests for policies with any +// conditional role bindings must specify version 3. Policies with no +// conditional role bindings may specify any valid value or leave the field +// unset. The policy in the response might use the policy version that you +// specified, or it might use a lower policy version. For example, if you +// specify version 3, but the policy has no conditional role bindings, the +// response uses version 1. To learn which resources support conditions in +// their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsPipelinesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsPipelinesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsPipelinesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelinesGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4257,27 +5477,27 @@ func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *Proj // IfNoneMatch sets an 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. -func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsPipelinesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsPipelinesGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsPipelinesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsPipelinesGetIamPolicyCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsPipelinesGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPipelinesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -4285,7 +5505,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -4293,18 +5513,17 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "eventarc.projects.locations.operations.list" call. +// Do executes the "eventarc.projects.locations.pipelines.getIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningListOperationsResponse.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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// *Policy.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 *ProjectsLocationsPipelinesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4323,7 +5542,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4336,25 +5555,218 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( return ret, nil } -// 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 *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +type ProjectsLocationsPipelinesSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsPipelinesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsPipelinesSetIamPolicyCall { + c := &ProjectsLocationsPipelinesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsPipelinesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelinesSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsPipelinesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsPipelinesSetIamPolicyCall { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsPipelinesSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsPipelinesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.pipelines.setIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsPipelinesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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() } - if x.NextPageToken == "" { - return nil + return nil, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &Policy{ + 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 +} + +type ProjectsLocationsPipelinesTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *ProjectsLocationsPipelinesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsPipelinesTestIamPermissionsCall { + c := &ProjectsLocationsPipelinesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsPipelinesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelinesTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsPipelinesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsPipelinesTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsPipelinesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsPipelinesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.pipelines.testIamPermissions" call. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.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 *ProjectsLocationsPipelinesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, 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() } - c.PageToken(x.NextPageToken) + return nil, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &TestIamPermissionsResponse{ + 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 } type ProjectsLocationsProvidersGetCall struct { diff --git a/firebaseml/v2beta/firebaseml-api.json b/firebaseml/v2beta/firebaseml-api.json index 989560f833e..9b4c4ee1b06 100644 --- a/firebaseml/v2beta/firebaseml-api.json +++ b/firebaseml/v2beta/firebaseml-api.json @@ -206,7 +206,7 @@ } } }, - "revision": "20240911", + "revision": "20240917", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "Date": { @@ -1206,6 +1206,13 @@ "description": "Schema is used to define the format of input/output data. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may be added in the future as needed.", "id": "GoogleCloudAiplatformV1beta1Schema", "properties": { + "anyOf": { + "description": "Optional. The value should be validated against any (one or more) of the subschemas in the list.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1Schema" + }, + "type": "array" + }, "default": { "description": "Optional. Default value of the data.", "type": "any" diff --git a/firebaseml/v2beta/firebaseml-gen.go b/firebaseml/v2beta/firebaseml-gen.go index b6e2df51da4..48a7c5c2fe6 100644 --- a/firebaseml/v2beta/firebaseml-gen.go +++ b/firebaseml/v2beta/firebaseml-gen.go @@ -1438,6 +1438,9 @@ func (s GoogleCloudAiplatformV1beta1SafetySetting) MarshalJSON() ([]byte, error) // object (https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may // be added in the future as needed. type GoogleCloudAiplatformV1beta1Schema struct { + // AnyOf: Optional. The value should be validated against any (one or more) of + // the subschemas in the list. + AnyOf []*GoogleCloudAiplatformV1beta1Schema `json:"anyOf,omitempty"` // Default: Optional. Default value of the data. Default interface{} `json:"default,omitempty"` // Description: Optional. The description of the data. @@ -1500,13 +1503,13 @@ type GoogleCloudAiplatformV1beta1Schema struct { // "ARRAY" - OpenAPI array type // "OBJECT" - OpenAPI object type Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Default") to unconditionally + // ForceSendFields is a list of field names (e.g. "AnyOf") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Default") to include in API + // NullFields is a list of field names (e.g. "AnyOf") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. diff --git a/logging/v2/logging-api.json b/logging/v2/logging-api.json index 81851320d02..487b58fbc47 100644 --- a/logging/v2/logging-api.json +++ b/logging/v2/logging-api.json @@ -8922,7 +8922,7 @@ } } }, - "revision": "20240908", + "revision": "20240913", "rootUrl": "https://logging.googleapis.com/", "schemas": { "AuditConfig": { @@ -10003,7 +10003,7 @@ "id": "LogBucket", "properties": { "analyticsEnabled": { - "description": "Whether log analytics is enabled for this bucket.Once enabled, log analytics features cannot be disabled.", + "description": "Optional. Whether log analytics is enabled for this bucket.Once enabled, log analytics features cannot be disabled.", "type": "boolean" }, "cmekSettings": { diff --git a/logging/v2/logging-gen.go b/logging/v2/logging-gen.go index ff5c943e258..b82d1b829f9 100644 --- a/logging/v2/logging-gen.go +++ b/logging/v2/logging-gen.go @@ -2634,8 +2634,8 @@ func (s LocationMetadata) MarshalJSON() ([]byte, error) { // LogBucket: Describes a repository in which log entries are stored. type LogBucket struct { - // AnalyticsEnabled: Whether log analytics is enabled for this bucket.Once - // enabled, log analytics features cannot be disabled. + // AnalyticsEnabled: Optional. Whether log analytics is enabled for this + // bucket.Once enabled, log analytics features cannot be disabled. AnalyticsEnabled bool `json:"analyticsEnabled,omitempty"` // CmekSettings: Optional. The CMEK settings of the log bucket. If present, new // log entries written to this log bucket are encrypted using the CMEK key diff --git a/networkmanagement/v1/networkmanagement-api.json b/networkmanagement/v1/networkmanagement-api.json index eb2adde9796..9450ed43abd 100644 --- a/networkmanagement/v1/networkmanagement-api.json +++ b/networkmanagement/v1/networkmanagement-api.json @@ -591,7 +591,7 @@ } } }, - "revision": "20240905", + "revision": "20240911", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1162,9 +1162,13 @@ "REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS", "REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK", "REDIS_INSTANCE_NO_EXTERNAL_IP", + "REDIS_INSTANCE_UNSUPPORTED_PROTOCOL", "DROPPED_INSIDE_REDIS_CLUSTER_SERVICE", "REDIS_CLUSTER_UNSUPPORTED_PORT", - "REDIS_CLUSTER_NO_EXTERNAL_IP" + "REDIS_CLUSTER_NO_EXTERNAL_IP", + "REDIS_CLUSTER_UNSUPPORTED_PROTOCOL", + "NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION", + "NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION" ], "enumDescriptions": [ "Cause is unspecified.", @@ -1242,9 +1246,13 @@ "Packet is dropped due to connecting from PUPI address to a PSA based Redis Instance.", "Packet is dropped due to no route to the destination network.", "Redis Instance does not have an external IP address.", + "Packet is dropped due to an unsupported protocol being used to connect to a Redis Instance. Only TCP connections are accepted by a Redis Instance.", "Generic drop cause for a packet being dropped inside a Redis Cluster service project.", "Packet is dropped due to an unsupported port being used to connect to a Redis Cluster. Ports 6379 and 11000 to 13047 should be used to connect to a Redis Cluster.", - "Redis Cluster does not have an external IP address." + "Redis Cluster does not have an external IP address.", + "Packet is dropped due to an unsupported protocol being used to connect to a Redis Cluster. Only TCP connections are accepted by a Redis Cluster.", + "Packet from the non-GCP (on-prem) or unknown GCP network is dropped due to the destination IP address not belonging to any IP prefix advertised via BGP by the Cloud Router.", + "Packet from the non-GCP (on-prem) or unknown GCP network is dropped due to the destination IP address not belonging to any IP prefix included to the local traffic selector of the VPN tunnel." ], "type": "string" }, @@ -2126,7 +2134,7 @@ "type": "object" }, "NetworkInfo": { - "description": "For display only. Metadata associated with a Compute Engine network.", + "description": "For display only. Metadata associated with a Compute Engine network. Next ID: 7", "id": "NetworkInfo", "properties": { "displayName": { @@ -2134,7 +2142,15 @@ "type": "string" }, "matchedIpRange": { - "description": "The IP range that matches the test.", + "description": "The IP range of the subnet matching the source IP address of the test.", + "type": "string" + }, + "matchedSubnetUri": { + "description": "URI of the subnet matching the source IP address of the test.", + "type": "string" + }, + "region": { + "description": "The region of the subnet matching the source IP address of the test.", "type": "string" }, "uri": { @@ -2485,6 +2501,14 @@ "description": "For display only. Metadata associated with a Compute Engine route.", "id": "RouteInfo", "properties": { + "advertisedRouteNextHopUri": { + "description": "For advertised routes, the URI of their next hop, i.e. the URI of the hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) the advertised prefix is advertised through, or URI of the source peered network.", + "type": "string" + }, + "advertisedRouteSourceRouterUri": { + "description": "For advertised dynamic routes, the URI of the Cloud Router that advertised the corresponding IP prefix.", + "type": "string" + }, "destIpRange": { "description": "Destination IP range of the route.", "type": "string" @@ -2569,6 +2593,10 @@ }, "type": "array" }, + "region": { + "description": "Region of the route (if applicable).", + "type": "string" + }, "routeScope": { "description": "Indicates where route is applicable.", "enum": [ @@ -2619,7 +2647,7 @@ "type": "array" }, "uri": { - "description": "URI of a route. Dynamic, peering static and peering dynamic routes do not have an URI. Advertised route from Google Cloud VPC to on-premises network also does not have an URI.", + "description": "URI of a route (if applicable).", "type": "string" } }, diff --git a/networkmanagement/v1/networkmanagement-gen.go b/networkmanagement/v1/networkmanagement-gen.go index 16161e8aa71..ffc7325e87d 100644 --- a/networkmanagement/v1/networkmanagement-gen.go +++ b/networkmanagement/v1/networkmanagement-gen.go @@ -1027,6 +1027,9 @@ type DropInfo struct { // to no route to the destination network. // "REDIS_INSTANCE_NO_EXTERNAL_IP" - Redis Instance does not have an external // IP address. + // "REDIS_INSTANCE_UNSUPPORTED_PROTOCOL" - Packet is dropped due to an + // unsupported protocol being used to connect to a Redis Instance. Only TCP + // connections are accepted by a Redis Instance. // "DROPPED_INSIDE_REDIS_CLUSTER_SERVICE" - Generic drop cause for a packet // being dropped inside a Redis Cluster service project. // "REDIS_CLUSTER_UNSUPPORTED_PORT" - Packet is dropped due to an unsupported @@ -1034,6 +1037,17 @@ type DropInfo struct { // should be used to connect to a Redis Cluster. // "REDIS_CLUSTER_NO_EXTERNAL_IP" - Redis Cluster does not have an external // IP address. + // "REDIS_CLUSTER_UNSUPPORTED_PROTOCOL" - Packet is dropped due to an + // unsupported protocol being used to connect to a Redis Cluster. Only TCP + // connections are accepted by a Redis Cluster. + // "NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION" - Packet from the non-GCP + // (on-prem) or unknown GCP network is dropped due to the destination IP + // address not belonging to any IP prefix advertised via BGP by the Cloud + // Router. + // "NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION" - Packet from the non-GCP + // (on-prem) or unknown GCP network is dropped due to the destination IP + // address not belonging to any IP prefix included to the local traffic + // selector of the VPN tunnel. Cause string `json:"cause,omitempty"` // DestinationIp: Destination IP address of the dropped packet (if relevant). DestinationIp string `json:"destinationIp,omitempty"` @@ -1973,12 +1987,18 @@ func (s NatInfo) MarshalJSON() ([]byte, error) { } // NetworkInfo: For display only. Metadata associated with a Compute Engine -// network. +// network. Next ID: 7 type NetworkInfo struct { // DisplayName: Name of a Compute Engine network. DisplayName string `json:"displayName,omitempty"` - // MatchedIpRange: The IP range that matches the test. + // MatchedIpRange: The IP range of the subnet matching the source IP address of + // the test. MatchedIpRange string `json:"matchedIpRange,omitempty"` + // MatchedSubnetUri: URI of the subnet matching the source IP address of the + // test. + MatchedSubnetUri string `json:"matchedSubnetUri,omitempty"` + // Region: The region of the subnet matching the source IP address of the test. + Region string `json:"region,omitempty"` // Uri: URI of a Compute Engine network. Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayName") to @@ -2415,6 +2435,14 @@ type RerunConnectivityTestRequest struct { // RouteInfo: For display only. Metadata associated with a Compute Engine // route. type RouteInfo struct { + // AdvertisedRouteNextHopUri: For advertised routes, the URI of their next hop, + // i.e. the URI of the hybrid endpoint (VPN tunnel, Interconnect attachment, + // NCC router appliance) the advertised prefix is advertised through, or URI of + // the source peered network. + AdvertisedRouteNextHopUri string `json:"advertisedRouteNextHopUri,omitempty"` + // AdvertisedRouteSourceRouterUri: For advertised dynamic routes, the URI of + // the Cloud Router that advertised the corresponding IP prefix. + AdvertisedRouteSourceRouterUri string `json:"advertisedRouteSourceRouterUri,omitempty"` // DestIpRange: Destination IP range of the route. DestIpRange string `json:"destIpRange,omitempty"` // DestPortRanges: Destination port ranges of the route. Policy based routes @@ -2461,6 +2489,8 @@ type RouteInfo struct { Priority int64 `json:"priority,omitempty"` // Protocols: Protocols of the route. Policy based routes only. Protocols []string `json:"protocols,omitempty"` + // Region: Region of the route (if applicable). + Region string `json:"region,omitempty"` // RouteScope: Indicates where route is applicable. // // Possible values: @@ -2485,19 +2515,17 @@ type RouteInfo struct { SrcIpRange string `json:"srcIpRange,omitempty"` // SrcPortRanges: Source port ranges of the route. Policy based routes only. SrcPortRanges []string `json:"srcPortRanges,omitempty"` - // Uri: URI of a route. Dynamic, peering static and peering dynamic routes do - // not have an URI. Advertised route from Google Cloud VPC to on-premises - // network also does not have an URI. + // Uri: URI of a route (if applicable). Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "DestIpRange") to - // unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "AdvertisedRouteNextHopUri") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DestIpRange") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "AdvertisedRouteNextHopUri") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } diff --git a/networkservices/v1beta1/networkservices-api.json b/networkservices/v1beta1/networkservices-api.json index f3b5c2562a3..deac9e3fd2e 100644 --- a/networkservices/v1beta1/networkservices-api.json +++ b/networkservices/v1beta1/networkservices-api.json @@ -2317,7 +2317,7 @@ } } }, - "revision": "20240818", + "revision": "20240913", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -3735,7 +3735,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.lb_route_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name.", + "description": "Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.lb_route_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. Only one of the resource level metadata and extension level metadata can be set.", "type": "object" }, "name": { @@ -3805,7 +3805,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Optional. The metadata provided here is included in the `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata is available under the key `com.google.lb_traffic_extension.`. The following variables are supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name.", + "description": "Optional. The metadata provided here is included in the `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata is available under the key `com.google.lb_traffic_extension.`. The following variables are supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. Only one of the resource level metadata and extension level metadata can be set.", "type": "object" }, "name": { @@ -4135,6 +4135,41 @@ }, "type": "object" }, + "LoggingConfig": { + "description": "The configuration for Platform Telemetry logging for Eventarc Avdvanced resources.", + "id": "LoggingConfig", + "properties": { + "logSeverity": { + "description": "Optional. The minimum severity of logs that will be sent to Stackdriver/Platform Telemetry. Logs at severitiy ≥ this value will be sent, unless it is NONE.", + "enum": [ + "LOG_SEVERITY_UNSPECIFIED", + "NONE", + "DEBUG", + "INFO", + "NOTICE", + "WARNING", + "ERROR", + "CRITICAL", + "ALERT", + "EMERGENCY" + ], + "enumDescriptions": [ + "Log severity is not specified. This value is treated the same as NONE, but is used to distinguish between no update and update to NONE in update_masks.", + "Default value at resource creation, presence of this value must be treated as no logging/disable logging.", + "Debug or trace level logging.", + "Routine information, such as ongoing status or performance.", + "Normal but significant events, such as start up, shut down, or a configuration change.", + "Warning events might cause problems.", + "Error events are likely to cause problems.", + "Critical events cause more severe problems or outages.", + "A person must take action immediately.", + "One or more systems are unusable." + ], + "type": "string" + } + }, + "type": "object" + }, "Mesh": { "description": "Mesh represents a logical configuration grouping for workload to workload communication within a service mesh. Routes that point to mesh dictate how requests are routed within this logical mesh boundary.", "id": "Mesh", @@ -4346,6 +4381,16 @@ }, "type": "object" }, + "RetryFilterPerRouteConfig": { + "id": "RetryFilterPerRouteConfig", + "properties": { + "cryptoKeyName": { + "description": "The name of the crypto key to use for encrypting event data.", + "type": "string" + } + }, + "type": "object" + }, "ServiceBinding": { "description": "ServiceBinding is the resource that defines a Service Directory Service to be used in a BackendService resource.", "id": "ServiceBinding", diff --git a/networkservices/v1beta1/networkservices-gen.go b/networkservices/v1beta1/networkservices-gen.go index d7cbe33fe10..f7f91ee8312 100644 --- a/networkservices/v1beta1/networkservices-gen.go +++ b/networkservices/v1beta1/networkservices-gen.go @@ -2254,7 +2254,8 @@ type LbRouteExtension struct { // available under the namespace `com.google.lb_route_extension.`. The // following variables are supported in the metadata Struct: // `{forwarding_rule_id}` - substituted with the forwarding rule's fully - // qualified resource name. + // qualified resource name. Only one of the resource level metadata and + // extension level metadata can be set. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Required. Identifier. Name of the `LbRouteExtension` resource in the // following format: @@ -2327,7 +2328,8 @@ type LbTrafficExtension struct { // `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata // is available under the key `com.google.lb_traffic_extension.`. The following // variables are supported in the metadata: `{forwarding_rule_id}` - - // substituted with the forwarding rule's fully qualified resource name. + // substituted with the forwarding rule's fully qualified resource name. Only + // one of the resource level metadata and extension level metadata can be set. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Required. Identifier. Name of the `LbTrafficExtension` resource in the // following format: @@ -2819,6 +2821,47 @@ func (s Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// LoggingConfig: The configuration for Platform Telemetry logging for Eventarc +// Avdvanced resources. +type LoggingConfig struct { + // LogSeverity: Optional. The minimum severity of logs that will be sent to + // Stackdriver/Platform Telemetry. Logs at severitiy ≥ this value will be + // sent, unless it is NONE. + // + // Possible values: + // "LOG_SEVERITY_UNSPECIFIED" - Log severity is not specified. This value is + // treated the same as NONE, but is used to distinguish between no update and + // update to NONE in update_masks. + // "NONE" - Default value at resource creation, presence of this value must + // be treated as no logging/disable logging. + // "DEBUG" - Debug or trace level logging. + // "INFO" - Routine information, such as ongoing status or performance. + // "NOTICE" - Normal but significant events, such as start up, shut down, or + // a configuration change. + // "WARNING" - Warning events might cause problems. + // "ERROR" - Error events are likely to cause problems. + // "CRITICAL" - Critical events cause more severe problems or outages. + // "ALERT" - A person must take action immediately. + // "EMERGENCY" - One or more systems are unusable. + LogSeverity string `json:"logSeverity,omitempty"` + // ForceSendFields is a list of field names (e.g. "LogSeverity") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "LogSeverity") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LoggingConfig) MarshalJSON() ([]byte, error) { + type NoMethod LoggingConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Mesh: Mesh represents a logical configuration grouping for workload to // workload communication within a service mesh. Routes that point to mesh // dictate how requests are routed within this logical mesh boundary. @@ -3126,6 +3169,27 @@ func (s Policy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type RetryFilterPerRouteConfig struct { + // CryptoKeyName: The name of the crypto key to use for encrypting event data. + CryptoKeyName string `json:"cryptoKeyName,omitempty"` + // ForceSendFields is a list of field names (e.g. "CryptoKeyName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CryptoKeyName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RetryFilterPerRouteConfig) MarshalJSON() ([]byte, error) { + type NoMethod RetryFilterPerRouteConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ServiceBinding: ServiceBinding is the resource that defines a Service // Directory Service to be used in a BackendService resource. type ServiceBinding struct { diff --git a/pubsub/v1/pubsub-api.json b/pubsub/v1/pubsub-api.json index abec1963015..36e8a27931c 100644 --- a/pubsub/v1/pubsub-api.json +++ b/pubsub/v1/pubsub-api.json @@ -1638,7 +1638,7 @@ } } }, - "revision": "20240730", + "revision": "20240912", "rootUrl": "https://pubsub.googleapis.com/", "schemas": { "AcknowledgeRequest": { @@ -2563,7 +2563,7 @@ "type": "object" }, "messageRetentionDuration": { - "description": "Optional. How long to retain unacknowledged messages in the subscription's backlog, from the moment a message is published. If `retain_acked_messages` is true, then this also configures the retention of acknowledged messages, and thus configures how far back in time a `Seek` can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10 minutes.", + "description": "Optional. How long to retain unacknowledged messages in the subscription's backlog, from the moment a message is published. If `retain_acked_messages` is true, then this also configures the retention of acknowledged messages, and thus configures how far back in time a `Seek` can be done. Defaults to 7 days. Cannot be more than 31 days or less than 10 minutes.", "format": "google-duration", "type": "string" }, diff --git a/pubsub/v1/pubsub-gen.go b/pubsub/v1/pubsub-gen.go index a05cd99f9f5..4ed28e396f1 100644 --- a/pubsub/v1/pubsub-gen.go +++ b/pubsub/v1/pubsub-gen.go @@ -1876,8 +1876,8 @@ type Subscription struct { // messages in the subscription's backlog, from the moment a message is // published. If `retain_acked_messages` is true, then this also configures the // retention of acknowledged messages, and thus configures how far back in time - // a `Seek` can be done. Defaults to 7 days. Cannot be more than 7 days or less - // than 10 minutes. + // a `Seek` can be done. Defaults to 7 days. Cannot be more than 31 days or + // less than 10 minutes. MessageRetentionDuration string `json:"messageRetentionDuration,omitempty"` // Name: Required. The name of the subscription. It must have the format // "projects/{project}/subscriptions/{subscription}". `{subscription}` must diff --git a/run/v1/run-api.json b/run/v1/run-api.json index 4160fbdcc05..1e53c343fbc 100644 --- a/run/v1/run-api.json +++ b/run/v1/run-api.json @@ -2614,7 +2614,7 @@ } } }, - "revision": "20240802", + "revision": "20240916", "rootUrl": "https://run.googleapis.com/", "schemas": { "Addressable": { @@ -2934,7 +2934,7 @@ }, "readinessProbe": { "$ref": "Probe", - "description": "Not supported by Cloud Run." + "description": "Readiness probe to be used for health checks. Not supported by Cloud Run." }, "resources": { "$ref": "ResourceRequirements", @@ -5381,7 +5381,7 @@ "additionalProperties": { "type": "string" }, - "description": "Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. * `autoscaling.knative.dev/maxScale`: Revision. * `autoscaling.knative.dev/minScale`: Revision. * `run.googleapis.com/base-images`: Service, Revision. * `run.googleapis.com/binary-authorization-breakglass`: Service, Job, * `run.googleapis.com/binary-authorization`: Service, Job, Execution. * `run.googleapis.com/build-base-image`: Service. * `run.googleapis.com/build-environment-variables`: Service. * `run.googleapis.com/build-id`: Service. * `run.googleapis.com/build-name`: Service. * `run.googleapis.com/build-service-account`: Service. * `run.googleapis.com/build-worker-pool`: Service. * `run.googleapis.com/client-name`: All resources. * `run.googleapis.com/cloudsql-instances`: Revision, Execution. * `run.googleapis.com/container-dependencies`: Revision . * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.com/default-url-disabled`: Service. * `run.googleapis.com/description`: Service. * `run.googleapis.com/enable-automatic-updates`: Service. * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/function-target`: Service. * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/image-uri`: Service. * `run.googleapis.com/ingress`: Service. * `run.googleapis.com/launch-stage`: Service, Job. * `run.googleapis.com/minScale`: Service (ALPHA) * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. * `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: Revision. * `run.googleapis.com/source-location`: Service. * `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution.", + "description": "Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. * `autoscaling.knative.dev/maxScale`: Revision. * `autoscaling.knative.dev/minScale`: Revision. * `run.googleapis.com/base-images`: Service, Revision. * `run.googleapis.com/binary-authorization-breakglass`: Service, Job, * `run.googleapis.com/binary-authorization`: Service, Job, Execution. * `run.googleapis.com/build-base-image`: Service. * `run.googleapis.com/build-enable-automatic-updates`: Service. * `run.googleapis.com/build-environment-variables`: Service. * `run.googleapis.com/build-function-target`: Service. * `run.googleapis.com/build-id`: Service. * `run.googleapis.com/build-image-uri`: Service. * `run.googleapis.com/build-name`: Service. * `run.googleapis.com/build-service-account`: Service. * `run.googleapis.com/build-source-location`: Service. * `run.googleapis.com/build-worker-pool`: Service. * `run.googleapis.com/client-name`: All resources. * `run.googleapis.com/cloudsql-instances`: Revision, Execution. * `run.googleapis.com/container-dependencies`: Revision . * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.com/default-url-disabled`: Service. * `run.googleapis.com/description`: Service. * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/ingress`: Service. * `run.googleapis.com/launch-stage`: Service, Job. * `run.googleapis.com/minScale`: Service (ALPHA) * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. * `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: Revision. * `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution.", "type": "object" }, "clusterName": { diff --git a/run/v1/run-gen.go b/run/v1/run-gen.go index a88c7e48b9c..7cc2eb8b8b6 100644 --- a/run/v1/run-gen.go +++ b/run/v1/run-gen.go @@ -908,7 +908,8 @@ type Container struct { // chosen and passed to the container through the PORT environment variable for // the container to listen on. Ports []*ContainerPort `json:"ports,omitempty"` - // ReadinessProbe: Not supported by Cloud Run. + // ReadinessProbe: Readiness probe to be used for health checks. Not supported + // by Cloud Run. ReadinessProbe *Probe `json:"readinessProbe,omitempty"` // Resources: Compute Resources required by this container. Resources *ResourceRequirements `json:"resources,omitempty"` @@ -3917,9 +3918,14 @@ type ObjectMeta struct { // `run.googleapis.com/binary-authorization-breakglass`: Service, Job, * // `run.googleapis.com/binary-authorization`: Service, Job, Execution. * // `run.googleapis.com/build-base-image`: Service. * + // `run.googleapis.com/build-enable-automatic-updates`: Service. * // `run.googleapis.com/build-environment-variables`: Service. * - // `run.googleapis.com/build-id`: Service. * `run.googleapis.com/build-name`: - // Service. * `run.googleapis.com/build-service-account`: Service. * + // `run.googleapis.com/build-function-target`: Service. * + // `run.googleapis.com/build-id`: Service. * + // `run.googleapis.com/build-image-uri`: Service. * + // `run.googleapis.com/build-name`: Service. * + // `run.googleapis.com/build-service-account`: Service. * + // `run.googleapis.com/build-source-location`: Service. * // `run.googleapis.com/build-worker-pool`: Service. * // `run.googleapis.com/client-name`: All resources. * // `run.googleapis.com/cloudsql-instances`: Revision, Execution. * @@ -3928,21 +3934,17 @@ type ObjectMeta struct { // `run.googleapis.com/custom-audiences`: Service. * // `run.googleapis.com/default-url-disabled`: Service. * // `run.googleapis.com/description`: Service. * - // `run.googleapis.com/enable-automatic-updates`: Service. * // `run.googleapis.com/encryption-key-shutdown-hours`: Revision * // `run.googleapis.com/encryption-key`: Revision, Execution. * // `run.googleapis.com/execution-environment`: Revision, Execution. * - // `run.googleapis.com/function-target`: Service. * // `run.googleapis.com/gc-traffic-tags`: Service. * - // `run.googleapis.com/image-uri`: Service. * `run.googleapis.com/ingress`: - // Service. * `run.googleapis.com/launch-stage`: Service, Job. * - // `run.googleapis.com/minScale`: Service (ALPHA) * + // `run.googleapis.com/ingress`: Service. * `run.googleapis.com/launch-stage`: + // Service, Job. * `run.googleapis.com/minScale`: Service (ALPHA) * // `run.googleapis.com/network-interfaces`: Revision, Execution. * // `run.googleapis.com/post-key-revocation-action-type`: Revision. * // `run.googleapis.com/secrets`: Revision, Execution. * // `run.googleapis.com/secure-session-agent`: Revision. * // `run.googleapis.com/sessionAffinity`: Revision. * - // `run.googleapis.com/source-location`: Service. * // `run.googleapis.com/startup-cpu-boost`: Revision. * // `run.googleapis.com/vpc-access-connector`: Revision, Execution. * // `run.googleapis.com/vpc-access-egress`: Revision, Execution. diff --git a/securitycenter/v1/securitycenter-api.json b/securitycenter/v1/securitycenter-api.json index 89b583658a6..24b7fa56418 100644 --- a/securitycenter/v1/securitycenter-api.json +++ b/securitycenter/v1/securitycenter-api.json @@ -6084,7 +6084,7 @@ } } }, - "revision": "20240827", + "revision": "20240916", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -6656,6 +6656,10 @@ "description": "Represents a Microsoft Entra tenant.", "id": "AzureTenant", "properties": { + "displayName": { + "description": "The display name of the Azure tenant.", + "type": "string" + }, "id": { "description": "The ID of the Microsoft Entra tenant, for example, \"a11aaa11-aa11-1aa1-11aa-1aaa11a\".", "type": "string" @@ -9346,6 +9350,10 @@ "description": "Represents a Microsoft Entra tenant.", "id": "GoogleCloudSecuritycenterV2AzureTenant", "properties": { + "displayName": { + "description": "The display name of the Azure tenant.", + "type": "string" + }, "id": { "description": "The ID of the Microsoft Entra tenant, for example, \"a11aaa11-aa11-1aa1-11aa-1aaa11a\".", "type": "string" diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index d93b17de889..fcca9c0250b 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -1663,18 +1663,20 @@ func (s AzureSubscription) MarshalJSON() ([]byte, error) { // AzureTenant: Represents a Microsoft Entra tenant. type AzureTenant struct { + // DisplayName: The display name of the Azure tenant. + DisplayName string `json:"displayName,omitempty"` // Id: The ID of the Microsoft Entra tenant, for example, // "a11aaa11-aa11-1aa1-11aa-1aaa11a". Id string `json:"id,omitempty"` - // ForceSendFields is a list of field names (e.g. "Id") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // 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. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See + // 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -5032,18 +5034,20 @@ func (s GoogleCloudSecuritycenterV2AzureSubscription) MarshalJSON() ([]byte, err // GoogleCloudSecuritycenterV2AzureTenant: Represents a Microsoft Entra tenant. type GoogleCloudSecuritycenterV2AzureTenant struct { + // DisplayName: The display name of the Azure tenant. + DisplayName string `json:"displayName,omitempty"` // Id: The ID of the Microsoft Entra tenant, for example, // "a11aaa11-aa11-1aa1-11aa-1aaa11a". Id string `json:"id,omitempty"` - // ForceSendFields is a list of field names (e.g. "Id") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // 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. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See + // 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } diff --git a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json index 78f7644075a..e25f3c48775 100644 --- a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json +++ b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json @@ -715,7 +715,7 @@ } } }, - "revision": "20240905", + "revision": "20240912", "rootUrl": "https://serviceconsumermanagement.googleapis.com/", "schemas": { "Api": { @@ -3281,7 +3281,7 @@ "id": "V1beta1DefaultIdentity", "properties": { "email": { - "description": "The email address of the default identity.", + "description": "The email address of the default identity. Calling GenerateDefaultIdentity with a deleted or purged default identity should expect does_not_exist@invalid-project.iam.gserviceaccount.com placeholder email.", "type": "string" }, "name": { diff --git a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go index 3227c14c6b3..3624059ef88 100644 --- a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go +++ b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go @@ -3995,7 +3995,10 @@ func (s V1beta1AddVisibilityLabelsResponse) MarshalJSON() ([]byte, error) { // V1beta1DefaultIdentity: A default identity in the Identity and Access // Management API. type V1beta1DefaultIdentity struct { - // Email: The email address of the default identity. + // Email: The email address of the default identity. Calling + // GenerateDefaultIdentity with a deleted or purged default identity should + // expect does_not_exist@invalid-project.iam.gserviceaccount.com placeholder + // email. Email string `json:"email,omitempty"` // Name: Default identity resource name. An example name would be: // `services/serviceconsumermanagement.googleapis.com/projects/123/defaultIdenti From ac7c6de55a590ab4b9bcb9f0c184bf8829574c3f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 21 Sep 2024 00:22:24 -0700 Subject: [PATCH 2/9] feat(all): auto-regenerate discovery clients (#2793) --- alloydb/v1alpha/alloydb-api.json | 59 +- alloydb/v1alpha/alloydb-gen.go | 39 +- compute/v0.alpha/compute-api.json | 118 ++- compute/v0.alpha/compute-gen.go | 97 ++- compute/v0.alpha/compute2-gen.go | 125 +++ compute/v0.beta/compute-api.json | 447 ++++++++++- compute/v0.beta/compute-gen.go | 202 ++++- compute/v0.beta/compute3-gen.go | 723 ++++++++++++++++++ container/v1/container-api.json | 10 +- container/v1/container-gen.go | 12 +- datamigration/v1/datamigration-api.json | 53 +- datamigration/v1/datamigration-gen.go | 63 +- dataplex/v1/dataplex-api.json | 461 ++--------- dataplex/v1/dataplex-gen.go | 501 ++---------- displayvideo/v2/displayvideo-api.json | 22 +- displayvideo/v2/displayvideo-gen.go | 4 + displayvideo/v3/displayvideo-api.json | 22 +- displayvideo/v3/displayvideo-gen.go | 4 + .../v1beta1/networkmanagement-api.json | 40 +- .../v1beta1/networkmanagement-gen.go | 48 +- networkservices/v1/networkservices-api.json | 51 +- networkservices/v1/networkservices-gen.go | 68 +- places/v1/places-api.json | 153 +++- places/v1/places-gen.go | 250 ++++++ run/v2/run-api.json | 16 +- run/v2/run-gen.go | 7 + sqladmin/v1/sqladmin-api.json | 6 +- sqladmin/v1beta4/sqladmin-api.json | 6 +- storage/v1/storage-api.json | 68 +- storage/v1/storage-gen.go | 25 + testing/v1/testing-api.json | 18 +- testing/v1/testing-gen.go | 25 + tpu/v2alpha1/tpu-api.json | 9 +- tpu/v2alpha1/tpu-gen.go | 2 + walletobjects/v1/walletobjects-api.json | 8 +- 35 files changed, 2849 insertions(+), 913 deletions(-) diff --git a/alloydb/v1alpha/alloydb-api.json b/alloydb/v1alpha/alloydb-api.json index 655c5613883..00fc2863cbf 100644 --- a/alloydb/v1alpha/alloydb-api.json +++ b/alloydb/v1alpha/alloydb-api.json @@ -1517,7 +1517,7 @@ } } }, - "revision": "20240828", + "revision": "20240909", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -2143,7 +2143,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -2151,7 +2153,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } @@ -2739,7 +2743,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -2747,7 +2753,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } @@ -3461,7 +3469,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -3469,7 +3479,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } @@ -4087,7 +4099,7 @@ "type": "object" }, "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata": { - "description": "Common model for database resource instance metadata.", + "description": "Common model for database resource instance metadata. Next ID: 21", "id": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata", "properties": { "availabilityConfiguration": { @@ -4226,6 +4238,10 @@ "description": "Required. Different from DatabaseResourceId.unique_id, a resource name can be reused over time. That is, after a resource named \"ABC\" is deleted, the name \"ABC\" can be used to to create a new resource within the same source. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel", "type": "string" }, + "tagsSet": { + "$ref": "StorageDatabasecenterPartnerapiV1mainTags", + "description": "Optional. Tags associated with this resources." + }, "updationTime": { "description": "The time at which the resource was updated and recorded at partner service.", "format": "google-datetime", @@ -4612,6 +4628,11 @@ "description": "Memory size in bytes. TODO(b/342344482, b/342346271) add proto validations again after bug fix.", "format": "int64", "type": "string" + }, + "shardCount": { + "description": "Optional. Number of shards (if applicable).", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -4739,6 +4760,20 @@ }, "type": "object" }, + "StorageDatabasecenterPartnerapiV1mainTags": { + "description": "Message type for storing tags. Tags provide a way to create annotations for resources, and in some cases conditionally allow or deny policies based on whether a resource has a specific tag.", + "id": "StorageDatabasecenterPartnerapiV1mainTags", + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "The Tag key/value mappings.", + "type": "object" + } + }, + "type": "object" + }, "StorageDatabasecenterPartnerapiV1mainUserLabels": { "description": "Message type for storing user labels. User labels are used to tag App Engine resources, allowing users to search for resources matching a set of labels and to aggregate usage data by labels.", "id": "StorageDatabasecenterPartnerapiV1mainUserLabels", @@ -5124,7 +5159,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -5132,7 +5169,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } diff --git a/alloydb/v1alpha/alloydb-gen.go b/alloydb/v1alpha/alloydb-gen.go index 99589e3a9a9..72db4320b82 100644 --- a/alloydb/v1alpha/alloydb-gen.go +++ b/alloydb/v1alpha/alloydb-gen.go @@ -766,6 +766,8 @@ type ClusterUpgradeDetails struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. UpgradeStatus string `json:"upgradeStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterType") to // unconditionally include in API requests. By default, fields with empty or @@ -1455,6 +1457,8 @@ type InstanceUpgradeDetails struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. UpgradeStatus string `json:"upgradeStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceType") to // unconditionally include in API requests. By default, fields with empty or @@ -2432,6 +2436,8 @@ type StageInfo struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "LogsUrl") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -3034,7 +3040,7 @@ func (s StorageDatabasecenterPartnerapiV1mainDatabaseResourceId) MarshalJSON() ( } // StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata: Common model -// for database resource instance metadata. +// for database resource instance metadata. Next ID: 21 type StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata struct { // AvailabilityConfiguration: Availability configuration for this instance AvailabilityConfiguration *StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration `json:"availabilityConfiguration,omitempty"` @@ -3112,6 +3118,8 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata struct { // the same source. Resource name to follow CAIS resource_name format as noted // here go/condor-common-datamodel ResourceName string `json:"resourceName,omitempty"` + // TagsSet: Optional. Tags associated with this resources. + TagsSet *StorageDatabasecenterPartnerapiV1mainTags `json:"tagsSet,omitempty"` // UpdationTime: The time at which the resource was updated and recorded at // partner service. UpdationTime string `json:"updationTime,omitempty"` @@ -3468,6 +3476,8 @@ type StorageDatabasecenterPartnerapiV1mainMachineConfiguration struct { // MemorySizeInBytes: Memory size in bytes. TODO(b/342344482, b/342346271) add // proto validations again after bug fix. MemorySizeInBytes int64 `json:"memorySizeInBytes,omitempty,string"` + // ShardCount: Optional. Number of shards (if applicable). + ShardCount int64 `json:"shardCount,omitempty"` // ForceSendFields is a list of field names (e.g. "CpuCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -3603,6 +3613,31 @@ func (s StorageDatabasecenterPartnerapiV1mainRetentionSettings) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// StorageDatabasecenterPartnerapiV1mainTags: Message type for storing tags. +// Tags provide a way to create annotations for resources, and in some cases +// conditionally allow or deny policies based on whether a resource has a +// specific tag. +type StorageDatabasecenterPartnerapiV1mainTags struct { + // Tags: The Tag key/value mappings. + Tags map[string]string `json:"tags,omitempty"` + // ForceSendFields is a list of field names (e.g. "Tags") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Tags") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StorageDatabasecenterPartnerapiV1mainTags) MarshalJSON() ([]byte, error) { + type NoMethod StorageDatabasecenterPartnerapiV1mainTags + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // StorageDatabasecenterPartnerapiV1mainUserLabels: Message type for storing // user labels. User labels are used to tag App Engine resources, allowing // users to search for resources matching a set of labels and to aggregate @@ -4007,6 +4042,8 @@ type UpgradeClusterResponse struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterUpgradeDetails") to // unconditionally include in API requests. By default, fields with empty or diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index 5713e50d5d4..c460215b9d6 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -12585,6 +12585,56 @@ "https://www.googleapis.com/auth/compute" ] }, + "reportHostAsFaulty": { + "description": "Mark the host as faulty and try to restart the instance on a new host.", + "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/reportHostAsFaulty", + "httpMethod": "POST", + "id": "compute.instances.reportHostAsFaulty", + "parameterOrder": [ + "project", + "zone", + "instance" + ], + "parameters": { + "instance": { + "description": "Name of the instance scoping this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "zone": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/instances/{instance}/reportHostAsFaulty", + "request": { + "$ref": "InstancesReportHostAsFaultyRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "reset": { "description": "Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, see Resetting an instance.", "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/reset", @@ -45558,7 +45608,7 @@ } } }, - "revision": "20240903", + "revision": "20240919", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -49032,6 +49082,13 @@ "description": "[Output Only] Creation timestamp in RFC3339 text format.", "type": "string" }, + "customMetrics": { + "description": "List of custom metrics that are used for the WEIGHTED_ROUND_ROBIN locality_lb_policy.", + "items": { + "$ref": "BackendServiceCustomMetric" + }, + "type": "array" + }, "customRequestHeaders": { "description": "Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).", "items": { @@ -49656,6 +49713,21 @@ }, "type": "object" }, + "BackendServiceCustomMetric": { + "description": "Custom Metrics are used for WEIGHTED_ROUND_ROBIN locality_lb_policy.", + "id": "BackendServiceCustomMetric", + "properties": { + "dryRun": { + "description": "If true, the metric data is not used for load balancing.", + "type": "boolean" + }, + "name": { + "description": "Name of a custom utilization signal. The name must be 1-64 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, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.", + "type": "string" + } + }, + "type": "object" + }, "BackendServiceFailoverPolicy": { "description": "For load balancers that have configurable failover: [Internal passthrough Network Load Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external passthrough Network Load Balancers](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). On failover or failback, this field indicates whether connection draining will be honored. Google Cloud has a fixed connection draining timeout of 10 minutes. A setting of true terminates existing TCP connections to the active pool during failover and failback, immediately draining traffic. A setting of false allows existing TCP connections to persist, even on VMs no longer in the active pool, for up to the duration of the connection draining timeout (10 minutes).", "id": "BackendServiceFailoverPolicy", @@ -50856,7 +50928,7 @@ }, "locationPolicy": { "$ref": "LocationPolicy", - "description": "Policy for chosing target zone. For more information, see Create VMs in bulk ." + "description": "Policy for choosing target zone. For more information, see Create VMs in bulk." }, "minCount": { "description": "The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted.", @@ -64601,6 +64673,42 @@ }, "type": "object" }, + "InstancesReportHostAsFaultyRequest": { + "id": "InstancesReportHostAsFaultyRequest", + "properties": { + "faultReasons": { + "items": { + "$ref": "InstancesReportHostAsFaultyRequestFaultReason" + }, + "type": "array" + } + }, + "type": "object" + }, + "InstancesReportHostAsFaultyRequestFaultReason": { + "id": "InstancesReportHostAsFaultyRequestFaultReason", + "properties": { + "behavior": { + "enum": [ + "BEHAVIOR_UNSPECIFIED", + "PERFORMANCE", + "SILENT_DATA_CORRUPTION", + "UNRECOVERABLE_GPU_ERROR" + ], + "enumDescriptions": [ + "Public reportable behaviors", + "", + "", + "" + ], + "type": "string" + }, + "description": { + "type": "string" + } + }, + "type": "object" + }, "InstancesResumeRequest": { "id": "InstancesResumeRequest", "properties": { @@ -65584,7 +65692,7 @@ "description": "Configuration for enabling Application Aware Interconnect (AAI) on this Cloud Interconnect connection between Google and your on-premises router." }, "availableFeatures": { - "description": "[Output only] List of features available for this Interconnect connection, which can take one of the following values: - MACSEC If present then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present then the Interconnect connection is provisioned on non-MACsec capable ports and MACsec isn't supported and enabling MACsec fails.", + "description": "[Output only] List of features available for this Interconnect connection, which can take one of the following values: - IF_MACSEC If present then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present then the Interconnect connection is provisioned on non-MACsec capable ports and MACsec isn't supported and enabling MACsec fails.", "items": { "enum": [ "IF_MACSEC" @@ -65737,7 +65845,7 @@ "type": "string" }, "requestedFeatures": { - "description": "Optional. List of features requested for this Interconnect connection, which can take one of the following values: - MACSEC If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available. This parameter can be provided only with Interconnect INSERT. It isn't valid for Interconnect PATCH.", + "description": "Optional. List of features requested for this Interconnect connection, which can take one of the following values: - IF_MACSEC If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available. This parameter can be provided only with Interconnect INSERT. It isn't valid for Interconnect PATCH.", "items": { "enum": [ "IF_MACSEC" @@ -65867,6 +65975,7 @@ "bandwidth": { "description": "Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s ", "enum": [ + "BPS_100G", "BPS_100M", "BPS_10G", "BPS_1G", @@ -65881,6 +65990,7 @@ "BPS_5G" ], "enumDescriptions": [ + "100 Gbit/s", "100 Mbit/s", "10 Gbit/s", "1 Gbit/s", diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index a2970bd9291..17c991a50b8 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -5551,6 +5551,9 @@ type BackendService struct { ConsistentHash *ConsistentHashLoadBalancerSettings `json:"consistentHash,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` + // CustomMetrics: List of custom metrics that are used for the + // WEIGHTED_ROUND_ROBIN locality_lb_policy. + CustomMetrics []*BackendServiceCustomMetric `json:"customMetrics,omitempty"` // CustomRequestHeaders: Headers that the load balancer adds to proxied // requests. See Creating custom headers // (https://cloud.google.com/load-balancing/docs/custom-headers). @@ -6387,6 +6390,39 @@ func (s BackendServiceConnectionTrackingPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// BackendServiceCustomMetric: Custom Metrics are used for WEIGHTED_ROUND_ROBIN +// locality_lb_policy. +type BackendServiceCustomMetric struct { + // DryRun: If true, the metric data is not used for load balancing. + DryRun bool `json:"dryRun,omitempty"` + // Name: Name of a custom utilization signal. The name must be 1-64 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, period, underscore, lowercase letter, or digit, + // except the last character, which cannot be a dash, period, or underscore. + // For usage guidelines, see Custom Metrics balancing mode. This field can only + // be used for a global or regional backend service with the + // loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED + // INTERNAL_SELF_MANAGED. + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "DryRun") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DryRun") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s BackendServiceCustomMetric) MarshalJSON() ([]byte, error) { + type NoMethod BackendServiceCustomMetric + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // BackendServiceFailoverPolicy: For load balancers that have configurable // failover: Internal passthrough Network Load Balancers // (https://cloud.google.com/load-balancing/docs/internal/failover-overview) @@ -7918,8 +7954,8 @@ type BulkInsertInstanceResource struct { // InstanceProperties: The instance properties defining the VM instances to be // created. Required if sourceInstanceTemplate is not provided. InstanceProperties *InstanceProperties `json:"instanceProperties,omitempty"` - // LocationPolicy: Policy for chosing target zone. For more information, see - // Create VMs in bulk . + // LocationPolicy: Policy for choosing target zone. For more information, see + // Create VMs in bulk. LocationPolicy *LocationPolicy `json:"locationPolicy,omitempty"` // MinCount: The minimum number of instances to create. If no min_count is // specified then count is used as the default value. If min_count instances @@ -23820,6 +23856,52 @@ func (s InstancesRemoveResourcePoliciesRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type InstancesReportHostAsFaultyRequest struct { + FaultReasons []*InstancesReportHostAsFaultyRequestFaultReason `json:"faultReasons,omitempty"` + // ForceSendFields is a list of field names (e.g. "FaultReasons") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "FaultReasons") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s InstancesReportHostAsFaultyRequest) MarshalJSON() ([]byte, error) { + type NoMethod InstancesReportHostAsFaultyRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type InstancesReportHostAsFaultyRequestFaultReason struct { + // Possible values: + // "BEHAVIOR_UNSPECIFIED" - Public reportable behaviors + // "PERFORMANCE" + // "SILENT_DATA_CORRUPTION" + // "UNRECOVERABLE_GPU_ERROR" + Behavior string `json:"behavior,omitempty"` + Description string `json:"description,omitempty"` + // ForceSendFields is a list of field names (e.g. "Behavior") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Behavior") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s InstancesReportHostAsFaultyRequestFaultReason) MarshalJSON() ([]byte, error) { + type NoMethod InstancesReportHostAsFaultyRequestFaultReason + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type InstancesResumeRequest struct { // Disks: Array of disks associated with this instance that are protected with // a customer-supplied encryption key. In order to resume the instance, the @@ -24939,10 +25021,10 @@ type Interconnect struct { ApplicationAwareInterconnect *InterconnectApplicationAwareInterconnect `json:"applicationAwareInterconnect,omitempty"` // AvailableFeatures: [Output only] List of features available for this // Interconnect connection, which can take one of the following values: - - // MACSEC If present then the Interconnect connection is provisioned on MACsec - // capable hardware ports. If not present then the Interconnect connection is - // provisioned on non-MACsec capable ports and MACsec isn't supported and - // enabling MACsec fails. + // IF_MACSEC If present then the Interconnect connection is provisioned on + // MACsec capable hardware ports. If not present then the Interconnect + // connection is provisioned on non-MACsec capable ports and MACsec isn't + // supported and enabling MACsec fails. // // Possible values: // "IF_MACSEC" - Media Access Control security (MACsec) @@ -25066,7 +25148,7 @@ type Interconnect struct { RemoteLocation string `json:"remoteLocation,omitempty"` // RequestedFeatures: Optional. List of features requested for this // Interconnect connection, which can take one of the following values: - - // MACSEC If specified then the connection is created on MACsec capable + // IF_MACSEC If specified then the connection is created on MACsec capable // hardware ports. If not specified, the default value is false, which // allocates non-MACsec capable ports first if available. This parameter can be // provided only with Interconnect INSERT. It isn't valid for Interconnect @@ -25231,6 +25313,7 @@ type InterconnectAttachment struct { // BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s // // Possible values: + // "BPS_100G" - 100 Gbit/s // "BPS_100M" - 100 Mbit/s // "BPS_10G" - 10 Gbit/s // "BPS_1G" - 1 Gbit/s diff --git a/compute/v0.alpha/compute2-gen.go b/compute/v0.alpha/compute2-gen.go index 782d35de5fb..2f942a1ca34 100644 --- a/compute/v0.alpha/compute2-gen.go +++ b/compute/v0.alpha/compute2-gen.go @@ -36905,6 +36905,131 @@ func (c *InstancesRemoveResourcePoliciesCall) Do(opts ...googleapi.CallOption) ( return ret, nil } +type InstancesReportHostAsFaultyCall struct { + s *Service + project string + zone string + instance string + instancesreporthostasfaultyrequest *InstancesReportHostAsFaultyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ReportHostAsFaulty: Mark the host as faulty and try to restart the instance +// on a new host. +// +// - instance: Name of the instance scoping this request. +// - project: Project ID for this request. +// - zone: The name of the zone for this request. +func (r *InstancesService) ReportHostAsFaulty(project string, zone string, instance string, instancesreporthostasfaultyrequest *InstancesReportHostAsFaultyRequest) *InstancesReportHostAsFaultyCall { + c := &InstancesReportHostAsFaultyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.instance = instance + c.instancesreporthostasfaultyrequest = instancesreporthostasfaultyrequest + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *InstancesReportHostAsFaultyCall) RequestId(requestId string) *InstancesReportHostAsFaultyCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *InstancesReportHostAsFaultyCall) Fields(s ...googleapi.Field) *InstancesReportHostAsFaultyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *InstancesReportHostAsFaultyCall) Context(ctx context.Context) *InstancesReportHostAsFaultyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *InstancesReportHostAsFaultyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *InstancesReportHostAsFaultyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancesreporthostasfaultyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/reportHostAsFaulty") + 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{ + "project": c.project, + "zone": c.zone, + "instance": c.instance, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.instances.reportHostAsFaulty" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.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 *InstancesReportHostAsFaultyCall) Do(opts ...googleapi.CallOption) (*Operation, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &Operation{ + 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 +} + type InstancesResetCall struct { s *Service project string diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index 491252bb42b..47874fd0365 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -25057,6 +25057,279 @@ } } }, + "regionInstanceGroupManagerResizeRequests": { + "methods": { + "cancel": { + "description": "Cancels the specified resize request. Cancelled resize request no longer waits for the resources to be provisioned. Cancel is only possible for requests that are in accepted state.", + "flatPath": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel", + "httpMethod": "POST", + "id": "compute.regionInstanceGroupManagerResizeRequests.cancel", + "parameterOrder": [ + "project", + "region", + "instanceGroupManager", + "resizeRequest" + ], + "parameters": { + "instanceGroupManager": { + "description": "The name of the managed instance group. Name should conform to RFC1035 or be a resource ID.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "The name of the region scoping this request. Name should conform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "resizeRequest": { + "description": "The name of the resize request to cancel. Name should conform to RFC1035 or be a resource ID.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, + "delete": { + "description": "Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. Deleting request does not delete instances that were provisioned previously.", + "flatPath": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}", + "httpMethod": "DELETE", + "id": "compute.regionInstanceGroupManagerResizeRequests.delete", + "parameterOrder": [ + "project", + "region", + "instanceGroupManager", + "resizeRequest" + ], + "parameters": { + "instanceGroupManager": { + "description": "The name of the managed instance group. Name should conform to RFC1035 or be a resource ID.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "The name of the region scoping this request. Name should conform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "resizeRequest": { + "description": "The name of the resize request to delete. Name should conform to RFC1035 or be a resource ID.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, + "get": { + "description": "Returns all of the details about the specified resize request.", + "flatPath": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}", + "httpMethod": "GET", + "id": "compute.regionInstanceGroupManagerResizeRequests.get", + "parameterOrder": [ + "project", + "region", + "instanceGroupManager", + "resizeRequest" + ], + "parameters": { + "instanceGroupManager": { + "description": "The name of the managed instance group. Name should conform to RFC1035 or be a resource ID.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "The name of the region scoping this request. Name should conform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "resizeRequest": { + "description": "The name of the resize request. Name should conform to RFC1035 or be a resource ID.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}", + "response": { + "$ref": "InstanceGroupManagerResizeRequest" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "insert": { + "description": "Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation.", + "flatPath": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests", + "httpMethod": "POST", + "id": "compute.regionInstanceGroupManagerResizeRequests.insert", + "parameterOrder": [ + "project", + "region", + "instanceGroupManager" + ], + "parameters": { + "instanceGroupManager": { + "description": "Name of the managed instance group to which the resize request is scoped. Name should conform to RFC1035 or be a resource ID.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region scoping this request. Name should conform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests", + "request": { + "$ref": "InstanceGroupManagerResizeRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, + "list": { + "description": "Retrieves a list of Resize Requests that are contained in the managed instance group.", + "flatPath": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests", + "httpMethod": "GET", + "id": "compute.regionInstanceGroupManagerResizeRequests.list", + "parameterOrder": [ + "project", + "region", + "instanceGroupManager" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.", + "location": "query", + "type": "string" + }, + "instanceGroupManager": { + "description": "The name of the managed instance group. The name should conform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "maxResults": { + "default": "500", + "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", + "format": "uint32", + "location": "query", + "minimum": "0", + "type": "integer" + }, + "orderBy": { + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", + "location": "query", + "type": "string" + }, + "pageToken": { + "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", + "location": "query", + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region scoping this request. Name should conform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.", + "location": "query", + "type": "boolean" + } + }, + "path": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests", + "response": { + "$ref": "RegionInstanceGroupManagerResizeRequestsListResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + } + } + }, "regionInstanceGroupManagers": { "methods": { "abandonInstances": { @@ -41911,7 +42184,7 @@ } } }, - "revision": "20240903", + "revision": "20240919", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -46679,7 +46952,7 @@ }, "locationPolicy": { "$ref": "LocationPolicy", - "description": "Policy for chosing target zone. For more information, see Create VMs in bulk ." + "description": "Policy for choosing target zone. For more information, see Create VMs in bulk." }, "minCount": { "description": "The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted.", @@ -60223,7 +60496,7 @@ "type": "boolean" }, "availableFeatures": { - "description": "[Output only] List of features available for this Interconnect connection, which can take one of the following values: - MACSEC If present then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present then the Interconnect connection is provisioned on non-MACsec capable ports and MACsec isn't supported and enabling MACsec fails.", + "description": "[Output only] List of features available for this Interconnect connection, which can take one of the following values: - IF_MACSEC If present then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present then the Interconnect connection is provisioned on non-MACsec capable ports and MACsec isn't supported and enabling MACsec fails.", "items": { "enum": [ "IF_MACSEC" @@ -60376,7 +60649,7 @@ "type": "string" }, "requestedFeatures": { - "description": "Optional. List of features requested for this Interconnect connection, which can take one of the following values: - MACSEC If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available. This parameter can be provided only with Interconnect INSERT. It isn't valid for Interconnect PATCH.", + "description": "Optional. List of features requested for this Interconnect connection, which can take one of the following values: - IF_MACSEC If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available. This parameter can be provided only with Interconnect INSERT. It isn't valid for Interconnect PATCH.", "items": { "enum": [ "IF_MACSEC" @@ -73190,6 +73463,167 @@ }, "type": "object" }, + "RegionInstanceGroupManagerResizeRequestsListResponse": { + "id": "RegionInstanceGroupManagerResizeRequestsListResponse", + "properties": { + "etag": { + "type": "string" + }, + "id": { + "description": "[Output Only] Unique identifier for the resource; defined by the server.", + "type": "string" + }, + "items": { + "description": "A list of Resize Request resources.", + "items": { + "$ref": "InstanceGroupManagerResizeRequest" + }, + "type": "array" + }, + "kind": { + "default": "compute#regionInstanceGroupManagerResizeRequestList", + "description": "[Output Only] Type of the resource. Always compute#regionInstanceGroupManagerResizeRequestList for a list of Resize Requests.", + "type": "string" + }, + "nextPageToken": { + "description": "[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.", + "type": "string" + }, + "selfLink": { + "description": "[Output Only] Server-defined URL for this resource.", + "type": "string" + }, + "unreachables": { + "description": "[Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder", + "items": { + "type": "string" + }, + "type": "array" + }, + "warning": { + "description": "[Output Only] Informational warning message.", + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "LIST_OVERHEAD_QUOTA_EXCEED", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed operation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as deprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as experimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden. Deprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, "RegionInstanceGroupManagerUpdateInstanceConfigReq": { "description": "RegionInstanceGroupManagers.updatePerInstanceConfigs", "id": "RegionInstanceGroupManagerUpdateInstanceConfigReq", @@ -74104,6 +74538,11 @@ "backendService": { "description": "The full or partial URL to the BackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service. ", "type": "string" + }, + "mirrorPercent": { + "description": "The percentage of requests to be mirrored to `backend_service`.", + "format": "double", + "type": "number" } }, "type": "object" diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index b9ffa516de7..6d1d6366e85 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -220,6 +220,7 @@ func New(client *http.Client) (*Service, error) { s.RegionDisks = NewRegionDisksService(s) s.RegionHealthCheckServices = NewRegionHealthCheckServicesService(s) s.RegionHealthChecks = NewRegionHealthChecksService(s) + s.RegionInstanceGroupManagerResizeRequests = NewRegionInstanceGroupManagerResizeRequestsService(s) s.RegionInstanceGroupManagers = NewRegionInstanceGroupManagersService(s) s.RegionInstanceGroups = NewRegionInstanceGroupsService(s) s.RegionInstanceTemplates = NewRegionInstanceTemplatesService(s) @@ -388,6 +389,8 @@ type Service struct { RegionHealthChecks *RegionHealthChecksService + RegionInstanceGroupManagerResizeRequests *RegionInstanceGroupManagerResizeRequestsService + RegionInstanceGroupManagers *RegionInstanceGroupManagersService RegionInstanceGroups *RegionInstanceGroupsService @@ -1006,6 +1009,15 @@ type RegionHealthChecksService struct { s *Service } +func NewRegionInstanceGroupManagerResizeRequestsService(s *Service) *RegionInstanceGroupManagerResizeRequestsService { + rs := &RegionInstanceGroupManagerResizeRequestsService{s: s} + return rs +} + +type RegionInstanceGroupManagerResizeRequestsService struct { + s *Service +} + func NewRegionInstanceGroupManagersService(s *Service) *RegionInstanceGroupManagersService { rs := &RegionInstanceGroupManagersService{s: s} return rs @@ -7143,8 +7155,8 @@ type BulkInsertInstanceResource struct { // InstanceProperties: The instance properties defining the VM instances to be // created. Required if sourceInstanceTemplate is not provided. InstanceProperties *InstanceProperties `json:"instanceProperties,omitempty"` - // LocationPolicy: Policy for chosing target zone. For more information, see - // Create VMs in bulk . + // LocationPolicy: Policy for choosing target zone. For more information, see + // Create VMs in bulk. LocationPolicy *LocationPolicy `json:"locationPolicy,omitempty"` // MinCount: The minimum number of instances to create. If no min_count is // specified then count is used as the default value. If min_count instances @@ -22765,10 +22777,10 @@ type Interconnect struct { AdminEnabled bool `json:"adminEnabled,omitempty"` // AvailableFeatures: [Output only] List of features available for this // Interconnect connection, which can take one of the following values: - - // MACSEC If present then the Interconnect connection is provisioned on MACsec - // capable hardware ports. If not present then the Interconnect connection is - // provisioned on non-MACsec capable ports and MACsec isn't supported and - // enabling MACsec fails. + // IF_MACSEC If present then the Interconnect connection is provisioned on + // MACsec capable hardware ports. If not present then the Interconnect + // connection is provisioned on non-MACsec capable ports and MACsec isn't + // supported and enabling MACsec fails. // // Possible values: // "IF_MACSEC" - Media Access Control security (MACsec) @@ -22892,7 +22904,7 @@ type Interconnect struct { RemoteLocation string `json:"remoteLocation,omitempty"` // RequestedFeatures: Optional. List of features requested for this // Interconnect connection, which can take one of the following values: - - // MACSEC If specified then the connection is created on MACsec capable + // IF_MACSEC If specified then the connection is created on MACsec capable // hardware ports. If not specified, the default value is false, which // allocates non-MACsec capable ports first if available. This parameter can be // provided only with Interconnect INSERT. It isn't valid for Interconnect @@ -36827,6 +36839,165 @@ func (s RegionInstanceGroupManagerPatchInstanceConfigReq) MarshalJSON() ([]byte, return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type RegionInstanceGroupManagerResizeRequestsListResponse struct { + Etag string `json:"etag,omitempty"` + // Id: [Output Only] Unique identifier for the resource; defined by the server. + Id string `json:"id,omitempty"` + // Items: A list of Resize Request resources. + Items []*InstanceGroupManagerResizeRequest `json:"items,omitempty"` + // Kind: [Output Only] Type of the resource. Always + // compute#regionInstanceGroupManagerResizeRequestList for a list of Resize + // Requests. + Kind string `json:"kind,omitempty"` + // NextPageToken: [Output Only] This token allows you to get the next page of + // results for list requests. If the number of results is larger than + // maxResults, use the nextPageToken as a value for the query parameter + // pageToken in the next list request. Subsequent list requests will have their + // own nextPageToken to continue paging through the results. + NextPageToken string `json:"nextPageToken,omitempty"` + // SelfLink: [Output Only] Server-defined URL for this resource. + SelfLink string `json:"selfLink,omitempty"` + // Unreachables: [Output Only] Unreachable resources. end_interface: + // MixerListResponseWithEtagBuilder + Unreachables []string `json:"unreachables,omitempty"` + // Warning: [Output Only] Informational warning message. + Warning *RegionInstanceGroupManagerResizeRequestsListResponseWarning `json:"warning,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RegionInstanceGroupManagerResizeRequestsListResponse) MarshalJSON() ([]byte, error) { + type NoMethod RegionInstanceGroupManagerResizeRequestsListResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// RegionInstanceGroupManagerResizeRequestsListResponseWarning: [Output Only] +// Informational warning message. +type RegionInstanceGroupManagerResizeRequestsListResponseWarning struct { + // Code: [Output Only] A warning code, if applicable. For example, Compute + // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. + // + // Possible values: + // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made + // by a failed operation. + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources + // has a type marked as deprecated + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is + // larger than image size. + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "EXTERNAL_API_WARNING" - Warning that is present in an external api call + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected + // kernel, which is deprecated. + // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend + // service is associated with a health check that is not of type + // HTTP/HTTPS/HTTP2. + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources + // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list + // overhead quota exceed which captures the amount of resources filtered out by + // user-defined list filter. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not + // assigned to an instance on the network. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip + // forward. + // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance + // URL refers to an instance that does not have an ipv6 interface on the same + // network as the route. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to + // an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL + // refers to an instance that is not on the same network as the route. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a + // status of RUNNING. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue + // the process despite the mentioned error. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. + // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing + // due to errors + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that + // requires a TOS they have not accepted. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is + // in use. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete + // could not be deleted because they were in use. + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance + // group manager is valid as such, but its application does not make a lot of + // sense, because it allows only single instance in instance group. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are + // present + // "UNREACHABLE" - A given scope cannot be reached. + Code string `json:"code,omitempty"` + // Data: [Output Only] Metadata about this warning in key: value format. For + // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } + Data []*RegionInstanceGroupManagerResizeRequestsListResponseWarningData `json:"data,omitempty"` + // Message: [Output Only] A human-readable description of the warning code. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RegionInstanceGroupManagerResizeRequestsListResponseWarning) MarshalJSON() ([]byte, error) { + type NoMethod RegionInstanceGroupManagerResizeRequestsListResponseWarning + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type RegionInstanceGroupManagerResizeRequestsListResponseWarningData struct { + // Key: [Output Only] A key that provides more detail on the warning being + // returned. For example, for warnings where there are no results in a list + // request for a particular zone, this key might be scope and the key value + // might be the zone name. Other examples might be a key indicating a + // deprecated resource and a suggested replacement, or a warning about invalid + // network settings (for example, if an instance attempts to perform IP + // forwarding but is not enabled for IP forwarding). + Key string `json:"key,omitempty"` + // Value: [Output Only] A warning data value corresponding to the key. + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RegionInstanceGroupManagerResizeRequestsListResponseWarningData) MarshalJSON() ([]byte, error) { + type NoMethod RegionInstanceGroupManagerResizeRequestsListResponseWarningData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // RegionInstanceGroupManagerUpdateInstanceConfigReq: // RegionInstanceGroupManagers.updatePerInstanceConfigs type RegionInstanceGroupManagerUpdateInstanceConfigReq struct { @@ -38001,6 +38172,9 @@ type RequestMirrorPolicy struct { // matched in the URL map. Serverless NEG backends are not currently supported // as a mirrored backend service. BackendService string `json:"backendService,omitempty"` + // MirrorPercent: The percentage of requests to be mirrored to + // `backend_service`. + MirrorPercent float64 `json:"mirrorPercent,omitempty"` // ForceSendFields is a list of field names (e.g. "BackendService") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -38019,6 +38193,20 @@ func (s RequestMirrorPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +func (s *RequestMirrorPolicy) UnmarshalJSON(data []byte) error { + type NoMethod RequestMirrorPolicy + var s1 struct { + MirrorPercent gensupport.JSONFloat64 `json:"mirrorPercent"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.MirrorPercent = float64(s1.MirrorPercent) + return nil +} + // Reservation: Represents a reservation resource. A reservation ensures that // capacity is held in a specific zone even if the reserved VMs are not // running. For more information, read Reserving zonal resources. diff --git a/compute/v0.beta/compute3-gen.go b/compute/v0.beta/compute3-gen.go index 8ef614c2273..89e7b35e64a 100644 --- a/compute/v0.beta/compute3-gen.go +++ b/compute/v0.beta/compute3-gen.go @@ -7848,6 +7848,729 @@ func (c *RegionHealthChecksUpdateCall) Do(opts ...googleapi.CallOption) (*Operat return ret, nil } +type RegionInstanceGroupManagerResizeRequestsCancelCall struct { + s *Service + project string + region string + instanceGroupManager string + resizeRequest string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Cancels the specified resize request. Cancelled resize request no +// longer waits for the resources to be provisioned. Cancel is only possible +// for requests that are in accepted state. +// +// - instanceGroupManager: The name of the managed instance group. Name should +// conform to RFC1035 or be a resource ID. +// - project: Project ID for this request. +// - region: The name of the region scoping this request. Name should conform +// to RFC1035. +// - resizeRequest: The name of the resize request to cancel. Name should +// conform to RFC1035 or be a resource ID. +func (r *RegionInstanceGroupManagerResizeRequestsService) Cancel(project string, region string, instanceGroupManager string, resizeRequest string) *RegionInstanceGroupManagerResizeRequestsCancelCall { + c := &RegionInstanceGroupManagerResizeRequestsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.instanceGroupManager = instanceGroupManager + c.resizeRequest = resizeRequest + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *RegionInstanceGroupManagerResizeRequestsCancelCall) RequestId(requestId string) *RegionInstanceGroupManagerResizeRequestsCancelCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RegionInstanceGroupManagerResizeRequestsCancelCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagerResizeRequestsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionInstanceGroupManagerResizeRequestsCancelCall) Context(ctx context.Context) *RegionInstanceGroupManagerResizeRequestsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RegionInstanceGroupManagerResizeRequestsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionInstanceGroupManagerResizeRequestsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel") + 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{ + "project": c.project, + "region": c.region, + "instanceGroupManager": c.instanceGroupManager, + "resizeRequest": c.resizeRequest, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionInstanceGroupManagerResizeRequests.cancel" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.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 *RegionInstanceGroupManagerResizeRequestsCancelCall) Do(opts ...googleapi.CallOption) (*Operation, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &Operation{ + 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 +} + +type RegionInstanceGroupManagerResizeRequestsDeleteCall struct { + s *Service + project string + region string + instanceGroupManager string + resizeRequest string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified, inactive resize request. Requests that are +// still active cannot be deleted. Deleting request does not delete instances +// that were provisioned previously. +// +// - instanceGroupManager: The name of the managed instance group. Name should +// conform to RFC1035 or be a resource ID. +// - project: Project ID for this request. +// - region: The name of the region scoping this request. Name should conform +// to RFC1035. +// - resizeRequest: The name of the resize request to delete. Name should +// conform to RFC1035 or be a resource ID. +func (r *RegionInstanceGroupManagerResizeRequestsService) Delete(project string, region string, instanceGroupManager string, resizeRequest string) *RegionInstanceGroupManagerResizeRequestsDeleteCall { + c := &RegionInstanceGroupManagerResizeRequestsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.instanceGroupManager = instanceGroupManager + c.resizeRequest = resizeRequest + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *RegionInstanceGroupManagerResizeRequestsDeleteCall) RequestId(requestId string) *RegionInstanceGroupManagerResizeRequestsDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RegionInstanceGroupManagerResizeRequestsDeleteCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagerResizeRequestsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionInstanceGroupManagerResizeRequestsDeleteCall) Context(ctx context.Context) *RegionInstanceGroupManagerResizeRequestsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RegionInstanceGroupManagerResizeRequestsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionInstanceGroupManagerResizeRequestsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "instanceGroupManager": c.instanceGroupManager, + "resizeRequest": c.resizeRequest, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionInstanceGroupManagerResizeRequests.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.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 *RegionInstanceGroupManagerResizeRequestsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &Operation{ + 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 +} + +type RegionInstanceGroupManagerResizeRequestsGetCall struct { + s *Service + project string + region string + instanceGroupManager string + resizeRequest string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns all of the details about the specified resize request. +// +// - instanceGroupManager: The name of the managed instance group. Name should +// conform to RFC1035 or be a resource ID. +// - project: Project ID for this request. +// - region: The name of the region scoping this request. Name should conform +// to RFC1035. +// - resizeRequest: The name of the resize request. Name should conform to +// RFC1035 or be a resource ID. +func (r *RegionInstanceGroupManagerResizeRequestsService) Get(project string, region string, instanceGroupManager string, resizeRequest string) *RegionInstanceGroupManagerResizeRequestsGetCall { + c := &RegionInstanceGroupManagerResizeRequestsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.instanceGroupManager = instanceGroupManager + c.resizeRequest = resizeRequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RegionInstanceGroupManagerResizeRequestsGetCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagerResizeRequestsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *RegionInstanceGroupManagerResizeRequestsGetCall) IfNoneMatch(entityTag string) *RegionInstanceGroupManagerResizeRequestsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionInstanceGroupManagerResizeRequestsGetCall) Context(ctx context.Context) *RegionInstanceGroupManagerResizeRequestsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RegionInstanceGroupManagerResizeRequestsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionInstanceGroupManagerResizeRequestsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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, "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}") + 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{ + "project": c.project, + "region": c.region, + "instanceGroupManager": c.instanceGroupManager, + "resizeRequest": c.resizeRequest, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionInstanceGroupManagerResizeRequests.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *InstanceGroupManagerResizeRequest.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 *RegionInstanceGroupManagerResizeRequestsGetCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagerResizeRequest, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &InstanceGroupManagerResizeRequest{ + 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 +} + +type RegionInstanceGroupManagerResizeRequestsInsertCall struct { + s *Service + project string + region string + instanceGroupManager string + instancegroupmanagerresizerequest *InstanceGroupManagerResizeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Insert: Creates a new Resize Request that starts provisioning VMs +// immediately or queues VM creation. +// +// - instanceGroupManager: Name of the managed instance group to which the +// resize request is scoped. Name should conform to RFC1035 or be a resource +// ID. +// - project: Project ID for this request. +// - region: Name of the region scoping this request. Name should conform to +// RFC1035. +func (r *RegionInstanceGroupManagerResizeRequestsService) Insert(project string, region string, instanceGroupManager string, instancegroupmanagerresizerequest *InstanceGroupManagerResizeRequest) *RegionInstanceGroupManagerResizeRequestsInsertCall { + c := &RegionInstanceGroupManagerResizeRequestsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.instanceGroupManager = instanceGroupManager + c.instancegroupmanagerresizerequest = instancegroupmanagerresizerequest + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *RegionInstanceGroupManagerResizeRequestsInsertCall) RequestId(requestId string) *RegionInstanceGroupManagerResizeRequestsInsertCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RegionInstanceGroupManagerResizeRequestsInsertCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagerResizeRequestsInsertCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionInstanceGroupManagerResizeRequestsInsertCall) Context(ctx context.Context) *RegionInstanceGroupManagerResizeRequestsInsertCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RegionInstanceGroupManagerResizeRequestsInsertCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionInstanceGroupManagerResizeRequestsInsertCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancegroupmanagerresizerequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests") + 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{ + "project": c.project, + "region": c.region, + "instanceGroupManager": c.instanceGroupManager, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionInstanceGroupManagerResizeRequests.insert" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.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 *RegionInstanceGroupManagerResizeRequestsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &Operation{ + 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 +} + +type RegionInstanceGroupManagerResizeRequestsListCall struct { + s *Service + project string + region string + instanceGroupManager string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Retrieves a list of Resize Requests that are contained in the managed +// instance group. +// +// - instanceGroupManager: The name of the managed instance group. The name +// should conform to RFC1035. +// - project: Project ID for this request. +// - region: Name of the region scoping this request. Name should conform to +// RFC1035. +func (r *RegionInstanceGroupManagerResizeRequestsService) List(project string, region string, instanceGroupManager string) *RegionInstanceGroupManagerResizeRequestsListCall { + c := &RegionInstanceGroupManagerResizeRequestsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.instanceGroupManager = instanceGroupManager + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most Compute resources support two +// types of filter expressions: expressions that support regular expressions +// and expressions that follow API improvement proposal AIP-160. These two +// types of filter expressions cannot be mixed in one request. If you want to +// use AIP-160, your expression must specify the field name, an operator, and +// the value that you want to use for filtering. The value must be a string, a +// number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, +// `>=` or `:`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. The `:*` comparison can be used to test whether a key has +// been defined. For example, to find all objects with `owner` label use: ``` +// labels.owner:* ``` You can also filter nested fields. For example, you could +// specify `scheduling.automaticRestart = false` to include instances only if +// they are not scheduled for automatic restarts. You can use filtering on +// nested fields to filter based on resource labels. To filter on multiple +// expressions, provide each separate expression within parentheses. For +// example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel +// Skylake") ``` By default, each expression is an `AND` expression. However, +// you can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND +// (scheduling.automaticRestart = true) ``` If you want to use a regular +// expression, use the `eq` (equal) or `ne` (not equal) operator against a +// single un-parenthesized expression with or without quotes or against +// multiple parenthesized expressions. Examples: `fieldname eq unquoted +// literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted +// literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal +// value is interpreted as a regular expression using Google RE2 library +// syntax. The literal value must match the entire field. For example, to +// filter for instances that do not end with name "instance", you would use +// `name ne .*instance`. You cannot combine constraints on multiple fields +// using regular expressions. +func (c *RegionInstanceGroupManagerResizeRequestsListCall) Filter(filter string) *RegionInstanceGroupManagerResizeRequestsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// MaxResults sets the optional parameter "maxResults": The maximum number of +// results per page that should be returned. If the number of available results +// is larger than `maxResults`, Compute Engine returns a `nextPageToken` that +// can be used to get the next page of results in subsequent list requests. +// Acceptable values are `0` to `500`, inclusive. (Default: `500`) +func (c *RegionInstanceGroupManagerResizeRequestsListCall) MaxResults(maxResults int64) *RegionInstanceGroupManagerResizeRequestsListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": Sorts list results by a +// certain order. By default, results are returned in alphanumerical order +// based on the resource name. You can also sort results in descending order +// based on the creation timestamp using `orderBy="creationTimestamp desc". +// This sorts results based on the `creationTimestamp` field in reverse +// chronological order (newest result first). Use this to sort resources like +// operations so that the newest operation is returned first. Currently, only +// sorting by `name` or `creationTimestamp desc` is supported. +func (c *RegionInstanceGroupManagerResizeRequestsListCall) OrderBy(orderBy string) *RegionInstanceGroupManagerResizeRequestsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to the `nextPageToken` returned by a previous list +// request to get the next page of results. +func (c *RegionInstanceGroupManagerResizeRequestsListCall) PageToken(pageToken string) *RegionInstanceGroupManagerResizeRequestsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in case +// of failure. The default value is false. For example, when partial success +// behavior is enabled, aggregatedList for a single zone scope either returns +// all resources in the zone or no resources, with an error code. +func (c *RegionInstanceGroupManagerResizeRequestsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionInstanceGroupManagerResizeRequestsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RegionInstanceGroupManagerResizeRequestsListCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagerResizeRequestsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *RegionInstanceGroupManagerResizeRequestsListCall) IfNoneMatch(entityTag string) *RegionInstanceGroupManagerResizeRequestsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionInstanceGroupManagerResizeRequestsListCall) Context(ctx context.Context) *RegionInstanceGroupManagerResizeRequestsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RegionInstanceGroupManagerResizeRequestsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionInstanceGroupManagerResizeRequestsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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, "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests") + 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{ + "project": c.project, + "region": c.region, + "instanceGroupManager": c.instanceGroupManager, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionInstanceGroupManagerResizeRequests.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *RegionInstanceGroupManagerResizeRequestsListResponse.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 *RegionInstanceGroupManagerResizeRequestsListCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupManagerResizeRequestsListResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &RegionInstanceGroupManagerResizeRequestsListResponse{ + 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 +} + +// 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 *RegionInstanceGroupManagerResizeRequestsListCall) Pages(ctx context.Context, f func(*RegionInstanceGroupManagerResizeRequestsListResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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) + } +} + type RegionInstanceGroupManagersAbandonInstancesCall struct { s *Service project string diff --git a/container/v1/container-api.json b/container/v1/container-api.json index 289bb106e45..23ee83811c3 100644 --- a/container/v1/container-api.json +++ b/container/v1/container-api.json @@ -2540,7 +2540,7 @@ } } }, - "revision": "20240814", + "revision": "20240905", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2594,6 +2594,10 @@ "$ref": "MaxPodsConstraint", "description": "The maximum number of pods per node which use this pod network." }, + "networkAttachment": { + "description": "The name of the network attachment for pods to communicate to; cannot be specified along with subnetwork or secondary_pod_range.", + "type": "string" + }, "secondaryPodRange": { "description": "The name of the secondary range on the subnet which provides IP address for this pod range.", "type": "string" @@ -4398,7 +4402,7 @@ "properties": { "cacheHeader": { "$ref": "HttpCacheControlResponseHeader", - "description": "OnePlatform automatically extracts this field and uses it to set the HTTP Cache-Control header." + "description": "For HTTP requests, this field is automatically extracted into the Cache-Control HTTP header." }, "keys": { "description": "The public component of the keys used by the cluster to sign token requests.", @@ -4416,7 +4420,7 @@ "properties": { "cacheHeader": { "$ref": "HttpCacheControlResponseHeader", - "description": "OnePlatform automatically extracts this field and uses it to set the HTTP Cache-Control header." + "description": "For HTTP requests, this field is automatically extracted into the Cache-Control HTTP header." }, "claims_supported": { "description": "Supported claims.", diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index 3a6035210a3..0acd9f16d65 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -363,6 +363,10 @@ type AdditionalPodNetworkConfig struct { // MaxPodsPerNode: The maximum number of pods per node which use this pod // network. MaxPodsPerNode *MaxPodsConstraint `json:"maxPodsPerNode,omitempty"` + // NetworkAttachment: The name of the network attachment for pods to + // communicate to; cannot be specified along with subnetwork or + // secondary_pod_range. + NetworkAttachment string `json:"networkAttachment,omitempty"` // SecondaryPodRange: The name of the secondary range on the subnet which // provides IP address for this pod range. SecondaryPodRange string `json:"secondaryPodRange,omitempty"` @@ -2510,8 +2514,8 @@ func (s GcsFuseCsiDriverConfig) MarshalJSON() ([]byte, error) { // GetJSONWebKeysResponse: GetJSONWebKeysResponse is a valid JSON Web Key Set // as specififed in rfc 7517 type GetJSONWebKeysResponse struct { - // CacheHeader: OnePlatform automatically extracts this field and uses it to - // set the HTTP Cache-Control header. + // CacheHeader: For HTTP requests, this field is automatically extracted into + // the Cache-Control HTTP header. CacheHeader *HttpCacheControlResponseHeader `json:"cacheHeader,omitempty"` // Keys: The public component of the keys used by the cluster to sign token // requests. @@ -2541,8 +2545,8 @@ func (s GetJSONWebKeysResponse) MarshalJSON() ([]byte, error) { // document for the cluster. See the OpenID Connect Discovery 1.0 specification // for details. type GetOpenIDConfigResponse struct { - // CacheHeader: OnePlatform automatically extracts this field and uses it to - // set the HTTP Cache-Control header. + // CacheHeader: For HTTP requests, this field is automatically extracted into + // the Cache-Control HTTP header. CacheHeader *HttpCacheControlResponseHeader `json:"cacheHeader,omitempty"` // ClaimsSupported: Supported claims. ClaimsSupported []string `json:"claims_supported,omitempty"` diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index 0c3ae01aed6..c0d9e09c920 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -2218,7 +2218,7 @@ } } }, - "revision": "20240902", + "revision": "20240914", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AlloyDbConnectionProfile": { @@ -2391,6 +2391,17 @@ }, "type": "object" }, + "AuthorizedNetwork": { + "description": "AuthorizedNetwork contains metadata for an authorized network.", + "id": "AuthorizedNetwork", + "properties": { + "cidrRange": { + "description": "Optional. CIDR range for one authorzied network of the instance.", + "type": "string" + } + }, + "type": "object" + }, "BackgroundJobLogEntry": { "description": "Execution log of a background job.", "id": "BackgroundJobLogEntry", @@ -2609,7 +2620,7 @@ "type": "object" }, "databaseVersion": { - "description": "The database engine type and version.", + "description": "The database engine type and version. Deprecated. Use database_version_name instead.", "enum": [ "SQL_DATABASE_VERSION_UNSPECIFIED", "MYSQL_5_6", @@ -2666,6 +2677,10 @@ ], "type": "string" }, + "databaseVersionName": { + "description": "Optional. The database engine type and version name.", + "type": "string" + }, "edition": { "description": "Optional. The edition of the given Cloud SQL instance.", "enum": [ @@ -4067,6 +4082,28 @@ }, "type": "object" }, + "InstanceNetworkConfig": { + "description": "Metadata related to instance level network configuration.", + "id": "InstanceNetworkConfig", + "properties": { + "authorizedExternalNetworks": { + "description": "Optional. A list of external network authorized to access this instance.", + "items": { + "$ref": "AuthorizedNetwork" + }, + "type": "array" + }, + "enableOutboundPublicIp": { + "description": "Optional. Enabling an outbound public IP address to support a database server sending requests out into the internet.", + "type": "boolean" + }, + "enablePublicIp": { + "description": "Optional. Enabling public ip for the instance.", + "type": "boolean" + } + }, + "type": "object" + }, "IntComparisonFilter": { "description": "Filter based on relation between source value and compare value of type integer in ConditionalColumnSetValue", "id": "IntComparisonFilter", @@ -5190,6 +5227,10 @@ "description": "Required. The ID of the AlloyDB primary instance. The ID must satisfy the regex expression \"[a-z0-9-]+\".", "type": "string" }, + "instanceNetworkConfig": { + "$ref": "InstanceNetworkConfig", + "description": "Optional. Metadata related to instance level network configuration." + }, "labels": { "additionalProperties": { "type": "string" @@ -5201,6 +5242,14 @@ "$ref": "MachineConfig", "description": "Configuration for the machines that host the underlying database engine." }, + "outboundPublicIpAddresses": { + "description": "Output only. All outbound public IP addresses configured for the instance.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "privateIp": { "description": "Output only. The private IP address for the Instance. This is the connection endpoint for an end-user application.", "readOnly": true, diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index c347f571b4a..ec20b4f7485 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -516,6 +516,29 @@ func (s AuditLogConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// AuthorizedNetwork: AuthorizedNetwork contains metadata for an authorized +// network. +type AuthorizedNetwork struct { + // CidrRange: Optional. CIDR range for one authorzied network of the instance. + CidrRange string `json:"cidrRange,omitempty"` + // ForceSendFields is a list of field names (e.g. "CidrRange") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CidrRange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AuthorizedNetwork) MarshalJSON() ([]byte, error) { + type NoMethod AuthorizedNetwork + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // BackgroundJobLogEntry: Execution log of a background job. type BackgroundJobLogEntry struct { // ApplyJobDetails: Output only. Apply job details. @@ -772,7 +795,8 @@ type CloudSqlSettings struct { // startup. An object containing a list of "key": value pairs. Example: { // "name": "wrench", "mass": "1.3kg", "count": "3" }. DatabaseFlags map[string]string `json:"databaseFlags,omitempty"` - // DatabaseVersion: The database engine type and version. + // DatabaseVersion: The database engine type and version. Deprecated. Use + // database_version_name instead. // // Possible values: // "SQL_DATABASE_VERSION_UNSPECIFIED" - Unspecified version. @@ -813,6 +837,8 @@ type CloudSqlSettings struct { // "POSTGRES_15" - PostgreSQL 15. // "POSTGRES_16" - PostgreSQL 16. DatabaseVersion string `json:"databaseVersion,omitempty"` + // DatabaseVersionName: Optional. The database engine type and version name. + DatabaseVersionName string `json:"databaseVersionName,omitempty"` // Edition: Optional. The edition of the given Cloud SQL instance. // // Possible values: @@ -2276,6 +2302,35 @@ func (s IndexEntity) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// InstanceNetworkConfig: Metadata related to instance level network +// configuration. +type InstanceNetworkConfig struct { + // AuthorizedExternalNetworks: Optional. A list of external network authorized + // to access this instance. + AuthorizedExternalNetworks []*AuthorizedNetwork `json:"authorizedExternalNetworks,omitempty"` + // EnableOutboundPublicIp: Optional. Enabling an outbound public IP address to + // support a database server sending requests out into the internet. + EnableOutboundPublicIp bool `json:"enableOutboundPublicIp,omitempty"` + // EnablePublicIp: Optional. Enabling public ip for the instance. + EnablePublicIp bool `json:"enablePublicIp,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuthorizedExternalNetworks") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuthorizedExternalNetworks") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s InstanceNetworkConfig) MarshalJSON() ([]byte, error) { + type NoMethod InstanceNetworkConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // IntComparisonFilter: Filter based on relation between source value and // compare value of type integer in ConditionalColumnSetValue type IntComparisonFilter struct { @@ -3506,12 +3561,18 @@ type PrimaryInstanceSettings struct { // Id: Required. The ID of the AlloyDB primary instance. The ID must satisfy // the regex expression "[a-z0-9-]+". Id string `json:"id,omitempty"` + // InstanceNetworkConfig: Optional. Metadata related to instance level network + // configuration. + InstanceNetworkConfig *InstanceNetworkConfig `json:"instanceNetworkConfig,omitempty"` // Labels: Labels for the AlloyDB primary instance created by DMS. An object // containing a list of 'key', 'value' pairs. Labels map[string]string `json:"labels,omitempty"` // MachineConfig: Configuration for the machines that host the underlying // database engine. MachineConfig *MachineConfig `json:"machineConfig,omitempty"` + // OutboundPublicIpAddresses: Output only. All outbound public IP addresses + // configured for the instance. + OutboundPublicIpAddresses []string `json:"outboundPublicIpAddresses,omitempty"` // PrivateIp: Output only. The private IP address for the Instance. This is the // connection endpoint for an end-user application. PrivateIp string `json:"privateIp,omitempty"` diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index 5d121278879..49668c20beb 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -398,7 +398,7 @@ ] }, "lookupEntry": { - "description": "Looks up a single Entry by name using the permission on the source system.", + "description": "Looks up a single Entry by name using the permission on the source system.Caution: The BigQuery metadata that is stored in Dataplex Catalog is changing. For more information, see Changes to BigQuery metadata stored in Dataplex Catalog (https://cloud.google.com/dataplex/docs/biqquery-metadata-changes).", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:lookupEntry", "httpMethod": "GET", "id": "dataplex.projects.locations.lookupEntry", @@ -2369,7 +2369,7 @@ ] }, "get": { - "description": "Gets an Entry.", + "description": "Gets an Entry.Caution: The BigQuery metadata that is stored in Dataplex Catalog is changing. For more information, see Changes to BigQuery metadata stored in Dataplex Catalog (https://cloud.google.com/dataplex/docs/biqquery-metadata-changes).", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/entryGroups/{entryGroupsId}/entries/{entriesId}", "httpMethod": "GET", "id": "dataplex.projects.locations.entryGroups.entries.get", @@ -5997,397 +5997,9 @@ } } }, - "revision": "20240820", + "revision": "20240914", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { - "CloudReliabilityZicyWs3DataplaneProtosAssetLocation": { - "description": "Provides the mapping of a cloud asset to a direct physical location or to a proxy that defines the location on its behalf.", - "id": "CloudReliabilityZicyWs3DataplaneProtosAssetLocation", - "properties": { - "ccfeRmsPath": { - "description": "Spanner path of the CCFE RMS database. It is only applicable for CCFE tenants that use CCFE RMS for storing resource metadata.", - "type": "string" - }, - "expected": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectations", - "description": "Defines the customer expectation around ZI/ZS for this asset and ZI/ZS state of the region at the time of asset creation." - }, - "extraParameters": { - "description": "Defines extra parameters required for specific asset types.", - "items": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosExtraParameter" - }, - "type": "array" - }, - "locationData": { - "description": "Contains all kinds of physical location definitions for this asset.", - "items": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosLocationData" - }, - "type": "array" - }, - "parentAsset": { - "description": "Defines parents assets if any in order to allow later generation of child_asset_location data via child assets.", - "items": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosCloudAsset" - }, - "type": "array" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectations": { - "id": "CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectations", - "properties": { - "requirementOverride": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectationsRequirementOverride", - "description": "Explicit overrides for ZI and ZS requirements to be used for resources that should be excluded from ZI/ZS verification logic." - }, - "ziOrgPolicy": { - "enum": [ - "ZI_UNSPECIFIED", - "ZI_UNKNOWN", - "ZI_NOT_REQUIRED", - "ZI_PREFERRED", - "ZI_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "", - "" - ], - "type": "string" - }, - "ziRegionPolicy": { - "enum": [ - "ZI_REGION_POLICY_UNSPECIFIED", - "ZI_REGION_POLICY_UNKNOWN", - "ZI_REGION_POLICY_NOT_SET", - "ZI_REGION_POLICY_FAIL_OPEN", - "ZI_REGION_POLICY_FAIL_CLOSED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "", - "" - ], - "type": "string" - }, - "ziRegionState": { - "enum": [ - "ZI_REGION_UNSPECIFIED", - "ZI_REGION_UNKNOWN", - "ZI_REGION_NOT_ENABLED", - "ZI_REGION_ENABLED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "" - ], - "type": "string" - }, - "zoneIsolation": { - "deprecated": true, - "description": "Deprecated: use zi_org_policy, zi_region_policy and zi_region_state instead for setting ZI expectations as per go/zicy-publish-physical-location.", - "enum": [ - "ZI_UNSPECIFIED", - "ZI_UNKNOWN", - "ZI_NOT_REQUIRED", - "ZI_PREFERRED", - "ZI_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "", - "" - ], - "type": "string" - }, - "zoneSeparation": { - "deprecated": true, - "description": "Deprecated: use zs_org_policy, and zs_region_stateinstead for setting Zs expectations as per go/zicy-publish-physical-location.", - "enum": [ - "ZS_UNSPECIFIED", - "ZS_UNKNOWN", - "ZS_NOT_REQUIRED", - "ZS_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "" - ], - "type": "string" - }, - "zsOrgPolicy": { - "enum": [ - "ZS_UNSPECIFIED", - "ZS_UNKNOWN", - "ZS_NOT_REQUIRED", - "ZS_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "" - ], - "type": "string" - }, - "zsRegionState": { - "enum": [ - "ZS_REGION_UNSPECIFIED", - "ZS_REGION_UNKNOWN", - "ZS_REGION_NOT_ENABLED", - "ZS_REGION_ENABLED" - ], - "enumDescriptions": [ - "", - "To be used if tracking of the asset ZS-bit is not available", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectationsRequirementOverride": { - "id": "CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectationsRequirementOverride", - "properties": { - "ziOverride": { - "enum": [ - "ZI_UNSPECIFIED", - "ZI_UNKNOWN", - "ZI_NOT_REQUIRED", - "ZI_PREFERRED", - "ZI_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "", - "" - ], - "type": "string" - }, - "zsOverride": { - "enum": [ - "ZS_UNSPECIFIED", - "ZS_UNKNOWN", - "ZS_NOT_REQUIRED", - "ZS_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosBlobstoreLocation": { - "description": "Policy ID that identified data placement in Blobstore as per go/blobstore-user-guide#data-metadata-placement-and-failure-domains", - "id": "CloudReliabilityZicyWs3DataplaneProtosBlobstoreLocation", - "properties": { - "policyId": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosCloudAsset": { - "id": "CloudReliabilityZicyWs3DataplaneProtosCloudAsset", - "properties": { - "assetName": { - "type": "string" - }, - "assetType": { - "type": "string" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosCloudAssetComposition": { - "id": "CloudReliabilityZicyWs3DataplaneProtosCloudAssetComposition", - "properties": { - "childAsset": { - "items": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosCloudAsset" - }, - "type": "array" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosDirectLocationAssignment": { - "id": "CloudReliabilityZicyWs3DataplaneProtosDirectLocationAssignment", - "properties": { - "location": { - "items": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosLocationAssignment" - }, - "type": "array" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosExtraParameter": { - "description": "Defines parameters that should only be used for specific asset types.", - "id": "CloudReliabilityZicyWs3DataplaneProtosExtraParameter", - "properties": { - "regionalMigDistributionPolicy": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosRegionalMigDistributionPolicy", - "description": "Details about zones used by regional compute.googleapis.com/InstanceGroupManager to create instances." - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosLocationAssignment": { - "id": "CloudReliabilityZicyWs3DataplaneProtosLocationAssignment", - "properties": { - "location": { - "type": "string" - }, - "locationType": { - "enum": [ - "UNSPECIFIED", - "CLUSTER", - "POP", - "CLOUD_ZONE", - "CLOUD_REGION", - "MULTI_REGION_GEO", - "MULTI_REGION_JURISDICTION", - "GLOBAL", - "OTHER" - ], - "enumDescriptions": [ - "", - "1-10: Physical failure domains.", - "", - "11-20: Logical failure domains.", - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosLocationData": { - "id": "CloudReliabilityZicyWs3DataplaneProtosLocationData", - "properties": { - "blobstoreLocation": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosBlobstoreLocation" - }, - "childAssetLocation": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosCloudAssetComposition" - }, - "directLocation": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosDirectLocationAssignment" - }, - "gcpProjectProxy": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosTenantProjectProxy" - }, - "placerLocation": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosPlacerLocation" - }, - "spannerLocation": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosSpannerLocation" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosPlacerLocation": { - "description": "Message describing that the location of the customer resource is tied to placer allocations", - "id": "CloudReliabilityZicyWs3DataplaneProtosPlacerLocation", - "properties": { - "placerConfig": { - "description": "Directory with a config related to it in placer (e.g. \"/placer/prod/home/my-root/my-dir\")", - "type": "string" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosRegionalMigDistributionPolicy": { - "description": "To be used for specifying the intended distribution of regional compute.googleapis.com/InstanceGroupManager instances", - "id": "CloudReliabilityZicyWs3DataplaneProtosRegionalMigDistributionPolicy", - "properties": { - "targetShape": { - "description": "The shape in which the group converges around distribution of resources. Instance of proto2 enum", - "format": "int32", - "type": "integer" - }, - "zones": { - "description": "Cloud zones used by regional MIG to create instances.", - "items": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosZoneConfiguration" - }, - "type": "array" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosSpannerLocation": { - "id": "CloudReliabilityZicyWs3DataplaneProtosSpannerLocation", - "properties": { - "backupName": { - "description": "Set of backups used by the resource with name in the same format as what is available at http://table/spanner_automon.backup_metadata", - "items": { - "type": "string" - }, - "type": "array" - }, - "dbName": { - "description": "Set of databases used by the resource in format /span//", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosTenantProjectProxy": { - "id": "CloudReliabilityZicyWs3DataplaneProtosTenantProjectProxy", - "properties": { - "projectNumbers": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosZoneConfiguration": { - "id": "CloudReliabilityZicyWs3DataplaneProtosZoneConfiguration", - "properties": { - "zone": { - "type": "string" - } - }, - "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); } ", "id": "Empty", @@ -6703,6 +6315,21 @@ "readOnly": true, "type": "string" }, + "transferStatus": { + "description": "Output only. Denotes the transfer status of the Aspect Type. It is unspecified for Aspect Types created from Dataplex API.", + "enum": [ + "TRANSFER_STATUS_UNSPECIFIED", + "TRANSFER_STATUS_MIGRATED", + "TRANSFER_STATUS_TRANSFERRED" + ], + "enumDescriptions": [ + "The default value. It is set for resources that were not subject for migration from Data Catalog service.", + "Indicates that a resource was migrated from Data Catalog service but it hasn't been transferred yet. In particular the resource cannot be updated from Dataplex API.", + "Indicates that a resource was transferred from Data Catalog service. The resource can only be updated from Dataplex API." + ], + "readOnly": true, + "type": "string" + }, "uid": { "description": "Output only. System generated globally unique ID for the AspectType. If you delete and recreate the AspectType with the same name, then this ID will be different.", "readOnly": true, @@ -9008,6 +8635,10 @@ "description": "The data location associated with the event.", "type": "string" }, + "datascanId": { + "description": "The id of the associated datascan for standalone discovery.", + "type": "string" + }, "entity": { "$ref": "GoogleCloudDataplexV1DiscoveryEventEntityDetails", "description": "Details about the entity associated with the event." @@ -9024,6 +8655,10 @@ "$ref": "GoogleCloudDataplexV1DiscoveryEventPartitionDetails", "description": "Details about the partition associated with the event." }, + "table": { + "$ref": "GoogleCloudDataplexV1DiscoveryEventTableDetails", + "description": "Details about the BigQuery table publishing associated with the event." + }, "type": { "description": "The type of the event being logged.", "enum": [ @@ -9141,6 +8776,33 @@ }, "type": "object" }, + "GoogleCloudDataplexV1DiscoveryEventTableDetails": { + "description": "Details about the published table.", + "id": "GoogleCloudDataplexV1DiscoveryEventTableDetails", + "properties": { + "table": { + "description": "The fully-qualified resource name of the table resource.", + "type": "string" + }, + "type": { + "description": "The type of the table resource.", + "enum": [ + "TABLE_TYPE_UNSPECIFIED", + "EXTERNAL_TABLE", + "BIGLAKE_TABLE", + "OBJECT_TABLE" + ], + "enumDescriptions": [ + "An unspecified table type.", + "External table type.", + "BigLake table type.", + "Object table type for unstructured data." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDataplexV1Entity": { "description": "Represents tables and fileset metadata contained within a zone.", "id": "GoogleCloudDataplexV1Entity", @@ -9363,6 +9025,21 @@ "readOnly": true, "type": "string" }, + "transferStatus": { + "description": "Output only. Denotes the transfer status of the Entry Group. It is unspecified for Entry Group created from Dataplex API.", + "enum": [ + "TRANSFER_STATUS_UNSPECIFIED", + "TRANSFER_STATUS_MIGRATED", + "TRANSFER_STATUS_TRANSFERRED" + ], + "enumDescriptions": [ + "The default value. It is set for resources that were not subject for migration from Data Catalog service.", + "Indicates that a resource was migrated from Data Catalog service but it hasn't been transferred yet. In particular the resource cannot be updated from Dataplex API.", + "Indicates that a resource was transferred from Data Catalog service. The resource can only be updated from Dataplex API." + ], + "readOnly": true, + "type": "string" + }, "uid": { "description": "Output only. System generated globally unique ID for the EntryGroup. If you delete and recreate the EntryGroup with the same name, this ID will be different.", "readOnly": true, @@ -11863,7 +11540,7 @@ "type": "string" }, "sqlScriptFile": { - "description": "A reference to a query file. This can be the Cloud Storage URI of the query file or it can the path to a SqlScript Content. The execution args are used to declare a set of script variables (set key=\"value\";).", + "description": "A reference to a query file. This should be the Cloud Storage URI of the query file. The execution args are used to declare a set of script variables (set key=\"value\";).", "type": "string" } }, diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index eccf899e4a8..fec3722054e 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -583,428 +583,6 @@ type ProjectsLocationsOperationsService struct { s *Service } -// CloudReliabilityZicyWs3DataplaneProtosAssetLocation: Provides the mapping of -// a cloud asset to a direct physical location or to a proxy that defines the -// location on its behalf. -type CloudReliabilityZicyWs3DataplaneProtosAssetLocation struct { - // CcfeRmsPath: Spanner path of the CCFE RMS database. It is only applicable - // for CCFE tenants that use CCFE RMS for storing resource metadata. - CcfeRmsPath string `json:"ccfeRmsPath,omitempty"` - // Expected: Defines the customer expectation around ZI/ZS for this asset and - // ZI/ZS state of the region at the time of asset creation. - Expected *CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectations `json:"expected,omitempty"` - // ExtraParameters: Defines extra parameters required for specific asset types. - ExtraParameters []*CloudReliabilityZicyWs3DataplaneProtosExtraParameter `json:"extraParameters,omitempty"` - // LocationData: Contains all kinds of physical location definitions for this - // asset. - LocationData []*CloudReliabilityZicyWs3DataplaneProtosLocationData `json:"locationData,omitempty"` - // ParentAsset: Defines parents assets if any in order to allow later - // generation of child_asset_location data via child assets. - ParentAsset []*CloudReliabilityZicyWs3DataplaneProtosCloudAsset `json:"parentAsset,omitempty"` - // ForceSendFields is a list of field names (e.g. "CcfeRmsPath") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CcfeRmsPath") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosAssetLocation) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosAssetLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectations struct { - // RequirementOverride: Explicit overrides for ZI and ZS requirements to be - // used for resources that should be excluded from ZI/ZS verification logic. - RequirementOverride *CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectationsRequirementOverride `json:"requirementOverride,omitempty"` - // Possible values: - // "ZI_UNSPECIFIED" - // "ZI_UNKNOWN" - To be used if tracking is not available - // "ZI_NOT_REQUIRED" - // "ZI_PREFERRED" - // "ZI_REQUIRED" - ZiOrgPolicy string `json:"ziOrgPolicy,omitempty"` - // Possible values: - // "ZI_REGION_POLICY_UNSPECIFIED" - // "ZI_REGION_POLICY_UNKNOWN" - To be used if tracking is not available - // "ZI_REGION_POLICY_NOT_SET" - // "ZI_REGION_POLICY_FAIL_OPEN" - // "ZI_REGION_POLICY_FAIL_CLOSED" - ZiRegionPolicy string `json:"ziRegionPolicy,omitempty"` - // Possible values: - // "ZI_REGION_UNSPECIFIED" - // "ZI_REGION_UNKNOWN" - To be used if tracking is not available - // "ZI_REGION_NOT_ENABLED" - // "ZI_REGION_ENABLED" - ZiRegionState string `json:"ziRegionState,omitempty"` - // ZoneIsolation: Deprecated: use zi_org_policy, zi_region_policy and - // zi_region_state instead for setting ZI expectations as per - // go/zicy-publish-physical-location. - // - // Possible values: - // "ZI_UNSPECIFIED" - // "ZI_UNKNOWN" - To be used if tracking is not available - // "ZI_NOT_REQUIRED" - // "ZI_PREFERRED" - // "ZI_REQUIRED" - ZoneIsolation string `json:"zoneIsolation,omitempty"` - // ZoneSeparation: Deprecated: use zs_org_policy, and zs_region_stateinstead - // for setting Zs expectations as per go/zicy-publish-physical-location. - // - // Possible values: - // "ZS_UNSPECIFIED" - // "ZS_UNKNOWN" - To be used if tracking is not available - // "ZS_NOT_REQUIRED" - // "ZS_REQUIRED" - ZoneSeparation string `json:"zoneSeparation,omitempty"` - // Possible values: - // "ZS_UNSPECIFIED" - // "ZS_UNKNOWN" - To be used if tracking is not available - // "ZS_NOT_REQUIRED" - // "ZS_REQUIRED" - ZsOrgPolicy string `json:"zsOrgPolicy,omitempty"` - // Possible values: - // "ZS_REGION_UNSPECIFIED" - // "ZS_REGION_UNKNOWN" - To be used if tracking of the asset ZS-bit is not - // available - // "ZS_REGION_NOT_ENABLED" - // "ZS_REGION_ENABLED" - ZsRegionState string `json:"zsRegionState,omitempty"` - // ForceSendFields is a list of field names (e.g. "RequirementOverride") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RequirementOverride") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectations) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectations - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectationsRequirementOverride struct { - // Possible values: - // "ZI_UNSPECIFIED" - // "ZI_UNKNOWN" - To be used if tracking is not available - // "ZI_NOT_REQUIRED" - // "ZI_PREFERRED" - // "ZI_REQUIRED" - ZiOverride string `json:"ziOverride,omitempty"` - // Possible values: - // "ZS_UNSPECIFIED" - // "ZS_UNKNOWN" - To be used if tracking is not available - // "ZS_NOT_REQUIRED" - // "ZS_REQUIRED" - ZsOverride string `json:"zsOverride,omitempty"` - // ForceSendFields is a list of field names (e.g. "ZiOverride") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ZiOverride") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectationsRequirementOverride) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectationsRequirementOverride - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// CloudReliabilityZicyWs3DataplaneProtosBlobstoreLocation: Policy ID that -// identified data placement in Blobstore as per -// go/blobstore-user-guide#data-metadata-placement-and-failure-domains -type CloudReliabilityZicyWs3DataplaneProtosBlobstoreLocation struct { - PolicyId []string `json:"policyId,omitempty"` - // ForceSendFields is a list of field names (e.g. "PolicyId") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PolicyId") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosBlobstoreLocation) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosBlobstoreLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosCloudAsset struct { - AssetName string `json:"assetName,omitempty"` - AssetType string `json:"assetType,omitempty"` - // ForceSendFields is a list of field names (e.g. "AssetName") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AssetName") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosCloudAsset) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosCloudAsset - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosCloudAssetComposition struct { - ChildAsset []*CloudReliabilityZicyWs3DataplaneProtosCloudAsset `json:"childAsset,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChildAsset") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ChildAsset") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosCloudAssetComposition) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosCloudAssetComposition - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosDirectLocationAssignment struct { - Location []*CloudReliabilityZicyWs3DataplaneProtosLocationAssignment `json:"location,omitempty"` - // ForceSendFields is a list of field names (e.g. "Location") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Location") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosDirectLocationAssignment) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosDirectLocationAssignment - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// CloudReliabilityZicyWs3DataplaneProtosExtraParameter: Defines parameters -// that should only be used for specific asset types. -type CloudReliabilityZicyWs3DataplaneProtosExtraParameter struct { - // RegionalMigDistributionPolicy: Details about zones used by regional - // compute.googleapis.com/InstanceGroupManager to create instances. - RegionalMigDistributionPolicy *CloudReliabilityZicyWs3DataplaneProtosRegionalMigDistributionPolicy `json:"regionalMigDistributionPolicy,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "RegionalMigDistributionPolicy") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields - // for more details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RegionalMigDistributionPolicy") - // to include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosExtraParameter) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosExtraParameter - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosLocationAssignment struct { - Location string `json:"location,omitempty"` - // Possible values: - // "UNSPECIFIED" - // "CLUSTER" - 1-10: Physical failure domains. - // "POP" - // "CLOUD_ZONE" - 11-20: Logical failure domains. - // "CLOUD_REGION" - // "MULTI_REGION_GEO" - // "MULTI_REGION_JURISDICTION" - // "GLOBAL" - // "OTHER" - LocationType string `json:"locationType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Location") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Location") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosLocationAssignment) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosLocationAssignment - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosLocationData struct { - BlobstoreLocation *CloudReliabilityZicyWs3DataplaneProtosBlobstoreLocation `json:"blobstoreLocation,omitempty"` - ChildAssetLocation *CloudReliabilityZicyWs3DataplaneProtosCloudAssetComposition `json:"childAssetLocation,omitempty"` - DirectLocation *CloudReliabilityZicyWs3DataplaneProtosDirectLocationAssignment `json:"directLocation,omitempty"` - GcpProjectProxy *CloudReliabilityZicyWs3DataplaneProtosTenantProjectProxy `json:"gcpProjectProxy,omitempty"` - PlacerLocation *CloudReliabilityZicyWs3DataplaneProtosPlacerLocation `json:"placerLocation,omitempty"` - SpannerLocation *CloudReliabilityZicyWs3DataplaneProtosSpannerLocation `json:"spannerLocation,omitempty"` - // ForceSendFields is a list of field names (e.g. "BlobstoreLocation") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BlobstoreLocation") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosLocationData) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosLocationData - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// CloudReliabilityZicyWs3DataplaneProtosPlacerLocation: Message describing -// that the location of the customer resource is tied to placer allocations -type CloudReliabilityZicyWs3DataplaneProtosPlacerLocation struct { - // PlacerConfig: Directory with a config related to it in placer (e.g. - // "/placer/prod/home/my-root/my-dir") - PlacerConfig string `json:"placerConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "PlacerConfig") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PlacerConfig") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosPlacerLocation) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosPlacerLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// CloudReliabilityZicyWs3DataplaneProtosRegionalMigDistributionPolicy: To be -// used for specifying the intended distribution of regional -// compute.googleapis.com/InstanceGroupManager instances -type CloudReliabilityZicyWs3DataplaneProtosRegionalMigDistributionPolicy struct { - // TargetShape: The shape in which the group converges around distribution of - // resources. Instance of proto2 enum - TargetShape int64 `json:"targetShape,omitempty"` - // Zones: Cloud zones used by regional MIG to create instances. - Zones []*CloudReliabilityZicyWs3DataplaneProtosZoneConfiguration `json:"zones,omitempty"` - // ForceSendFields is a list of field names (e.g. "TargetShape") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "TargetShape") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosRegionalMigDistributionPolicy) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosRegionalMigDistributionPolicy - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosSpannerLocation struct { - // BackupName: Set of backups used by the resource with name in the same format - // as what is available at http://table/spanner_automon.backup_metadata - BackupName []string `json:"backupName,omitempty"` - // DbName: Set of databases used by the resource in format /span// - DbName []string `json:"dbName,omitempty"` - // ForceSendFields is a list of field names (e.g. "BackupName") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BackupName") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosSpannerLocation) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosSpannerLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosTenantProjectProxy struct { - ProjectNumbers []string `json:"projectNumbers,omitempty"` - // ForceSendFields is a list of field names (e.g. "ProjectNumbers") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ProjectNumbers") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosTenantProjectProxy) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosTenantProjectProxy - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosZoneConfiguration struct { - Zone string `json:"zone,omitempty"` - // ForceSendFields is a list of field names (e.g. "Zone") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Zone") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosZoneConfiguration) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosZoneConfiguration - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Empty: 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 @@ -1327,6 +905,19 @@ type GoogleCloudDataplexV1AspectType struct { // projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id // }. Name string `json:"name,omitempty"` + // TransferStatus: Output only. Denotes the transfer status of the Aspect Type. + // It is unspecified for Aspect Types created from Dataplex API. + // + // Possible values: + // "TRANSFER_STATUS_UNSPECIFIED" - The default value. It is set for resources + // that were not subject for migration from Data Catalog service. + // "TRANSFER_STATUS_MIGRATED" - Indicates that a resource was migrated from + // Data Catalog service but it hasn't been transferred yet. In particular the + // resource cannot be updated from Dataplex API. + // "TRANSFER_STATUS_TRANSFERRED" - Indicates that a resource was transferred + // from Data Catalog service. The resource can only be updated from Dataplex + // API. + TransferStatus string `json:"transferStatus,omitempty"` // Uid: Output only. System generated globally unique ID for the AspectType. If // you delete and recreate the AspectType with the same name, then this ID will // be different. @@ -4241,6 +3832,8 @@ type GoogleCloudDataplexV1DiscoveryEvent struct { Config *GoogleCloudDataplexV1DiscoveryEventConfigDetails `json:"config,omitempty"` // DataLocation: The data location associated with the event. DataLocation string `json:"dataLocation,omitempty"` + // DatascanId: The id of the associated datascan for standalone discovery. + DatascanId string `json:"datascanId,omitempty"` // Entity: Details about the entity associated with the event. Entity *GoogleCloudDataplexV1DiscoveryEventEntityDetails `json:"entity,omitempty"` // LakeId: The id of the associated lake. @@ -4249,6 +3842,9 @@ type GoogleCloudDataplexV1DiscoveryEvent struct { Message string `json:"message,omitempty"` // Partition: Details about the partition associated with the event. Partition *GoogleCloudDataplexV1DiscoveryEventPartitionDetails `json:"partition,omitempty"` + // Table: Details about the BigQuery table publishing associated with the + // event. + Table *GoogleCloudDataplexV1DiscoveryEventTableDetails `json:"table,omitempty"` // Type: The type of the event being logged. // // Possible values: @@ -4395,6 +3991,37 @@ func (s GoogleCloudDataplexV1DiscoveryEventPartitionDetails) MarshalJSON() ([]by return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDataplexV1DiscoveryEventTableDetails: Details about the published +// table. +type GoogleCloudDataplexV1DiscoveryEventTableDetails struct { + // Table: The fully-qualified resource name of the table resource. + Table string `json:"table,omitempty"` + // Type: The type of the table resource. + // + // Possible values: + // "TABLE_TYPE_UNSPECIFIED" - An unspecified table type. + // "EXTERNAL_TABLE" - External table type. + // "BIGLAKE_TABLE" - BigLake table type. + // "OBJECT_TABLE" - Object table type for unstructured data. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "Table") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Table") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDataplexV1DiscoveryEventTableDetails) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DiscoveryEventTableDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDataplexV1Entity: Represents tables and fileset metadata // contained within a zone. type GoogleCloudDataplexV1Entity struct { @@ -4617,6 +4244,19 @@ type GoogleCloudDataplexV1EntryGroup struct { // projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_gr // oup_id}. Name string `json:"name,omitempty"` + // TransferStatus: Output only. Denotes the transfer status of the Entry Group. + // It is unspecified for Entry Group created from Dataplex API. + // + // Possible values: + // "TRANSFER_STATUS_UNSPECIFIED" - The default value. It is set for resources + // that were not subject for migration from Data Catalog service. + // "TRANSFER_STATUS_MIGRATED" - Indicates that a resource was migrated from + // Data Catalog service but it hasn't been transferred yet. In particular the + // resource cannot be updated from Dataplex API. + // "TRANSFER_STATUS_TRANSFERRED" - Indicates that a resource was transferred + // from Data Catalog service. The resource can only be updated from Dataplex + // API. + TransferStatus string `json:"transferStatus,omitempty"` // Uid: Output only. System generated globally unique ID for the EntryGroup. If // you delete and recreate the EntryGroup with the same name, this ID will be // different. @@ -7459,10 +7099,9 @@ type GoogleCloudDataplexV1TaskSparkTaskConfig struct { // SqlScript: The query text. The execution args are used to declare a set of // script variables (set key="value";). SqlScript string `json:"sqlScript,omitempty"` - // SqlScriptFile: A reference to a query file. This can be the Cloud Storage - // URI of the query file or it can the path to a SqlScript Content. The - // execution args are used to declare a set of script variables (set - // key="value";). + // SqlScriptFile: A reference to a query file. This should be the Cloud Storage + // URI of the query file. The execution args are used to declare a set of + // script variables (set key="value";). SqlScriptFile string `json:"sqlScriptFile,omitempty"` // ForceSendFields is a list of field names (e.g. "ArchiveUris") to // unconditionally include in API requests. By default, fields with empty or @@ -9453,7 +9092,10 @@ type ProjectsLocationsLookupEntryCall struct { } // LookupEntry: Looks up a single Entry by name using the permission on the -// source system. +// source system.Caution: The BigQuery metadata that is stored in Dataplex +// Catalog is changing. For more information, see Changes to BigQuery metadata +// stored in Dataplex Catalog +// (https://cloud.google.com/dataplex/docs/biqquery-metadata-changes). // // - name: The project to which the request should be attributed in the // following form: projects/{project}/locations/{location}. @@ -16369,7 +16011,10 @@ type ProjectsLocationsEntryGroupsEntriesGetCall struct { header_ http.Header } -// Get: Gets an Entry. +// Get: Gets an Entry.Caution: The BigQuery metadata that is stored in Dataplex +// Catalog is changing. For more information, see Changes to BigQuery metadata +// stored in Dataplex Catalog +// (https://cloud.google.com/dataplex/docs/biqquery-metadata-changes). // // - name: The resource name of the Entry: // projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{ diff --git a/displayvideo/v2/displayvideo-api.json b/displayvideo/v2/displayvideo-api.json index cdf811e960e..d38e92a80a9 100644 --- a/displayvideo/v2/displayvideo-api.json +++ b/displayvideo/v2/displayvideo-api.json @@ -9267,7 +9267,7 @@ } } }, - "revision": "20240905", + "revision": "20240919", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -12345,7 +12345,7 @@ true, true, true, - false, + true, false, false, false @@ -13329,14 +13329,16 @@ "DEVICE_TYPE_COMPUTER", "DEVICE_TYPE_CONNECTED_TV", "DEVICE_TYPE_SMART_PHONE", - "DEVICE_TYPE_TABLET" + "DEVICE_TYPE_TABLET", + "DEVICE_TYPE_CONNECTED_DEVICE" ], "enumDescriptions": [ "Default value when device type is not specified in this version. This enum is a placeholder for default value and does not represent a real device type option.", "Computer.", "Connected TV.", "Smart phone.", - "Tablet." + "Tablet.", + "Connected device." ], "type": "string" }, @@ -13360,14 +13362,16 @@ "DEVICE_TYPE_COMPUTER", "DEVICE_TYPE_CONNECTED_TV", "DEVICE_TYPE_SMART_PHONE", - "DEVICE_TYPE_TABLET" + "DEVICE_TYPE_TABLET", + "DEVICE_TYPE_CONNECTED_DEVICE" ], "enumDescriptions": [ "Default value when device type is not specified in this version. This enum is a placeholder for default value and does not represent a real device type option.", "Computer.", "Connected TV.", "Smart phone.", - "Tablet." + "Tablet.", + "Connected device." ], "readOnly": true, "type": "string" @@ -19250,6 +19254,7 @@ "PERFORMANCE_GOAL_TYPE_VIEWABILITY", "PERFORMANCE_GOAL_TYPE_CPIAVC", "PERFORMANCE_GOAL_TYPE_CPE", + "PERFORMANCE_GOAL_TYPE_CPV", "PERFORMANCE_GOAL_TYPE_CLICK_CVR", "PERFORMANCE_GOAL_TYPE_IMPRESSION_CVR", "PERFORMANCE_GOAL_TYPE_VCPM", @@ -19267,6 +19272,7 @@ "The performance goal is set in Viewability percentage.", "The performance goal is set as CPIAVC (cost per impression audible and visible at completion).", "The performance goal is set in CPE (cost per engagement).", + "The performance goal is set in CPV (cost per view).", "The performance goal is set in click conversion rate (conversions per click) percentage.", "The performance goal is set in impression conversion rate (conversions per impression) percentage.", "The performance goal is set in VCPM (cost per thousand viewable impressions).", @@ -19856,7 +19862,7 @@ true, true, true, - false, + true, false, false, false @@ -19936,7 +19942,7 @@ true, true, true, - false, + true, false, false, false diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go index ad9c2789962..e1f8d912b74 100644 --- a/displayvideo/v2/displayvideo-gen.go +++ b/displayvideo/v2/displayvideo-gen.go @@ -5898,6 +5898,7 @@ type DeviceTypeAssignedTargetingOptionDetails struct { // "DEVICE_TYPE_CONNECTED_TV" - Connected TV. // "DEVICE_TYPE_SMART_PHONE" - Smart phone. // "DEVICE_TYPE_TABLET" - Tablet. + // "DEVICE_TYPE_CONNECTED_DEVICE" - Connected device. DeviceType string `json:"deviceType,omitempty"` // YoutubeAndPartnersBidMultiplier: Output only. Bid multiplier allows you to // show your ads more or less frequently based on the device type. It will @@ -5953,6 +5954,7 @@ type DeviceTypeTargetingOptionDetails struct { // "DEVICE_TYPE_CONNECTED_TV" - Connected TV. // "DEVICE_TYPE_SMART_PHONE" - Smart phone. // "DEVICE_TYPE_TABLET" - Tablet. + // "DEVICE_TYPE_CONNECTED_DEVICE" - Connected device. DeviceType string `json:"deviceType,omitempty"` // ForceSendFields is a list of field names (e.g. "DeviceType") to // unconditionally include in API requests. By default, fields with empty or @@ -12421,6 +12423,8 @@ type PerformanceGoal struct { // (cost per impression audible and visible at completion). // "PERFORMANCE_GOAL_TYPE_CPE" - The performance goal is set in CPE (cost per // engagement). + // "PERFORMANCE_GOAL_TYPE_CPV" - The performance goal is set in CPV (cost per + // view). // "PERFORMANCE_GOAL_TYPE_CLICK_CVR" - The performance goal is set in click // conversion rate (conversions per click) percentage. // "PERFORMANCE_GOAL_TYPE_IMPRESSION_CVR" - The performance goal is set in diff --git a/displayvideo/v3/displayvideo-api.json b/displayvideo/v3/displayvideo-api.json index d2494f03f2b..7c211b8825d 100644 --- a/displayvideo/v3/displayvideo-api.json +++ b/displayvideo/v3/displayvideo-api.json @@ -9222,7 +9222,7 @@ } } }, - "revision": "20240905", + "revision": "20240919", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActiveViewVideoViewabilityMetricConfig": { @@ -12920,7 +12920,7 @@ true, true, true, - false, + true, false, false, false @@ -14045,14 +14045,16 @@ "DEVICE_TYPE_COMPUTER", "DEVICE_TYPE_CONNECTED_TV", "DEVICE_TYPE_SMART_PHONE", - "DEVICE_TYPE_TABLET" + "DEVICE_TYPE_TABLET", + "DEVICE_TYPE_CONNECTED_DEVICE" ], "enumDescriptions": [ "Default value when device type is not specified in this version. This enum is a placeholder for default value and does not represent a real device type option.", "Computer.", "Connected TV.", "Smart phone.", - "Tablet." + "Tablet.", + "Connected device." ], "type": "string" }, @@ -14076,14 +14078,16 @@ "DEVICE_TYPE_COMPUTER", "DEVICE_TYPE_CONNECTED_TV", "DEVICE_TYPE_SMART_PHONE", - "DEVICE_TYPE_TABLET" + "DEVICE_TYPE_TABLET", + "DEVICE_TYPE_CONNECTED_DEVICE" ], "enumDescriptions": [ "Default value when device type is not specified in this version. This enum is a placeholder for default value and does not represent a real device type option.", "Computer.", "Connected TV.", "Smart phone.", - "Tablet." + "Tablet.", + "Connected device." ], "readOnly": true, "type": "string" @@ -20021,6 +20025,7 @@ "PERFORMANCE_GOAL_TYPE_VIEWABILITY", "PERFORMANCE_GOAL_TYPE_CPIAVC", "PERFORMANCE_GOAL_TYPE_CPE", + "PERFORMANCE_GOAL_TYPE_CPV", "PERFORMANCE_GOAL_TYPE_CLICK_CVR", "PERFORMANCE_GOAL_TYPE_IMPRESSION_CVR", "PERFORMANCE_GOAL_TYPE_VCPM", @@ -20038,6 +20043,7 @@ "The performance goal is set in Viewability percentage.", "The performance goal is set as CPIAVC (cost per impression audible and visible at completion).", "The performance goal is set in CPE (cost per engagement).", + "The performance goal is set in CPV (cost per view).", "The performance goal is set in click conversion rate (conversions per click) percentage.", "The performance goal is set in impression conversion rate (conversions per impression) percentage.", "The performance goal is set in VCPM (cost per thousand viewable impressions).", @@ -20627,7 +20633,7 @@ true, true, true, - false, + true, false, false, false @@ -20707,7 +20713,7 @@ true, true, true, - false, + true, false, false, false diff --git a/displayvideo/v3/displayvideo-gen.go b/displayvideo/v3/displayvideo-gen.go index 9926dfd0f6b..5064e051d02 100644 --- a/displayvideo/v3/displayvideo-gen.go +++ b/displayvideo/v3/displayvideo-gen.go @@ -6674,6 +6674,7 @@ type DeviceTypeAssignedTargetingOptionDetails struct { // "DEVICE_TYPE_CONNECTED_TV" - Connected TV. // "DEVICE_TYPE_SMART_PHONE" - Smart phone. // "DEVICE_TYPE_TABLET" - Tablet. + // "DEVICE_TYPE_CONNECTED_DEVICE" - Connected device. DeviceType string `json:"deviceType,omitempty"` // YoutubeAndPartnersBidMultiplier: Output only. Bid multiplier allows you to // show your ads more or less frequently based on the device type. It will @@ -6729,6 +6730,7 @@ type DeviceTypeTargetingOptionDetails struct { // "DEVICE_TYPE_CONNECTED_TV" - Connected TV. // "DEVICE_TYPE_SMART_PHONE" - Smart phone. // "DEVICE_TYPE_TABLET" - Tablet. + // "DEVICE_TYPE_CONNECTED_DEVICE" - Connected device. DeviceType string `json:"deviceType,omitempty"` // ForceSendFields is a list of field names (e.g. "DeviceType") to // unconditionally include in API requests. By default, fields with empty or @@ -13258,6 +13260,8 @@ type PerformanceGoal struct { // (cost per impression audible and visible at completion). // "PERFORMANCE_GOAL_TYPE_CPE" - The performance goal is set in CPE (cost per // engagement). + // "PERFORMANCE_GOAL_TYPE_CPV" - The performance goal is set in CPV (cost per + // view). // "PERFORMANCE_GOAL_TYPE_CLICK_CVR" - The performance goal is set in click // conversion rate (conversions per click) percentage. // "PERFORMANCE_GOAL_TYPE_IMPRESSION_CVR" - The performance goal is set in diff --git a/networkmanagement/v1beta1/networkmanagement-api.json b/networkmanagement/v1beta1/networkmanagement-api.json index 234f6a90dbd..f4811b1347e 100644 --- a/networkmanagement/v1beta1/networkmanagement-api.json +++ b/networkmanagement/v1beta1/networkmanagement-api.json @@ -758,7 +758,7 @@ } } }, - "revision": "20240905", + "revision": "20240911", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1334,9 +1334,13 @@ "REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS", "REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK", "REDIS_INSTANCE_NO_EXTERNAL_IP", + "REDIS_INSTANCE_UNSUPPORTED_PROTOCOL", "DROPPED_INSIDE_REDIS_CLUSTER_SERVICE", "REDIS_CLUSTER_UNSUPPORTED_PORT", - "REDIS_CLUSTER_NO_EXTERNAL_IP" + "REDIS_CLUSTER_NO_EXTERNAL_IP", + "REDIS_CLUSTER_UNSUPPORTED_PROTOCOL", + "NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION", + "NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION" ], "enumDescriptions": [ "Cause is unspecified.", @@ -1414,9 +1418,13 @@ "Packet is dropped due to connecting from PUPI address to a PSA based Redis Instance.", "Packet is dropped due to no route to the destination network.", "Redis Instance does not have an external IP address.", + "Packet is dropped due to an unsupported protocol being used to connect to a Redis Instance. Only TCP connections are accepted by a Redis Instance.", "Generic drop cause for a packet being dropped inside a Redis Cluster service project.", "Packet is dropped due to an unsupported port being used to connect to a Redis Cluster. Ports 6379 and 11000 to 13047 should be used to connect to a Redis Cluster.", - "Redis Cluster does not have an external IP address." + "Redis Cluster does not have an external IP address.", + "Packet is dropped due to an unsupported protocol being used to connect to a Redis Cluster. Only TCP connections are accepted by a Redis Cluster.", + "Packet from the non-GCP (on-prem) or unknown GCP network is dropped due to the destination IP address not belonging to any IP prefix advertised via BGP by the Cloud Router.", + "Packet from the non-GCP (on-prem) or unknown GCP network is dropped due to the destination IP address not belonging to any IP prefix included to the local traffic selector of the VPN tunnel." ], "type": "string" }, @@ -2331,7 +2339,7 @@ "type": "object" }, "NetworkInfo": { - "description": "For display only. Metadata associated with a Compute Engine network.", + "description": "For display only. Metadata associated with a Compute Engine network. Next ID: 7", "id": "NetworkInfo", "properties": { "displayName": { @@ -2339,7 +2347,15 @@ "type": "string" }, "matchedIpRange": { - "description": "The IP range that matches the test.", + "description": "The IP range of the subnet matching the source IP address of the test.", + "type": "string" + }, + "matchedSubnetUri": { + "description": "URI of the subnet matching the source IP address of the test.", + "type": "string" + }, + "region": { + "description": "The region of the subnet matching the source IP address of the test.", "type": "string" }, "uri": { @@ -2690,6 +2706,14 @@ "description": "For display only. Metadata associated with a Compute Engine route.", "id": "RouteInfo", "properties": { + "advertisedRouteNextHopUri": { + "description": "For advertised routes, the URI of their next hop, i.e. the URI of the hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) the advertised prefix is advertised through, or URI of the source peered network.", + "type": "string" + }, + "advertisedRouteSourceRouterUri": { + "description": "For advertised dynamic routes, the URI of the Cloud Router that advertised the corresponding IP prefix.", + "type": "string" + }, "destIpRange": { "description": "Destination IP range of the route.", "type": "string" @@ -2774,6 +2798,10 @@ }, "type": "array" }, + "region": { + "description": "Region of the route (if applicable).", + "type": "string" + }, "routeScope": { "description": "Indicates where route is applicable.", "enum": [ @@ -2824,7 +2852,7 @@ "type": "array" }, "uri": { - "description": "URI of a route. Dynamic, peering static and peering dynamic routes do not have an URI. Advertised route from Google Cloud VPC to on-premises network also does not have an URI.", + "description": "URI of a route (if applicable).", "type": "string" } }, diff --git a/networkmanagement/v1beta1/networkmanagement-gen.go b/networkmanagement/v1beta1/networkmanagement-gen.go index 4e8872a22bc..69c388d4b54 100644 --- a/networkmanagement/v1beta1/networkmanagement-gen.go +++ b/networkmanagement/v1beta1/networkmanagement-gen.go @@ -1043,6 +1043,9 @@ type DropInfo struct { // to no route to the destination network. // "REDIS_INSTANCE_NO_EXTERNAL_IP" - Redis Instance does not have an external // IP address. + // "REDIS_INSTANCE_UNSUPPORTED_PROTOCOL" - Packet is dropped due to an + // unsupported protocol being used to connect to a Redis Instance. Only TCP + // connections are accepted by a Redis Instance. // "DROPPED_INSIDE_REDIS_CLUSTER_SERVICE" - Generic drop cause for a packet // being dropped inside a Redis Cluster service project. // "REDIS_CLUSTER_UNSUPPORTED_PORT" - Packet is dropped due to an unsupported @@ -1050,6 +1053,17 @@ type DropInfo struct { // should be used to connect to a Redis Cluster. // "REDIS_CLUSTER_NO_EXTERNAL_IP" - Redis Cluster does not have an external // IP address. + // "REDIS_CLUSTER_UNSUPPORTED_PROTOCOL" - Packet is dropped due to an + // unsupported protocol being used to connect to a Redis Cluster. Only TCP + // connections are accepted by a Redis Cluster. + // "NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION" - Packet from the non-GCP + // (on-prem) or unknown GCP network is dropped due to the destination IP + // address not belonging to any IP prefix advertised via BGP by the Cloud + // Router. + // "NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION" - Packet from the non-GCP + // (on-prem) or unknown GCP network is dropped due to the destination IP + // address not belonging to any IP prefix included to the local traffic + // selector of the VPN tunnel. Cause string `json:"cause,omitempty"` // DestinationIp: Destination IP address of the dropped packet (if relevant). DestinationIp string `json:"destinationIp,omitempty"` @@ -2026,12 +2040,18 @@ func (s NatInfo) MarshalJSON() ([]byte, error) { } // NetworkInfo: For display only. Metadata associated with a Compute Engine -// network. +// network. Next ID: 7 type NetworkInfo struct { // DisplayName: Name of a Compute Engine network. DisplayName string `json:"displayName,omitempty"` - // MatchedIpRange: The IP range that matches the test. + // MatchedIpRange: The IP range of the subnet matching the source IP address of + // the test. MatchedIpRange string `json:"matchedIpRange,omitempty"` + // MatchedSubnetUri: URI of the subnet matching the source IP address of the + // test. + MatchedSubnetUri string `json:"matchedSubnetUri,omitempty"` + // Region: The region of the subnet matching the source IP address of the test. + Region string `json:"region,omitempty"` // Uri: URI of a Compute Engine network. Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayName") to @@ -2468,6 +2488,14 @@ type RerunConnectivityTestRequest struct { // RouteInfo: For display only. Metadata associated with a Compute Engine // route. type RouteInfo struct { + // AdvertisedRouteNextHopUri: For advertised routes, the URI of their next hop, + // i.e. the URI of the hybrid endpoint (VPN tunnel, Interconnect attachment, + // NCC router appliance) the advertised prefix is advertised through, or URI of + // the source peered network. + AdvertisedRouteNextHopUri string `json:"advertisedRouteNextHopUri,omitempty"` + // AdvertisedRouteSourceRouterUri: For advertised dynamic routes, the URI of + // the Cloud Router that advertised the corresponding IP prefix. + AdvertisedRouteSourceRouterUri string `json:"advertisedRouteSourceRouterUri,omitempty"` // DestIpRange: Destination IP range of the route. DestIpRange string `json:"destIpRange,omitempty"` // DestPortRanges: Destination port ranges of the route. Policy based routes @@ -2514,6 +2542,8 @@ type RouteInfo struct { Priority int64 `json:"priority,omitempty"` // Protocols: Protocols of the route. Policy based routes only. Protocols []string `json:"protocols,omitempty"` + // Region: Region of the route (if applicable). + Region string `json:"region,omitempty"` // RouteScope: Indicates where route is applicable. // // Possible values: @@ -2538,19 +2568,17 @@ type RouteInfo struct { SrcIpRange string `json:"srcIpRange,omitempty"` // SrcPortRanges: Source port ranges of the route. Policy based routes only. SrcPortRanges []string `json:"srcPortRanges,omitempty"` - // Uri: URI of a route. Dynamic, peering static and peering dynamic routes do - // not have an URI. Advertised route from Google Cloud VPC to on-premises - // network also does not have an URI. + // Uri: URI of a route (if applicable). Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "DestIpRange") to - // unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "AdvertisedRouteNextHopUri") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DestIpRange") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "AdvertisedRouteNextHopUri") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } diff --git a/networkservices/v1/networkservices-api.json b/networkservices/v1/networkservices-api.json index e43177cd4e1..bb60c2645cc 100644 --- a/networkservices/v1/networkservices-api.json +++ b/networkservices/v1/networkservices-api.json @@ -2408,7 +2408,7 @@ } } }, - "revision": "20240818", + "revision": "20240913", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -3777,7 +3777,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.lb_route_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name.", + "description": "Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.lb_route_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. Only one of the resource level metadata and extension level metadata can be set.", "type": "object" }, "name": { @@ -3847,7 +3847,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Optional. The metadata provided here is included in the `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata is available under the key `com.google.lb_traffic_extension.`. The following variables are supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name.", + "description": "Optional. The metadata provided here is included in the `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata is available under the key `com.google.lb_traffic_extension.`. The following variables are supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. Only one of the resource level metadata and extension level metadata can be set.", "type": "object" }, "name": { @@ -4152,6 +4152,41 @@ }, "type": "object" }, + "LoggingConfig": { + "description": "The configuration for Platform Telemetry logging for Eventarc Avdvanced resources.", + "id": "LoggingConfig", + "properties": { + "logSeverity": { + "description": "Optional. The minimum severity of logs that will be sent to Stackdriver/Platform Telemetry. Logs at severitiy ≥ this value will be sent, unless it is NONE.", + "enum": [ + "LOG_SEVERITY_UNSPECIFIED", + "NONE", + "DEBUG", + "INFO", + "NOTICE", + "WARNING", + "ERROR", + "CRITICAL", + "ALERT", + "EMERGENCY" + ], + "enumDescriptions": [ + "Log severity is not specified. This value is treated the same as NONE, but is used to distinguish between no update and update to NONE in update_masks.", + "Default value at resource creation, presence of this value must be treated as no logging/disable logging.", + "Debug or trace level logging.", + "Routine information, such as ongoing status or performance.", + "Normal but significant events, such as start up, shut down, or a configuration change.", + "Warning events might cause problems.", + "Error events are likely to cause problems.", + "Critical events cause more severe problems or outages.", + "A person must take action immediately.", + "One or more systems are unusable." + ], + "type": "string" + } + }, + "type": "object" + }, "Mesh": { "description": "Mesh represents a logical configuration grouping for workload to workload communication within a service mesh. Routes that point to mesh dictate how requests are routed within this logical mesh boundary.", "id": "Mesh", @@ -4320,6 +4355,16 @@ }, "type": "object" }, + "RetryFilterPerRouteConfig": { + "id": "RetryFilterPerRouteConfig", + "properties": { + "cryptoKeyName": { + "description": "The name of the crypto key to use for encrypting event data.", + "type": "string" + } + }, + "type": "object" + }, "ServiceBinding": { "description": "ServiceBinding is the resource that defines a Service Directory Service to be used in a BackendService resource.", "id": "ServiceBinding", diff --git a/networkservices/v1/networkservices-gen.go b/networkservices/v1/networkservices-gen.go index dc86537ce0c..f07e006d79e 100644 --- a/networkservices/v1/networkservices-gen.go +++ b/networkservices/v1/networkservices-gen.go @@ -2254,7 +2254,8 @@ type LbRouteExtension struct { // available under the namespace `com.google.lb_route_extension.`. The // following variables are supported in the metadata Struct: // `{forwarding_rule_id}` - substituted with the forwarding rule's fully - // qualified resource name. + // qualified resource name. Only one of the resource level metadata and + // extension level metadata can be set. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Required. Identifier. Name of the `LbRouteExtension` resource in the // following format: @@ -2327,7 +2328,8 @@ type LbTrafficExtension struct { // `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata // is available under the key `com.google.lb_traffic_extension.`. The following // variables are supported in the metadata: `{forwarding_rule_id}` - - // substituted with the forwarding rule's fully qualified resource name. + // substituted with the forwarding rule's fully qualified resource name. Only + // one of the resource level metadata and extension level metadata can be set. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Required. Identifier. Name of the `LbTrafficExtension` resource in the // following format: @@ -2788,6 +2790,47 @@ func (s Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// LoggingConfig: The configuration for Platform Telemetry logging for Eventarc +// Avdvanced resources. +type LoggingConfig struct { + // LogSeverity: Optional. The minimum severity of logs that will be sent to + // Stackdriver/Platform Telemetry. Logs at severitiy ≥ this value will be + // sent, unless it is NONE. + // + // Possible values: + // "LOG_SEVERITY_UNSPECIFIED" - Log severity is not specified. This value is + // treated the same as NONE, but is used to distinguish between no update and + // update to NONE in update_masks. + // "NONE" - Default value at resource creation, presence of this value must + // be treated as no logging/disable logging. + // "DEBUG" - Debug or trace level logging. + // "INFO" - Routine information, such as ongoing status or performance. + // "NOTICE" - Normal but significant events, such as start up, shut down, or + // a configuration change. + // "WARNING" - Warning events might cause problems. + // "ERROR" - Error events are likely to cause problems. + // "CRITICAL" - Critical events cause more severe problems or outages. + // "ALERT" - A person must take action immediately. + // "EMERGENCY" - One or more systems are unusable. + LogSeverity string `json:"logSeverity,omitempty"` + // ForceSendFields is a list of field names (e.g. "LogSeverity") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "LogSeverity") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LoggingConfig) MarshalJSON() ([]byte, error) { + type NoMethod LoggingConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Mesh: Mesh represents a logical configuration grouping for workload to // workload communication within a service mesh. Routes that point to mesh // dictate how requests are routed within this logical mesh boundary. @@ -3023,6 +3066,27 @@ func (s Policy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type RetryFilterPerRouteConfig struct { + // CryptoKeyName: The name of the crypto key to use for encrypting event data. + CryptoKeyName string `json:"cryptoKeyName,omitempty"` + // ForceSendFields is a list of field names (e.g. "CryptoKeyName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CryptoKeyName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RetryFilterPerRouteConfig) MarshalJSON() ([]byte, error) { + type NoMethod RetryFilterPerRouteConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ServiceBinding: ServiceBinding is the resource that defines a Service // Directory Service to be used in a BackendService resource. type ServiceBinding struct { diff --git a/places/v1/places-api.json b/places/v1/places-api.json index decc339a580..1a70c0ca00e 100644 --- a/places/v1/places-api.json +++ b/places/v1/places-api.json @@ -276,7 +276,7 @@ } } }, - "revision": "20240825", + "revision": "20240918", "rootUrl": "https://places.googleapis.com/", "schemas": { "GoogleGeoTypeViewport": { @@ -1494,6 +1494,17 @@ }, "type": "object" }, + "GoogleMapsPlacesV1Polyline": { + "description": "A route polyline. Only supports an [encoded polyline](https://developers.google.com/maps/documentation/utilities/polylinealgorithm), which can be passed as a string and includes compression with minimal lossiness. This is the Routes API default output.", + "id": "GoogleMapsPlacesV1Polyline", + "properties": { + "encodedPolyline": { + "description": "An [encoded polyline](https://developers.google.com/maps/documentation/utilities/polylinealgorithm), as returned by the [Routes API by default](https://developers.google.com/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes#polylineencoding). See the [encoder](https://developers.google.com/maps/documentation/utilities/polylineutility) and [decoder](https://developers.google.com/maps/documentation/routes/polylinedecoder) tools.", + "type": "string" + } + }, + "type": "object" + }, "GoogleMapsPlacesV1References": { "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. Reference that the generative content is related to.", "id": "GoogleMapsPlacesV1References", @@ -1552,6 +1563,109 @@ }, "type": "object" }, + "GoogleMapsPlacesV1RouteModifiers": { + "description": "Encapsulates a set of optional conditions to satisfy when calculating the routes.", + "id": "GoogleMapsPlacesV1RouteModifiers", + "properties": { + "avoidFerries": { + "description": "Optional. When set to true, avoids ferries where reasonable, giving preference to routes not containing ferries. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`.", + "type": "boolean" + }, + "avoidHighways": { + "description": "Optional. When set to true, avoids highways where reasonable, giving preference to routes not containing highways. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`.", + "type": "boolean" + }, + "avoidIndoor": { + "description": "Optional. When set to true, avoids navigating indoors where reasonable, giving preference to routes not containing indoor navigation. Applies only to the `WALK` `TravelMode`.", + "type": "boolean" + }, + "avoidTolls": { + "description": "Optional. When set to true, avoids toll roads where reasonable, giving preference to routes not containing toll roads. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleMapsPlacesV1RoutingParameters": { + "description": "Parameters to configure the routing calculations to the places in the response, both along a route (where result ranking will be influenced) and for calculating travel times on results.", + "id": "GoogleMapsPlacesV1RoutingParameters", + "properties": { + "origin": { + "$ref": "GoogleTypeLatLng", + "description": "Optional. An explicit routing origin that overrides the origin defined in the polyline. By default, the polyline origin is used." + }, + "routeModifiers": { + "$ref": "GoogleMapsPlacesV1RouteModifiers", + "description": "Optional. The route modifiers." + }, + "routingPreference": { + "description": "Optional. Specifies how to compute the routing summaries. The server attempts to use the selected routing preference to compute the route. The traffic aware routing preference is only available for the `DRIVE` or `TWO_WHEELER` `travelMode`.", + "enum": [ + "ROUTING_PREFERENCE_UNSPECIFIED", + "TRAFFIC_UNAWARE", + "TRAFFIC_AWARE", + "TRAFFIC_AWARE_OPTIMAL" + ], + "enumDescriptions": [ + "No routing preference specified. Default to `TRAFFIC_UNAWARE`.", + "Computes routes without taking live traffic conditions into consideration. Suitable when traffic conditions don't matter or are not applicable. Using this value produces the lowest latency. Note: For `TravelMode` `DRIVE` and `TWO_WHEELER`, the route and duration chosen are based on road network and average time-independent traffic conditions, not current road conditions. Consequently, routes may include roads that are temporarily closed. Results for a given request may vary over time due to changes in the road network, updated average traffic conditions, and the distributed nature of the service. Results may also vary between nearly-equivalent routes at any time or frequency.", + "Calculates routes taking live traffic conditions into consideration. In contrast to `TRAFFIC_AWARE_OPTIMAL`, some optimizations are applied to significantly reduce latency.", + "Calculates the routes taking live traffic conditions into consideration, without applying most performance optimizations. Using this value produces the highest latency." + ], + "type": "string" + }, + "travelMode": { + "description": "Optional. The travel mode.", + "enum": [ + "TRAVEL_MODE_UNSPECIFIED", + "DRIVE", + "BICYCLE", + "WALK", + "TWO_WHEELER" + ], + "enumDescriptions": [ + "No travel mode specified. Defaults to `DRIVE`.", + "Travel by passenger car.", + "Travel by bicycle. Not supported with `search_along_route_parameters`.", + "Travel by walking. Not supported with `search_along_route_parameters`.", + "Motorized two wheeled vehicles of all kinds such as scooters and motorcycles. Note that this is distinct from the `BICYCLE` travel mode which covers human-powered transport. Not supported with `search_along_route_parameters`. Only supported in those countries listed at [Countries and regions supported for two-wheeled vehicles](https://developers.google.com/maps/documentation/routes/coverage-two-wheeled)." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleMapsPlacesV1RoutingSummary": { + "description": "The duration and distance from the routing origin to a place in the response, and a second leg from that place to the destination, if requested. **Note:** Adding `routingSummaries` in the field mask without also including either the `routingParameters.origin` parameter or the `searchAlongRouteParameters.polyline.encodedPolyline` parameter in the request causes an error.", + "id": "GoogleMapsPlacesV1RoutingSummary", + "properties": { + "legs": { + "description": "The legs of the trip. When you calculate travel duration and distance from a set origin, `legs` contains a single leg containing the duration and distance from the origin to the destination. When you do a search along route, `legs` contains two legs: one from the origin to place, and one from the place to the destination.", + "items": { + "$ref": "GoogleMapsPlacesV1RoutingSummaryLeg" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleMapsPlacesV1RoutingSummaryLeg": { + "description": "A leg is a single portion of a journey from one location to another.", + "id": "GoogleMapsPlacesV1RoutingSummaryLeg", + "properties": { + "distanceMeters": { + "description": "The distance of this leg of the trip.", + "format": "int32", + "type": "integer" + }, + "duration": { + "description": "The time it takes to complete this leg of the trip.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, "GoogleMapsPlacesV1SearchNearbyRequest": { "description": "Request proto for Search Nearby. ", "id": "GoogleMapsPlacesV1SearchNearbyRequest", @@ -1614,6 +1728,10 @@ "regionCode": { "description": "The Unicode country/region code (CLDR) of the location where the request is coming from. This parameter is used to display the place details, like region-specific place name, if available. The parameter can affect results based on applicable law. For more information, see https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html. Note that 3-digit region codes are not currently supported.", "type": "string" + }, + "routingParameters": { + "$ref": "GoogleMapsPlacesV1RoutingParameters", + "description": "Optional. Parameters that affect the routing to the search results." } }, "type": "object" @@ -1639,6 +1757,13 @@ "$ref": "GoogleMapsPlacesV1Place" }, "type": "array" + }, + "routingSummaries": { + "description": "A list of routing summaries where each entry associates to the corresponding place in the same index in the `places` field. If the routing summary is not available for one of the places, it will contain an empty entry. This list should have as many entries as the list of places if requested.", + "items": { + "$ref": "GoogleMapsPlacesV1RoutingSummary" + }, + "type": "array" } }, "type": "object" @@ -1732,6 +1857,14 @@ "description": "The Unicode country/region code (CLDR) of the location where the request is coming from. This parameter is used to display the place details, like region-specific place name, if available. The parameter can affect results based on applicable law. For more information, see https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html. Note that 3-digit region codes are not currently supported.", "type": "string" }, + "routingParameters": { + "$ref": "GoogleMapsPlacesV1RoutingParameters", + "description": "Optional. Additional parameters for routing to results." + }, + "searchAlongRouteParameters": { + "$ref": "GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters", + "description": "Optional. Additional parameters proto for searching along a route." + }, "strictTypeFiltering": { "description": "Used to set strict type filtering for included_type. If set to true, only results of the same type will be returned. Default to false.", "type": "boolean" @@ -1812,6 +1945,17 @@ }, "type": "object" }, + "GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters": { + "description": "Specifies a precalculated polyline from the [Routes API](https://developers.google.com/maps/documentation/routes) defining the route to search. Searching along a route is similar to using the `locationBias` or `locationRestriction` request option to bias the search results. However, while the `locationBias` and `locationRestriction` options let you specify a region to bias the search results, this option lets you bias the results along a trip route. Results are not guaranteed to be along the route provided, but rather are ranked within the search area defined by the polyline and, optionally, by the `locationBias` or `locationRestriction` based on minimal detour times from origin to destination. The results might be along an alternate route, especially if the provided polyline does not define an optimal route from origin to destination.", + "id": "GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters", + "properties": { + "polyline": { + "$ref": "GoogleMapsPlacesV1Polyline", + "description": "Required. The route polyline." + } + }, + "type": "object" + }, "GoogleMapsPlacesV1SearchTextResponse": { "description": "Response proto for SearchText. ", "id": "GoogleMapsPlacesV1SearchTextResponse", @@ -1833,6 +1977,13 @@ "$ref": "GoogleMapsPlacesV1Place" }, "type": "array" + }, + "routingSummaries": { + "description": "A list of routing summaries where each entry associates to the corresponding place in the same index in the `places` field. If the routing summary is not available for one of the places, it will contain an empty entry. This list will have as many entries as the list of places if requested.", + "items": { + "$ref": "GoogleMapsPlacesV1RoutingSummary" + }, + "type": "array" } }, "type": "object" diff --git a/places/v1/places-gen.go b/places/v1/places-gen.go index afe219233e1..9e9e1c6b7db 100644 --- a/places/v1/places-gen.go +++ b/places/v1/places-gen.go @@ -1777,6 +1777,40 @@ func (s GoogleMapsPlacesV1PlaceSubDestination) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleMapsPlacesV1Polyline: A route polyline. Only supports an encoded +// polyline +// (https://developers.google.com/maps/documentation/utilities/polylinealgorithm), +// which can be passed as a string and includes compression with minimal +// lossiness. This is the Routes API default output. +type GoogleMapsPlacesV1Polyline struct { + // EncodedPolyline: An encoded polyline + // (https://developers.google.com/maps/documentation/utilities/polylinealgorithm), + // as returned by the Routes API by default + // (https://developers.google.com/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes#polylineencoding). + // See the encoder + // (https://developers.google.com/maps/documentation/utilities/polylineutility) + // and decoder + // (https://developers.google.com/maps/documentation/routes/polylinedecoder) + // tools. + EncodedPolyline string `json:"encodedPolyline,omitempty"` + // ForceSendFields is a list of field names (e.g. "EncodedPolyline") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EncodedPolyline") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1Polyline) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1Polyline + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleMapsPlacesV1References: Experimental: See // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative // for more details. Reference that the generative content is related to. @@ -1856,6 +1890,168 @@ func (s *GoogleMapsPlacesV1Review) UnmarshalJSON(data []byte) error { return nil } +// GoogleMapsPlacesV1RouteModifiers: Encapsulates a set of optional conditions +// to satisfy when calculating the routes. +type GoogleMapsPlacesV1RouteModifiers struct { + // AvoidFerries: Optional. When set to true, avoids ferries where reasonable, + // giving preference to routes not containing ferries. Applies only to the + // `DRIVE` and `TWO_WHEELER` `TravelMode`. + AvoidFerries bool `json:"avoidFerries,omitempty"` + // AvoidHighways: Optional. When set to true, avoids highways where reasonable, + // giving preference to routes not containing highways. Applies only to the + // `DRIVE` and `TWO_WHEELER` `TravelMode`. + AvoidHighways bool `json:"avoidHighways,omitempty"` + // AvoidIndoor: Optional. When set to true, avoids navigating indoors where + // reasonable, giving preference to routes not containing indoor navigation. + // Applies only to the `WALK` `TravelMode`. + AvoidIndoor bool `json:"avoidIndoor,omitempty"` + // AvoidTolls: Optional. When set to true, avoids toll roads where reasonable, + // giving preference to routes not containing toll roads. Applies only to the + // `DRIVE` and `TWO_WHEELER` `TravelMode`. + AvoidTolls bool `json:"avoidTolls,omitempty"` + // ForceSendFields is a list of field names (e.g. "AvoidFerries") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AvoidFerries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1RouteModifiers) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1RouteModifiers + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleMapsPlacesV1RoutingParameters: Parameters to configure the routing +// calculations to the places in the response, both along a route (where result +// ranking will be influenced) and for calculating travel times on results. +type GoogleMapsPlacesV1RoutingParameters struct { + // Origin: Optional. An explicit routing origin that overrides the origin + // defined in the polyline. By default, the polyline origin is used. + Origin *GoogleTypeLatLng `json:"origin,omitempty"` + // RouteModifiers: Optional. The route modifiers. + RouteModifiers *GoogleMapsPlacesV1RouteModifiers `json:"routeModifiers,omitempty"` + // RoutingPreference: Optional. Specifies how to compute the routing summaries. + // The server attempts to use the selected routing preference to compute the + // route. The traffic aware routing preference is only available for the + // `DRIVE` or `TWO_WHEELER` `travelMode`. + // + // Possible values: + // "ROUTING_PREFERENCE_UNSPECIFIED" - No routing preference specified. + // Default to `TRAFFIC_UNAWARE`. + // "TRAFFIC_UNAWARE" - Computes routes without taking live traffic conditions + // into consideration. Suitable when traffic conditions don't matter or are not + // applicable. Using this value produces the lowest latency. Note: For + // `TravelMode` `DRIVE` and `TWO_WHEELER`, the route and duration chosen are + // based on road network and average time-independent traffic conditions, not + // current road conditions. Consequently, routes may include roads that are + // temporarily closed. Results for a given request may vary over time due to + // changes in the road network, updated average traffic conditions, and the + // distributed nature of the service. Results may also vary between + // nearly-equivalent routes at any time or frequency. + // "TRAFFIC_AWARE" - Calculates routes taking live traffic conditions into + // consideration. In contrast to `TRAFFIC_AWARE_OPTIMAL`, some optimizations + // are applied to significantly reduce latency. + // "TRAFFIC_AWARE_OPTIMAL" - Calculates the routes taking live traffic + // conditions into consideration, without applying most performance + // optimizations. Using this value produces the highest latency. + RoutingPreference string `json:"routingPreference,omitempty"` + // TravelMode: Optional. The travel mode. + // + // Possible values: + // "TRAVEL_MODE_UNSPECIFIED" - No travel mode specified. Defaults to `DRIVE`. + // "DRIVE" - Travel by passenger car. + // "BICYCLE" - Travel by bicycle. Not supported with + // `search_along_route_parameters`. + // "WALK" - Travel by walking. Not supported with + // `search_along_route_parameters`. + // "TWO_WHEELER" - Motorized two wheeled vehicles of all kinds such as + // scooters and motorcycles. Note that this is distinct from the `BICYCLE` + // travel mode which covers human-powered transport. Not supported with + // `search_along_route_parameters`. Only supported in those countries listed at + // [Countries and regions supported for two-wheeled + // vehicles](https://developers.google.com/maps/documentation/routes/coverage-tw + // o-wheeled). + TravelMode string `json:"travelMode,omitempty"` + // ForceSendFields is a list of field names (e.g. "Origin") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Origin") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1RoutingParameters) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1RoutingParameters + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleMapsPlacesV1RoutingSummary: The duration and distance from the routing +// origin to a place in the response, and a second leg from that place to the +// destination, if requested. **Note:** Adding `routingSummaries` in the field +// mask without also including either the `routingParameters.origin` parameter +// or the `searchAlongRouteParameters.polyline.encodedPolyline` parameter in +// the request causes an error. +type GoogleMapsPlacesV1RoutingSummary struct { + // Legs: The legs of the trip. When you calculate travel duration and distance + // from a set origin, `legs` contains a single leg containing the duration and + // distance from the origin to the destination. When you do a search along + // route, `legs` contains two legs: one from the origin to place, and one from + // the place to the destination. + Legs []*GoogleMapsPlacesV1RoutingSummaryLeg `json:"legs,omitempty"` + // ForceSendFields is a list of field names (e.g. "Legs") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Legs") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1RoutingSummary) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1RoutingSummary + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleMapsPlacesV1RoutingSummaryLeg: A leg is a single portion of a journey +// from one location to another. +type GoogleMapsPlacesV1RoutingSummaryLeg struct { + // DistanceMeters: The distance of this leg of the trip. + DistanceMeters int64 `json:"distanceMeters,omitempty"` + // Duration: The time it takes to complete this leg of the trip. + Duration string `json:"duration,omitempty"` + // ForceSendFields is a list of field names (e.g. "DistanceMeters") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DistanceMeters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1RoutingSummaryLeg) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1RoutingSummaryLeg + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleMapsPlacesV1SearchNearbyRequest: Request proto for Search Nearby. type GoogleMapsPlacesV1SearchNearbyRequest struct { // ExcludedPrimaryTypes: Excluded primary Place type (e.g. "restaurant" or @@ -1941,6 +2137,9 @@ type GoogleMapsPlacesV1SearchNearbyRequest struct { // https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html. // Note that 3-digit region codes are not currently supported. RegionCode string `json:"regionCode,omitempty"` + // RoutingParameters: Optional. Parameters that affect the routing to the + // search results. + RoutingParameters *GoogleMapsPlacesV1RoutingParameters `json:"routingParameters,omitempty"` // ForceSendFields is a list of field names (e.g. "ExcludedPrimaryTypes") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1987,6 +2186,12 @@ type GoogleMapsPlacesV1SearchNearbyResponse struct { // Places: A list of places that meets user's requirements like places types, // number of places and specific location restriction. Places []*GoogleMapsPlacesV1Place `json:"places,omitempty"` + // RoutingSummaries: A list of routing summaries where each entry associates to + // the corresponding place in the same index in the `places` field. If the + // routing summary is not available for one of the places, it will contain an + // empty entry. This list should have as many entries as the list of places if + // requested. + RoutingSummaries []*GoogleMapsPlacesV1RoutingSummary `json:"routingSummaries,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -2094,6 +2299,11 @@ type GoogleMapsPlacesV1SearchTextRequest struct { // https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html. // Note that 3-digit region codes are not currently supported. RegionCode string `json:"regionCode,omitempty"` + // RoutingParameters: Optional. Additional parameters for routing to results. + RoutingParameters *GoogleMapsPlacesV1RoutingParameters `json:"routingParameters,omitempty"` + // SearchAlongRouteParameters: Optional. Additional parameters proto for + // searching along a route. + SearchAlongRouteParameters *GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters `json:"searchAlongRouteParameters,omitempty"` // StrictTypeFiltering: Used to set strict type filtering for included_type. If // set to true, only results of the same type will be returned. Default to // false. @@ -2254,6 +2464,40 @@ func (s GoogleMapsPlacesV1SearchTextRequestLocationRestriction) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters: Specifies a +// precalculated polyline from the Routes API +// (https://developers.google.com/maps/documentation/routes) defining the route +// to search. Searching along a route is similar to using the `locationBias` or +// `locationRestriction` request option to bias the search results. However, +// while the `locationBias` and `locationRestriction` options let you specify a +// region to bias the search results, this option lets you bias the results +// along a trip route. Results are not guaranteed to be along the route +// provided, but rather are ranked within the search area defined by the +// polyline and, optionally, by the `locationBias` or `locationRestriction` +// based on minimal detour times from origin to destination. The results might +// be along an alternate route, especially if the provided polyline does not +// define an optimal route from origin to destination. +type GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters struct { + // Polyline: Required. The route polyline. + Polyline *GoogleMapsPlacesV1Polyline `json:"polyline,omitempty"` + // ForceSendFields is a list of field names (e.g. "Polyline") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Polyline") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleMapsPlacesV1SearchTextResponse: Response proto for SearchText. type GoogleMapsPlacesV1SearchTextResponse struct { // ContextualContents: Experimental: See @@ -2271,6 +2515,12 @@ type GoogleMapsPlacesV1SearchTextResponse struct { NextPageToken string `json:"nextPageToken,omitempty"` // Places: A list of places that meet the user's text search criteria. Places []*GoogleMapsPlacesV1Place `json:"places,omitempty"` + // RoutingSummaries: A list of routing summaries where each entry associates to + // the corresponding place in the same index in the `places` field. If the + // routing summary is not available for one of the places, it will contain an + // empty entry. This list will have as many entries as the list of places if + // requested. + RoutingSummaries []*GoogleMapsPlacesV1RoutingSummary `json:"routingSummaries,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` diff --git a/run/v2/run-api.json b/run/v2/run-api.json index fa2fdb3c20f..15af1d61dc2 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -1526,7 +1526,7 @@ } } }, - "revision": "20240831", + "revision": "20240916", "rootUrl": "https://run.googleapis.com/", "schemas": { "GoogleCloudRunV2BinaryAuthorization": { @@ -3398,6 +3398,20 @@ "description": "Optional. total min instances for the service. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving. (BETA)", "format": "int32", "type": "integer" + }, + "scalingMode": { + "description": "Optional. The scaling mode for the service.", + "enum": [ + "SCALING_MODE_UNSPECIFIED", + "AUTOMATIC", + "MANUAL" + ], + "enumDescriptions": [ + "Unspecified.", + "Scale based on traffic between min and max instances.", + "Scale to exactly min instances and ignore max instances." + ], + "type": "string" } }, "type": "object" diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index 3ecf0c3a4ab..d586da62475 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -2394,6 +2394,13 @@ type GoogleCloudRunV2ServiceScaling struct { // of instances is divided among all revisions with specified traffic based on // the percent of traffic they are receiving. (BETA) MinInstanceCount int64 `json:"minInstanceCount,omitempty"` + // ScalingMode: Optional. The scaling mode for the service. + // + // Possible values: + // "SCALING_MODE_UNSPECIFIED" - Unspecified. + // "AUTOMATIC" - Scale based on traffic between min and max instances. + // "MANUAL" - Scale to exactly min instances and ignore max instances. + ScalingMode string `json:"scalingMode,omitempty"` // ForceSendFields is a list of field names (e.g. "MinInstanceCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/sqladmin/v1/sqladmin-api.json b/sqladmin/v1/sqladmin-api.json index f93ffccf6ab..a84d61bbefa 100644 --- a/sqladmin/v1/sqladmin-api.json +++ b/sqladmin/v1/sqladmin-api.json @@ -2366,7 +2366,7 @@ } } }, - "revision": "20240831", + "revision": "20240912", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -5049,8 +5049,8 @@ false, false, false, - false, - false, + true, + true, false, false ], diff --git a/sqladmin/v1beta4/sqladmin-api.json b/sqladmin/v1beta4/sqladmin-api.json index 06a4d32eb1b..638c57fa1ad 100644 --- a/sqladmin/v1beta4/sqladmin-api.json +++ b/sqladmin/v1beta4/sqladmin-api.json @@ -2366,7 +2366,7 @@ } } }, - "revision": "20240831", + "revision": "20240912", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -5050,8 +5050,8 @@ false, false, false, - false, - false, + true, + true, false, false ], diff --git a/storage/v1/storage-api.json b/storage/v1/storage-api.json index 597daf0a724..6cd48d59733 100644 --- a/storage/v1/storage-api.json +++ b/storage/v1/storage-api.json @@ -32,6 +32,11 @@ "endpointUrl": "https://storage.europe-west3.rep.googleapis.com/", "location": "europe-west3" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.europe-west8.rep.googleapis.com/", + "location": "europe-west8" + }, { "description": "Regional Endpoint", "endpointUrl": "https://storage.europe-west9.rep.googleapis.com/", @@ -41,9 +46,54 @@ "description": "Regional Endpoint", "endpointUrl": "https://storage.me-central2.rep.googleapis.com/", "location": "me-central2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.us-central1.rep.googleapis.com/", + "location": "us-central1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.us-east1.rep.googleapis.com/", + "location": "us-east1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.us-east4.rep.googleapis.com/", + "location": "us-east4" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.us-east5.rep.googleapis.com/", + "location": "us-east5" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.us-south1.rep.googleapis.com/", + "location": "us-south1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.us-west1.rep.googleapis.com/", + "location": "us-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.us-west2.rep.googleapis.com/", + "location": "us-west2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.us-west3.rep.googleapis.com/", + "location": "us-west3" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.us-west4.rep.googleapis.com/", + "location": "us-west4" } ], - "etag": "\"38363036373236373330353534313035333932\"", + "etag": "\"38303531353337323634333935393838333734\"", "icons": { "x16": "https://www.google.com/images/icons/product/cloud_storage-16.png", "x32": "https://www.google.com/images/icons/product/cloud_storage-32.png" @@ -2829,6 +2879,11 @@ "location": "query", "type": "string" }, + "restoreToken": { + "description": "Restore token used to differentiate soft-deleted objects with the same name and generation. Only applicable for hierarchical namespace buckets and if softDeleted is set to true. This parameter is optional, and is only required in the rare case when there are multiple soft-deleted objects with the same name and generation.", + "location": "query", + "type": "string" + }, "softDeleted": { "description": "If true, only soft-deleted object versions will be listed. The default is false. For more information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete).", "location": "query", @@ -3304,6 +3359,11 @@ "location": "query", "type": "string" }, + "restoreToken": { + "description": "Restore token used to differentiate sof-deleted objects with the same name and generation. Only applicable for hierarchical namespace buckets. This parameter is optional, and is only required in the rare case when there are multiple soft-deleted objects with the same name and generation.", + "location": "query", + "type": "string" + }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", @@ -4136,7 +4196,7 @@ } } }, - "revision": "20240819", + "revision": "20240916", "rootUrl": "https://storage.googleapis.com/", "schemas": { "AnywhereCache": { @@ -5597,6 +5657,10 @@ }, "type": "object" }, + "restoreToken": { + "description": "Restore token used to differentiate deleted objects with the same name and generation. This field is only returned for deleted objects in hierarchical namespace buckets.", + "type": "string" + }, "retention": { "description": "A collection of object level retention parameters.", "properties": { diff --git a/storage/v1/storage-gen.go b/storage/v1/storage-gen.go index b16e3f227b2..c7c9321765e 100644 --- a/storage/v1/storage-gen.go +++ b/storage/v1/storage-gen.go @@ -2236,6 +2236,10 @@ type Object struct { // Owner: The owner of the object. This will always be the uploader of the // object. Owner *ObjectOwner `json:"owner,omitempty"` + // RestoreToken: Restore token used to differentiate deleted objects with the + // same name and generation. This field is only returned for deleted objects in + // hierarchical namespace buckets. + RestoreToken string `json:"restoreToken,omitempty"` // Retention: A collection of object level retention parameters. Retention *ObjectRetention `json:"retention,omitempty"` // RetentionExpirationTime: A server-determined value that specifies the @@ -9961,6 +9965,17 @@ func (c *ObjectsGetCall) Projection(projection string) *ObjectsGetCall { return c } +// RestoreToken sets the optional parameter "restoreToken": Restore token used +// to differentiate soft-deleted objects with the same name and generation. +// Only applicable for hierarchical namespace buckets and if softDeleted is set +// to true. This parameter is optional, and is only required in the rare case +// when there are multiple soft-deleted objects with the same name and +// generation. +func (c *ObjectsGetCall) RestoreToken(restoreToken string) *ObjectsGetCall { + c.urlParams_.Set("restoreToken", restoreToken) + return c +} + // SoftDeleted sets the optional parameter "softDeleted": If true, only // soft-deleted object versions will be listed. The default is false. For more // information, see Soft Delete @@ -11056,6 +11071,16 @@ func (c *ObjectsRestoreCall) Projection(projection string) *ObjectsRestoreCall { return c } +// RestoreToken sets the optional parameter "restoreToken": Restore token used +// to differentiate sof-deleted objects with the same name and generation. Only +// applicable for hierarchical namespace buckets. This parameter is optional, +// and is only required in the rare case when there are multiple soft-deleted +// objects with the same name and generation. +func (c *ObjectsRestoreCall) RestoreToken(restoreToken string) *ObjectsRestoreCall { + c.urlParams_.Set("restoreToken", restoreToken) + return c +} + // UserProject sets the optional parameter "userProject": The project to be // billed for this request. Required for Requester Pays buckets. func (c *ObjectsRestoreCall) UserProject(userProject string) *ObjectsRestoreCall { diff --git a/testing/v1/testing-api.json b/testing/v1/testing-api.json index c3e20962f65..5bb5e7d6db4 100644 --- a/testing/v1/testing-api.json +++ b/testing/v1/testing-api.json @@ -449,7 +449,7 @@ } } }, - "revision": "20240315", + "revision": "20240917", "rootUrl": "https://testing.googleapis.com/", "schemas": { "Account": { @@ -664,6 +664,11 @@ "description": "The unique opaque id for this model. Use this for invoking the TestExecutionService.", "type": "string" }, + "labInfo": { + "$ref": "LabInfo", + "description": "Output only. Lab info of this device.", + "readOnly": true + }, "lowFpsVideoRecording": { "description": "True if and only if tests with this model are recorded by stitching together screenshots. See use_low_spec_video_recording in device config.", "type": "boolean" @@ -1705,6 +1710,17 @@ }, "type": "object" }, + "LabInfo": { + "description": "Lab specific information for a device.", + "id": "LabInfo", + "properties": { + "name": { + "description": "Lab name where the device is hosted. If empty, the device is hosted in a Google owned lab.", + "type": "string" + } + }, + "type": "object" + }, "LauncherActivityIntent": { "description": "Specifies an intent that starts the main launcher activity.", "id": "LauncherActivityIntent", diff --git a/testing/v1/testing-gen.go b/testing/v1/testing-gen.go index 2a9a9759863..7bb8ad09cc1 100644 --- a/testing/v1/testing-gen.go +++ b/testing/v1/testing-gen.go @@ -455,6 +455,8 @@ type AndroidModel struct { // Id: The unique opaque id for this model. Use this for invoking the // TestExecutionService. Id string `json:"id,omitempty"` + // LabInfo: Output only. Lab info of this device. + LabInfo *LabInfo `json:"labInfo,omitempty"` // LowFpsVideoRecording: True if and only if tests with this model are recorded // by stitching together screenshots. See use_low_spec_video_recording in // device config. @@ -1718,6 +1720,29 @@ func (s IosXcTest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// LabInfo: Lab specific information for a device. +type LabInfo struct { + // Name: Lab name where the device is hosted. If empty, the device is hosted in + // a Google owned lab. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LabInfo) MarshalJSON() ([]byte, error) { + type NoMethod LabInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // LauncherActivityIntent: Specifies an intent that starts the main launcher // activity. type LauncherActivityIntent struct { diff --git a/tpu/v2alpha1/tpu-api.json b/tpu/v2alpha1/tpu-api.json index 8adff1538ac..69767595b5d 100644 --- a/tpu/v2alpha1/tpu-api.json +++ b/tpu/v2alpha1/tpu-api.json @@ -965,7 +965,7 @@ } } }, - "revision": "20240530", + "revision": "20240916", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -1628,6 +1628,13 @@ "$ref": "NetworkConfig", "description": "Network configurations for the TPU node." }, + "networkConfigs": { + "description": "Optional. Repeated network configurations for the TPU node.", + "items": { + "$ref": "NetworkConfig" + }, + "type": "array" + }, "networkEndpoints": { "description": "Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first.", "items": { diff --git a/tpu/v2alpha1/tpu-gen.go b/tpu/v2alpha1/tpu-gen.go index 40d6d2092e2..075bc86b08f 100644 --- a/tpu/v2alpha1/tpu-gen.go +++ b/tpu/v2alpha1/tpu-gen.go @@ -1073,6 +1073,8 @@ type Node struct { Name string `json:"name,omitempty"` // NetworkConfig: Network configurations for the TPU node. NetworkConfig *NetworkConfig `json:"networkConfig,omitempty"` + // NetworkConfigs: Optional. Repeated network configurations for the TPU node. + NetworkConfigs []*NetworkConfig `json:"networkConfigs,omitempty"` // NetworkEndpoints: Output only. The network endpoints where TPU workers can // be accessed and sent work. It is recommended that runtime clients of the // node reach out to the 0th entry in this map first. diff --git a/walletobjects/v1/walletobjects-api.json b/walletobjects/v1/walletobjects-api.json index 5f4bc0ea1a8..59e441f270b 100644 --- a/walletobjects/v1/walletobjects-api.json +++ b/walletobjects/v1/walletobjects-api.json @@ -2681,7 +2681,7 @@ } } }, - "revision": "20240913", + "revision": "20240919", "rootUrl": "https://walletobjects.googleapis.com/", "schemas": { "ActivationOptions": { @@ -3906,6 +3906,7 @@ "description": "Translated strings for the issuer_name. Recommended maximum length is 20 characters to ensure full string is displayed on smaller screens." }, "locations": { + "deprecated": true, "description": "Note: This field is currently not supported to trigger geo notifications.", "items": { "$ref": "LatLongPoint" @@ -4226,6 +4227,7 @@ "description": "Links module data. If links module data is also defined on the class, both will be displayed." }, "locations": { + "deprecated": true, "description": "Note: This field is currently not supported to trigger geo notifications.", "items": { "$ref": "LatLongPoint" @@ -4975,6 +4977,7 @@ "description": "Links module data. If links module data is also defined on the class, both will be displayed." }, "locations": { + "deprecated": true, "description": "Note: This field is currently not supported to trigger geo notifications.", "items": { "$ref": "LatLongPoint" @@ -5837,6 +5840,7 @@ "description": "Links module data. If links module data is also defined on the class, both will be displayed." }, "locations": { + "deprecated": true, "description": "Note: This field is currently not supported to trigger geo notifications.", "items": { "$ref": "LatLongPoint" @@ -6673,6 +6677,7 @@ "description": "Links module data. If links module data is also defined on the class, both will be displayed." }, "locations": { + "deprecated": true, "description": "Note: This field is currently not supported to trigger geo notifications.", "items": { "$ref": "LatLongPoint" @@ -9036,6 +9041,7 @@ "description": "Links module data. If links module data is also defined on the class, both will be displayed." }, "locations": { + "deprecated": true, "description": "Note: This field is currently not supported to trigger geo notifications.", "items": { "$ref": "LatLongPoint" From d0e0dc31cd30ec9b5e71541ad905236401b56d96 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 22 Sep 2024 00:22:22 -0700 Subject: [PATCH 3/9] feat(all): auto-regenerate discovery clients (#2794) --- aiplatform/v1/aiplatform-api.json | 181 ++++++- aiplatform/v1/aiplatform-gen.go | 374 ++++++++++++- aiplatform/v1beta1/aiplatform-api.json | 272 +++++++++- aiplatform/v1beta1/aiplatform-gen.go | 490 +++++++++++++++++- alloydb/v1/alloydb-api.json | 94 +++- alloydb/v1/alloydb-gen.go | 44 +- composer/v1/composer-api.json | 9 +- composer/v1beta1/composer-api.json | 9 +- compute/v1/compute-api.json | 14 +- compute/v1/compute-gen.go | 15 +- connectors/v1/connectors-api.json | 6 +- connectors/v1/connectors-gen.go | 3 + dlp/v2/dlp-api.json | 289 ++++++++++- dlp/v2/dlp-gen.go | 470 ++++++++++++++++- healthcare/v1/healthcare-api.json | 52 +- healthcare/v1/healthcare-gen.go | 170 +++--- redis/v1beta1/redis-api.json | 40 +- redis/v1beta1/redis-gen.go | 32 +- spanner/v1/spanner-api.json | 23 +- spanner/v1/spanner-gen.go | 35 ++ .../v1/workflowexecutions-api.json | 6 +- .../v1/workflowexecutions-gen.go | 12 +- 22 files changed, 2411 insertions(+), 229 deletions(-) diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index 0caf7d6a412..8ffd941f86d 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -17476,6 +17476,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "rebaseTunedModel": { + "description": "Rebase a TunedModel.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs:rebaseTunedModel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.tuningJobs.rebaseTunedModel", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location into which to rebase the Model. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/tuningJobs:rebaseTunedModel", + "request": { + "$ref": "GoogleCloudAiplatformV1RebaseTunedModelRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -17506,6 +17534,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs/{tuningJobsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.tuningJobs.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "get": { "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs/{tuningJobsId}/operations/{operationsId}", @@ -17760,7 +17813,7 @@ } } }, - "revision": "20240907", + "revision": "20240916", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -19412,6 +19465,11 @@ "readOnly": true, "type": "integer" }, + "logprobsResult": { + "$ref": "GoogleCloudAiplatformV1LogprobsResult", + "description": "Output only. Log-likelihood scores for the response tokens and top tokens", + "readOnly": true + }, "safetyRatings": { "description": "Output only. List of ratings for the safety of a response candidate. There is at most one rating per category.", "items": { @@ -24535,6 +24593,11 @@ "readOnly": true, "type": "array" }, + "modelVersion": { + "description": "Output only. The model version used to generate the response.", + "readOnly": true, + "type": "string" + }, "promptFeedback": { "$ref": "GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback", "description": "Output only. Content filter results for a prompt sent in the request. Note: Sent only in the first stream chunk. Only happens when no candidates were generated due to content violations.", @@ -24622,6 +24685,11 @@ "format": "float", "type": "number" }, + "logprobs": { + "description": "Optional. Logit probabilities.", + "format": "int32", + "type": "integer" + }, "maxOutputTokens": { "description": "Optional. The maximum number of output tokens to generate per message.", "format": "int32", @@ -24632,6 +24700,10 @@ "format": "float", "type": "number" }, + "responseLogprobs": { + "description": "Optional. If true, export the logprobs results in response.", + "type": "boolean" + }, "responseMimeType": { "description": "Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.", "type": "string" @@ -26660,6 +26732,62 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1LogprobsResult": { + "description": "Logprobs Result", + "id": "GoogleCloudAiplatformV1LogprobsResult", + "properties": { + "chosenCandidates": { + "description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.", + "items": { + "$ref": "GoogleCloudAiplatformV1LogprobsResultCandidate" + }, + "type": "array" + }, + "topCandidates": { + "description": "Length = total number of decoding steps.", + "items": { + "$ref": "GoogleCloudAiplatformV1LogprobsResultTopCandidates" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1LogprobsResultCandidate": { + "description": "Candidate for the logprobs token and score.", + "id": "GoogleCloudAiplatformV1LogprobsResultCandidate", + "properties": { + "logProbability": { + "description": "The candidate's log probability.", + "format": "float", + "type": "number" + }, + "token": { + "description": "The candidate’s token string value.", + "type": "string" + }, + "tokenId": { + "description": "The candidate’s token id value.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1LogprobsResultTopCandidates": { + "description": "Candidates with top log probabilities at each decoding step.", + "id": "GoogleCloudAiplatformV1LogprobsResultTopCandidates", + "properties": { + "candidates": { + "description": "Sorted by log probability in descending order.", + "items": { + "$ref": "GoogleCloudAiplatformV1LogprobsResultCandidate" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1LookupStudyRequest": { "description": "Request message for VizierService.LookupStudy.", "id": "GoogleCloudAiplatformV1LookupStudyRequest", @@ -31900,6 +32028,29 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1RebaseTunedModelRequest": { + "description": "Request message for GenAiTuningService.RebaseTunedModel.", + "id": "GoogleCloudAiplatformV1RebaseTunedModelRequest", + "properties": { + "artifactDestination": { + "$ref": "GoogleCloudAiplatformV1GcsDestination", + "description": "Optional. The Google Cloud Storage location to write the artifacts." + }, + "deployToSameEndpoint": { + "description": "Optional. By default, bison to gemini migration will always create new model/endpoint, but for gemini-1.0 to gemini-1.5 migration, we default deploy to the same endpoint. See details in this Section.", + "type": "boolean" + }, + "tunedModelRef": { + "$ref": "GoogleCloudAiplatformV1TunedModelRef", + "description": "Required. TunedModel reference to retrieve the legacy model information." + }, + "tuningJob": { + "$ref": "GoogleCloudAiplatformV1TuningJob", + "description": "Optional. The TuningJob to be updated. Users can use this TuningJob field to overwrite tuning configs." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1RebootPersistentResourceOperationMetadata": { "description": "Details of operations that perform reboot PersistentResource.", "id": "GoogleCloudAiplatformV1RebootPersistentResourceOperationMetadata", @@ -32742,6 +32893,13 @@ "description": "Schema is used to define the format of input/output data. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may be added in the future as needed.", "id": "GoogleCloudAiplatformV1Schema", "properties": { + "anyOf": { + "description": "Optional. The value should be validated against any (one or more) of the subschemas in the list.", + "items": { + "$ref": "GoogleCloudAiplatformV1Schema" + }, + "type": "array" + }, "default": { "description": "Optional. Default value of the data.", "type": "any" @@ -38742,7 +38900,7 @@ "id": "GoogleCloudAiplatformV1Tool", "properties": { "functionDeclarations": { - "description": "Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 64 function declarations can be provided.", + "description": "Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 128 function declarations can be provided.", "items": { "$ref": "GoogleCloudAiplatformV1FunctionDeclaration" }, @@ -39312,6 +39470,25 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1TunedModelRef": { + "description": "TunedModel Reference for legacy model migration.", + "id": "GoogleCloudAiplatformV1TunedModelRef", + "properties": { + "pipelineJob": { + "description": "Support migration from tuning job list page, from bison model to gemini model.", + "type": "string" + }, + "tunedModel": { + "description": "Support migration from model registry.", + "type": "string" + }, + "tuningJob": { + "description": "Support migration from tuning job list page, from gemini-1.0-pro-002 to 1.5 and above.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1TuningDataStats": { "description": "The tuning data statistic values for TuningJob.", "id": "GoogleCloudAiplatformV1TuningDataStats", diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index d51abdfd094..6f3f8e52248 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -3761,6 +3761,9 @@ type GoogleCloudAiplatformV1Candidate struct { GroundingMetadata *GoogleCloudAiplatformV1GroundingMetadata `json:"groundingMetadata,omitempty"` // Index: Output only. Index of the candidate. Index int64 `json:"index,omitempty"` + // LogprobsResult: Output only. Log-likelihood scores for the response tokens + // and top tokens + LogprobsResult *GoogleCloudAiplatformV1LogprobsResult `json:"logprobsResult,omitempty"` // SafetyRatings: Output only. List of ratings for the safety of a response // candidate. There is at most one rating per category. SafetyRatings []*GoogleCloudAiplatformV1SafetyRating `json:"safetyRatings,omitempty"` @@ -11225,6 +11228,8 @@ func (s GoogleCloudAiplatformV1GenerateContentRequest) MarshalJSON() ([]byte, er type GoogleCloudAiplatformV1GenerateContentResponse struct { // Candidates: Output only. Generated candidates. Candidates []*GoogleCloudAiplatformV1Candidate `json:"candidates,omitempty"` + // ModelVersion: Output only. The model version used to generate the response. + ModelVersion string `json:"modelVersion,omitempty"` // PromptFeedback: Output only. Content filter results for a prompt sent in the // request. Note: Sent only in the first stream chunk. Only happens when no // candidates were generated due to content violations. @@ -11322,11 +11327,16 @@ type GoogleCloudAiplatformV1GenerationConfig struct { CandidateCount int64 `json:"candidateCount,omitempty"` // FrequencyPenalty: Optional. Frequency penalties. FrequencyPenalty float64 `json:"frequencyPenalty,omitempty"` + // Logprobs: Optional. Logit probabilities. + Logprobs int64 `json:"logprobs,omitempty"` // MaxOutputTokens: Optional. The maximum number of output tokens to generate // per message. MaxOutputTokens int64 `json:"maxOutputTokens,omitempty"` // PresencePenalty: Optional. Positive penalties. PresencePenalty float64 `json:"presencePenalty,omitempty"` + // ResponseLogprobs: Optional. If true, export the logprobs results in + // response. + ResponseLogprobs bool `json:"responseLogprobs,omitempty"` // ResponseMimeType: Optional. Output response mimetype of the generated // candidate text. Supported mimetype: - `text/plain`: (default) Text output. - // `application/json`: JSON response in the candidates. The model needs to be @@ -14274,6 +14284,95 @@ func (s GoogleCloudAiplatformV1ListTuningJobsResponse) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1LogprobsResult: Logprobs Result +type GoogleCloudAiplatformV1LogprobsResult struct { + // ChosenCandidates: Length = total number of decoding steps. The chosen + // candidates may or may not be in top_candidates. + ChosenCandidates []*GoogleCloudAiplatformV1LogprobsResultCandidate `json:"chosenCandidates,omitempty"` + // TopCandidates: Length = total number of decoding steps. + TopCandidates []*GoogleCloudAiplatformV1LogprobsResultTopCandidates `json:"topCandidates,omitempty"` + // ForceSendFields is a list of field names (e.g. "ChosenCandidates") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ChosenCandidates") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1LogprobsResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1LogprobsResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1LogprobsResultCandidate: Candidate for the logprobs +// token and score. +type GoogleCloudAiplatformV1LogprobsResultCandidate struct { + // LogProbability: The candidate's log probability. + LogProbability float64 `json:"logProbability,omitempty"` + // Token: The candidate’s token string value. + Token string `json:"token,omitempty"` + // TokenId: The candidate’s token id value. + TokenId int64 `json:"tokenId,omitempty"` + // ForceSendFields is a list of field names (e.g. "LogProbability") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "LogProbability") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1LogprobsResultCandidate) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1LogprobsResultCandidate + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1LogprobsResultCandidate) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1LogprobsResultCandidate + var s1 struct { + LogProbability gensupport.JSONFloat64 `json:"logProbability"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.LogProbability = float64(s1.LogProbability) + return nil +} + +// GoogleCloudAiplatformV1LogprobsResultTopCandidates: Candidates with top log +// probabilities at each decoding step. +type GoogleCloudAiplatformV1LogprobsResultTopCandidates struct { + // Candidates: Sorted by log probability in descending order. + Candidates []*GoogleCloudAiplatformV1LogprobsResultCandidate `json:"candidates,omitempty"` + // ForceSendFields is a list of field names (e.g. "Candidates") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Candidates") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1LogprobsResultTopCandidates) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1LogprobsResultTopCandidates + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1LookupStudyRequest: Request message for // VizierService.LookupStudy. type GoogleCloudAiplatformV1LookupStudyRequest struct { @@ -21351,6 +21450,41 @@ func (s GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData) Mar return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1RebaseTunedModelRequest: Request message for +// GenAiTuningService.RebaseTunedModel. +type GoogleCloudAiplatformV1RebaseTunedModelRequest struct { + // ArtifactDestination: Optional. The Google Cloud Storage location to write + // the artifacts. + ArtifactDestination *GoogleCloudAiplatformV1GcsDestination `json:"artifactDestination,omitempty"` + // DeployToSameEndpoint: Optional. By default, bison to gemini migration will + // always create new model/endpoint, but for gemini-1.0 to gemini-1.5 + // migration, we default deploy to the same endpoint. See details in this + // Section. + DeployToSameEndpoint bool `json:"deployToSameEndpoint,omitempty"` + // TunedModelRef: Required. TunedModel reference to retrieve the legacy model + // information. + TunedModelRef *GoogleCloudAiplatformV1TunedModelRef `json:"tunedModelRef,omitempty"` + // TuningJob: Optional. The TuningJob to be updated. Users can use this + // TuningJob field to overwrite tuning configs. + TuningJob *GoogleCloudAiplatformV1TuningJob `json:"tuningJob,omitempty"` + // ForceSendFields is a list of field names (e.g. "ArtifactDestination") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ArtifactDestination") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1RebaseTunedModelRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1RebaseTunedModelRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1RebootPersistentResourceOperationMetadata: Details of // operations that perform reboot PersistentResource. type GoogleCloudAiplatformV1RebootPersistentResourceOperationMetadata struct { @@ -22496,6 +22630,9 @@ func (s GoogleCloudAiplatformV1Scheduling) MarshalJSON() ([]byte, error) { // object (https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may // be added in the future as needed. type GoogleCloudAiplatformV1Schema struct { + // AnyOf: Optional. The value should be validated against any (one or more) of + // the subschemas in the list. + AnyOf []*GoogleCloudAiplatformV1Schema `json:"anyOf,omitempty"` // Default: Optional. Default value of the data. Default interface{} `json:"default,omitempty"` // Description: Optional. The description of the data. @@ -22558,13 +22695,13 @@ type GoogleCloudAiplatformV1Schema struct { // "ARRAY" - OpenAPI array type // "OBJECT" - OpenAPI object type Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Default") to unconditionally + // ForceSendFields is a list of field names (e.g. "AnyOf") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Default") to include in API + // NullFields is a list of field names (e.g. "AnyOf") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -31816,7 +31953,7 @@ type GoogleCloudAiplatformV1Tool struct { // Model may decide to call a subset of these functions by populating // FunctionCall in the response. User should provide a FunctionResponse for // each function call in the next turn. Based on the function responses, Model - // will generate the final response back to the user. Maximum 64 function + // will generate the final response back to the user. Maximum 128 function // declarations can be provided. FunctionDeclarations []*GoogleCloudAiplatformV1FunctionDeclaration `json:"functionDeclarations,omitempty"` // GoogleSearchRetrieval: Optional. GoogleSearchRetrieval tool type. @@ -32665,6 +32802,35 @@ func (s GoogleCloudAiplatformV1TunedModel) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1TunedModelRef: TunedModel Reference for legacy model +// migration. +type GoogleCloudAiplatformV1TunedModelRef struct { + // PipelineJob: Support migration from tuning job list page, from bison model + // to gemini model. + PipelineJob string `json:"pipelineJob,omitempty"` + // TunedModel: Support migration from model registry. + TunedModel string `json:"tunedModel,omitempty"` + // TuningJob: Support migration from tuning job list page, from + // gemini-1.0-pro-002 to 1.5 and above. + TuningJob string `json:"tuningJob,omitempty"` + // ForceSendFields is a list of field names (e.g. "PipelineJob") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PipelineJob") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1TunedModelRef) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1TunedModelRef + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1TuningDataStats: The tuning data statistic values for // TuningJob. type GoogleCloudAiplatformV1TuningDataStats struct { @@ -97749,6 +97915,109 @@ func (c *ProjectsLocationsTuningJobsListCall) Pages(ctx context.Context, f func( } } +type ProjectsLocationsTuningJobsRebaseTunedModelCall struct { + s *Service + parent string + googlecloudaiplatformv1rebasetunedmodelrequest *GoogleCloudAiplatformV1RebaseTunedModelRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RebaseTunedModel: Rebase a TunedModel. +// +// - parent: The resource name of the Location into which to rebase the Model. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsTuningJobsService) RebaseTunedModel(parent string, googlecloudaiplatformv1rebasetunedmodelrequest *GoogleCloudAiplatformV1RebaseTunedModelRequest) *ProjectsLocationsTuningJobsRebaseTunedModelCall { + c := &ProjectsLocationsTuningJobsRebaseTunedModelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1rebasetunedmodelrequest = googlecloudaiplatformv1rebasetunedmodelrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTuningJobsRebaseTunedModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsTuningJobsRebaseTunedModelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTuningJobsRebaseTunedModelCall) Context(ctx context.Context) *ProjectsLocationsTuningJobsRebaseTunedModelCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTuningJobsRebaseTunedModelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTuningJobsRebaseTunedModelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1rebasetunedmodelrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tuningJobs:rebaseTunedModel") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.tuningJobs.rebaseTunedModel" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsTuningJobsRebaseTunedModelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + 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 +} + type ProjectsLocationsTuningJobsOperationsCancelCall struct { s *Service name string @@ -97853,6 +98122,105 @@ func (c *ProjectsLocationsTuningJobsOperationsCancelCall) Do(opts ...googleapi.C return ret, nil } +type ProjectsLocationsTuningJobsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsTuningJobsOperationsService) Delete(name string) *ProjectsLocationsTuningJobsOperationsDeleteCall { + c := &ProjectsLocationsTuningJobsOperationsDeleteCall{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 +// details. +func (c *ProjectsLocationsTuningJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTuningJobsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTuningJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsTuningJobsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTuningJobsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTuningJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", 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 "aiplatform.projects.locations.tuningJobs.operations.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsTuningJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + 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 +} + type ProjectsLocationsTuningJobsOperationsGetCall struct { s *Service name string diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index daf78eacc4e..726c16a0c64 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -20887,6 +20887,65 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "rebaseTunedModel": { + "description": "Rebase a TunedModel.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tuningJobs:rebaseTunedModel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.tuningJobs.rebaseTunedModel", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location into which to rebase the Model. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/tuningJobs:rebaseTunedModel", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1RebaseTunedModelRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "operations": { + "methods": { + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tuningJobs/{tuningJobsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.tuningJobs.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } } @@ -21143,7 +21202,7 @@ } } }, - "revision": "20240907", + "revision": "20240916", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -23194,6 +23253,11 @@ "readOnly": true, "type": "integer" }, + "logprobsResult": { + "$ref": "GoogleCloudAiplatformV1beta1LogprobsResult", + "description": "Output only. Log-likelihood scores for the response tokens and top tokens", + "readOnly": true + }, "safetyRatings": { "description": "Output only. List of ratings for the safety of a response candidate. There is at most one rating per category.", "items": { @@ -27886,6 +27950,10 @@ "description": "Identifier. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", "type": "string" }, + "optimizedConfig": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureViewOptimizedConfig", + "description": "Optional. Configuration for FeatureView created under Optimized FeatureOnlineStore." + }, "satisfiesPzi": { "description": "Output only. Reserved for future use.", "readOnly": true, @@ -28089,6 +28157,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1FeatureViewOptimizedConfig": { + "description": "Configuration for FeatureViews created in Optimized FeatureOnlineStore.", + "id": "GoogleCloudAiplatformV1beta1FeatureViewOptimizedConfig", + "properties": { + "automaticResources": { + "$ref": "GoogleCloudAiplatformV1beta1AutomaticResources", + "description": "Optional. A description of resources that the FeatureView uses, which to large degree are decided by Vertex AI, and optionally allows only a modest additional configuration. If min_replica_count is not set, the default value is 2. If max_replica_count is not set, the default value is 6. The max allowed replica count is 1000." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1FeatureViewSync": { "description": "FeatureViewSync is a representation of sync operation which copies data from data source to Feature View in Online Store.", "id": "GoogleCloudAiplatformV1beta1FeatureViewSync", @@ -29106,6 +29185,11 @@ "readOnly": true, "type": "array" }, + "modelVersion": { + "description": "Output only. The model version used to generate the response.", + "readOnly": true, + "type": "string" + }, "promptFeedback": { "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback", "description": "Output only. Content filter results for a prompt sent in the request. Note: Sent only in the first stream chunk. Only happens when no candidates were generated due to content violations.", @@ -29225,6 +29309,11 @@ "format": "float", "type": "number" }, + "logprobs": { + "description": "Optional. Logit probabilities.", + "format": "int32", + "type": "integer" + }, "maxOutputTokens": { "description": "Optional. The maximum number of output tokens to generate per message.", "format": "int32", @@ -29235,6 +29324,10 @@ "format": "float", "type": "number" }, + "responseLogprobs": { + "description": "Optional. If true, export the logprobs results in response.", + "type": "boolean" + }, "responseMimeType": { "description": "Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.", "type": "string" @@ -29986,6 +30079,10 @@ "$ref": "GoogleCloudAiplatformV1beta1RagFileParsingConfig", "description": "Specifies the parsing config for RagFiles." }, + "sharePointSources": { + "$ref": "GoogleCloudAiplatformV1beta1SharePointSources", + "description": "SharePoint sources." + }, "slackSource": { "$ref": "GoogleCloudAiplatformV1beta1SlackSource", "description": "Slack channels with their corresponding access tokens." @@ -31619,6 +31716,62 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1LogprobsResult": { + "description": "Logprobs Result", + "id": "GoogleCloudAiplatformV1beta1LogprobsResult", + "properties": { + "chosenCandidates": { + "description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1LogprobsResultCandidate" + }, + "type": "array" + }, + "topCandidates": { + "description": "Length = total number of decoding steps.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1LogprobsResultCandidate": { + "description": "Candidate for the logprobs token and score.", + "id": "GoogleCloudAiplatformV1beta1LogprobsResultCandidate", + "properties": { + "logProbability": { + "description": "The candidate's log probability.", + "format": "float", + "type": "number" + }, + "token": { + "description": "The candidate’s token string value.", + "type": "string" + }, + "tokenId": { + "description": "The candidate’s token id value.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates": { + "description": "Candidates with top log probabilities at each decoding step.", + "id": "GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates", + "properties": { + "candidates": { + "description": "Sorted by log probability in descending order.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1LogprobsResultCandidate" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1LookupStudyRequest": { "description": "Request message for VizierService.LookupStudy.", "id": "GoogleCloudAiplatformV1beta1LookupStudyRequest", @@ -36521,6 +36674,10 @@ "description": "Required. If true, expose the IndexEndpoint via private service connect.", "type": "boolean" }, + "enableSecurePrivateServiceConnect": { + "description": "Optional. If set to true, enable secure private service connect with IAM authorization. Otherwise, private service connect will be done without authorization. Note latency will be slightly increased if authorization is enabled.", + "type": "boolean" + }, "projectAllowlist": { "description": "A list of Projects from which the forwarding rule will target the service attachment.", "items": { @@ -37791,6 +37948,10 @@ "readOnly": true, "type": "string" }, + "sharePointSources": { + "$ref": "GoogleCloudAiplatformV1beta1SharePointSources", + "description": "The RagFile is imported from a SharePoint source." + }, "sizeBytes": { "description": "Output only. The size of the RagFile in bytes.", "format": "int64", @@ -38311,6 +38472,29 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1RebaseTunedModelRequest": { + "description": "Request message for GenAiTuningService.RebaseTunedModel.", + "id": "GoogleCloudAiplatformV1beta1RebaseTunedModelRequest", + "properties": { + "artifactDestination": { + "$ref": "GoogleCloudAiplatformV1beta1GcsDestination", + "description": "Optional. The Google Cloud Storage location to write the artifacts." + }, + "deployToSameEndpoint": { + "description": "Optional. By default, bison to gemini migration will always create new model/endpoint, but for gemini-1.0 to gemini-1.5 migration, we default deploy to the same endpoint. See details in this Section.", + "type": "boolean" + }, + "tunedModelRef": { + "$ref": "GoogleCloudAiplatformV1beta1TunedModelRef", + "description": "Required. TunedModel reference to retrieve the legacy model information." + }, + "tuningJob": { + "$ref": "GoogleCloudAiplatformV1beta1TuningJob", + "description": "Optional. The TuningJob to be updated. Users can use this TuningJob field to overwrite tuning configs." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1RebootPersistentResourceOperationMetadata": { "description": "Details of operations that perform reboot PersistentResource.", "id": "GoogleCloudAiplatformV1beta1RebootPersistentResourceOperationMetadata", @@ -39423,6 +39607,13 @@ "description": "Schema is used to define the format of input/output data. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may be added in the future as needed.", "id": "GoogleCloudAiplatformV1beta1Schema", "properties": { + "anyOf": { + "description": "Optional. The value should be validated against any (one or more) of the subschemas in the list.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1Schema" + }, + "type": "array" + }, "default": { "description": "Optional. Default value of the data.", "type": "any" @@ -43573,6 +43764,64 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1SharePointSources": { + "description": "The SharePointSources to pass to ImportRagFiles.", + "id": "GoogleCloudAiplatformV1beta1SharePointSources", + "properties": { + "sharePointSources": { + "description": "The SharePoint sources.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1SharePointSourcesSharePointSource" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1SharePointSourcesSharePointSource": { + "description": "An individual SharePointSource.", + "id": "GoogleCloudAiplatformV1beta1SharePointSourcesSharePointSource", + "properties": { + "clientId": { + "description": "The Application ID for the app registered in Microsoft Azure Portal. The application must also be configured with MS Graph permissions \"Files.ReadAll\", \"Sites.ReadAll\" and BrowserSiteLists.Read.All.", + "type": "string" + }, + "clientSecret": { + "$ref": "GoogleCloudAiplatformV1beta1ApiAuthApiKeyConfig", + "description": "The application secret for the app registered in Azure." + }, + "driveId": { + "description": "The ID of the drive to download from.", + "type": "string" + }, + "driveName": { + "description": "The name of the drive to download from.", + "type": "string" + }, + "fileId": { + "description": "Output only. The SharePoint file id. Output only.", + "readOnly": true, + "type": "string" + }, + "sharepointFolderId": { + "description": "The ID of the SharePoint folder to download from.", + "type": "string" + }, + "sharepointFolderPath": { + "description": "The path of the SharePoint folder to download from.", + "type": "string" + }, + "sharepointSiteName": { + "description": "The name of the SharePoint site to download from. This can be the site name or the site id.", + "type": "string" + }, + "tenantId": { + "description": "Unique identifier of the Azure Active Directory Instance.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1ShieldedVmConfig": { "description": "A set of Shielded Instance options. See [Images using supported Shielded VM features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).", "id": "GoogleCloudAiplatformV1beta1ShieldedVmConfig", @@ -45585,7 +45834,7 @@ "id": "GoogleCloudAiplatformV1beta1Tool", "properties": { "functionDeclarations": { - "description": "Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 64 function declarations can be provided.", + "description": "Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 128 function declarations can be provided.", "items": { "$ref": "GoogleCloudAiplatformV1beta1FunctionDeclaration" }, @@ -46213,6 +46462,25 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1TunedModelRef": { + "description": "TunedModel Reference for legacy model migration.", + "id": "GoogleCloudAiplatformV1beta1TunedModelRef", + "properties": { + "pipelineJob": { + "description": "Support migration from tuning job list page, from bison model to gemini model.", + "type": "string" + }, + "tunedModel": { + "description": "Support migration from model registry.", + "type": "string" + }, + "tuningJob": { + "description": "Support migration from tuning job list page, from gemini-1.0-pro-002 to 1.5 and above.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1TuningDataStats": { "description": "The tuning data statistic values for TuningJob.", "id": "GoogleCloudAiplatformV1beta1TuningDataStats", diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index d4551ea3885..4870edc2a0a 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -1669,11 +1669,23 @@ type ProjectsLocationsTrainingPipelinesOperationsService struct { func NewProjectsLocationsTuningJobsService(s *Service) *ProjectsLocationsTuningJobsService { rs := &ProjectsLocationsTuningJobsService{s: s} + rs.Operations = NewProjectsLocationsTuningJobsOperationsService(s) return rs } type ProjectsLocationsTuningJobsService struct { s *Service + + Operations *ProjectsLocationsTuningJobsOperationsService +} + +func NewProjectsLocationsTuningJobsOperationsService(s *Service) *ProjectsLocationsTuningJobsOperationsService { + rs := &ProjectsLocationsTuningJobsOperationsService{s: s} + return rs +} + +type ProjectsLocationsTuningJobsOperationsService struct { + s *Service } func NewPublishersService(s *Service) *PublishersService { @@ -4633,6 +4645,9 @@ type GoogleCloudAiplatformV1beta1Candidate struct { GroundingMetadata *GoogleCloudAiplatformV1beta1GroundingMetadata `json:"groundingMetadata,omitempty"` // Index: Output only. Index of the candidate. Index int64 `json:"index,omitempty"` + // LogprobsResult: Output only. Log-likelihood scores for the response tokens + // and top tokens + LogprobsResult *GoogleCloudAiplatformV1beta1LogprobsResult `json:"logprobsResult,omitempty"` // SafetyRatings: Output only. List of ratings for the safety of a response // candidate. There is at most one rating per category. SafetyRatings []*GoogleCloudAiplatformV1beta1SafetyRating `json:"safetyRatings,omitempty"` @@ -11326,6 +11341,9 @@ type GoogleCloudAiplatformV1beta1FeatureView struct { // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_ // store}/featureViews/{feature_view}` Name string `json:"name,omitempty"` + // OptimizedConfig: Optional. Configuration for FeatureView created under + // Optimized FeatureOnlineStore. + OptimizedConfig *GoogleCloudAiplatformV1beta1FeatureViewOptimizedConfig `json:"optimizedConfig,omitempty"` // SatisfiesPzi: Output only. Reserved for future use. SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` // SatisfiesPzs: Output only. Reserved for future use. @@ -11603,6 +11621,33 @@ func (s GoogleCloudAiplatformV1beta1FeatureViewIndexConfigTreeAHConfig) MarshalJ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1FeatureViewOptimizedConfig: Configuration for +// FeatureViews created in Optimized FeatureOnlineStore. +type GoogleCloudAiplatformV1beta1FeatureViewOptimizedConfig struct { + // AutomaticResources: Optional. A description of resources that the + // FeatureView uses, which to large degree are decided by Vertex AI, and + // optionally allows only a modest additional configuration. If + // min_replica_count is not set, the default value is 2. If max_replica_count + // is not set, the default value is 6. The max allowed replica count is 1000. + AutomaticResources *GoogleCloudAiplatformV1beta1AutomaticResources `json:"automaticResources,omitempty"` + // ForceSendFields is a list of field names (e.g. "AutomaticResources") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AutomaticResources") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1FeatureViewOptimizedConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureViewOptimizedConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1FeatureViewSync: FeatureViewSync is a // representation of sync operation which copies data from data source to // Feature View in Online Store. @@ -13200,6 +13245,8 @@ func (s GoogleCloudAiplatformV1beta1GenerateContentRequest) MarshalJSON() ([]byt type GoogleCloudAiplatformV1beta1GenerateContentResponse struct { // Candidates: Output only. Generated candidates. Candidates []*GoogleCloudAiplatformV1beta1Candidate `json:"candidates,omitempty"` + // ModelVersion: Output only. The model version used to generate the response. + ModelVersion string `json:"modelVersion,omitempty"` // PromptFeedback: Output only. Content filter results for a prompt sent in the // request. Note: Sent only in the first stream chunk. Only happens when no // candidates were generated due to content violations. @@ -13327,11 +13374,16 @@ type GoogleCloudAiplatformV1beta1GenerationConfig struct { CandidateCount int64 `json:"candidateCount,omitempty"` // FrequencyPenalty: Optional. Frequency penalties. FrequencyPenalty float64 `json:"frequencyPenalty,omitempty"` + // Logprobs: Optional. Logit probabilities. + Logprobs int64 `json:"logprobs,omitempty"` // MaxOutputTokens: Optional. The maximum number of output tokens to generate // per message. MaxOutputTokens int64 `json:"maxOutputTokens,omitempty"` // PresencePenalty: Optional. Positive penalties. PresencePenalty float64 `json:"presencePenalty,omitempty"` + // ResponseLogprobs: Optional. If true, export the logprobs results in + // response. + ResponseLogprobs bool `json:"responseLogprobs,omitempty"` // ResponseMimeType: Optional. Output response mimetype of the generated // candidate text. Supported mimetype: - `text/plain`: (default) Text output. - // `application/json`: JSON response in the candidates. The model needs to be @@ -14316,6 +14368,8 @@ type GoogleCloudAiplatformV1beta1ImportRagFilesConfig struct { RagFileChunkingConfig *GoogleCloudAiplatformV1beta1RagFileChunkingConfig `json:"ragFileChunkingConfig,omitempty"` // RagFileParsingConfig: Specifies the parsing config for RagFiles. RagFileParsingConfig *GoogleCloudAiplatformV1beta1RagFileParsingConfig `json:"ragFileParsingConfig,omitempty"` + // SharePointSources: SharePoint sources. + SharePointSources *GoogleCloudAiplatformV1beta1SharePointSources `json:"sharePointSources,omitempty"` // SlackSource: Slack channels with their corresponding access tokens. SlackSource *GoogleCloudAiplatformV1beta1SlackSource `json:"slackSource,omitempty"` // ForceSendFields is a list of field names (e.g. "GcsSource") to @@ -16779,6 +16833,95 @@ func (s GoogleCloudAiplatformV1beta1ListTuningJobsResponse) MarshalJSON() ([]byt return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1LogprobsResult: Logprobs Result +type GoogleCloudAiplatformV1beta1LogprobsResult struct { + // ChosenCandidates: Length = total number of decoding steps. The chosen + // candidates may or may not be in top_candidates. + ChosenCandidates []*GoogleCloudAiplatformV1beta1LogprobsResultCandidate `json:"chosenCandidates,omitempty"` + // TopCandidates: Length = total number of decoding steps. + TopCandidates []*GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates `json:"topCandidates,omitempty"` + // ForceSendFields is a list of field names (e.g. "ChosenCandidates") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ChosenCandidates") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1LogprobsResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1LogprobsResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1LogprobsResultCandidate: Candidate for the +// logprobs token and score. +type GoogleCloudAiplatformV1beta1LogprobsResultCandidate struct { + // LogProbability: The candidate's log probability. + LogProbability float64 `json:"logProbability,omitempty"` + // Token: The candidate’s token string value. + Token string `json:"token,omitempty"` + // TokenId: The candidate’s token id value. + TokenId int64 `json:"tokenId,omitempty"` + // ForceSendFields is a list of field names (e.g. "LogProbability") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "LogProbability") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1LogprobsResultCandidate) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1LogprobsResultCandidate + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1LogprobsResultCandidate) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1LogprobsResultCandidate + var s1 struct { + LogProbability gensupport.JSONFloat64 `json:"logProbability"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.LogProbability = float64(s1.LogProbability) + return nil +} + +// GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates: Candidates with top +// log probabilities at each decoding step. +type GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates struct { + // Candidates: Sorted by log probability in descending order. + Candidates []*GoogleCloudAiplatformV1beta1LogprobsResultCandidate `json:"candidates,omitempty"` + // ForceSendFields is a list of field names (e.g. "Candidates") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Candidates") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1LookupStudyRequest: Request message for // VizierService.LookupStudy. type GoogleCloudAiplatformV1beta1LookupStudyRequest struct { @@ -23284,6 +23427,11 @@ type GoogleCloudAiplatformV1beta1PrivateServiceConnectConfig struct { // EnablePrivateServiceConnect: Required. If true, expose the IndexEndpoint via // private service connect. EnablePrivateServiceConnect bool `json:"enablePrivateServiceConnect,omitempty"` + // EnableSecurePrivateServiceConnect: Optional. If set to true, enable secure + // private service connect with IAM authorization. Otherwise, private service + // connect will be done without authorization. Note latency will be slightly + // increased if authorization is enabled. + EnableSecurePrivateServiceConnect bool `json:"enableSecurePrivateServiceConnect,omitempty"` // ProjectAllowlist: A list of Projects from which the forwarding rule will // target the service attachment. ProjectAllowlist []string `json:"projectAllowlist,omitempty"` @@ -25107,6 +25255,8 @@ type GoogleCloudAiplatformV1beta1RagFile struct { // "RAG_FILE_TYPE_TXT" - RagFile type is TXT. // "RAG_FILE_TYPE_PDF" - RagFile type is PDF. RagFileType string `json:"ragFileType,omitempty"` + // SharePointSources: The RagFile is imported from a SharePoint source. + SharePointSources *GoogleCloudAiplatformV1beta1SharePointSources `json:"sharePointSources,omitempty"` // SizeBytes: Output only. The size of the RagFile in bytes. SizeBytes int64 `json:"sizeBytes,omitempty,string"` // SlackSource: The RagFile is imported from a Slack channel. @@ -25984,6 +26134,41 @@ func (s GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec) MarshalJSON( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1RebaseTunedModelRequest: Request message for +// GenAiTuningService.RebaseTunedModel. +type GoogleCloudAiplatformV1beta1RebaseTunedModelRequest struct { + // ArtifactDestination: Optional. The Google Cloud Storage location to write + // the artifacts. + ArtifactDestination *GoogleCloudAiplatformV1beta1GcsDestination `json:"artifactDestination,omitempty"` + // DeployToSameEndpoint: Optional. By default, bison to gemini migration will + // always create new model/endpoint, but for gemini-1.0 to gemini-1.5 + // migration, we default deploy to the same endpoint. See details in this + // Section. + DeployToSameEndpoint bool `json:"deployToSameEndpoint,omitempty"` + // TunedModelRef: Required. TunedModel reference to retrieve the legacy model + // information. + TunedModelRef *GoogleCloudAiplatformV1beta1TunedModelRef `json:"tunedModelRef,omitempty"` + // TuningJob: Optional. The TuningJob to be updated. Users can use this + // TuningJob field to overwrite tuning configs. + TuningJob *GoogleCloudAiplatformV1beta1TuningJob `json:"tuningJob,omitempty"` + // ForceSendFields is a list of field names (e.g. "ArtifactDestination") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ArtifactDestination") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1RebaseTunedModelRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1RebaseTunedModelRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1RebootPersistentResourceOperationMetadata: // Details of operations that perform reboot PersistentResource. type GoogleCloudAiplatformV1beta1RebootPersistentResourceOperationMetadata struct { @@ -27504,6 +27689,9 @@ func (s GoogleCloudAiplatformV1beta1Scheduling) MarshalJSON() ([]byte, error) { // object (https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may // be added in the future as needed. type GoogleCloudAiplatformV1beta1Schema struct { + // AnyOf: Optional. The value should be validated against any (one or more) of + // the subschemas in the list. + AnyOf []*GoogleCloudAiplatformV1beta1Schema `json:"anyOf,omitempty"` // Default: Optional. Default value of the data. Default interface{} `json:"default,omitempty"` // Description: Optional. The description of the data. @@ -27566,13 +27754,13 @@ type GoogleCloudAiplatformV1beta1Schema struct { // "ARRAY" - OpenAPI array type // "OBJECT" - OpenAPI object type Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Default") to unconditionally + // ForceSendFields is a list of field names (e.g. "AnyOf") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Default") to include in API + // NullFields is a list of field names (e.g. "AnyOf") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -34282,6 +34470,71 @@ func (s GoogleCloudAiplatformV1beta1ServiceAccountSpec) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1SharePointSources: The SharePointSources to pass +// to ImportRagFiles. +type GoogleCloudAiplatformV1beta1SharePointSources struct { + // SharePointSources: The SharePoint sources. + SharePointSources []*GoogleCloudAiplatformV1beta1SharePointSourcesSharePointSource `json:"sharePointSources,omitempty"` + // ForceSendFields is a list of field names (e.g. "SharePointSources") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "SharePointSources") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1SharePointSources) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SharePointSources + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1SharePointSourcesSharePointSource: An individual +// SharePointSource. +type GoogleCloudAiplatformV1beta1SharePointSourcesSharePointSource struct { + // ClientId: The Application ID for the app registered in Microsoft Azure + // Portal. The application must also be configured with MS Graph permissions + // "Files.ReadAll", "Sites.ReadAll" and BrowserSiteLists.Read.All. + ClientId string `json:"clientId,omitempty"` + // ClientSecret: The application secret for the app registered in Azure. + ClientSecret *GoogleCloudAiplatformV1beta1ApiAuthApiKeyConfig `json:"clientSecret,omitempty"` + // DriveId: The ID of the drive to download from. + DriveId string `json:"driveId,omitempty"` + // DriveName: The name of the drive to download from. + DriveName string `json:"driveName,omitempty"` + // FileId: Output only. The SharePoint file id. Output only. + FileId string `json:"fileId,omitempty"` + // SharepointFolderId: The ID of the SharePoint folder to download from. + SharepointFolderId string `json:"sharepointFolderId,omitempty"` + // SharepointFolderPath: The path of the SharePoint folder to download from. + SharepointFolderPath string `json:"sharepointFolderPath,omitempty"` + // SharepointSiteName: The name of the SharePoint site to download from. This + // can be the site name or the site id. + SharepointSiteName string `json:"sharepointSiteName,omitempty"` + // TenantId: Unique identifier of the Azure Active Directory Instance. + TenantId string `json:"tenantId,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClientId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ClientId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1SharePointSourcesSharePointSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SharePointSourcesSharePointSource + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1ShieldedVmConfig: A set of Shielded Instance // options. See Images using supported Shielded VM features // (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm). @@ -37107,7 +37360,7 @@ type GoogleCloudAiplatformV1beta1Tool struct { // Model may decide to call a subset of these functions by populating // FunctionCall in the response. User should provide a FunctionResponse for // each function call in the next turn. Based on the function responses, Model - // will generate the final response back to the user. Maximum 64 function + // will generate the final response back to the user. Maximum 128 function // declarations can be provided. FunctionDeclarations []*GoogleCloudAiplatformV1beta1FunctionDeclaration `json:"functionDeclarations,omitempty"` // GoogleSearchRetrieval: Optional. GoogleSearchRetrieval tool type. @@ -38020,6 +38273,35 @@ func (s GoogleCloudAiplatformV1beta1TunedModel) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1TunedModelRef: TunedModel Reference for legacy +// model migration. +type GoogleCloudAiplatformV1beta1TunedModelRef struct { + // PipelineJob: Support migration from tuning job list page, from bison model + // to gemini model. + PipelineJob string `json:"pipelineJob,omitempty"` + // TunedModel: Support migration from model registry. + TunedModel string `json:"tunedModel,omitempty"` + // TuningJob: Support migration from tuning job list page, from + // gemini-1.0-pro-002 to 1.5 and above. + TuningJob string `json:"tuningJob,omitempty"` + // ForceSendFields is a list of field names (e.g. "PipelineJob") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PipelineJob") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1TunedModelRef) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1TunedModelRef + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1TuningDataStats: The tuning data statistic // values for TuningJob. type GoogleCloudAiplatformV1beta1TuningDataStats struct { @@ -116040,6 +116322,208 @@ func (c *ProjectsLocationsTuningJobsListCall) Pages(ctx context.Context, f func( } } +type ProjectsLocationsTuningJobsRebaseTunedModelCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1rebasetunedmodelrequest *GoogleCloudAiplatformV1beta1RebaseTunedModelRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RebaseTunedModel: Rebase a TunedModel. +// +// - parent: The resource name of the Location into which to rebase the Model. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsTuningJobsService) RebaseTunedModel(parent string, googlecloudaiplatformv1beta1rebasetunedmodelrequest *GoogleCloudAiplatformV1beta1RebaseTunedModelRequest) *ProjectsLocationsTuningJobsRebaseTunedModelCall { + c := &ProjectsLocationsTuningJobsRebaseTunedModelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1rebasetunedmodelrequest = googlecloudaiplatformv1beta1rebasetunedmodelrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTuningJobsRebaseTunedModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsTuningJobsRebaseTunedModelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTuningJobsRebaseTunedModelCall) Context(ctx context.Context) *ProjectsLocationsTuningJobsRebaseTunedModelCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTuningJobsRebaseTunedModelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTuningJobsRebaseTunedModelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1rebasetunedmodelrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/tuningJobs:rebaseTunedModel") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.tuningJobs.rebaseTunedModel" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsTuningJobsRebaseTunedModelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + 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 +} + +type ProjectsLocationsTuningJobsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsTuningJobsOperationsService) Delete(name string) *ProjectsLocationsTuningJobsOperationsDeleteCall { + c := &ProjectsLocationsTuningJobsOperationsDeleteCall{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 +// details. +func (c *ProjectsLocationsTuningJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTuningJobsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTuningJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsTuningJobsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTuningJobsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTuningJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", 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 "aiplatform.projects.locations.tuningJobs.operations.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsTuningJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + 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 +} + type PublishersModelsComputeTokensCall struct { s *Service endpoint string diff --git a/alloydb/v1/alloydb-api.json b/alloydb/v1/alloydb-api.json index bc792f08397..aa350ab30e3 100644 --- a/alloydb/v1/alloydb-api.json +++ b/alloydb/v1/alloydb-api.json @@ -1517,7 +1517,7 @@ } } }, - "revision": "20240828", + "revision": "20240909", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -1606,19 +1606,22 @@ "DATABASE_VERSION_UNSPECIFIED", "POSTGRES_13", "POSTGRES_14", - "POSTGRES_15" + "POSTGRES_15", + "POSTGRES_16" ], "enumDeprecated": [ false, true, false, + false, false ], "enumDescriptions": [ "This is an unknown database version.", "DEPRECATED - The database version is Postgres 13.", "The database version is Postgres 14.", - "The database version is Postgres 15." + "The database version is Postgres 15.", + "The database version is Postgres 16." ], "readOnly": true, "type": "string" @@ -1862,19 +1865,22 @@ "DATABASE_VERSION_UNSPECIFIED", "POSTGRES_13", "POSTGRES_14", - "POSTGRES_15" + "POSTGRES_15", + "POSTGRES_16" ], "enumDeprecated": [ false, true, false, + false, false ], "enumDescriptions": [ "This is an unknown database version.", "DEPRECATED - The database version is Postgres 13.", "The database version is Postgres 14.", - "The database version is Postgres 15." + "The database version is Postgres 15.", + "The database version is Postgres 16." ], "type": "string" }, @@ -2053,19 +2059,22 @@ "DATABASE_VERSION_UNSPECIFIED", "POSTGRES_13", "POSTGRES_14", - "POSTGRES_15" + "POSTGRES_15", + "POSTGRES_16" ], "enumDeprecated": [ false, true, false, + false, false ], "enumDescriptions": [ "This is an unknown database version.", "DEPRECATED - The database version is Postgres 13.", "The database version is Postgres 14.", - "The database version is Postgres 15." + "The database version is Postgres 15.", + "The database version is Postgres 16." ], "type": "string" }, @@ -2095,7 +2104,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -2103,7 +2114,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } @@ -2636,7 +2649,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -2644,7 +2659,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } @@ -3312,7 +3329,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -3320,7 +3339,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } @@ -3938,7 +3959,7 @@ "type": "object" }, "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata": { - "description": "Common model for database resource instance metadata.", + "description": "Common model for database resource instance metadata. Next ID: 21", "id": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata", "properties": { "availabilityConfiguration": { @@ -4077,6 +4098,10 @@ "description": "Required. Different from DatabaseResourceId.unique_id, a resource name can be reused over time. That is, after a resource named \"ABC\" is deleted, the name \"ABC\" can be used to to create a new resource within the same source. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel", "type": "string" }, + "tagsSet": { + "$ref": "StorageDatabasecenterPartnerapiV1mainTags", + "description": "Optional. Tags associated with this resources." + }, "updationTime": { "description": "The time at which the resource was updated and recorded at partner service.", "format": "google-datetime", @@ -4463,6 +4488,11 @@ "description": "Memory size in bytes. TODO(b/342344482, b/342346271) add proto validations again after bug fix.", "format": "int64", "type": "string" + }, + "shardCount": { + "description": "Optional. Number of shards (if applicable).", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -4590,6 +4620,20 @@ }, "type": "object" }, + "StorageDatabasecenterPartnerapiV1mainTags": { + "description": "Message type for storing tags. Tags provide a way to create annotations for resources, and in some cases conditionally allow or deny policies based on whether a resource has a specific tag.", + "id": "StorageDatabasecenterPartnerapiV1mainTags", + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "The Tag key/value mappings.", + "type": "object" + } + }, + "type": "object" + }, "StorageDatabasecenterPartnerapiV1mainUserLabels": { "description": "Message type for storing user labels. User labels are used to tag App Engine resources, allowing users to search for resources matching a set of labels and to aggregate usage data by labels.", "id": "StorageDatabasecenterPartnerapiV1mainUserLabels", @@ -4792,19 +4836,22 @@ "DATABASE_VERSION_UNSPECIFIED", "POSTGRES_13", "POSTGRES_14", - "POSTGRES_15" + "POSTGRES_15", + "POSTGRES_16" ], "enumDeprecated": [ false, true, false, + false, false ], "enumDescriptions": [ "This is an unknown database version.", "DEPRECATED - The database version is Postgres 13.", "The database version is Postgres 14.", - "The database version is Postgres 15." + "The database version is Postgres 15.", + "The database version is Postgres 16." ], "type": "string" }, @@ -4906,19 +4953,22 @@ "DATABASE_VERSION_UNSPECIFIED", "POSTGRES_13", "POSTGRES_14", - "POSTGRES_15" + "POSTGRES_15", + "POSTGRES_16" ], "enumDeprecated": [ false, true, false, + false, false ], "enumDescriptions": [ "This is an unknown database version.", "DEPRECATED - The database version is Postgres 13.", "The database version is Postgres 14.", - "The database version is Postgres 15." + "The database version is Postgres 15.", + "The database version is Postgres 16." ], "type": "string" } @@ -4948,7 +4998,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -4956,7 +5008,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } diff --git a/alloydb/v1/alloydb-gen.go b/alloydb/v1/alloydb-gen.go index e93dcea8c95..8418ed17cdf 100644 --- a/alloydb/v1/alloydb-gen.go +++ b/alloydb/v1/alloydb-gen.go @@ -341,6 +341,7 @@ type Backup struct { // "POSTGRES_13" - DEPRECATED - The database version is Postgres 13. // "POSTGRES_14" - The database version is Postgres 14. // "POSTGRES_15" - The database version is Postgres 15. + // "POSTGRES_16" - The database version is Postgres 16. DatabaseVersion string `json:"databaseVersion,omitempty"` // DeleteTime: Output only. Delete time stamp DeleteTime string `json:"deleteTime,omitempty"` @@ -567,6 +568,7 @@ type Cluster struct { // "POSTGRES_13" - DEPRECATED - The database version is Postgres 13. // "POSTGRES_14" - The database version is Postgres 14. // "POSTGRES_15" - The database version is Postgres 15. + // "POSTGRES_16" - The database version is Postgres 16. DatabaseVersion string `json:"databaseVersion,omitempty"` // DeleteTime: Output only. Delete time stamp DeleteTime string `json:"deleteTime,omitempty"` @@ -709,6 +711,7 @@ type ClusterUpgradeDetails struct { // "POSTGRES_13" - DEPRECATED - The database version is Postgres 13. // "POSTGRES_14" - The database version is Postgres 14. // "POSTGRES_15" - The database version is Postgres 15. + // "POSTGRES_16" - The database version is Postgres 16. DatabaseVersion string `json:"databaseVersion,omitempty"` // InstanceUpgradeDetails: Upgrade details of the instances directly associated // with this cluster. @@ -726,6 +729,8 @@ type ClusterUpgradeDetails struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. UpgradeStatus string `json:"upgradeStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterType") to // unconditionally include in API requests. By default, fields with empty or @@ -1345,6 +1350,8 @@ type InstanceUpgradeDetails struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. UpgradeStatus string `json:"upgradeStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceType") to // unconditionally include in API requests. By default, fields with empty or @@ -2272,6 +2279,8 @@ type StageInfo struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "LogsUrl") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -2874,7 +2883,7 @@ func (s StorageDatabasecenterPartnerapiV1mainDatabaseResourceId) MarshalJSON() ( } // StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata: Common model -// for database resource instance metadata. +// for database resource instance metadata. Next ID: 21 type StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata struct { // AvailabilityConfiguration: Availability configuration for this instance AvailabilityConfiguration *StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration `json:"availabilityConfiguration,omitempty"` @@ -2952,6 +2961,8 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata struct { // the same source. Resource name to follow CAIS resource_name format as noted // here go/condor-common-datamodel ResourceName string `json:"resourceName,omitempty"` + // TagsSet: Optional. Tags associated with this resources. + TagsSet *StorageDatabasecenterPartnerapiV1mainTags `json:"tagsSet,omitempty"` // UpdationTime: The time at which the resource was updated and recorded at // partner service. UpdationTime string `json:"updationTime,omitempty"` @@ -3308,6 +3319,8 @@ type StorageDatabasecenterPartnerapiV1mainMachineConfiguration struct { // MemorySizeInBytes: Memory size in bytes. TODO(b/342344482, b/342346271) add // proto validations again after bug fix. MemorySizeInBytes int64 `json:"memorySizeInBytes,omitempty,string"` + // ShardCount: Optional. Number of shards (if applicable). + ShardCount int64 `json:"shardCount,omitempty"` // ForceSendFields is a list of field names (e.g. "CpuCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -3443,6 +3456,31 @@ func (s StorageDatabasecenterPartnerapiV1mainRetentionSettings) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// StorageDatabasecenterPartnerapiV1mainTags: Message type for storing tags. +// Tags provide a way to create annotations for resources, and in some cases +// conditionally allow or deny policies based on whether a resource has a +// specific tag. +type StorageDatabasecenterPartnerapiV1mainTags struct { + // Tags: The Tag key/value mappings. + Tags map[string]string `json:"tags,omitempty"` + // ForceSendFields is a list of field names (e.g. "Tags") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Tags") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StorageDatabasecenterPartnerapiV1mainTags) MarshalJSON() ([]byte, error) { + type NoMethod StorageDatabasecenterPartnerapiV1mainTags + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // StorageDatabasecenterPartnerapiV1mainUserLabels: Message type for storing // user labels. User labels are used to tag App Engine resources, allowing // users to search for resources matching a set of labels and to aggregate @@ -3637,6 +3675,7 @@ type SupportedDatabaseFlag struct { // "POSTGRES_13" - DEPRECATED - The database version is Postgres 13. // "POSTGRES_14" - The database version is Postgres 14. // "POSTGRES_15" - The database version is Postgres 15. + // "POSTGRES_16" - The database version is Postgres 16. SupportedDbVersions []string `json:"supportedDbVersions,omitempty"` // Possible values: // "VALUE_TYPE_UNSPECIFIED" - This is an unknown flag type. @@ -3780,6 +3819,7 @@ type UpgradeClusterRequest struct { // "POSTGRES_13" - DEPRECATED - The database version is Postgres 13. // "POSTGRES_14" - The database version is Postgres 14. // "POSTGRES_15" - The database version is Postgres 15. + // "POSTGRES_16" - The database version is Postgres 16. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -3817,6 +3857,8 @@ type UpgradeClusterResponse struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterUpgradeDetails") to // unconditionally include in API requests. By default, fields with empty or diff --git a/composer/v1/composer-api.json b/composer/v1/composer-api.json index 21c00954259..3413aaf8dd1 100644 --- a/composer/v1/composer-api.json +++ b/composer/v1/composer-api.json @@ -15,6 +15,13 @@ "description": "Manages Apache Airflow environments on Google Cloud Platform.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/composer/", + "endpoints": [ + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.us-south1.rep.googleapis.com/", + "location": "us-south1" + } + ], "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -966,7 +973,7 @@ } } }, - "revision": "20240716", + "revision": "20240917", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AirflowMetadataRetentionPolicyConfig": { diff --git a/composer/v1beta1/composer-api.json b/composer/v1beta1/composer-api.json index 92f27591643..1982241bd9a 100644 --- a/composer/v1beta1/composer-api.json +++ b/composer/v1beta1/composer-api.json @@ -15,6 +15,13 @@ "description": "Manages Apache Airflow environments on Google Cloud Platform.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/composer/", + "endpoints": [ + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.us-south1.rep.googleapis.com/", + "location": "us-south1" + } + ], "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -994,7 +1001,7 @@ } } }, - "revision": "20240716", + "revision": "20240917", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AirflowMetadataRetentionPolicyConfig": { diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index fcf10a73c27..2e8649e05f6 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -37779,7 +37779,7 @@ } } }, - "revision": "20240903", + "revision": "20240919", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -42308,7 +42308,7 @@ }, "locationPolicy": { "$ref": "LocationPolicy", - "description": "Policy for chosing target zone. For more information, see Create VMs in bulk ." + "description": "Policy for choosing target zone. For more information, see Create VMs in bulk." }, "minCount": { "description": "The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted.", @@ -43200,12 +43200,14 @@ "enum": [ "CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED", "SEV", - "SEV_SNP" + "SEV_SNP", + "TDX" ], "enumDescriptions": [ "No type specified. Do not use this value.", "AMD Secure Encrypted Virtualization.", - "AMD Secure Encrypted Virtualization - Secure Nested Paging." + "AMD Secure Encrypted Virtualization - Secure Nested Paging.", + "Intel Trust Domain eXtension." ], "type": "string" }, @@ -55245,7 +55247,7 @@ "type": "boolean" }, "availableFeatures": { - "description": "[Output only] List of features available for this Interconnect connection, which can take one of the following values: - MACSEC If present then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present then the Interconnect connection is provisioned on non-MACsec capable ports and MACsec isn't supported and enabling MACsec fails.", + "description": "[Output only] List of features available for this Interconnect connection, which can take one of the following values: - IF_MACSEC If present then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present then the Interconnect connection is provisioned on non-MACsec capable ports and MACsec isn't supported and enabling MACsec fails.", "items": { "enum": [ "IF_MACSEC" @@ -55398,7 +55400,7 @@ "type": "string" }, "requestedFeatures": { - "description": "Optional. List of features requested for this Interconnect connection, which can take one of the following values: - MACSEC If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available. This parameter can be provided only with Interconnect INSERT. It isn't valid for Interconnect PATCH.", + "description": "Optional. List of features requested for this Interconnect connection, which can take one of the following values: - IF_MACSEC If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available. This parameter can be provided only with Interconnect INSERT. It isn't valid for Interconnect PATCH.", "items": { "enum": [ "IF_MACSEC" diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index 1a0dde8f2d2..c149bd86169 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -6819,8 +6819,8 @@ type BulkInsertInstanceResource struct { // InstanceProperties: The instance properties defining the VM instances to be // created. Required if sourceInstanceTemplate is not provided. InstanceProperties *InstanceProperties `json:"instanceProperties,omitempty"` - // LocationPolicy: Policy for chosing target zone. For more information, see - // Create VMs in bulk . + // LocationPolicy: Policy for choosing target zone. For more information, see + // Create VMs in bulk. LocationPolicy *LocationPolicy `json:"locationPolicy,omitempty"` // MinCount: The minimum number of instances to create. If no min_count is // specified then count is used as the default value. If min_count instances @@ -7706,6 +7706,7 @@ type ConfidentialInstanceConfig struct { // this value. // "SEV" - AMD Secure Encrypted Virtualization. // "SEV_SNP" - AMD Secure Encrypted Virtualization - Secure Nested Paging. + // "TDX" - Intel Trust Domain eXtension. ConfidentialInstanceType string `json:"confidentialInstanceType,omitempty"` // EnableConfidentialCompute: Defines whether the instance should have // confidential compute enabled. @@ -21704,10 +21705,10 @@ type Interconnect struct { AdminEnabled bool `json:"adminEnabled,omitempty"` // AvailableFeatures: [Output only] List of features available for this // Interconnect connection, which can take one of the following values: - - // MACSEC If present then the Interconnect connection is provisioned on MACsec - // capable hardware ports. If not present then the Interconnect connection is - // provisioned on non-MACsec capable ports and MACsec isn't supported and - // enabling MACsec fails. + // IF_MACSEC If present then the Interconnect connection is provisioned on + // MACsec capable hardware ports. If not present then the Interconnect + // connection is provisioned on non-MACsec capable ports and MACsec isn't + // supported and enabling MACsec fails. // // Possible values: // "IF_MACSEC" - Media Access Control security (MACsec) @@ -21831,7 +21832,7 @@ type Interconnect struct { RemoteLocation string `json:"remoteLocation,omitempty"` // RequestedFeatures: Optional. List of features requested for this // Interconnect connection, which can take one of the following values: - - // MACSEC If specified then the connection is created on MACsec capable + // IF_MACSEC If specified then the connection is created on MACsec capable // hardware ports. If not specified, the default value is false, which // allocates non-MACsec capable ports first if available. This parameter can be // provided only with Interconnect INSERT. It isn't valid for Interconnect diff --git a/connectors/v1/connectors-api.json b/connectors/v1/connectors-api.json index 97be8fcdbcc..4470a42cb81 100644 --- a/connectors/v1/connectors-api.json +++ b/connectors/v1/connectors-api.json @@ -2497,7 +2497,7 @@ } } }, - "revision": "20240904", + "revision": "20240918", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "AuditConfig": { @@ -2802,6 +2802,10 @@ "description": "The client ID assigned to the Google Cloud Connectors OAuth app for the connector data source.", "type": "string" }, + "clientSecret": { + "$ref": "Secret", + "description": "Optional. The client secret assigned to the Google Cloud Connectors OAuth app for the connector data source." + }, "enablePkce": { "description": "Whether to enable PKCE for the auth code flow.", "type": "boolean" diff --git a/connectors/v1/connectors-gen.go b/connectors/v1/connectors-gen.go index 08ef23a15dd..c18c3390d53 100644 --- a/connectors/v1/connectors-gen.go +++ b/connectors/v1/connectors-gen.go @@ -688,6 +688,9 @@ type AuthorizationCodeLink struct { // ClientId: The client ID assigned to the Google Cloud Connectors OAuth app // for the connector data source. ClientId string `json:"clientId,omitempty"` + // ClientSecret: Optional. The client secret assigned to the Google Cloud + // Connectors OAuth app for the connector data source. + ClientSecret *Secret `json:"clientSecret,omitempty"` // EnablePkce: Whether to enable PKCE for the auth code flow. EnablePkce bool `json:"enablePkce,omitempty"` // OmitQueryParams: Optional. Omit query params from the redirect URI. diff --git a/dlp/v2/dlp-api.json b/dlp/v2/dlp-api.json index fb28ac8587d..5a71bf1dd0a 100644 --- a/dlp/v2/dlp-api.json +++ b/dlp/v2/dlp-api.json @@ -1432,7 +1432,7 @@ ], "parameters": { "filter": { - "description": "Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `project_id` - The Google Cloud project ID. - `file_store_path` - The path like \"gs://bucket\". - `data_source_type` - The profile's data source type, like \"google/storage/bucket\". - `data_storage_location` - The location where the file store's data is stored, like \"us-central1\". - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND resource_visibility = PUBLIC` * `file_store_path = \"gs://mybucket\"` The length of this field should be no more than 500 characters.", + "description": "Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `project_id` - The Google Cloud project ID. - `account_id` - The AWS account ID. - `file_store_path` - The path like \"gs://bucket\". - `data_source_type` - The profile's data source type, like \"google/storage/bucket\". - `data_storage_location` - The location where the file store's data is stored, like \"us-central1\". - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND resource_visibility = PUBLIC` * `file_store_path = \"gs://mybucket\"` The length of this field should be no more than 500 characters.", "location": "query", "type": "string" }, @@ -4065,7 +4065,7 @@ ], "parameters": { "filter": { - "description": "Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `project_id` - The Google Cloud project ID. - `file_store_path` - The path like \"gs://bucket\". - `data_source_type` - The profile's data source type, like \"google/storage/bucket\". - `data_storage_location` - The location where the file store's data is stored, like \"us-central1\". - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND resource_visibility = PUBLIC` * `file_store_path = \"gs://mybucket\"` The length of this field should be no more than 500 characters.", + "description": "Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `project_id` - The Google Cloud project ID. - `account_id` - The AWS account ID. - `file_store_path` - The path like \"gs://bucket\". - `data_source_type` - The profile's data source type, like \"google/storage/bucket\". - `data_storage_location` - The location where the file store's data is stored, like \"us-central1\". - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND resource_visibility = PUBLIC` * `file_store_path = \"gs://mybucket\"` The length of this field should be no more than 500 characters.", "location": "query", "type": "string" }, @@ -5015,7 +5015,7 @@ } } }, - "revision": "20240901", + "revision": "20240916", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -5100,6 +5100,83 @@ "properties": {}, "type": "object" }, + "GooglePrivacyDlpV2AmazonS3Bucket": { + "description": "Amazon S3 bucket.", + "id": "GooglePrivacyDlpV2AmazonS3Bucket", + "properties": { + "awsAccount": { + "$ref": "GooglePrivacyDlpV2AwsAccount", + "description": "The AWS account." + }, + "bucketName": { + "description": "Required. The bucket name.", + "type": "string" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2AmazonS3BucketConditions": { + "description": "Amazon S3 bucket conditions.", + "id": "GooglePrivacyDlpV2AmazonS3BucketConditions", + "properties": { + "bucketTypes": { + "description": "Optional. Bucket types that should be profiled. Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.", + "items": { + "enum": [ + "TYPE_UNSPECIFIED", + "TYPE_ALL_SUPPORTED", + "TYPE_GENERAL_PURPOSE" + ], + "enumDescriptions": [ + "Unused.", + "All supported classes.", + "A general purpose Amazon S3 bucket." + ], + "type": "string" + }, + "type": "array" + }, + "objectStorageClasses": { + "description": "Optional. Object classes that should be profiled. Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.", + "items": { + "enum": [ + "UNSPECIFIED", + "ALL_SUPPORTED_CLASSES", + "STANDARD", + "STANDARD_INFREQUENT_ACCESS", + "GLACIER_INSTANT_RETRIEVAL", + "INTELLIGENT_TIERING" + ], + "enumDescriptions": [ + "Unused.", + "All supported classes.", + "Standard object class.", + "Standard - infrequent access object class.", + "Glacier - instant retrieval object class.", + "Objects in the S3 Intelligent-Tiering access tiers." + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2AmazonS3BucketRegex": { + "description": "Amazon S3 bucket regex.", + "id": "GooglePrivacyDlpV2AmazonS3BucketRegex", + "properties": { + "awsAccountRegex": { + "$ref": "GooglePrivacyDlpV2AwsAccountRegex", + "description": "The AWS account regex." + }, + "bucketNameRegex": { + "description": "Optional. Regex to test the bucket name against. If empty, all buckets match.", + "type": "string" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails": { "description": "Result of a risk analysis operation request.", "id": "GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails", @@ -5165,6 +5242,43 @@ }, "type": "object" }, + "GooglePrivacyDlpV2AwsAccount": { + "description": "AWS account.", + "id": "GooglePrivacyDlpV2AwsAccount", + "properties": { + "accountId": { + "description": "Required. AWS account ID.", + "type": "string" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2AwsAccountRegex": { + "description": "AWS account regex.", + "id": "GooglePrivacyDlpV2AwsAccountRegex", + "properties": { + "accountIdRegex": { + "description": "Optional. Regex to test the AWS account ID against. If empty, all accounts match.", + "type": "string" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2AwsDiscoveryStartingLocation": { + "description": "The AWS starting location for discovery.", + "id": "GooglePrivacyDlpV2AwsDiscoveryStartingLocation", + "properties": { + "accountId": { + "description": "The AWS account ID that this discovery config applies to. Within an AWS organization, you can find the AWS account ID inside an AWS account ARN. Example: arn:{partition}:organizations::{management_account_id}:account/{org_id}/{account_id}", + "type": "string" + }, + "allAssetInventoryAssets": { + "description": "All AWS assets stored in Asset Inventory that didn't match other AWS discovery configs.", + "type": "boolean" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2BigQueryDiscoveryTarget": { "description": "Target used to match against for discovery with BigQuery tables", "id": "GooglePrivacyDlpV2BigQueryDiscoveryTarget", @@ -6610,6 +6724,10 @@ "$ref": "GooglePrivacyDlpV2DataProfileLocation", "description": "The data to scan." }, + "otherCloudStartingLocation": { + "$ref": "GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation", + "description": "Must be set only when scanning other clouds." + }, "projectId": { "description": "The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the Cloud DLP API must be enabled.", "type": "string" @@ -7495,6 +7613,10 @@ "$ref": "GooglePrivacyDlpV2OrgConfig", "description": "Only set when the parent is an org." }, + "otherCloudStartingLocation": { + "$ref": "GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation", + "description": "Must be set only when scanning other clouds." + }, "status": { "description": "Required. A status for this configuration.", "enum": [ @@ -7604,6 +7726,68 @@ }, "type": "object" }, + "GooglePrivacyDlpV2DiscoveryOtherCloudConditions": { + "description": "Requirements that must be true before a resource is profiled for the first time.", + "id": "GooglePrivacyDlpV2DiscoveryOtherCloudConditions", + "properties": { + "amazonS3BucketConditions": { + "$ref": "GooglePrivacyDlpV2AmazonS3BucketConditions", + "description": "Amazon S3 bucket conditions." + }, + "minAge": { + "description": "Minimum age a resource must be before Cloud DLP can profile it. Value must be 1 hour or greater.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2DiscoveryOtherCloudFilter": { + "description": "Determines which resources from the other cloud will have profiles generated. Includes the ability to filter by resource names.", + "id": "GooglePrivacyDlpV2DiscoveryOtherCloudFilter", + "properties": { + "collection": { + "$ref": "GooglePrivacyDlpV2OtherCloudResourceCollection", + "description": "A collection of resources for this filter to apply to." + }, + "others": { + "$ref": "GooglePrivacyDlpV2AllOtherResources", + "description": "Optional. Catch-all. This should always be the last target in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically." + }, + "singleResource": { + "$ref": "GooglePrivacyDlpV2OtherCloudSingleResourceReference", + "description": "The resource to scan. Configs using this filter can only have one target (the target with this single resource reference)." + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2DiscoveryOtherCloudGenerationCadence": { + "description": "How often existing resources should have their profiles refreshed. New resources are scanned as quickly as possible depending on system capacity.", + "id": "GooglePrivacyDlpV2DiscoveryOtherCloudGenerationCadence", + "properties": { + "inspectTemplateModifiedCadence": { + "$ref": "GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence", + "description": "Optional. Governs when to update data profiles when the inspection rules defined by the `InspectTemplate` change. If not set, changing the template will not cause a data profile to update." + }, + "refreshFrequency": { + "description": "Optional. Frequency to update profiles regardless of whether the underlying resource has changes. Defaults to never.", + "enum": [ + "UPDATE_FREQUENCY_UNSPECIFIED", + "UPDATE_FREQUENCY_NEVER", + "UPDATE_FREQUENCY_DAILY", + "UPDATE_FREQUENCY_MONTHLY" + ], + "enumDescriptions": [ + "Unspecified.", + "After the data profile is created, it will never be updated.", + "The data profile can be updated up to once every 24 hours.", + "The data profile can be updated up to once every 30 days. Default." + ], + "type": "string" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2DiscoverySchemaModifiedCadence": { "description": "The cadence at which to update data profiles when a schema is modified.", "id": "GooglePrivacyDlpV2DiscoverySchemaModifiedCadence", @@ -7715,6 +7899,10 @@ "$ref": "GooglePrivacyDlpV2CloudStorageDiscoveryTarget", "description": "Cloud Storage target for Discovery. The first target to match a table will be the one applied." }, + "otherCloudTarget": { + "$ref": "GooglePrivacyDlpV2OtherCloudDiscoveryTarget", + "description": "Other clouds target for discovery. The first target to match a resource will be the one applied." + }, "secretsTarget": { "$ref": "GooglePrivacyDlpV2SecretsDiscoveryTarget", "description": "Discovery target that looks for credentials and secrets stored in cloud resource metadata and reports them as vulnerabilities to Security Command Center. Only one target of this type is allowed." @@ -8134,7 +8322,7 @@ "type": "object" }, "GooglePrivacyDlpV2FileStoreDataProfile": { - "description": "The profile for a file store. * Cloud Storage: maps 1:1 with a bucket.", + "description": "The profile for a file store. * Cloud Storage: maps 1:1 with a bucket. * Amazon S3: maps 1:1 with a bucket.", "id": "GooglePrivacyDlpV2FileStoreDataProfile", "properties": { "configSnapshot": { @@ -8180,15 +8368,15 @@ "type": "boolean" }, "fileStoreLocation": { - "description": "The location of the file store. * Cloud Storage: https://cloud.google.com/storage/docs/locations#available-locations", + "description": "The location of the file store. * Cloud Storage: https://cloud.google.com/storage/docs/locations#available-locations * Amazon S3: https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints", "type": "string" }, "fileStorePath": { - "description": "The file store path. * Cloud Storage: `gs://{bucket}`", + "description": "The file store path. * Cloud Storage: `gs://{bucket}` * Amazon S3: `s3://{bucket}`", "type": "string" }, "fullResource": { - "description": "The resource name of the resource profiled. https://cloud.google.com/apis/design/resource_names#full_resource_name", + "description": "The resource name of the resource profiled. https://cloud.google.com/apis/design/resource_names#full_resource_name Example format of an S3 bucket full resource name: `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}`", "type": "string" }, "lastModifiedTime": { @@ -8218,7 +8406,7 @@ "type": "string" }, "projectId": { - "description": "The Google Cloud project ID that owns the resource.", + "description": "The Google Cloud project ID that owns the resource. For Amazon S3 buckets, this is the AWS Account Id.", "type": "string" }, "resourceAttributes": { @@ -10042,6 +10230,91 @@ }, "type": "object" }, + "GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation": { + "description": "The other cloud starting location for discovery.", + "id": "GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation", + "properties": { + "awsLocation": { + "$ref": "GooglePrivacyDlpV2AwsDiscoveryStartingLocation", + "description": "The AWS starting location for discovery." + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2OtherCloudDiscoveryTarget": { + "description": "Target used to match against for discovery of resources from other clouds. An [AWS connector in Security Command Center (Enterprise](https://cloud.google.com/security-command-center/docs/connect-scc-to-aws) is required to use this feature.", + "id": "GooglePrivacyDlpV2OtherCloudDiscoveryTarget", + "properties": { + "conditions": { + "$ref": "GooglePrivacyDlpV2DiscoveryOtherCloudConditions", + "description": "Optional. In addition to matching the filter, these conditions must be true before a profile is generated." + }, + "dataSourceType": { + "$ref": "GooglePrivacyDlpV2DataSourceType", + "description": "Required. The type of data profiles generated by this discovery target. Supported values are: * aws/s3/bucket" + }, + "disabled": { + "$ref": "GooglePrivacyDlpV2Disabled", + "description": "Disable profiling for resources that match this filter." + }, + "filter": { + "$ref": "GooglePrivacyDlpV2DiscoveryOtherCloudFilter", + "description": "Required. The resources that the discovery cadence applies to. The first target with a matching filter will be the one to apply to a resource." + }, + "generationCadence": { + "$ref": "GooglePrivacyDlpV2DiscoveryOtherCloudGenerationCadence", + "description": "How often and when to update data profiles. New resources that match both the filter and conditions are scanned as quickly as possible depending on system capacity." + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2OtherCloudResourceCollection": { + "description": "Match resources using regex filters.", + "id": "GooglePrivacyDlpV2OtherCloudResourceCollection", + "properties": { + "includeRegexes": { + "$ref": "GooglePrivacyDlpV2OtherCloudResourceRegexes", + "description": "A collection of regular expressions to match a resource against." + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2OtherCloudResourceRegex": { + "description": "A pattern to match against one or more resources. At least one pattern must be specified. Regular expressions use RE2 [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found under the google/re2 repository on GitHub.", + "id": "GooglePrivacyDlpV2OtherCloudResourceRegex", + "properties": { + "amazonS3BucketRegex": { + "$ref": "GooglePrivacyDlpV2AmazonS3BucketRegex", + "description": "Regex for Amazon S3 buckets." + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2OtherCloudResourceRegexes": { + "description": "A collection of regular expressions to determine what resources to match against.", + "id": "GooglePrivacyDlpV2OtherCloudResourceRegexes", + "properties": { + "patterns": { + "description": "A group of regular expression patterns to match against one or more resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB.", + "items": { + "$ref": "GooglePrivacyDlpV2OtherCloudResourceRegex" + }, + "type": "array" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2OtherCloudSingleResourceReference": { + "description": "Identifies a single resource, like a single Amazon S3 bucket.", + "id": "GooglePrivacyDlpV2OtherCloudSingleResourceReference", + "properties": { + "amazonS3Bucket": { + "$ref": "GooglePrivacyDlpV2AmazonS3Bucket", + "description": "Amazon S3 bucket." + } + }, + "type": "object" + }, "GooglePrivacyDlpV2OtherInfoTypeSummary": { "description": "Infotype details for other infoTypes found within a column.", "id": "GooglePrivacyDlpV2OtherInfoTypeSummary", diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index 983f4e213ff..e1c1003295e 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -736,6 +736,95 @@ type GooglePrivacyDlpV2AllOtherResources struct { type GooglePrivacyDlpV2AllText struct { } +// GooglePrivacyDlpV2AmazonS3Bucket: Amazon S3 bucket. +type GooglePrivacyDlpV2AmazonS3Bucket struct { + // AwsAccount: The AWS account. + AwsAccount *GooglePrivacyDlpV2AwsAccount `json:"awsAccount,omitempty"` + // BucketName: Required. The bucket name. + BucketName string `json:"bucketName,omitempty"` + // ForceSendFields is a list of field names (e.g. "AwsAccount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AwsAccount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2AmazonS3Bucket) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2AmazonS3Bucket + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2AmazonS3BucketConditions: Amazon S3 bucket conditions. +type GooglePrivacyDlpV2AmazonS3BucketConditions struct { + // BucketTypes: Optional. Bucket types that should be profiled. Optional. + // Defaults to TYPE_ALL_SUPPORTED if unspecified. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Unused. + // "TYPE_ALL_SUPPORTED" - All supported classes. + // "TYPE_GENERAL_PURPOSE" - A general purpose Amazon S3 bucket. + BucketTypes []string `json:"bucketTypes,omitempty"` + // ObjectStorageClasses: Optional. Object classes that should be profiled. + // Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified. + // + // Possible values: + // "UNSPECIFIED" - Unused. + // "ALL_SUPPORTED_CLASSES" - All supported classes. + // "STANDARD" - Standard object class. + // "STANDARD_INFREQUENT_ACCESS" - Standard - infrequent access object class. + // "GLACIER_INSTANT_RETRIEVAL" - Glacier - instant retrieval object class. + // "INTELLIGENT_TIERING" - Objects in the S3 Intelligent-Tiering access + // tiers. + ObjectStorageClasses []string `json:"objectStorageClasses,omitempty"` + // ForceSendFields is a list of field names (e.g. "BucketTypes") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BucketTypes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2AmazonS3BucketConditions) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2AmazonS3BucketConditions + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2AmazonS3BucketRegex: Amazon S3 bucket regex. +type GooglePrivacyDlpV2AmazonS3BucketRegex struct { + // AwsAccountRegex: The AWS account regex. + AwsAccountRegex *GooglePrivacyDlpV2AwsAccountRegex `json:"awsAccountRegex,omitempty"` + // BucketNameRegex: Optional. Regex to test the bucket name against. If empty, + // all buckets match. + BucketNameRegex string `json:"bucketNameRegex,omitempty"` + // ForceSendFields is a list of field names (e.g. "AwsAccountRegex") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AwsAccountRegex") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2AmazonS3BucketRegex) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2AmazonS3BucketRegex + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails: Result of a risk analysis // operation request. type GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails struct { @@ -809,6 +898,81 @@ func (s GooglePrivacyDlpV2AuxiliaryTable) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2AwsAccount: AWS account. +type GooglePrivacyDlpV2AwsAccount struct { + // AccountId: Required. AWS account ID. + AccountId string `json:"accountId,omitempty"` + // ForceSendFields is a list of field names (e.g. "AccountId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2AwsAccount) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2AwsAccount + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2AwsAccountRegex: AWS account regex. +type GooglePrivacyDlpV2AwsAccountRegex struct { + // AccountIdRegex: Optional. Regex to test the AWS account ID against. If + // empty, all accounts match. + AccountIdRegex string `json:"accountIdRegex,omitempty"` + // ForceSendFields is a list of field names (e.g. "AccountIdRegex") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AccountIdRegex") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2AwsAccountRegex) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2AwsAccountRegex + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2AwsDiscoveryStartingLocation: The AWS starting location +// for discovery. +type GooglePrivacyDlpV2AwsDiscoveryStartingLocation struct { + // AccountId: The AWS account ID that this discovery config applies to. Within + // an AWS organization, you can find the AWS account ID inside an AWS account + // ARN. Example: + // arn:{partition}:organizations::{management_account_id}:account/{org_id}/{acco + // unt_id} + AccountId string `json:"accountId,omitempty"` + // AllAssetInventoryAssets: All AWS assets stored in Asset Inventory that + // didn't match other AWS discovery configs. + AllAssetInventoryAssets bool `json:"allAssetInventoryAssets,omitempty"` + // ForceSendFields is a list of field names (e.g. "AccountId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2AwsDiscoveryStartingLocation) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2AwsDiscoveryStartingLocation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2BigQueryDiscoveryTarget: Target used to match against for // discovery with BigQuery tables type GooglePrivacyDlpV2BigQueryDiscoveryTarget struct { @@ -2804,6 +2968,8 @@ type GooglePrivacyDlpV2DataProfileJobConfig struct { InspectTemplates []string `json:"inspectTemplates,omitempty"` // Location: The data to scan. Location *GooglePrivacyDlpV2DataProfileLocation `json:"location,omitempty"` + // OtherCloudStartingLocation: Must be set only when scanning other clouds. + OtherCloudStartingLocation *GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation `json:"otherCloudStartingLocation,omitempty"` // ProjectId: The project that will run the scan. The DLP service account that // exists within this project must have access to all resources that are // profiled, and the Cloud DLP API must be enabled. @@ -4124,6 +4290,8 @@ type GooglePrivacyDlpV2DiscoveryConfig struct { Name string `json:"name,omitempty"` // OrgConfig: Only set when the parent is an org. OrgConfig *GooglePrivacyDlpV2OrgConfig `json:"orgConfig,omitempty"` + // OtherCloudStartingLocation: Must be set only when scanning other clouds. + OtherCloudStartingLocation *GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation `json:"otherCloudStartingLocation,omitempty"` // Status: Required. A status for this configuration. // // Possible values: @@ -4266,6 +4434,103 @@ func (s GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence) MarshalJSON() return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2DiscoveryOtherCloudConditions: Requirements that must be +// true before a resource is profiled for the first time. +type GooglePrivacyDlpV2DiscoveryOtherCloudConditions struct { + // AmazonS3BucketConditions: Amazon S3 bucket conditions. + AmazonS3BucketConditions *GooglePrivacyDlpV2AmazonS3BucketConditions `json:"amazonS3BucketConditions,omitempty"` + // MinAge: Minimum age a resource must be before Cloud DLP can profile it. + // Value must be 1 hour or greater. + MinAge string `json:"minAge,omitempty"` + // ForceSendFields is a list of field names (e.g. "AmazonS3BucketConditions") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AmazonS3BucketConditions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2DiscoveryOtherCloudConditions) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2DiscoveryOtherCloudConditions + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2DiscoveryOtherCloudFilter: Determines which resources from +// the other cloud will have profiles generated. Includes the ability to filter +// by resource names. +type GooglePrivacyDlpV2DiscoveryOtherCloudFilter struct { + // Collection: A collection of resources for this filter to apply to. + Collection *GooglePrivacyDlpV2OtherCloudResourceCollection `json:"collection,omitempty"` + // Others: Optional. Catch-all. This should always be the last target in the + // list because anything above it will apply first. Should only appear once in + // a configuration. If none is specified, a default one will be added + // automatically. + Others *GooglePrivacyDlpV2AllOtherResources `json:"others,omitempty"` + // SingleResource: The resource to scan. Configs using this filter can only + // have one target (the target with this single resource reference). + SingleResource *GooglePrivacyDlpV2OtherCloudSingleResourceReference `json:"singleResource,omitempty"` + // ForceSendFields is a list of field names (e.g. "Collection") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Collection") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2DiscoveryOtherCloudFilter) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2DiscoveryOtherCloudFilter + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2DiscoveryOtherCloudGenerationCadence: How often existing +// resources should have their profiles refreshed. New resources are scanned as +// quickly as possible depending on system capacity. +type GooglePrivacyDlpV2DiscoveryOtherCloudGenerationCadence struct { + // InspectTemplateModifiedCadence: Optional. Governs when to update data + // profiles when the inspection rules defined by the `InspectTemplate` change. + // If not set, changing the template will not cause a data profile to update. + InspectTemplateModifiedCadence *GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence `json:"inspectTemplateModifiedCadence,omitempty"` + // RefreshFrequency: Optional. Frequency to update profiles regardless of + // whether the underlying resource has changes. Defaults to never. + // + // Possible values: + // "UPDATE_FREQUENCY_UNSPECIFIED" - Unspecified. + // "UPDATE_FREQUENCY_NEVER" - After the data profile is created, it will + // never be updated. + // "UPDATE_FREQUENCY_DAILY" - The data profile can be updated up to once + // every 24 hours. + // "UPDATE_FREQUENCY_MONTHLY" - The data profile can be updated up to once + // every 30 days. Default. + RefreshFrequency string `json:"refreshFrequency,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "InspectTemplateModifiedCadence") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "InspectTemplateModifiedCadence") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2DiscoveryOtherCloudGenerationCadence) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2DiscoveryOtherCloudGenerationCadence + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2DiscoverySchemaModifiedCadence: The cadence at which to // update data profiles when a schema is modified. type GooglePrivacyDlpV2DiscoverySchemaModifiedCadence struct { @@ -4390,6 +4655,9 @@ type GooglePrivacyDlpV2DiscoveryTarget struct { // CloudStorageTarget: Cloud Storage target for Discovery. The first target to // match a table will be the one applied. CloudStorageTarget *GooglePrivacyDlpV2CloudStorageDiscoveryTarget `json:"cloudStorageTarget,omitempty"` + // OtherCloudTarget: Other clouds target for discovery. The first target to + // match a resource will be the one applied. + OtherCloudTarget *GooglePrivacyDlpV2OtherCloudDiscoveryTarget `json:"otherCloudTarget,omitempty"` // SecretsTarget: Discovery target that looks for credentials and secrets // stored in cloud resource metadata and reports them as vulnerabilities to // Security Command Center. Only one target of this type is allowed. @@ -4951,7 +5219,7 @@ func (s GooglePrivacyDlpV2FileStoreCollection) MarshalJSON() ([]byte, error) { } // GooglePrivacyDlpV2FileStoreDataProfile: The profile for a file store. * -// Cloud Storage: maps 1:1 with a bucket. +// Cloud Storage: maps 1:1 with a bucket. * Amazon S3: maps 1:1 with a bucket. type GooglePrivacyDlpV2FileStoreDataProfile struct { // ConfigSnapshot: The snapshot of the configurations used to generate the // profile. @@ -4976,12 +5244,18 @@ type GooglePrivacyDlpV2FileStoreDataProfile struct { // FileStoreIsEmpty: The file store does not have any files. FileStoreIsEmpty bool `json:"fileStoreIsEmpty,omitempty"` // FileStoreLocation: The location of the file store. * Cloud Storage: - // https://cloud.google.com/storage/docs/locations#available-locations + // https://cloud.google.com/storage/docs/locations#available-locations * Amazon + // S3: + // https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints FileStoreLocation string `json:"fileStoreLocation,omitempty"` - // FileStorePath: The file store path. * Cloud Storage: `gs://{bucket}` + // FileStorePath: The file store path. * Cloud Storage: `gs://{bucket}` * + // Amazon S3: `s3://{bucket}` FileStorePath string `json:"fileStorePath,omitempty"` // FullResource: The resource name of the resource profiled. // https://cloud.google.com/apis/design/resource_names#full_resource_name + // Example format of an S3 bucket full resource name: + // `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws + // /arn:aws:s3:::{bucket_name}` FullResource string `json:"fullResource,omitempty"` // LastModifiedTime: The time the file store was last modified. LastModifiedTime string `json:"lastModifiedTime,omitempty"` @@ -4999,7 +5273,8 @@ type GooglePrivacyDlpV2FileStoreDataProfile struct { // ProjectDataProfile: The resource name of the project data profile for this // file store. ProjectDataProfile string `json:"projectDataProfile,omitempty"` - // ProjectId: The Google Cloud project ID that owns the resource. + // ProjectId: The Google Cloud project ID that owns the resource. For Amazon S3 + // buckets, this is the AWS Account Id. ProjectId string `json:"projectId,omitempty"` // ResourceAttributes: Attributes of the resource being profiled. Currently // used attributes: * customer_managed_encryption: boolean - true: the resource @@ -7477,6 +7752,165 @@ func (s GooglePrivacyDlpV2OrgConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation: The other cloud +// starting location for discovery. +type GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation struct { + // AwsLocation: The AWS starting location for discovery. + AwsLocation *GooglePrivacyDlpV2AwsDiscoveryStartingLocation `json:"awsLocation,omitempty"` + // ForceSendFields is a list of field names (e.g. "AwsLocation") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AwsLocation") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2OtherCloudDiscoveryTarget: Target used to match against +// for discovery of resources from other clouds. An AWS connector in Security +// Command Center (Enterprise +// (https://cloud.google.com/security-command-center/docs/connect-scc-to-aws) +// is required to use this feature. +type GooglePrivacyDlpV2OtherCloudDiscoveryTarget struct { + // Conditions: Optional. In addition to matching the filter, these conditions + // must be true before a profile is generated. + Conditions *GooglePrivacyDlpV2DiscoveryOtherCloudConditions `json:"conditions,omitempty"` + // DataSourceType: Required. The type of data profiles generated by this + // discovery target. Supported values are: * aws/s3/bucket + DataSourceType *GooglePrivacyDlpV2DataSourceType `json:"dataSourceType,omitempty"` + // Disabled: Disable profiling for resources that match this filter. + Disabled *GooglePrivacyDlpV2Disabled `json:"disabled,omitempty"` + // Filter: Required. The resources that the discovery cadence applies to. The + // first target with a matching filter will be the one to apply to a resource. + Filter *GooglePrivacyDlpV2DiscoveryOtherCloudFilter `json:"filter,omitempty"` + // GenerationCadence: How often and when to update data profiles. New resources + // that match both the filter and conditions are scanned as quickly as possible + // depending on system capacity. + GenerationCadence *GooglePrivacyDlpV2DiscoveryOtherCloudGenerationCadence `json:"generationCadence,omitempty"` + // ForceSendFields is a list of field names (e.g. "Conditions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Conditions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2OtherCloudDiscoveryTarget) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2OtherCloudDiscoveryTarget + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2OtherCloudResourceCollection: Match resources using regex +// filters. +type GooglePrivacyDlpV2OtherCloudResourceCollection struct { + // IncludeRegexes: A collection of regular expressions to match a resource + // against. + IncludeRegexes *GooglePrivacyDlpV2OtherCloudResourceRegexes `json:"includeRegexes,omitempty"` + // ForceSendFields is a list of field names (e.g. "IncludeRegexes") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "IncludeRegexes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2OtherCloudResourceCollection) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2OtherCloudResourceCollection + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2OtherCloudResourceRegex: A pattern to match against one or +// more resources. At least one pattern must be specified. Regular expressions +// use RE2 syntax (https://github.com/google/re2/wiki/Syntax); a guide can be +// found under the google/re2 repository on GitHub. +type GooglePrivacyDlpV2OtherCloudResourceRegex struct { + // AmazonS3BucketRegex: Regex for Amazon S3 buckets. + AmazonS3BucketRegex *GooglePrivacyDlpV2AmazonS3BucketRegex `json:"amazonS3BucketRegex,omitempty"` + // ForceSendFields is a list of field names (e.g. "AmazonS3BucketRegex") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AmazonS3BucketRegex") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2OtherCloudResourceRegex) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2OtherCloudResourceRegex + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2OtherCloudResourceRegexes: A collection of regular +// expressions to determine what resources to match against. +type GooglePrivacyDlpV2OtherCloudResourceRegexes struct { + // Patterns: A group of regular expression patterns to match against one or + // more resources. Maximum of 100 entries. The sum of all regular expression's + // length can't exceed 10 KiB. + Patterns []*GooglePrivacyDlpV2OtherCloudResourceRegex `json:"patterns,omitempty"` + // ForceSendFields is a list of field names (e.g. "Patterns") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Patterns") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2OtherCloudResourceRegexes) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2OtherCloudResourceRegexes + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2OtherCloudSingleResourceReference: Identifies a single +// resource, like a single Amazon S3 bucket. +type GooglePrivacyDlpV2OtherCloudSingleResourceReference struct { + // AmazonS3Bucket: Amazon S3 bucket. + AmazonS3Bucket *GooglePrivacyDlpV2AmazonS3Bucket `json:"amazonS3Bucket,omitempty"` + // ForceSendFields is a list of field names (e.g. "AmazonS3Bucket") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AmazonS3Bucket") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2OtherCloudSingleResourceReference) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2OtherCloudSingleResourceReference + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2OtherInfoTypeSummary: Infotype details for other infoTypes // found within a column. type GooglePrivacyDlpV2OtherInfoTypeSummary struct { @@ -14650,13 +15084,13 @@ func (r *OrganizationsLocationsFileStoreDataProfilesService) List(parent string) // Restrictions can be combined by `AND` or `OR` logical operators. A sequence // of restrictions implicitly uses `AND`. * A restriction has the form of // `{field} {operator} {value}`. * Supported fields/values: - `project_id` - -// The Google Cloud project ID. - `file_store_path` - The path like -// "gs://bucket". - `data_source_type` - The profile's data source type, like -// "google/storage/bucket". - `data_storage_location` - The location where the -// file store's data is stored, like "us-central1". - `sensitivity_level` - -// HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - -// `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status -// code as defined in +// The Google Cloud project ID. - `account_id` - The AWS account ID. - +// `file_store_path` - The path like "gs://bucket". - `data_source_type` - The +// profile's data source type, like "google/storage/bucket". - +// `data_storage_location` - The location where the file store's data is +// stored, like "us-central1". - `sensitivity_level` - HIGH|MODERATE|LOW - +// `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: +// PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * // The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND // status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * @@ -24693,13 +25127,13 @@ func (r *ProjectsLocationsFileStoreDataProfilesService) List(parent string) *Pro // Restrictions can be combined by `AND` or `OR` logical operators. A sequence // of restrictions implicitly uses `AND`. * A restriction has the form of // `{field} {operator} {value}`. * Supported fields/values: - `project_id` - -// The Google Cloud project ID. - `file_store_path` - The path like -// "gs://bucket". - `data_source_type` - The profile's data source type, like -// "google/storage/bucket". - `data_storage_location` - The location where the -// file store's data is stored, like "us-central1". - `sensitivity_level` - -// HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - -// `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status -// code as defined in +// The Google Cloud project ID. - `account_id` - The AWS account ID. - +// `file_store_path` - The path like "gs://bucket". - `data_source_type` - The +// profile's data source type, like "google/storage/bucket". - +// `data_storage_location` - The location where the file store's data is +// stored, like "us-central1". - `sensitivity_level` - HIGH|MODERATE|LOW - +// `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: +// PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * // The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND // status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * diff --git a/healthcare/v1/healthcare-api.json b/healthcare/v1/healthcare-api.json index 3e53a9ccae3..c687007865e 100644 --- a/healthcare/v1/healthcare-api.json +++ b/healthcare/v1/healthcare-api.json @@ -4783,7 +4783,7 @@ } } }, - "revision": "20240822", + "revision": "20240910", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "ActivateConsentRequest": { @@ -5586,7 +5586,7 @@ }, "notificationConfig": { "$ref": "NotificationConfig", - "description": "Notification destination for new DICOM instances. Supplied by the client." + "description": "Optional. Notification destination for new DICOM instances. Supplied by the client." }, "streamConfigs": { "description": "Optional. A list of streaming configs used to configure the destination of streaming exports for every DICOM instance insertion in this DICOM store. After a new config is added to `stream_configs`, DICOM instance insertions are streamed to the new destination. When a config is removed from `stream_configs`, the server stops streaming to that destination. Each config must contain a unique destination.", @@ -5963,15 +5963,15 @@ "id": "FhirNotificationConfig", "properties": { "pubsubTopic": { - "description": "The [Pub/Sub](https://cloud.google.com/pubsub/docs/) topic that notifications of changes are published on. Supplied by the client. The notification is a `PubsubMessage` with the following fields: * `PubsubMessage.Data` contains the resource name. * `PubsubMessage.MessageId` is the ID of this notification. It is guaranteed to be unique within the topic. * `PubsubMessage.PublishTime` is the time when the message was published. Note that notifications are only sent if the topic is non-empty. [Topic names](https://cloud.google.com/pubsub/docs/overview#names) must be scoped to a project. The Cloud Healthcare API service account, service-@gcp-sa-healthcare.iam.gserviceaccount.com, must have publisher permissions on the given Pub/Sub topic. Not having adequate permissions causes the calls that send notifications to fail (https://cloud.google.com/healthcare-api/docs/permissions-healthcare-api-gcp-products#dicom_fhir_and_hl7v2_store_cloud_pubsub_permissions). If a notification can't be published to Pub/Sub, errors are logged to Cloud Logging. For more information, see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare-api/docs/how-tos/logging).", + "description": "Optional. The [Pub/Sub](https://cloud.google.com/pubsub/docs/) topic that notifications of changes are published on. Supplied by the client. The notification is a `PubsubMessage` with the following fields: * `PubsubMessage.Data` contains the resource name. * `PubsubMessage.MessageId` is the ID of this notification. It is guaranteed to be unique within the topic. * `PubsubMessage.PublishTime` is the time when the message was published. Note that notifications are only sent if the topic is non-empty. [Topic names](https://cloud.google.com/pubsub/docs/overview#names) must be scoped to a project. The Cloud Healthcare API service account, service-@gcp-sa-healthcare.iam.gserviceaccount.com, must have publisher permissions on the given Pub/Sub topic. Not having adequate permissions causes the calls that send notifications to fail (https://cloud.google.com/healthcare-api/docs/permissions-healthcare-api-gcp-products#dicom_fhir_and_hl7v2_store_cloud_pubsub_permissions). If a notification can't be published to Pub/Sub, errors are logged to Cloud Logging. For more information, see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare-api/docs/how-tos/logging).", "type": "string" }, "sendFullResource": { - "description": "Whether to send full FHIR resource to this Pub/Sub topic. The default value is false.", + "description": "Optional. Whether to send full FHIR resource to this Pub/Sub topic. The default value is false.", "type": "boolean" }, "sendPreviousResourceOnDelete": { - "description": "Whether to send full FHIR resource to this Pub/Sub topic for deleting FHIR resource. The default value is false. Note that setting this to true does not guarantee that all previous resources will be sent in the format of full FHIR resource. When a resource change is too large or during heavy traffic, only the resource name will be sent. Clients should always check the \"payloadType\" label from a Pub/Sub message to determine whether it needs to fetch the full previous resource as a separate operation.", + "description": "Optional. Whether to send full FHIR resource to this Pub/Sub topic for deleting FHIR resource. The default value is false. Note that setting this to true does not guarantee that all previous resources will be sent in the format of full FHIR resource. When a resource change is too large or during heavy traffic, only the resource name will be sent. Clients should always check the \"payloadType\" label from a Pub/Sub message to determine whether it needs to fetch the full previous resource as a separate operation.", "type": "boolean" } }, @@ -5996,7 +5996,7 @@ "type": "string" }, "defaultSearchHandlingStrict": { - "description": "If true, overrides the default search behavior for this FHIR store to `handling=strict` which returns an error for unrecognized search parameters. If false, uses the FHIR specification default `handling=lenient` which ignores unrecognized search parameters. The handling can always be changed from the default on an individual API call by setting the HTTP header `Prefer: handling=strict` or `Prefer: handling=lenient`. Defaults to false.", + "description": "Optional. If true, overrides the default search behavior for this FHIR store to `handling=strict` which returns an error for unrecognized search parameters. If false, uses the FHIR specification default `handling=lenient` which ignores unrecognized search parameters. The handling can always be changed from the default on an individual API call by setting the HTTP header `Prefer: handling=strict` or `Prefer: handling=lenient`. Defaults to false.", "type": "boolean" }, "disableReferentialIntegrity": { @@ -6008,7 +6008,7 @@ "type": "boolean" }, "enableUpdateCreate": { - "description": "Whether this FHIR store has the [updateCreate capability](https://www.hl7.org/fhir/capabilitystatement-definitions.html#CapabilityStatement.rest.resource.updateCreate). This determines if the client can use an Update operation to create a new resource with a client-specified ID. If false, all IDs are server-assigned through the Create operation and attempts to update a non-existent resource return errors. It is strongly advised not to include or encode any sensitive data such as patient identifiers in client-specified resource IDs. Those IDs are part of the FHIR resource path recorded in Cloud audit logs and Pub/Sub notifications. Those IDs can also be contained in reference fields within other resources. Defaults to false.", + "description": "Optional. Whether this FHIR store has the [updateCreate capability](https://www.hl7.org/fhir/capabilitystatement-definitions.html#CapabilityStatement.rest.resource.updateCreate). This determines if the client can use an Update operation to create a new resource with a client-specified ID. If false, all IDs are server-assigned through the Create operation and attempts to update a non-existent resource return errors. It is strongly advised not to include or encode any sensitive data such as patient identifiers in client-specified resource IDs. Those IDs are part of the FHIR resource path recorded in Cloud audit logs and Pub/Sub notifications. Those IDs can also be contained in reference fields within other resources. Defaults to false.", "type": "boolean" }, "labels": { @@ -6028,14 +6028,14 @@ "description": "Deprecated. Use `notification_configs` instead. If non-empty, publish all resource modifications of this FHIR store to this destination. The Pub/Sub message attributes contain a map with a string describing the action that has triggered the notification. For example, \"action\":\"CreateResource\"." }, "notificationConfigs": { - "description": "Specifies where and whether to send notifications upon changes to a FHIR store.", + "description": "Optional. Specifies where and whether to send notifications upon changes to a FHIR store.", "items": { "$ref": "FhirNotificationConfig" }, "type": "array" }, "streamConfigs": { - "description": "A list of streaming configs that configure the destinations of streaming export for every resource mutation in this FHIR store. Each store is allowed to have up to 10 streaming configs. After a new config is added, the next resource mutation is streamed to the new location in addition to the existing ones. When a location is removed from the list, the server stops streaming to that location. Before adding a new config, you must add the required [`bigquery.dataEditor`](https://cloud.google.com/bigquery/docs/access-control#bigquery.dataEditor) role to your project's **Cloud Healthcare Service Agent** [service account](https://cloud.google.com/iam/docs/service-accounts). Some lag (typically on the order of dozens of seconds) is expected before the results show up in the streaming destination.", + "description": "Optional. A list of streaming configs that configure the destinations of streaming export for every resource mutation in this FHIR store. Each store is allowed to have up to 10 streaming configs. After a new config is added, the next resource mutation is streamed to the new location in addition to the existing ones. When a location is removed from the list, the server stops streaming to that location. Before adding a new config, you must add the required [`bigquery.dataEditor`](https://cloud.google.com/bigquery/docs/access-control#bigquery.dataEditor) role to your project's **Cloud Healthcare Service Agent** [service account](https://cloud.google.com/iam/docs/service-accounts). Some lag (typically on the order of dozens of seconds) is expected before the results show up in the streaming destination.", "items": { "$ref": "StreamConfig" }, @@ -6330,19 +6330,19 @@ "id": "GoogleCloudHealthcareV1FhirBigQueryDestination", "properties": { "datasetUri": { - "description": "BigQuery URI to an existing dataset, up to 2000 characters long, in the format `bq://projectId.bqDatasetId`.", + "description": "Optional. BigQuery URI to an existing dataset, up to 2000 characters long, in the format `bq://projectId.bqDatasetId`.", "type": "string" }, "force": { - "description": "The default value is false. If this flag is `TRUE`, all tables are deleted from the dataset before the new exported tables are written. If the flag is not set and the destination dataset contains tables, the export call returns an error. If `write_disposition` is specified, this parameter is ignored. force=false is equivalent to write_disposition=WRITE_EMPTY and force=true is equivalent to write_disposition=WRITE_TRUNCATE.", + "description": "Optional. The default value is false. If this flag is `TRUE`, all tables are deleted from the dataset before the new exported tables are written. If the flag is not set and the destination dataset contains tables, the export call returns an error. If `write_disposition` is specified, this parameter is ignored. force=false is equivalent to write_disposition=WRITE_EMPTY and force=true is equivalent to write_disposition=WRITE_TRUNCATE.", "type": "boolean" }, "schemaConfig": { "$ref": "SchemaConfig", - "description": "The configuration for the exported BigQuery schema." + "description": "Optional. The configuration for the exported BigQuery schema." }, "writeDisposition": { - "description": "Determines if existing data in the destination dataset is overwritten, appended to, or not written if the tables contain data. If a write_disposition is specified, the `force` parameter is ignored.", + "description": "Optional. Determines if existing data in the destination dataset is overwritten, appended to, or not written if the tables contain data. If a write_disposition is specified, the `force` parameter is ignored.", "enum": [ "WRITE_DISPOSITION_UNSPECIFIED", "WRITE_EMPTY", @@ -6442,7 +6442,7 @@ "id": "Hl7V2NotificationConfig", "properties": { "filter": { - "description": "Restricts notifications sent for messages matching a filter. If this is empty, all messages are matched. The following syntax is available: * A string field value can be written as text inside quotation marks, for example `\"query text\"`. The only valid relational operation for text fields is equality (`=`), where text is searched within the field, rather than having the field be equal to the text. For example, `\"Comment = great\"` returns messages with `great` in the comment field. * A number field value can be written as an integer, a decimal, or an exponential. The valid relational operators for number fields are the equality operator (`=`), along with the less than/greater than operators (`\u003c`, `\u003c=`, `\u003e`, `\u003e=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. * A date field value must be written in `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format. Leading zeros are required for one-digit months and days. The valid relational operators for date fields are the equality operator (`=`) , along with the less than/greater than operators (`\u003c`, `\u003c=`, `\u003e`, `\u003e=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. * Multiple field query expressions can be combined in one query by adding `AND` or `OR` operators between the expressions. If a boolean operator appears within a quoted string, it is not treated as special, it's just another part of the character string to be matched. You can prepend the `NOT` operator to an expression to negate it. The following fields and functions are available for filtering: * `message_type`, from the MSH-9.1 field. For example, `NOT message_type = \"ADT\"`. * `send_date` or `sendDate`, the YYYY-MM-DD date the message was sent in the dataset's time_zone, from the MSH-7 segment. For example, `send_date \u003c \"2017-01-02\"`. * `send_time`, the timestamp when the message was sent, using the RFC3339 time format for comparisons, from the MSH-7 segment. For example, `send_time \u003c \"2017-01-02T00:00:00-05:00\"`. * `create_time`, the timestamp when the message was created in the HL7v2 store. Use the RFC3339 time format for comparisons. For example, `create_time \u003c \"2017-01-02T00:00:00-05:00\"`. * `send_facility`, the care center that the message came from, from the MSH-4 segment. For example, `send_facility = \"ABC\"`. * `PatientId(value, type)`, which matches if the message lists a patient having an ID of the given value and type in the PID-2, PID-3, or PID-4 segments. For example, `PatientId(\"123456\", \"MRN\")`. * `labels.x`, a string value of the label with key `x` as set using the Message.labels map. For example, `labels.\"priority\"=\"high\"`. The operator `:*` can be used to assert the existence of a label. For example, `labels.\"priority\":*`.", + "description": "Optional. Restricts notifications sent for messages matching a filter. If this is empty, all messages are matched. The following syntax is available: * A string field value can be written as text inside quotation marks, for example `\"query text\"`. The only valid relational operation for text fields is equality (`=`), where text is searched within the field, rather than having the field be equal to the text. For example, `\"Comment = great\"` returns messages with `great` in the comment field. * A number field value can be written as an integer, a decimal, or an exponential. The valid relational operators for number fields are the equality operator (`=`), along with the less than/greater than operators (`\u003c`, `\u003c=`, `\u003e`, `\u003e=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. * A date field value must be written in `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format. Leading zeros are required for one-digit months and days. The valid relational operators for date fields are the equality operator (`=`) , along with the less than/greater than operators (`\u003c`, `\u003c=`, `\u003e`, `\u003e=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. * Multiple field query expressions can be combined in one query by adding `AND` or `OR` operators between the expressions. If a boolean operator appears within a quoted string, it is not treated as special, it's just another part of the character string to be matched. You can prepend the `NOT` operator to an expression to negate it. The following fields and functions are available for filtering: * `message_type`, from the MSH-9.1 field. For example, `NOT message_type = \"ADT\"`. * `send_date` or `sendDate`, the YYYY-MM-DD date the message was sent in the dataset's time_zone, from the MSH-7 segment. For example, `send_date \u003c \"2017-01-02\"`. * `send_time`, the timestamp when the message was sent, using the RFC3339 time format for comparisons, from the MSH-7 segment. For example, `send_time \u003c \"2017-01-02T00:00:00-05:00\"`. * `create_time`, the timestamp when the message was created in the HL7v2 store. Use the RFC3339 time format for comparisons. For example, `create_time \u003c \"2017-01-02T00:00:00-05:00\"`. * `send_facility`, the care center that the message came from, from the MSH-4 segment. For example, `send_facility = \"ABC\"`. * `PatientId(value, type)`, which matches if the message lists a patient having an ID of the given value and type in the PID-2, PID-3, or PID-4 segments. For example, `PatientId(\"123456\", \"MRN\")`. * `labels.x`, a string value of the label with key `x` as set using the Message.labels map. For example, `labels.\"priority\"=\"high\"`. The operator `:*` can be used to assert the existence of a label. For example, `labels.\"priority\":*`.", "type": "string" }, "pubsubTopic": { @@ -6468,7 +6468,7 @@ "type": "string" }, "notificationConfigs": { - "description": "A list of notification configs. Each configuration uses a filter to determine whether to publish a message (both Ingest \u0026 Create) on the corresponding notification destination. Only the message name is sent as part of the notification. Supplied by the client.", + "description": "Optional. A list of notification configs. Each configuration uses a filter to determine whether to publish a message (both Ingest \u0026 Create) on the corresponding notification destination. Only the message name is sent as part of the notification. Supplied by the client.", "items": { "$ref": "Hl7V2NotificationConfig" }, @@ -6476,10 +6476,10 @@ }, "parserConfig": { "$ref": "ParserConfig", - "description": "The configuration for the parser. It determines how the server parses the messages." + "description": "Optional. The configuration for the parser. It determines how the server parses the messages." }, "rejectDuplicateMessage": { - "description": "Determines whether to reject duplicate messages. A duplicate message is a message with the same raw bytes as a message that has already been ingested/created in this HL7v2 store. The default value is false, meaning that the store accepts the duplicate messages and it also returns the same ACK message in the IngestMessageResponse as has been returned previously. Note that only one resource is created in the store. When this field is set to true, CreateMessage/IngestMessage requests with a duplicate message will be rejected by the store, and IngestMessageErrorDetail returns a NACK message upon rejection.", + "description": "Optional. Determines whether to reject duplicate messages. A duplicate message is a message with the same raw bytes as a message that has already been ingested/created in this HL7v2 store. The default value is false, meaning that the store accepts the duplicate messages and it also returns the same ACK message in the IngestMessageResponse as has been returned previously. Note that only one resource is created in the store. When this field is set to true, CreateMessage/IngestMessage requests with a duplicate message will be rejected by the store, and IngestMessageErrorDetail returns a NACK message upon rejection.", "type": "boolean" } }, @@ -7177,12 +7177,12 @@ "id": "ParserConfig", "properties": { "allowNullHeader": { - "description": "Determines whether messages with no header are allowed.", + "description": "Optional. Determines whether messages with no header are allowed.", "type": "boolean" }, "schema": { "$ref": "SchemaPackage", - "description": "Schemas used to parse messages in this store, if schematized parsing is desired." + "description": "Optional. Schemas used to parse messages in this store, if schematized parsing is desired." }, "segmentTerminator": { "description": "Byte(s) to use as the segment terminator. If this is unset, '\\r' is used as segment terminator, matching the HL7 version 2 specification.", @@ -7624,18 +7624,18 @@ "id": "SchemaPackage", "properties": { "ignoreMinOccurs": { - "description": "Flag to ignore all min_occurs restrictions in the schema. This means that incoming messages can omit any group, segment, field, component, or subcomponent.", + "description": "Optional. Flag to ignore all min_occurs restrictions in the schema. This means that incoming messages can omit any group, segment, field, component, or subcomponent.", "type": "boolean" }, "schemas": { - "description": "Schema configs that are layered based on their VersionSources that match the incoming message. Schema configs present in higher indices override those in lower indices with the same message type and trigger event if their VersionSources all match an incoming message.", + "description": "Optional. Schema configs that are layered based on their VersionSources that match the incoming message. Schema configs present in higher indices override those in lower indices with the same message type and trigger event if their VersionSources all match an incoming message.", "items": { "$ref": "Hl7SchemaConfig" }, "type": "array" }, "schematizedParsingType": { - "description": "Determines how messages that fail to parse are handled.", + "description": "Optional. Determines how messages that fail to parse are handled.", "enum": [ "SCHEMATIZED_PARSING_TYPE_UNSPECIFIED", "SOFT_FAIL", @@ -7649,14 +7649,14 @@ "type": "string" }, "types": { - "description": "Schema type definitions that are layered based on their VersionSources that match the incoming message. Type definitions present in higher indices override those in lower indices with the same type name if their VersionSources all match an incoming message.", + "description": "Optional. Schema type definitions that are layered based on their VersionSources that match the incoming message. Type definitions present in higher indices override those in lower indices with the same type name if their VersionSources all match an incoming message.", "items": { "$ref": "Hl7TypesConfig" }, "type": "array" }, "unexpectedSegmentHandling": { - "description": "Determines how unexpected segments (segments not matched to the schema) are handled.", + "description": "Optional. Determines how unexpected segments (segments not matched to the schema) are handled.", "enum": [ "UNEXPECTED_SEGMENT_HANDLING_MODE_UNSPECIFIED", "FAIL", @@ -7885,14 +7885,14 @@ "properties": { "bigqueryDestination": { "$ref": "GoogleCloudHealthcareV1FhirBigQueryDestination", - "description": "The destination BigQuery structure that contains both the dataset location and corresponding schema config. The output is organized in one table per resource type. The server reuses the existing tables (if any) that are named after the resource types. For example, \"Patient\", \"Observation\". When there is no existing table for a given resource type, the server attempts to create one. When a table schema doesn't align with the schema config, either because of existing incompatible schema or out of band incompatible modification, the server does not stream in new data. BigQuery imposes a 1 MB limit on streaming insert row size, therefore any resource mutation that generates more than 1 MB of BigQuery data is not streamed. One resolution in this case is to delete the incompatible table and let the server recreate one, though the newly created table only contains data after the table recreation. Results are written to BigQuery tables according to the parameters in BigQueryDestination.WriteDisposition. Different versions of the same resource are distinguishable by the meta.versionId and meta.lastUpdated columns. The operation (CREATE/UPDATE/DELETE) that results in the new version is recorded in the meta.tag. The tables contain all historical resource versions since streaming was enabled. For query convenience, the server also creates one view per table of the same name containing only the current resource version. The streamed data in the BigQuery dataset is not guaranteed to be completely unique. The combination of the id and meta.versionId columns should ideally identify a single unique row. But in rare cases, duplicates may exist. At query time, users may use the SQL select statement to keep only one of the duplicate rows given an id and meta.versionId pair. Alternatively, the server created view mentioned above also filters out duplicates. If a resource mutation cannot be streamed to BigQuery, errors are logged to Cloud Logging. For more information, see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare/docs/how-tos/logging))." + "description": "Optional. The destination BigQuery structure that contains both the dataset location and corresponding schema config. The output is organized in one table per resource type. The server reuses the existing tables (if any) that are named after the resource types. For example, \"Patient\", \"Observation\". When there is no existing table for a given resource type, the server attempts to create one. When a table schema doesn't align with the schema config, either because of existing incompatible schema or out of band incompatible modification, the server does not stream in new data. BigQuery imposes a 1 MB limit on streaming insert row size, therefore any resource mutation that generates more than 1 MB of BigQuery data is not streamed. One resolution in this case is to delete the incompatible table and let the server recreate one, though the newly created table only contains data after the table recreation. Results are written to BigQuery tables according to the parameters in BigQueryDestination.WriteDisposition. Different versions of the same resource are distinguishable by the meta.versionId and meta.lastUpdated columns. The operation (CREATE/UPDATE/DELETE) that results in the new version is recorded in the meta.tag. The tables contain all historical resource versions since streaming was enabled. For query convenience, the server also creates one view per table of the same name containing only the current resource version. The streamed data in the BigQuery dataset is not guaranteed to be completely unique. The combination of the id and meta.versionId columns should ideally identify a single unique row. But in rare cases, duplicates may exist. At query time, users may use the SQL select statement to keep only one of the duplicate rows given an id and meta.versionId pair. Alternatively, the server created view mentioned above also filters out duplicates. If a resource mutation cannot be streamed to BigQuery, errors are logged to Cloud Logging. For more information, see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare/docs/how-tos/logging))." }, "deidentifiedStoreDestination": { "$ref": "DeidentifiedStoreDestination", "description": "The destination FHIR store for de-identified resources. After this field is added, all subsequent creates/updates/patches to the source store will be de-identified using the provided configuration and applied to the destination store. Importing resources to the source store will not trigger the streaming. If the source store already contains resources when this option is enabled, those resources will not be copied to the destination store unless they are subsequently updated. This may result in invalid references in the destination store. Before adding this config, you must grant the healthcare.fhirResources.update permission on the destination store to your project's **Cloud Healthcare Service Agent** [service account](https://cloud.google.com/healthcare/docs/how-tos/permissions-healthcare-api-gcp-products#the_cloud_healthcare_service_agent). The destination store must set enable_update_create to true. The destination store must have disable_referential_integrity set to true. If a resource cannot be de-identified, errors will be logged to Cloud Logging (see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare/docs/how-tos/logging))." }, "resourceTypes": { - "description": "Supply a FHIR resource type (such as \"Patient\" or \"Observation\"). See https://www.hl7.org/fhir/valueset-resource-types.html for a list of all FHIR resource types. The server treats an empty list as an intent to stream all the supported resource types in this FHIR store.", + "description": "Optional. Supply a FHIR resource type (such as \"Patient\" or \"Observation\"). See https://www.hl7.org/fhir/valueset-resource-types.html for a list of all FHIR resource types. The server treats an empty list as an intent to stream all the supported resource types in this FHIR store.", "items": { "type": "string" }, diff --git a/healthcare/v1/healthcare-gen.go b/healthcare/v1/healthcare-gen.go index 5ce214504fb..ae77e8cffae 100644 --- a/healthcare/v1/healthcare-gen.go +++ b/healthcare/v1/healthcare-gen.go @@ -1666,8 +1666,8 @@ type DicomStore struct { // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomSto // res/{dicom_store_id}`. Name string `json:"name,omitempty"` - // NotificationConfig: Notification destination for new DICOM instances. - // Supplied by the client. + // NotificationConfig: Optional. Notification destination for new DICOM + // instances. Supplied by the client. NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"` // StreamConfigs: Optional. A list of streaming configs used to configure the // destination of streaming exports for every DICOM instance insertion in this @@ -2311,9 +2311,9 @@ func (s FhirFilter) MarshalJSON() ([]byte, error) { // FhirNotificationConfig: Contains the configuration for FHIR notifications. type FhirNotificationConfig struct { - // PubsubTopic: The Pub/Sub (https://cloud.google.com/pubsub/docs/) topic that - // notifications of changes are published on. Supplied by the client. The - // notification is a `PubsubMessage` with the following fields: * + // PubsubTopic: Optional. The Pub/Sub (https://cloud.google.com/pubsub/docs/) + // topic that notifications of changes are published on. Supplied by the + // client. The notification is a `PubsubMessage` with the following fields: * // `PubsubMessage.Data` contains the resource name. * `PubsubMessage.MessageId` // is the ID of this notification. It is guaranteed to be unique within the // topic. * `PubsubMessage.PublishTime` is the time when the message was @@ -2328,17 +2328,17 @@ type FhirNotificationConfig struct { // Logging. For more information, see Viewing error logs in Cloud Logging // (https://cloud.google.com/healthcare-api/docs/how-tos/logging). PubsubTopic string `json:"pubsubTopic,omitempty"` - // SendFullResource: Whether to send full FHIR resource to this Pub/Sub topic. - // The default value is false. + // SendFullResource: Optional. Whether to send full FHIR resource to this + // Pub/Sub topic. The default value is false. SendFullResource bool `json:"sendFullResource,omitempty"` - // SendPreviousResourceOnDelete: Whether to send full FHIR resource to this - // Pub/Sub topic for deleting FHIR resource. The default value is false. Note - // that setting this to true does not guarantee that all previous resources - // will be sent in the format of full FHIR resource. When a resource change is - // too large or during heavy traffic, only the resource name will be sent. - // Clients should always check the "payloadType" label from a Pub/Sub message - // to determine whether it needs to fetch the full previous resource as a - // separate operation. + // SendPreviousResourceOnDelete: Optional. Whether to send full FHIR resource + // to this Pub/Sub topic for deleting FHIR resource. The default value is + // false. Note that setting this to true does not guarantee that all previous + // resources will be sent in the format of full FHIR resource. When a resource + // change is too large or during heavy traffic, only the resource name will be + // sent. Clients should always check the "payloadType" label from a Pub/Sub + // message to determine whether it needs to fetch the full previous resource as + // a separate operation. SendPreviousResourceOnDelete bool `json:"sendPreviousResourceOnDelete,omitempty"` // ForceSendFields is a list of field names (e.g. "PubsubTopic") to // unconditionally include in API requests. By default, fields with empty or @@ -2375,8 +2375,8 @@ type FhirStore struct { // "DISABLED" - References in complex data types are ignored. // "ENABLED" - References in complex data types are parsed. ComplexDataTypeReferenceParsing string `json:"complexDataTypeReferenceParsing,omitempty"` - // DefaultSearchHandlingStrict: If true, overrides the default search behavior - // for this FHIR store to `handling=strict` which returns an error for + // DefaultSearchHandlingStrict: Optional. If true, overrides the default search + // behavior for this FHIR store to `handling=strict` which returns an error for // unrecognized search parameters. If false, uses the FHIR specification // default `handling=lenient` which ignores unrecognized search parameters. The // handling can always be changed from the default on an individual API call by @@ -2400,7 +2400,8 @@ type FhirStore struct { // versions are kept. The server sends errors for attempts to read the // historical versions. Defaults to false. DisableResourceVersioning bool `json:"disableResourceVersioning,omitempty"` - // EnableUpdateCreate: Whether this FHIR store has the updateCreate capability + // EnableUpdateCreate: Optional. Whether this FHIR store has the updateCreate + // capability // (https://www.hl7.org/fhir/capabilitystatement-definitions.html#CapabilityStatement.rest.resource.updateCreate). // This determines if the client can use an Update operation to create a new // resource with a client-specified ID. If false, all IDs are server-assigned @@ -2430,15 +2431,15 @@ type FhirStore struct { // describing the action that has triggered the notification. For example, // "action":"CreateResource". NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"` - // NotificationConfigs: Specifies where and whether to send notifications upon - // changes to a FHIR store. + // NotificationConfigs: Optional. Specifies where and whether to send + // notifications upon changes to a FHIR store. NotificationConfigs []*FhirNotificationConfig `json:"notificationConfigs,omitempty"` - // StreamConfigs: A list of streaming configs that configure the destinations - // of streaming export for every resource mutation in this FHIR store. Each - // store is allowed to have up to 10 streaming configs. After a new config is - // added, the next resource mutation is streamed to the new location in - // addition to the existing ones. When a location is removed from the list, the - // server stops streaming to that location. Before adding a new config, you + // StreamConfigs: Optional. A list of streaming configs that configure the + // destinations of streaming export for every resource mutation in this FHIR + // store. Each store is allowed to have up to 10 streaming configs. After a new + // config is added, the next resource mutation is streamed to the new location + // in addition to the existing ones. When a location is removed from the list, + // the server stops streaming to that location. Before adding a new config, you // must add the required `bigquery.dataEditor` // (https://cloud.google.com/bigquery/docs/access-control#bigquery.dataEditor) // role to your project's **Cloud Healthcare Service Agent** service account @@ -2935,21 +2936,22 @@ func (s GoogleCloudHealthcareV1DicomStreamConfig) MarshalJSON() ([]byte, error) // GoogleCloudHealthcareV1FhirBigQueryDestination: The configuration for // exporting to BigQuery. type GoogleCloudHealthcareV1FhirBigQueryDestination struct { - // DatasetUri: BigQuery URI to an existing dataset, up to 2000 characters long, - // in the format `bq://projectId.bqDatasetId`. + // DatasetUri: Optional. BigQuery URI to an existing dataset, up to 2000 + // characters long, in the format `bq://projectId.bqDatasetId`. DatasetUri string `json:"datasetUri,omitempty"` - // Force: The default value is false. If this flag is `TRUE`, all tables are - // deleted from the dataset before the new exported tables are written. If the - // flag is not set and the destination dataset contains tables, the export call - // returns an error. If `write_disposition` is specified, this parameter is - // ignored. force=false is equivalent to write_disposition=WRITE_EMPTY and - // force=true is equivalent to write_disposition=WRITE_TRUNCATE. + // Force: Optional. The default value is false. If this flag is `TRUE`, all + // tables are deleted from the dataset before the new exported tables are + // written. If the flag is not set and the destination dataset contains tables, + // the export call returns an error. If `write_disposition` is specified, this + // parameter is ignored. force=false is equivalent to + // write_disposition=WRITE_EMPTY and force=true is equivalent to + // write_disposition=WRITE_TRUNCATE. Force bool `json:"force,omitempty"` - // SchemaConfig: The configuration for the exported BigQuery schema. + // SchemaConfig: Optional. The configuration for the exported BigQuery schema. SchemaConfig *SchemaConfig `json:"schemaConfig,omitempty"` - // WriteDisposition: Determines if existing data in the destination dataset is - // overwritten, appended to, or not written if the tables contain data. If a - // write_disposition is specified, the `force` parameter is ignored. + // WriteDisposition: Optional. Determines if existing data in the destination + // dataset is overwritten, appended to, or not written if the tables contain + // data. If a write_disposition is specified, the `force` parameter is ignored. // // Possible values: // "WRITE_DISPOSITION_UNSPECIFIED" - Default behavior is the same as @@ -3117,14 +3119,14 @@ func (s Hl7TypesConfig) MarshalJSON() ([]byte, error) { // Hl7V2NotificationConfig: Specifies where and whether to send notifications // upon changes to a data store. type Hl7V2NotificationConfig struct { - // Filter: Restricts notifications sent for messages matching a filter. If this - // is empty, all messages are matched. The following syntax is available: * A - // string field value can be written as text inside quotation marks, for - // example "query text". The only valid relational operation for text fields - // is equality (`=`), where text is searched within the field, rather than - // having the field be equal to the text. For example, "Comment = great" - // returns messages with `great` in the comment field. * A number field value - // can be written as an integer, a decimal, or an exponential. The valid + // Filter: Optional. Restricts notifications sent for messages matching a + // filter. If this is empty, all messages are matched. The following syntax is + // available: * A string field value can be written as text inside quotation + // marks, for example "query text". The only valid relational operation for + // text fields is equality (`=`), where text is searched within the field, + // rather than having the field be equal to the text. For example, "Comment = + // great" returns messages with `great` in the comment field. * A number field + // value can be written as an integer, a decimal, or an exponential. The valid // relational operators for number fields are the equality operator (`=`), // along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note // that there is no inequality (`!=`) operator. You can prepend the `NOT` @@ -3207,23 +3209,24 @@ type Hl7V2Store struct { // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Sto // res/{hl7v2_store_id}`. Name string `json:"name,omitempty"` - // NotificationConfigs: A list of notification configs. Each configuration uses - // a filter to determine whether to publish a message (both Ingest & Create) on - // the corresponding notification destination. Only the message name is sent as - // part of the notification. Supplied by the client. + // NotificationConfigs: Optional. A list of notification configs. Each + // configuration uses a filter to determine whether to publish a message (both + // Ingest & Create) on the corresponding notification destination. Only the + // message name is sent as part of the notification. Supplied by the client. NotificationConfigs []*Hl7V2NotificationConfig `json:"notificationConfigs,omitempty"` - // ParserConfig: The configuration for the parser. It determines how the server - // parses the messages. + // ParserConfig: Optional. The configuration for the parser. It determines how + // the server parses the messages. ParserConfig *ParserConfig `json:"parserConfig,omitempty"` - // RejectDuplicateMessage: Determines whether to reject duplicate messages. A - // duplicate message is a message with the same raw bytes as a message that has - // already been ingested/created in this HL7v2 store. The default value is - // false, meaning that the store accepts the duplicate messages and it also - // returns the same ACK message in the IngestMessageResponse as has been - // returned previously. Note that only one resource is created in the store. - // When this field is set to true, CreateMessage/IngestMessage requests with a - // duplicate message will be rejected by the store, and - // IngestMessageErrorDetail returns a NACK message upon rejection. + // RejectDuplicateMessage: Optional. Determines whether to reject duplicate + // messages. A duplicate message is a message with the same raw bytes as a + // message that has already been ingested/created in this HL7v2 store. The + // default value is false, meaning that the store accepts the duplicate + // messages and it also returns the same ACK message in the + // IngestMessageResponse as has been returned previously. Note that only one + // resource is created in the store. When this field is set to true, + // CreateMessage/IngestMessage requests with a duplicate message will be + // rejected by the store, and IngestMessageErrorDetail returns a NACK message + // upon rejection. RejectDuplicateMessage bool `json:"rejectDuplicateMessage,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. @@ -4286,10 +4289,11 @@ func (s ParsedData) MarshalJSON() ([]byte, error) { // ParserConfig: The configuration for the parser. It determines how the server // parses the messages. type ParserConfig struct { - // AllowNullHeader: Determines whether messages with no header are allowed. + // AllowNullHeader: Optional. Determines whether messages with no header are + // allowed. AllowNullHeader bool `json:"allowNullHeader,omitempty"` - // Schema: Schemas used to parse messages in this store, if schematized parsing - // is desired. + // Schema: Optional. Schemas used to parse messages in this store, if + // schematized parsing is desired. Schema *SchemaPackage `json:"schema,omitempty"` // SegmentTerminator: Byte(s) to use as the segment terminator. If this is // unset, '\r' is used as segment terminator, matching the HL7 version 2 @@ -4970,17 +4974,17 @@ func (s SchemaGroup) MarshalJSON() ([]byte, error) { // SchemaPackage: A schema package contains a set of schemas and type // definitions. type SchemaPackage struct { - // IgnoreMinOccurs: Flag to ignore all min_occurs restrictions in the schema. - // This means that incoming messages can omit any group, segment, field, - // component, or subcomponent. + // IgnoreMinOccurs: Optional. Flag to ignore all min_occurs restrictions in the + // schema. This means that incoming messages can omit any group, segment, + // field, component, or subcomponent. IgnoreMinOccurs bool `json:"ignoreMinOccurs,omitempty"` - // Schemas: Schema configs that are layered based on their VersionSources that - // match the incoming message. Schema configs present in higher indices - // override those in lower indices with the same message type and trigger event - // if their VersionSources all match an incoming message. + // Schemas: Optional. Schema configs that are layered based on their + // VersionSources that match the incoming message. Schema configs present in + // higher indices override those in lower indices with the same message type + // and trigger event if their VersionSources all match an incoming message. Schemas []*Hl7SchemaConfig `json:"schemas,omitempty"` - // SchematizedParsingType: Determines how messages that fail to parse are - // handled. + // SchematizedParsingType: Optional. Determines how messages that fail to parse + // are handled. // // Possible values: // "SCHEMATIZED_PARSING_TYPE_UNSPECIFIED" - Unspecified schematized parsing @@ -4990,13 +4994,13 @@ type SchemaPackage struct { // "HARD_FAIL" - Messages that fail to parse are rejected from // ingestion/insertion and return an error code. SchematizedParsingType string `json:"schematizedParsingType,omitempty"` - // Types: Schema type definitions that are layered based on their + // Types: Optional. Schema type definitions that are layered based on their // VersionSources that match the incoming message. Type definitions present in // higher indices override those in lower indices with the same type name if // their VersionSources all match an incoming message. Types []*Hl7TypesConfig `json:"types,omitempty"` - // UnexpectedSegmentHandling: Determines how unexpected segments (segments not - // matched to the schema) are handled. + // UnexpectedSegmentHandling: Optional. Determines how unexpected segments + // (segments not matched to the schema) are handled. // // Possible values: // "UNEXPECTED_SEGMENT_HANDLING_MODE_UNSPECIFIED" - Unspecified handling @@ -5340,12 +5344,12 @@ func (s StorageInfo) MarshalJSON() ([]byte, error) { // StreamConfig: Contains configuration for streaming FHIR export. type StreamConfig struct { - // BigqueryDestination: The destination BigQuery structure that contains both - // the dataset location and corresponding schema config. The output is - // organized in one table per resource type. The server reuses the existing - // tables (if any) that are named after the resource types. For example, - // "Patient", "Observation". When there is no existing table for a given - // resource type, the server attempts to create one. When a table schema + // BigqueryDestination: Optional. The destination BigQuery structure that + // contains both the dataset location and corresponding schema config. The + // output is organized in one table per resource type. The server reuses the + // existing tables (if any) that are named after the resource types. For + // example, "Patient", "Observation". When there is no existing table for a + // given resource type, the server attempts to create one. When a table schema // doesn't align with the schema config, either because of existing // incompatible schema or out of band incompatible modification, the server // does not stream in new data. BigQuery imposes a 1 MB limit on streaming @@ -5389,7 +5393,7 @@ type StreamConfig struct { // error logs in Cloud Logging // (https://cloud.google.com/healthcare/docs/how-tos/logging)). DeidentifiedStoreDestination *DeidentifiedStoreDestination `json:"deidentifiedStoreDestination,omitempty"` - // ResourceTypes: Supply a FHIR resource type (such as "Patient" or + // ResourceTypes: Optional. Supply a FHIR resource type (such as "Patient" or // "Observation"). See https://www.hl7.org/fhir/valueset-resource-types.html // for a list of all FHIR resource types. The server treats an empty list as an // intent to stream all the supported resource types in this FHIR store. diff --git a/redis/v1beta1/redis-api.json b/redis/v1beta1/redis-api.json index 72a7ef28882..860d9623fb6 100644 --- a/redis/v1beta1/redis-api.json +++ b/redis/v1beta1/redis-api.json @@ -849,7 +849,7 @@ } } }, - "revision": "20240904", + "revision": "20240918", "rootUrl": "https://redis.googleapis.com/", "schemas": { "AOFConfig": { @@ -1131,7 +1131,7 @@ "REDIS_STANDARD_SMALL" ], "enumDescriptions": [ - "", + "Node type unspecified", "Redis shared core nano node_type.", "Redis highmem medium node_type.", "Redis highmem xlarge node_type.", @@ -1157,7 +1157,7 @@ "type": "array" }, "pscConnections": { - "description": "Output only. PSC connections for discovery of the cluster topology and accessing the cluster.", + "description": "Output only. The list of PSC connections that are auto-created through service connectivity automation.", "items": { "$ref": "PscConnection" }, @@ -1273,12 +1273,6 @@ "readOnly": true, "type": "string" }, - "scheduleDeadlineTime": { - "description": "Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, "startTime": { "description": "Output only. The start time of any upcoming scheduled maintenance for this instance.", "format": "google-datetime", @@ -1347,11 +1341,6 @@ ], "type": "string" }, - "duration": { - "description": "Duration of the time window.", - "format": "google-duration", - "type": "string" - }, "startTime": { "$ref": "TimeOfDay", "description": "Start time of the window in UTC." @@ -3193,6 +3182,11 @@ "description": "Memory size in bytes. TODO(b/342344482, b/342346271) add proto validations again after bug fix.", "format": "int64", "type": "string" + }, + "shardCount": { + "description": "Optional. Number of shards (if applicable).", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -3681,27 +3675,27 @@ "id": "PscConnection", "properties": { "address": { - "description": "Output only. The IP allocated on the consumer network for the PSC forwarding rule.", - "readOnly": true, + "description": "Required. The IP allocated on the consumer network for the PSC forwarding rule.", "type": "string" }, "forwardingRule": { - "description": "Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.", - "readOnly": true, + "description": "Required. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.", "type": "string" }, "network": { - "description": "The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.", + "description": "Required. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.", "type": "string" }, "projectId": { - "description": "Output only. The consumer project_id where the forwarding rule is created from.", - "readOnly": true, + "description": "Optional. Project ID of the consumer project where the forwarding rule is created in.", "type": "string" }, "pscConnectionId": { - "description": "Output only. The PSC connection id of the forwarding rule connected to the service attachment.", - "readOnly": true, + "description": "Optional. The PSC connection id of the forwarding rule connected to the service attachment.", + "type": "string" + }, + "serviceAttachment": { + "description": "Required. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.", "type": "string" } }, diff --git a/redis/v1beta1/redis-gen.go b/redis/v1beta1/redis-gen.go index 569e7b8074b..baf97cbb8ab 100644 --- a/redis/v1beta1/redis-gen.go +++ b/redis/v1beta1/redis-gen.go @@ -536,7 +536,7 @@ type Cluster struct { // determines the underlying machine-type of a redis node. // // Possible values: - // "NODE_TYPE_UNSPECIFIED" + // "NODE_TYPE_UNSPECIFIED" - Node type unspecified // "REDIS_SHARED_CORE_NANO" - Redis shared core nano node_type. // "REDIS_HIGHMEM_MEDIUM" - Redis highmem medium node_type. // "REDIS_HIGHMEM_XLARGE" - Redis highmem xlarge node_type. @@ -551,8 +551,8 @@ type Cluster struct { // IPs will be designated to the cluster for client access through Private // Service Connect Automation. Currently, only one PscConfig is supported. PscConfigs []*PscConfig `json:"pscConfigs,omitempty"` - // PscConnections: Output only. PSC connections for discovery of the cluster - // topology and accessing the cluster. + // PscConnections: Output only. The list of PSC connections that are + // auto-created through service connectivity automation. PscConnections []*PscConnection `json:"pscConnections,omitempty"` // RedisConfigs: Optional. Key/Value pairs of customer overrides for mutable // Redis Configs @@ -661,9 +661,6 @@ type ClusterMaintenanceSchedule struct { // EndTime: Output only. The end time of any upcoming scheduled maintenance for // this instance. EndTime string `json:"endTime,omitempty"` - // ScheduleDeadlineTime: Output only. The deadline that the maintenance - // schedule start time can not go beyond, including reschedule. - ScheduleDeadlineTime string `json:"scheduleDeadlineTime,omitempty"` // StartTime: Output only. The start time of any upcoming scheduled maintenance // for this instance. StartTime string `json:"startTime,omitempty"` @@ -733,8 +730,6 @@ type ClusterWeeklyMaintenanceWindow struct { // "SATURDAY" - Saturday // "SUNDAY" - Sunday Day string `json:"day,omitempty"` - // Duration: Duration of the time window. - Duration string `json:"duration,omitempty"` // StartTime: Start time of the window in UTC. StartTime *TimeOfDay `json:"startTime,omitempty"` // ForceSendFields is a list of field names (e.g. "Day") to unconditionally @@ -2520,6 +2515,8 @@ type MachineConfiguration struct { // MemorySizeInBytes: Memory size in bytes. TODO(b/342344482, b/342346271) add // proto validations again after bug fix. MemorySizeInBytes int64 `json:"memorySizeInBytes,omitempty,string"` + // ShardCount: Optional. Number of shards (if applicable). + ShardCount int64 `json:"shardCount,omitempty"` // ForceSendFields is a list of field names (e.g. "CpuCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -3040,22 +3037,27 @@ func (s PscConfig) MarshalJSON() ([]byte, error) { // PscConnection: Details of consumer resources in a PSC connection. type PscConnection struct { - // Address: Output only. The IP allocated on the consumer network for the PSC + // Address: Required. The IP allocated on the consumer network for the PSC // forwarding rule. Address string `json:"address,omitempty"` - // ForwardingRule: Output only. The URI of the consumer side forwarding rule. + // ForwardingRule: Required. The URI of the consumer side forwarding rule. // Example: // projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}. ForwardingRule string `json:"forwardingRule,omitempty"` - // Network: The consumer network where the IP address resides, in the form of - // projects/{project_id}/global/networks/{network_id}. + // Network: Required. The consumer network where the IP address resides, in the + // form of projects/{project_id}/global/networks/{network_id}. Network string `json:"network,omitempty"` - // ProjectId: Output only. The consumer project_id where the forwarding rule is - // created from. + // ProjectId: Optional. Project ID of the consumer project where the forwarding + // rule is created in. ProjectId string `json:"projectId,omitempty"` - // PscConnectionId: Output only. The PSC connection id of the forwarding rule + // PscConnectionId: Optional. The PSC connection id of the forwarding rule // connected to the service attachment. PscConnectionId string `json:"pscConnectionId,omitempty"` + // ServiceAttachment: Required. The service attachment which is the target of + // the PSC connection, in the form of + // projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment + // -id}. + ServiceAttachment string `json:"serviceAttachment,omitempty"` // ForceSendFields is a list of field names (e.g. "Address") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See diff --git a/spanner/v1/spanner-api.json b/spanner/v1/spanner-api.json index 42ec5bc5a45..a000359477d 100644 --- a/spanner/v1/spanner-api.json +++ b/spanner/v1/spanner-api.json @@ -3264,7 +3264,7 @@ } } }, - "revision": "20240831", + "revision": "20240910", "rootUrl": "https://spanner.googleapis.com/", "schemas": { "AutoscalingConfig": { @@ -5647,6 +5647,23 @@ }, "type": "object" }, + "MultiplexedSessionPrecommitToken": { + "description": "When a read-write transaction is executed on a multiplexed session, this precommit token is sent back to the client as a part of the [Transaction] message in the BeginTransaction response and also as a part of the [ResultSet] and [PartialResultSet] responses.", + "id": "MultiplexedSessionPrecommitToken", + "properties": { + "precommitToken": { + "description": "Opaque precommit token.", + "format": "byte", + "type": "string" + }, + "seqNum": { + "description": "An incrementing seq number is generated on every precommit token that is returned. Clients should remember the precommit token with the highest sequence number from the current transaction attempt.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "Mutation": { "description": "A modification to one or more Cloud Spanner rows. Mutations can be applied to a Cloud Spanner database by sending them in a Commit call.", "id": "Mutation", @@ -6790,6 +6807,10 @@ "format": "byte", "type": "string" }, + "precommitToken": { + "$ref": "MultiplexedSessionPrecommitToken", + "description": "A precommit token will be included in the response of a BeginTransaction request if the read-write transaction is on a multiplexed session and a mutation_key was specified in the BeginTransaction. The precommit token with the highest sequence number from this transaction attempt should be passed to the Commit request for this transaction." + }, "readTimestamp": { "description": "For snapshot read-only transactions, the read timestamp chosen for the transaction. Not returned by default: see TransactionOptions.ReadOnly.return_read_timestamp. A timestamp in RFC3339 UTC \\\"Zulu\\\" format, accurate to nanoseconds. Example: `\"2014-10-02T15:01:23.045123456Z\"`.", "format": "google-datetime", diff --git a/spanner/v1/spanner-gen.go b/spanner/v1/spanner-gen.go index 531974cda26..ff996da3981 100644 --- a/spanner/v1/spanner-gen.go +++ b/spanner/v1/spanner-gen.go @@ -3872,6 +3872,35 @@ func (s MoveInstanceRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// MultiplexedSessionPrecommitToken: When a read-write transaction is executed +// on a multiplexed session, this precommit token is sent back to the client as +// a part of the [Transaction] message in the BeginTransaction response and +// also as a part of the [ResultSet] and [PartialResultSet] responses. +type MultiplexedSessionPrecommitToken struct { + // PrecommitToken: Opaque precommit token. + PrecommitToken string `json:"precommitToken,omitempty"` + // SeqNum: An incrementing seq number is generated on every precommit token + // that is returned. Clients should remember the precommit token with the + // highest sequence number from the current transaction attempt. + SeqNum int64 `json:"seqNum,omitempty"` + // ForceSendFields is a list of field names (e.g. "PrecommitToken") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PrecommitToken") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s MultiplexedSessionPrecommitToken) MarshalJSON() ([]byte, error) { + type NoMethod MultiplexedSessionPrecommitToken + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Mutation: A modification to one or more Cloud Spanner rows. Mutations can be // applied to a Cloud Spanner database by sending them in a Commit call. type Mutation struct { @@ -5635,6 +5664,12 @@ type Transaction struct { // not have IDs, because single-use transactions do not support multiple // requests. Id string `json:"id,omitempty"` + // PrecommitToken: A precommit token will be included in the response of a + // BeginTransaction request if the read-write transaction is on a multiplexed + // session and a mutation_key was specified in the BeginTransaction. The + // precommit token with the highest sequence number from this transaction + // attempt should be passed to the Commit request for this transaction. + PrecommitToken *MultiplexedSessionPrecommitToken `json:"precommitToken,omitempty"` // ReadTimestamp: For snapshot read-only transactions, the read timestamp // chosen for the transaction. Not returned by default: see // TransactionOptions.ReadOnly.return_read_timestamp. A timestamp in RFC3339 diff --git a/workflowexecutions/v1/workflowexecutions-api.json b/workflowexecutions/v1/workflowexecutions-api.json index 1faf90d104f..38fa6f4d1c7 100644 --- a/workflowexecutions/v1/workflowexecutions-api.json +++ b/workflowexecutions/v1/workflowexecutions-api.json @@ -302,7 +302,7 @@ ], "parameters": { "filter": { - "description": "Optional. Filters applied to the `[Executions.ListExecutions]` results. The following fields are supported for filtering: `executionId`, `state`, `createTime`, `startTime`, `endTime`, `duration`, `workflowRevisionId`, `stepName`, and `label`. For details, see AIP-160. For more information, see Filter executions. For example, if you are using the Google APIs Explorer: `state=\"SUCCEEDED\"` or `startTime\u003e\"2023-08-01\" AND state=\"FAILED\"`", + "description": "Optional. Filters applied to the `[Executions.ListExecutions]` results. The following fields are supported for filtering: `executionId`, `state`, `createTime`, `startTime`, `endTime`, `duration`, `workflowRevisionId`, `stepName`, `label`, and `disableConcurrencyQuotaOverflowBuffering`. For details, see AIP-160. For more information, see Filter executions. For example, if you are using the Google APIs Explorer: `state=\"SUCCEEDED\"` or `startTime\u003e\"2023-08-01\" AND state=\"FAILED\"`", "location": "query", "type": "string" }, @@ -517,7 +517,7 @@ } } }, - "revision": "20240827", + "revision": "20240916", "rootUrl": "https://workflowexecutions.googleapis.com/", "schemas": { "Callback": { @@ -682,7 +682,7 @@ "type": "string" }, "startTime": { - "description": "Output only. Marks the beginning of execution.", + "description": "Output only. Marks the beginning of execution. Note that this will be the same as `createTime` for executions that start immediately.", "format": "google-datetime", "readOnly": true, "type": "string" diff --git a/workflowexecutions/v1/workflowexecutions-gen.go b/workflowexecutions/v1/workflowexecutions-gen.go index 92db07bc4c9..d87e83d8417 100644 --- a/workflowexecutions/v1/workflowexecutions-gen.go +++ b/workflowexecutions/v1/workflowexecutions-gen.go @@ -381,7 +381,8 @@ type Execution struct { // Result: Output only. Output of the execution represented as a JSON string. // The value can only be present if the execution's state is `SUCCEEDED`. Result string `json:"result,omitempty"` - // StartTime: Output only. Marks the beginning of execution. + // StartTime: Output only. Marks the beginning of execution. Note that this + // will be the same as `createTime` for executions that start immediately. StartTime string `json:"startTime,omitempty"` // State: Output only. Current state of the execution. // @@ -1653,10 +1654,11 @@ func (r *ProjectsLocationsWorkflowsExecutionsService) List(parent string) *Proje // Filter sets the optional parameter "filter": Filters applied to the // `[Executions.ListExecutions]` results. The following fields are supported // for filtering: `executionId`, `state`, `createTime`, `startTime`, `endTime`, -// `duration`, `workflowRevisionId`, `stepName`, and `label`. For details, see -// AIP-160. For more information, see Filter executions. For example, if you -// are using the Google APIs Explorer: `state="SUCCEEDED" or -// `startTime>"2023-08-01" AND state="FAILED" +// `duration`, `workflowRevisionId`, `stepName`, `label`, and +// `disableConcurrencyQuotaOverflowBuffering`. For details, see AIP-160. For +// more information, see Filter executions. For example, if you are using the +// Google APIs Explorer: `state="SUCCEEDED" or `startTime>"2023-08-01" AND +// state="FAILED" func (c *ProjectsLocationsWorkflowsExecutionsListCall) Filter(filter string) *ProjectsLocationsWorkflowsExecutionsListCall { c.urlParams_.Set("filter", filter) return c From 34102ae8645c5ec2b9e04e821d3910b6b30abd5b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 23 Sep 2024 00:24:26 -0700 Subject: [PATCH 4/9] feat(all): auto-regenerate discovery clients (#2796) --- alloydb/v1beta/alloydb-api.json | 59 +++++++++++++++++++++++++++------ alloydb/v1beta/alloydb-gen.go | 39 +++++++++++++++++++++- redis/v1/redis-api.json | 40 ++++++++++------------ redis/v1/redis-gen.go | 32 +++++++++--------- 4 files changed, 121 insertions(+), 49 deletions(-) diff --git a/alloydb/v1beta/alloydb-api.json b/alloydb/v1beta/alloydb-api.json index c2b2bd43125..25ca393c397 100644 --- a/alloydb/v1beta/alloydb-api.json +++ b/alloydb/v1beta/alloydb-api.json @@ -1514,7 +1514,7 @@ } } }, - "revision": "20240828", + "revision": "20240909", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -2124,7 +2124,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -2132,7 +2134,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } @@ -2715,7 +2719,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -2723,7 +2729,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } @@ -3437,7 +3445,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -3445,7 +3455,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } @@ -4063,7 +4075,7 @@ "type": "object" }, "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata": { - "description": "Common model for database resource instance metadata.", + "description": "Common model for database resource instance metadata. Next ID: 21", "id": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata", "properties": { "availabilityConfiguration": { @@ -4202,6 +4214,10 @@ "description": "Required. Different from DatabaseResourceId.unique_id, a resource name can be reused over time. That is, after a resource named \"ABC\" is deleted, the name \"ABC\" can be used to to create a new resource within the same source. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel", "type": "string" }, + "tagsSet": { + "$ref": "StorageDatabasecenterPartnerapiV1mainTags", + "description": "Optional. Tags associated with this resources." + }, "updationTime": { "description": "The time at which the resource was updated and recorded at partner service.", "format": "google-datetime", @@ -4588,6 +4604,11 @@ "description": "Memory size in bytes. TODO(b/342344482, b/342346271) add proto validations again after bug fix.", "format": "int64", "type": "string" + }, + "shardCount": { + "description": "Optional. Number of shards (if applicable).", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -4715,6 +4736,20 @@ }, "type": "object" }, + "StorageDatabasecenterPartnerapiV1mainTags": { + "description": "Message type for storing tags. Tags provide a way to create annotations for resources, and in some cases conditionally allow or deny policies based on whether a resource has a specific tag.", + "id": "StorageDatabasecenterPartnerapiV1mainTags", + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "The Tag key/value mappings.", + "type": "object" + } + }, + "type": "object" + }, "StorageDatabasecenterPartnerapiV1mainUserLabels": { "description": "Message type for storing user labels. User labels are used to tag App Engine resources, allowing users to search for resources matching a set of labels and to aggregate usage data by labels.", "id": "StorageDatabasecenterPartnerapiV1mainUserLabels", @@ -5100,7 +5135,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -5108,7 +5145,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } diff --git a/alloydb/v1beta/alloydb-gen.go b/alloydb/v1beta/alloydb-gen.go index 95de68ac8e3..904a329743d 100644 --- a/alloydb/v1beta/alloydb-gen.go +++ b/alloydb/v1beta/alloydb-gen.go @@ -758,6 +758,8 @@ type ClusterUpgradeDetails struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. UpgradeStatus string `json:"upgradeStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterType") to // unconditionally include in API requests. By default, fields with empty or @@ -1445,6 +1447,8 @@ type InstanceUpgradeDetails struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. UpgradeStatus string `json:"upgradeStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceType") to // unconditionally include in API requests. By default, fields with empty or @@ -2422,6 +2426,8 @@ type StageInfo struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "LogsUrl") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -3024,7 +3030,7 @@ func (s StorageDatabasecenterPartnerapiV1mainDatabaseResourceId) MarshalJSON() ( } // StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata: Common model -// for database resource instance metadata. +// for database resource instance metadata. Next ID: 21 type StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata struct { // AvailabilityConfiguration: Availability configuration for this instance AvailabilityConfiguration *StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration `json:"availabilityConfiguration,omitempty"` @@ -3102,6 +3108,8 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata struct { // the same source. Resource name to follow CAIS resource_name format as noted // here go/condor-common-datamodel ResourceName string `json:"resourceName,omitempty"` + // TagsSet: Optional. Tags associated with this resources. + TagsSet *StorageDatabasecenterPartnerapiV1mainTags `json:"tagsSet,omitempty"` // UpdationTime: The time at which the resource was updated and recorded at // partner service. UpdationTime string `json:"updationTime,omitempty"` @@ -3458,6 +3466,8 @@ type StorageDatabasecenterPartnerapiV1mainMachineConfiguration struct { // MemorySizeInBytes: Memory size in bytes. TODO(b/342344482, b/342346271) add // proto validations again after bug fix. MemorySizeInBytes int64 `json:"memorySizeInBytes,omitempty,string"` + // ShardCount: Optional. Number of shards (if applicable). + ShardCount int64 `json:"shardCount,omitempty"` // ForceSendFields is a list of field names (e.g. "CpuCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -3593,6 +3603,31 @@ func (s StorageDatabasecenterPartnerapiV1mainRetentionSettings) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// StorageDatabasecenterPartnerapiV1mainTags: Message type for storing tags. +// Tags provide a way to create annotations for resources, and in some cases +// conditionally allow or deny policies based on whether a resource has a +// specific tag. +type StorageDatabasecenterPartnerapiV1mainTags struct { + // Tags: The Tag key/value mappings. + Tags map[string]string `json:"tags,omitempty"` + // ForceSendFields is a list of field names (e.g. "Tags") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Tags") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StorageDatabasecenterPartnerapiV1mainTags) MarshalJSON() ([]byte, error) { + type NoMethod StorageDatabasecenterPartnerapiV1mainTags + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // StorageDatabasecenterPartnerapiV1mainUserLabels: Message type for storing // user labels. User labels are used to tag App Engine resources, allowing // users to search for resources matching a set of labels and to aggregate @@ -3997,6 +4032,8 @@ type UpgradeClusterResponse struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterUpgradeDetails") to // unconditionally include in API requests. By default, fields with empty or diff --git a/redis/v1/redis-api.json b/redis/v1/redis-api.json index 08d788b97b6..4d979749f52 100644 --- a/redis/v1/redis-api.json +++ b/redis/v1/redis-api.json @@ -849,7 +849,7 @@ } } }, - "revision": "20240904", + "revision": "20240918", "rootUrl": "https://redis.googleapis.com/", "schemas": { "AOFConfig": { @@ -1131,7 +1131,7 @@ "REDIS_STANDARD_SMALL" ], "enumDescriptions": [ - "", + "Node type unspecified", "Redis shared core nano node_type.", "Redis highmem medium node_type.", "Redis highmem xlarge node_type.", @@ -1157,7 +1157,7 @@ "type": "array" }, "pscConnections": { - "description": "Output only. PSC connections for discovery of the cluster topology and accessing the cluster.", + "description": "Output only. The list of PSC connections that are auto-created through service connectivity automation.", "items": { "$ref": "PscConnection" }, @@ -1273,12 +1273,6 @@ "readOnly": true, "type": "string" }, - "scheduleDeadlineTime": { - "description": "Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, "startTime": { "description": "Output only. The start time of any upcoming scheduled maintenance for this instance.", "format": "google-datetime", @@ -1347,11 +1341,6 @@ ], "type": "string" }, - "duration": { - "description": "Duration of the time window.", - "format": "google-duration", - "type": "string" - }, "startTime": { "$ref": "TimeOfDay", "description": "Start time of the window in UTC." @@ -3186,6 +3175,11 @@ "description": "Memory size in bytes. TODO(b/342344482, b/342346271) add proto validations again after bug fix.", "format": "int64", "type": "string" + }, + "shardCount": { + "description": "Optional. Number of shards (if applicable).", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -3674,27 +3668,27 @@ "id": "PscConnection", "properties": { "address": { - "description": "Output only. The IP allocated on the consumer network for the PSC forwarding rule.", - "readOnly": true, + "description": "Required. The IP allocated on the consumer network for the PSC forwarding rule.", "type": "string" }, "forwardingRule": { - "description": "Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.", - "readOnly": true, + "description": "Required. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.", "type": "string" }, "network": { - "description": "The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.", + "description": "Required. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.", "type": "string" }, "projectId": { - "description": "Output only. The consumer project_id where the forwarding rule is created from.", - "readOnly": true, + "description": "Optional. Project ID of the consumer project where the forwarding rule is created in.", "type": "string" }, "pscConnectionId": { - "description": "Output only. The PSC connection id of the forwarding rule connected to the service attachment.", - "readOnly": true, + "description": "Optional. The PSC connection id of the forwarding rule connected to the service attachment.", + "type": "string" + }, + "serviceAttachment": { + "description": "Required. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.", "type": "string" } }, diff --git a/redis/v1/redis-gen.go b/redis/v1/redis-gen.go index 4c1f57a40f5..d6b4dd59ab2 100644 --- a/redis/v1/redis-gen.go +++ b/redis/v1/redis-gen.go @@ -536,7 +536,7 @@ type Cluster struct { // determines the underlying machine-type of a redis node. // // Possible values: - // "NODE_TYPE_UNSPECIFIED" + // "NODE_TYPE_UNSPECIFIED" - Node type unspecified // "REDIS_SHARED_CORE_NANO" - Redis shared core nano node_type. // "REDIS_HIGHMEM_MEDIUM" - Redis highmem medium node_type. // "REDIS_HIGHMEM_XLARGE" - Redis highmem xlarge node_type. @@ -551,8 +551,8 @@ type Cluster struct { // IPs will be designated to the cluster for client access through Private // Service Connect Automation. Currently, only one PscConfig is supported. PscConfigs []*PscConfig `json:"pscConfigs,omitempty"` - // PscConnections: Output only. PSC connections for discovery of the cluster - // topology and accessing the cluster. + // PscConnections: Output only. The list of PSC connections that are + // auto-created through service connectivity automation. PscConnections []*PscConnection `json:"pscConnections,omitempty"` // RedisConfigs: Optional. Key/Value pairs of customer overrides for mutable // Redis Configs @@ -661,9 +661,6 @@ type ClusterMaintenanceSchedule struct { // EndTime: Output only. The end time of any upcoming scheduled maintenance for // this instance. EndTime string `json:"endTime,omitempty"` - // ScheduleDeadlineTime: Output only. The deadline that the maintenance - // schedule start time can not go beyond, including reschedule. - ScheduleDeadlineTime string `json:"scheduleDeadlineTime,omitempty"` // StartTime: Output only. The start time of any upcoming scheduled maintenance // for this instance. StartTime string `json:"startTime,omitempty"` @@ -733,8 +730,6 @@ type ClusterWeeklyMaintenanceWindow struct { // "SATURDAY" - Saturday // "SUNDAY" - Sunday Day string `json:"day,omitempty"` - // Duration: Duration of the time window. - Duration string `json:"duration,omitempty"` // StartTime: Start time of the window in UTC. StartTime *TimeOfDay `json:"startTime,omitempty"` // ForceSendFields is a list of field names (e.g. "Day") to unconditionally @@ -2516,6 +2511,8 @@ type MachineConfiguration struct { // MemorySizeInBytes: Memory size in bytes. TODO(b/342344482, b/342346271) add // proto validations again after bug fix. MemorySizeInBytes int64 `json:"memorySizeInBytes,omitempty,string"` + // ShardCount: Optional. Number of shards (if applicable). + ShardCount int64 `json:"shardCount,omitempty"` // ForceSendFields is a list of field names (e.g. "CpuCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -3036,22 +3033,27 @@ func (s PscConfig) MarshalJSON() ([]byte, error) { // PscConnection: Details of consumer resources in a PSC connection. type PscConnection struct { - // Address: Output only. The IP allocated on the consumer network for the PSC + // Address: Required. The IP allocated on the consumer network for the PSC // forwarding rule. Address string `json:"address,omitempty"` - // ForwardingRule: Output only. The URI of the consumer side forwarding rule. + // ForwardingRule: Required. The URI of the consumer side forwarding rule. // Example: // projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}. ForwardingRule string `json:"forwardingRule,omitempty"` - // Network: The consumer network where the IP address resides, in the form of - // projects/{project_id}/global/networks/{network_id}. + // Network: Required. The consumer network where the IP address resides, in the + // form of projects/{project_id}/global/networks/{network_id}. Network string `json:"network,omitempty"` - // ProjectId: Output only. The consumer project_id where the forwarding rule is - // created from. + // ProjectId: Optional. Project ID of the consumer project where the forwarding + // rule is created in. ProjectId string `json:"projectId,omitempty"` - // PscConnectionId: Output only. The PSC connection id of the forwarding rule + // PscConnectionId: Optional. The PSC connection id of the forwarding rule // connected to the service attachment. PscConnectionId string `json:"pscConnectionId,omitempty"` + // ServiceAttachment: Required. The service attachment which is the target of + // the PSC connection, in the form of + // projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment + // -id}. + ServiceAttachment string `json:"serviceAttachment,omitempty"` // ForceSendFields is a list of field names (e.g. "Address") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See From af2bee1239d1deb8d89e058bee6b270bb2248b1c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 23 Sep 2024 18:08:46 +0200 Subject: [PATCH 5/9] chore(all): update module google.golang.org/grpc to v1.67.0 (#2795) --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 8b7e1601cc9..bc6a20668b5 100644 --- a/go.mod +++ b/go.mod @@ -22,7 +22,7 @@ require ( google.golang.org/genproto v0.0.0-20240903143218-8af14fe29dc1 google.golang.org/genproto/googleapis/bytestream v0.0.0-20240903143218-8af14fe29dc1 google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 - google.golang.org/grpc v1.66.2 + google.golang.org/grpc v1.67.0 google.golang.org/protobuf v1.34.2 ) diff --git a/go.sum b/go.sum index 5d76a0f042d..9ef214b1092 100644 --- a/go.sum +++ b/go.sum @@ -141,8 +141,8 @@ google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyac google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.66.2 h1:3QdXkuq3Bkh7w+ywLdLvM56cmGvQHUMZpiCzt6Rqaoo= -google.golang.org/grpc v1.66.2/go.mod h1:s3/l6xSSCURdVfAnL+TqCNMyTDAGN6+lZeVxnZR128Y= +google.golang.org/grpc v1.67.0 h1:IdH9y6PF5MPSdAntIcpjQ+tXO41pcQsfZV2RxtQgVcw= +google.golang.org/grpc v1.67.0/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= From 21926caa29a1141e7ed78abe78d7559a595e721d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 24 Sep 2024 00:26:23 -0700 Subject: [PATCH 6/9] feat(all): auto-regenerate discovery clients (#2797) --- cloudkms/v1/cloudkms-api.json | 7 ++++++- container/v1beta1/container-api.json | 10 +++++++--- container/v1beta1/container-gen.go | 12 ++++++++---- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/cloudkms/v1/cloudkms-api.json b/cloudkms/v1/cloudkms-api.json index 4f671d131dc..16cefdbde05 100644 --- a/cloudkms/v1/cloudkms-api.json +++ b/cloudkms/v1/cloudkms-api.json @@ -24,6 +24,11 @@ "endpointUrl": "https://cloudkms.europe-west3.rep.googleapis.com/", "location": "europe-west3" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://cloudkms.europe-west8.rep.googleapis.com/", + "location": "europe-west8" + }, { "description": "Regional Endpoint", "endpointUrl": "https://cloudkms.europe-west9.rep.googleapis.com/", @@ -2127,7 +2132,7 @@ } } }, - "revision": "20240903", + "revision": "20240918", "rootUrl": "https://cloudkms.googleapis.com/", "schemas": { "AsymmetricDecryptRequest": { diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index 6def6895561..58895c6a91d 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2565,7 +2565,7 @@ } } }, - "revision": "20240814", + "revision": "20240905", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2625,6 +2625,10 @@ "$ref": "MaxPodsConstraint", "description": "The maximum number of pods per node which use this pod network." }, + "networkAttachment": { + "description": "The name of the network attachment for pods to communicate to; cannot be specified along with subnetwork or secondary_pod_range.", + "type": "string" + }, "secondaryPodRange": { "description": "The name of the secondary range on the subnet which provides IP address for this pod range.", "type": "string" @@ -4637,7 +4641,7 @@ "properties": { "cacheHeader": { "$ref": "HttpCacheControlResponseHeader", - "description": "OnePlatform automatically extracts this field and uses it to set the HTTP Cache-Control header." + "description": "For HTTP requests, this field is automatically extracted into the Cache-Control HTTP header." }, "keys": { "description": "The public component of the keys used by the cluster to sign token requests.", @@ -4655,7 +4659,7 @@ "properties": { "cacheHeader": { "$ref": "HttpCacheControlResponseHeader", - "description": "OnePlatform automatically extracts this field and uses it to set the HTTP Cache-Control header." + "description": "For HTTP requests, this field is automatically extracted into the Cache-Control HTTP header." }, "claims_supported": { "description": "Supported claims.", diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index 3a48cce7d15..d3cb1e4bb00 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -366,6 +366,10 @@ type AdditionalPodNetworkConfig struct { // MaxPodsPerNode: The maximum number of pods per node which use this pod // network. MaxPodsPerNode *MaxPodsConstraint `json:"maxPodsPerNode,omitempty"` + // NetworkAttachment: The name of the network attachment for pods to + // communicate to; cannot be specified along with subnetwork or + // secondary_pod_range. + NetworkAttachment string `json:"networkAttachment,omitempty"` // SecondaryPodRange: The name of the secondary range on the subnet which // provides IP address for this pod range. SecondaryPodRange string `json:"secondaryPodRange,omitempty"` @@ -2757,8 +2761,8 @@ func (s GcsFuseCsiDriverConfig) MarshalJSON() ([]byte, error) { // GetJSONWebKeysResponse: GetJSONWebKeysResponse is a valid JSON Web Key Set // as specififed in rfc 7517 type GetJSONWebKeysResponse struct { - // CacheHeader: OnePlatform automatically extracts this field and uses it to - // set the HTTP Cache-Control header. + // CacheHeader: For HTTP requests, this field is automatically extracted into + // the Cache-Control HTTP header. CacheHeader *HttpCacheControlResponseHeader `json:"cacheHeader,omitempty"` // Keys: The public component of the keys used by the cluster to sign token // requests. @@ -2788,8 +2792,8 @@ func (s GetJSONWebKeysResponse) MarshalJSON() ([]byte, error) { // document for the cluster. See the OpenID Connect Discovery 1.0 specification // for details. type GetOpenIDConfigResponse struct { - // CacheHeader: OnePlatform automatically extracts this field and uses it to - // set the HTTP Cache-Control header. + // CacheHeader: For HTTP requests, this field is automatically extracted into + // the Cache-Control HTTP header. CacheHeader *HttpCacheControlResponseHeader `json:"cacheHeader,omitempty"` // ClaimsSupported: Supported claims. ClaimsSupported []string `json:"claims_supported,omitempty"` From 9ce4b506f2a90a591da35bb1d12251f9ee45ee84 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 25 Sep 2024 00:20:26 -0700 Subject: [PATCH 7/9] feat(all): auto-regenerate discovery clients (#2799) --- .../v1/androidmanagement-api.json | 33 +- androidmanagement/v1/androidmanagement-gen.go | 48 +- apigee/v1/apigee-api.json | 6 +- apigee/v1/apigee-gen.go | 4 +- .../v1/bigqueryreservation-api.json | 56 +- .../v1/bigqueryreservation-gen.go | 9 +- bigtableadmin/v2/bigtableadmin-api.json | 21 +- bigtableadmin/v2/bigtableadmin-gen.go | 25 +- chat/v1/chat-api.json | 4 +- chat/v1/chat-gen.go | 4 +- developerconnect/v1/developerconnect-api.json | 170 +++- developerconnect/v1/developerconnect-gen.go | 228 +++++ gkehub/v1/gkehub-api.json | 18 +- gkehub/v1/gkehub-gen.go | 8 + .../accounts_v1beta/merchantapi-api.json | 23 +- .../accounts_v1beta/merchantapi-gen.go | 34 +- .../v1/paymentsresellersubscription-api.json | 6 +- .../v1/paymentsresellersubscription-gen.go | 6 +- places/v1/places-api.json | 8 +- places/v1/places-gen.go | 5 + retail/v2/retail-api.json | 276 +++++- retail/v2/retail-gen.go | 831 +++++++++++++++++- retail/v2alpha/retail-api.json | 276 +++++- retail/v2alpha/retail-gen.go | 829 ++++++++++++++++- retail/v2beta/retail-api.json | 276 +++++- retail/v2beta/retail-gen.go | 831 +++++++++++++++++- .../v1beta2/securitycenter-api.json | 82 +- securitycenter/v1beta2/securitycenter-gen.go | 128 +++ .../v1/serviceconsumermanagement-api.json | 20 +- .../v1/serviceconsumermanagement-gen.go | 27 + sheets/v4/sheets-api.json | 4 +- sheets/v4/sheets-gen.go | 3 +- 32 files changed, 4112 insertions(+), 187 deletions(-) diff --git a/androidmanagement/v1/androidmanagement-api.json b/androidmanagement/v1/androidmanagement-api.json index 9a3f0b7c513..656f948c90c 100644 --- a/androidmanagement/v1/androidmanagement-api.json +++ b/androidmanagement/v1/androidmanagement-api.json @@ -1168,7 +1168,7 @@ } } }, - "revision": "20240904", + "revision": "20240923", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdbShellCommandEvent": { @@ -1193,7 +1193,7 @@ "id": "AdvancedSecurityOverrides", "properties": { "commonCriteriaMode": { - "description": "Controls Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC). Enabling Common Criteria Mode increases certain security components on a device, including AES-GCM encryption of Bluetooth Long Term Keys, and Wi-Fi configuration stores.Common Criteria Mode is only supported on company-owned devices running Android 11 or above.Warning: Common Criteria Mode enforces a strict security model typically only required for IT products used in national security systems and other highly sensitive organizations. Standard device use may be affected. Only enabled if required.", + "description": "Controls Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC). Enabling Common Criteria Mode increases certain security components on a device, see CommonCriteriaMode for details.Warning: Common Criteria Mode enforces a strict security model typically only required for IT products used in national security systems and other highly sensitive organizations. Standard device use may be affected. Only enabled if required. If Common Criteria Mode is turned off after being enabled previously, all user-configured Wi-Fi networks may be lost and any enterprise-configured Wi-Fi networks that require user input may need to be reconfigured.", "enum": [ "COMMON_CRITERIA_MODE_UNSPECIFIED", "COMMON_CRITERIA_MODE_DISABLED", @@ -2252,6 +2252,25 @@ "Common Criteria Mode is currently enabled." ], "type": "string" + }, + "policySignatureVerificationStatus": { + "description": "Output only. The status of policy signature verification.", + "enum": [ + "POLICY_SIGNATURE_VERIFICATION_STATUS_UNSPECIFIED", + "POLICY_SIGNATURE_VERIFICATION_DISABLED", + "POLICY_SIGNATURE_VERIFICATION_SUCCEEDED", + "POLICY_SIGNATURE_VERIFICATION_NOT_SUPPORTED", + "POLICY_SIGNATURE_VERIFICATION_FAILED" + ], + "enumDescriptions": [ + "Unspecified. The verification status has not been reported. This is set only if statusReportingSettings.commonCriteriaModeEnabled is false.", + "Policy signature verification is disabled on the device as common_criteria_mode is set to false.", + "Policy signature verification succeeded.", + "Policy signature verification is not supported, e.g. because the device has been enrolled with a CloudDPC version that does not support the policy signature verification.", + "The policy signature verification failed. The policy has not been applied." + ], + "readOnly": true, + "type": "string" } }, "type": "object" @@ -5663,7 +5682,7 @@ "id": "ScreenBrightnessSettings", "properties": { "screenBrightness": { - "description": "Optional. The screen brightness between 1 and 255 where 1 is the lowest and 255 is the highest brightness. A value of 0 (default) means no screen brightness set. Any other value is rejected. screenBrightnessMode must be either BRIGHTNESS_AUTOMATIC or BRIGHTNESS_FIXED to set this. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9.", + "description": "Optional. The screen brightness between 1 and 255 where 1 is the lowest and 255 is the highest brightness. A value of 0 (default) means no screen brightness set. Any other value is rejected. screenBrightnessMode must be either BRIGHTNESS_AUTOMATIC or BRIGHTNESS_FIXED to set this. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above.", "format": "int32", "type": "integer" }, @@ -5678,8 +5697,8 @@ "enumDescriptions": [ "Unspecified. Defaults to BRIGHTNESS_USER_CHOICE.", "The user is allowed to configure the screen brightness. screenBrightness must not be set.", - "The screen brightness mode is automatic in which the brightness is automatically adjusted and the user is not allowed to configure the screen brightness. screenBrightness can still be set and it is taken into account while the brightness is automatically adjusted. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9.", - "The screen brightness mode is fixed in which the brightness is set to screenBrightness and the user is not allowed to configure the screen brightness. screenBrightness must be set. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9." + "The screen brightness mode is automatic in which the brightness is automatically adjusted and the user is not allowed to configure the screen brightness. screenBrightness can still be set and it is taken into account while the brightness is automatically adjusted. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above.", + "The screen brightness mode is fixed in which the brightness is set to screenBrightness and the user is not allowed to configure the screen brightness. screenBrightness must be set. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above." ], "type": "string" } @@ -5691,7 +5710,7 @@ "id": "ScreenTimeoutSettings", "properties": { "screenTimeout": { - "description": "Optional. Controls the screen timeout duration. The screen timeout duration must be greater than 0, otherwise it is rejected. Additionally, it should not be greater than maximumTimeToLock, otherwise the screen timeout is set to maximumTimeToLock and a NonComplianceDetail with INVALID_VALUE reason and SCREEN_TIMEOUT_GREATER_THAN_MAXIMUM_TIME_TO_LOCK specific reason is reported. If the screen timeout is less than a certain lower bound, it is set to the lower bound. The lower bound may vary across devices. If this is set, screenTimeoutMode must be SCREEN_TIMEOUT_ENFORCED. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9.", + "description": "Optional. Controls the screen timeout duration. The screen timeout duration must be greater than 0, otherwise it is rejected. Additionally, it should not be greater than maximumTimeToLock, otherwise the screen timeout is set to maximumTimeToLock and a NonComplianceDetail with INVALID_VALUE reason and SCREEN_TIMEOUT_GREATER_THAN_MAXIMUM_TIME_TO_LOCK specific reason is reported. If the screen timeout is less than a certain lower bound, it is set to the lower bound. The lower bound may vary across devices. If this is set, screenTimeoutMode must be SCREEN_TIMEOUT_ENFORCED. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above.", "format": "google-duration", "type": "string" }, @@ -5705,7 +5724,7 @@ "enumDescriptions": [ "Unspecified. Defaults to SCREEN_TIMEOUT_USER_CHOICE.", "The user is allowed to configure the screen timeout. screenTimeout must not be set.", - "The screen timeout is set to screenTimeout and the user is not allowed to configure the timeout. screenTimeout must be set. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9." + "The screen timeout is set to screenTimeout and the user is not allowed to configure the timeout. screenTimeout must be set. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above." ], "type": "string" } diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index 8bf258bd144..8c8576a9aab 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -317,13 +317,14 @@ type AdvancedSecurityOverrides struct { // CommonCriteriaMode: Controls Common Criteria Mode—security standards // defined in the Common Criteria for Information Technology Security // Evaluation (https://www.commoncriteriaportal.org/) (CC). Enabling Common - // Criteria Mode increases certain security components on a device, including - // AES-GCM encryption of Bluetooth Long Term Keys, and Wi-Fi configuration - // stores.Common Criteria Mode is only supported on company-owned devices - // running Android 11 or above.Warning: Common Criteria Mode enforces a strict - // security model typically only required for IT products used in national - // security systems and other highly sensitive organizations. Standard device - // use may be affected. Only enabled if required. + // Criteria Mode increases certain security components on a device, see + // CommonCriteriaMode for details.Warning: Common Criteria Mode enforces a + // strict security model typically only required for IT products used in + // national security systems and other highly sensitive organizations. Standard + // device use may be affected. Only enabled if required. If Common Criteria + // Mode is turned off after being enabled previously, all user-configured Wi-Fi + // networks may be lost and any enterprise-configured Wi-Fi networks that + // require user input may need to be reconfigured. // // Possible values: // "COMMON_CRITERIA_MODE_UNSPECIFIED" - Unspecified. Defaults to @@ -1517,6 +1518,24 @@ type CommonCriteriaModeInfo struct { // "COMMON_CRITERIA_MODE_ENABLED" - Common Criteria Mode is currently // enabled. CommonCriteriaModeStatus string `json:"commonCriteriaModeStatus,omitempty"` + // PolicySignatureVerificationStatus: Output only. The status of policy + // signature verification. + // + // Possible values: + // "POLICY_SIGNATURE_VERIFICATION_STATUS_UNSPECIFIED" - Unspecified. The + // verification status has not been reported. This is set only if + // statusReportingSettings.commonCriteriaModeEnabled is false. + // "POLICY_SIGNATURE_VERIFICATION_DISABLED" - Policy signature verification + // is disabled on the device as common_criteria_mode is set to false. + // "POLICY_SIGNATURE_VERIFICATION_SUCCEEDED" - Policy signature verification + // succeeded. + // "POLICY_SIGNATURE_VERIFICATION_NOT_SUPPORTED" - Policy signature + // verification is not supported, e.g. because the device has been enrolled + // with a CloudDPC version that does not support the policy signature + // verification. + // "POLICY_SIGNATURE_VERIFICATION_FAILED" - The policy signature verification + // failed. The policy has not been applied. + PolicySignatureVerificationStatus string `json:"policySignatureVerificationStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "CommonCriteriaModeStatus") // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -5500,7 +5519,8 @@ type ScreenBrightnessSettings struct { // screenBrightnessMode must be either BRIGHTNESS_AUTOMATIC or BRIGHTNESS_FIXED // to set this. Supported on Android 9 and above on fully managed devices. A // NonComplianceDetail with API_LEVEL is reported if the Android version is - // less than 9. + // less than 9. Supported on work profiles on company-owned devices on Android + // 15 and above. ScreenBrightness int64 `json:"screenBrightness,omitempty"` // ScreenBrightnessMode: Optional. Controls the screen brightness mode. // @@ -5514,12 +5534,14 @@ type ScreenBrightnessSettings struct { // configure the screen brightness. screenBrightness can still be set and it is // taken into account while the brightness is automatically adjusted. Supported // on Android 9 and above on fully managed devices. A NonComplianceDetail with - // API_LEVEL is reported if the Android version is less than 9. + // API_LEVEL is reported if the Android version is less than 9. Supported on + // work profiles on company-owned devices on Android 15 and above. // "BRIGHTNESS_FIXED" - The screen brightness mode is fixed in which the // brightness is set to screenBrightness and the user is not allowed to // configure the screen brightness. screenBrightness must be set. Supported on // Android 9 and above on fully managed devices. A NonComplianceDetail with - // API_LEVEL is reported if the Android version is less than 9. + // API_LEVEL is reported if the Android version is less than 9. Supported on + // work profiles on company-owned devices on Android 15 and above. ScreenBrightnessMode string `json:"screenBrightnessMode,omitempty"` // ForceSendFields is a list of field names (e.g. "ScreenBrightness") to // unconditionally include in API requests. By default, fields with empty or @@ -5551,7 +5573,8 @@ type ScreenTimeoutSettings struct { // devices. If this is set, screenTimeoutMode must be SCREEN_TIMEOUT_ENFORCED. // Supported on Android 9 and above on fully managed devices. A // NonComplianceDetail with API_LEVEL is reported if the Android version is - // less than 9. + // less than 9. Supported on work profiles on company-owned devices on Android + // 15 and above. ScreenTimeout string `json:"screenTimeout,omitempty"` // ScreenTimeoutMode: Optional. Controls whether the user is allowed to // configure the screen timeout. @@ -5565,7 +5588,8 @@ type ScreenTimeoutSettings struct { // the user is not allowed to configure the timeout. screenTimeout must be set. // Supported on Android 9 and above on fully managed devices. A // NonComplianceDetail with API_LEVEL is reported if the Android version is - // less than 9. + // less than 9. Supported on work profiles on company-owned devices on Android + // 15 and above. ScreenTimeoutMode string `json:"screenTimeoutMode,omitempty"` // ForceSendFields is a list of field names (e.g. "ScreenTimeout") to // unconditionally include in API requests. By default, fields with empty or diff --git a/apigee/v1/apigee-api.json b/apigee/v1/apigee-api.json index e2548b37290..5e204819667 100644 --- a/apigee/v1/apigee-api.json +++ b/apigee/v1/apigee-api.json @@ -181,7 +181,7 @@ "type": "string" }, "retention": { - "description": "Optional. This setting is applicable only for organizations that are soft-deleted (i.e., BillingType is not EVALUATION). It controls how long Organization data will be retained after the initial delete operation completes. During this period, the Organization may be restored to its last known state. After this period, the Organization will no longer be able to be restored. **Note: During the data retention period specified using this field, the Apigee organization cannot be recreated in the same GCP project.**", + "description": "Optional. This setting is applicable only for organizations that are soft-deleted (i.e., BillingType is not EVALUATION). It controls how long Organization data will be retained after the initial delete operation completes. During this period, the Organization may be restored to its last known state. After this period, the Organization will no longer be able to be restored. **Note: During the data retention period specified using this field, the Apigee organization cannot be recreated in the same Google Cloud project.**", "enum": [ "DELETION_RETENTION_UNSPECIFIED", "MINIMUM" @@ -10157,7 +10157,7 @@ } } }, - "revision": "20240905", + "revision": "20240919", "rootUrl": "https://apigee.googleapis.com/", "schemas": { "EdgeConfigstoreBundleBadBundle": { @@ -12209,7 +12209,7 @@ "type": "string" }, "projectId": { - "description": "Required. GCP project in which the datastore exists", + "description": "Required. Google Cloud project in which the datastore exists", "type": "string" }, "tablePrefix": { diff --git a/apigee/v1/apigee-gen.go b/apigee/v1/apigee-gen.go index 377fe3e6b6f..0c21f60bd46 100644 --- a/apigee/v1/apigee-gen.go +++ b/apigee/v1/apigee-gen.go @@ -3544,7 +3544,7 @@ type GoogleCloudApigeeV1DatastoreConfig struct { DatasetName string `json:"datasetName,omitempty"` // Path: Path of Cloud Storage bucket Required for `gcs` target_type. Path string `json:"path,omitempty"` - // ProjectId: Required. GCP project in which the datastore exists + // ProjectId: Required. Google Cloud project in which the datastore exists ProjectId string `json:"projectId,omitempty"` // TablePrefix: Prefix of BigQuery table Required for `bigquery` target_type. TablePrefix string `json:"tablePrefix,omitempty"` @@ -11856,7 +11856,7 @@ func (r *OrganizationsService) Delete(name string) *OrganizationsDeleteCall { // Organization may be restored to its last known state. After this period, the // Organization will no longer be able to be restored. **Note: During the data // retention period specified using this field, the Apigee organization cannot -// be recreated in the same GCP project.** +// be recreated in the same Google Cloud project.** // // Possible values: // diff --git a/bigqueryreservation/v1/bigqueryreservation-api.json b/bigqueryreservation/v1/bigqueryreservation-api.json index dc78d4b9818..69bfbe1e8b6 100644 --- a/bigqueryreservation/v1/bigqueryreservation-api.json +++ b/bigqueryreservation/v1/bigqueryreservation-api.json @@ -24,6 +24,11 @@ "endpointUrl": "https://bigqueryreservation.europe-west3.rep.googleapis.com/", "location": "europe-west3" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://bigqueryreservation.europe-west8.rep.googleapis.com/", + "location": "europe-west8" + }, { "description": "Regional Endpoint", "endpointUrl": "https://bigqueryreservation.europe-west9.rep.googleapis.com/", @@ -34,20 +39,65 @@ "endpointUrl": "https://bigqueryreservation.me-central2.rep.googleapis.com/", "location": "me-central2" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://bigqueryreservation.us-central1.rep.googleapis.com/", + "location": "us-central1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://bigqueryreservation.us-central2.rep.googleapis.com/", + "location": "us-central2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://bigqueryreservation.us-east1.rep.googleapis.com/", + "location": "us-east1" + }, { "description": "Regional Endpoint", "endpointUrl": "https://bigqueryreservation.us-east4.rep.googleapis.com/", "location": "us-east4" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://bigqueryreservation.us-east5.rep.googleapis.com/", + "location": "us-east5" + }, { "description": "Regional Endpoint", "endpointUrl": "https://bigqueryreservation.us-east7.rep.googleapis.com/", "location": "us-east7" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://bigqueryreservation.us-south1.rep.googleapis.com/", + "location": "us-south1" + }, { "description": "Regional Endpoint", "endpointUrl": "https://bigqueryreservation.us-west1.rep.googleapis.com/", "location": "us-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://bigqueryreservation.us-west2.rep.googleapis.com/", + "location": "us-west2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://bigqueryreservation.us-west3.rep.googleapis.com/", + "location": "us-west3" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://bigqueryreservation.us-west4.rep.googleapis.com/", + "location": "us-west4" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://bigqueryreservation.us-west8.rep.googleapis.com/", + "location": "us-west8" } ], "fullyEncodeReservedExpansion": true, @@ -885,7 +935,7 @@ } } }, - "revision": "20240611", + "revision": "20240921", "rootUrl": "https://bigqueryreservation.googleapis.com/", "schemas": { "Assignment": { @@ -991,13 +1041,13 @@ "id": "CapacityCommitment", "properties": { "commitmentEndTime": { - "description": "Output only. The end of the current commitment period. It is applicable only for ACTIVE capacity commitments.", + "description": "Output only. The end of the current commitment period. It is applicable only for ACTIVE capacity commitments. Note after renewal, commitment_end_time is the time the renewed commitment expires. So itwould be at a time after commitment_start_time + committed period, because we don't change commitment_start_time ,", "format": "google-datetime", "readOnly": true, "type": "string" }, "commitmentStartTime": { - "description": "Output only. The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.", + "description": "Output only. The start of the current commitment period. It is applicable only for ACTIVE capacity commitments. Note after the commitment is renewed, commitment_start_time won't be changed. It refers to the start time of the original commitment.", "format": "google-datetime", "readOnly": true, "type": "string" diff --git a/bigqueryreservation/v1/bigqueryreservation-gen.go b/bigqueryreservation/v1/bigqueryreservation-gen.go index 4eca20cd674..412078f3b9b 100644 --- a/bigqueryreservation/v1/bigqueryreservation-gen.go +++ b/bigqueryreservation/v1/bigqueryreservation-gen.go @@ -343,10 +343,15 @@ func (s BiReservation) MarshalJSON() ([]byte, error) { // project. type CapacityCommitment struct { // CommitmentEndTime: Output only. The end of the current commitment period. It - // is applicable only for ACTIVE capacity commitments. + // is applicable only for ACTIVE capacity commitments. Note after renewal, + // commitment_end_time is the time the renewed commitment expires. So itwould + // be at a time after commitment_start_time + committed period, because we + // don't change commitment_start_time , CommitmentEndTime string `json:"commitmentEndTime,omitempty"` // CommitmentStartTime: Output only. The start of the current commitment - // period. It is applicable only for ACTIVE capacity commitments. + // period. It is applicable only for ACTIVE capacity commitments. Note after + // the commitment is renewed, commitment_start_time won't be changed. It refers + // to the start time of the original commitment. CommitmentStartTime string `json:"commitmentStartTime,omitempty"` // Edition: Edition of the capacity commitment. // diff --git a/bigtableadmin/v2/bigtableadmin-api.json b/bigtableadmin/v2/bigtableadmin-api.json index be0d67e7811..6496fb7e863 100644 --- a/bigtableadmin/v2/bigtableadmin-api.json +++ b/bigtableadmin/v2/bigtableadmin-api.json @@ -2194,7 +2194,7 @@ } } }, - "revision": "20240904", + "revision": "20240918", "rootUrl": "https://bigtableadmin.googleapis.com/", "schemas": { "AppProfile": { @@ -2585,6 +2585,20 @@ "description": "The unique name of the cluster. Values are of the form `projects/{project}/instances/{instance}/clusters/a-z*`.", "type": "string" }, + "nodeScalingFactor": { + "description": "Immutable. The node scaling factor of this cluster.", + "enum": [ + "NODE_SCALING_FACTOR_UNSPECIFIED", + "NODE_SCALING_FACTOR_1X", + "NODE_SCALING_FACTOR_2X" + ], + "enumDescriptions": [ + "No node scaling specified. Defaults to NODE_SCALING_FACTOR_1X.", + "The cluster is running with a scaling factor of 1.", + "The cluster is running with a scaling factor of 2. All node count values must be in increments of 2 with this scaling factor enabled, otherwise an INVALID_ARGUMENT error will be returned." + ], + "type": "string" + }, "serveNodes": { "description": "The number of nodes in the cluster. If no value is set, Cloud Bigtable automatically allocates nodes based on your data footprint and optimized for 50% storage utilization.", "format": "int32", @@ -3306,6 +3320,7 @@ "properties": { "bytesType": { "$ref": "GoogleBigtableAdminV2TypeBytes", + "deprecated": true, "description": "Deprecated: ignored if set." } }, @@ -3347,6 +3362,7 @@ }, "utf8Raw": { "$ref": "GoogleBigtableAdminV2TypeStringEncodingUtf8Raw", + "deprecated": true, "description": "Deprecated: if set, converts to an empty `utf8_bytes`." } }, @@ -3359,6 +3375,7 @@ "type": "object" }, "GoogleBigtableAdminV2TypeStringEncodingUtf8Raw": { + "deprecated": true, "description": "Deprecated: prefer the equivalent `Utf8Bytes`.", "id": "GoogleBigtableAdminV2TypeStringEncodingUtf8Raw", "properties": {}, @@ -4031,7 +4048,7 @@ "type": "object" }, "RowAffinity": { - "description": "If enabled, the AFE will route the request based on the row key of the request, rather than randomly. Instead, each row key will be assigned to a cluster, and will stick to that cluster. If clusters are added or removed, then this may affect which row keys stick to which clusters. To avoid this, users can specify a group cluster.", + "description": "If enabled, Bigtable will route the request based on the row key of the request, rather than randomly. Instead, each row key will be assigned to a cluster, and will stick to that cluster. If clusters are added or removed, then this may affect which row keys stick to which clusters. To avoid this, users can use a cluster group to specify which clusters are to be used. In this case, new clusters that are not a part of the cluster group will not be routed to, and routing will be unaffected by the new cluster. Moreover, clusters specified in the cluster group cannot be deleted unless removed from the cluster group.", "id": "RowAffinity", "properties": {}, "type": "object" diff --git a/bigtableadmin/v2/bigtableadmin-gen.go b/bigtableadmin/v2/bigtableadmin-gen.go index 3b162fa8e0d..63a13c755b9 100644 --- a/bigtableadmin/v2/bigtableadmin-gen.go +++ b/bigtableadmin/v2/bigtableadmin-gen.go @@ -912,6 +912,17 @@ type Cluster struct { // Name: The unique name of the cluster. Values are of the form // `projects/{project}/instances/{instance}/clusters/a-z*`. Name string `json:"name,omitempty"` + // NodeScalingFactor: Immutable. The node scaling factor of this cluster. + // + // Possible values: + // "NODE_SCALING_FACTOR_UNSPECIFIED" - No node scaling specified. Defaults to + // NODE_SCALING_FACTOR_1X. + // "NODE_SCALING_FACTOR_1X" - The cluster is running with a scaling factor of + // 1. + // "NODE_SCALING_FACTOR_2X" - The cluster is running with a scaling factor of + // 2. All node count values must be in increments of 2 with this scaling factor + // enabled, otherwise an INVALID_ARGUMENT error will be returned. + NodeScalingFactor string `json:"nodeScalingFactor,omitempty"` // ServeNodes: The number of nodes in the cluster. If no value is set, Cloud // Bigtable automatically allocates nodes based on your data footprint and // optimized for 50% storage utilization. @@ -3149,11 +3160,15 @@ func (s RestoreTableRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RowAffinity: If enabled, the AFE will route the request based on the row key -// of the request, rather than randomly. Instead, each row key will be assigned -// to a cluster, and will stick to that cluster. If clusters are added or -// removed, then this may affect which row keys stick to which clusters. To -// avoid this, users can specify a group cluster. +// RowAffinity: If enabled, Bigtable will route the request based on the row +// key of the request, rather than randomly. Instead, each row key will be +// assigned to a cluster, and will stick to that cluster. If clusters are added +// or removed, then this may affect which row keys stick to which clusters. To +// avoid this, users can use a cluster group to specify which clusters are to +// be used. In this case, new clusters that are not a part of the cluster group +// will not be routed to, and routing will be unaffected by the new cluster. +// Moreover, clusters specified in the cluster group cannot be deleted unless +// removed from the cluster group. type RowAffinity struct { } diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 5f736389728..c785aa32fff 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -1344,7 +1344,7 @@ } } }, - "revision": "20240912", + "revision": "20240919", "rootUrl": "https://chat.googleapis.com/", "schemas": { "AccessSettings": { @@ -1367,7 +1367,7 @@ "type": "string" }, "audience": { - "description": "Optional. The resource name of the [target audience](https://support.google.com/a/answer/9934697) who can discover the space, join the space, and preview the messages in the space. If unset, only users or Google Groups who have been individually invited or added to the space can access it. For details, see [Make a space discoverable to a target audience](https://developers.google.com/workspace/chat/space-target-audience). Format: `audiences/{audience}` To use the default target audience for the Google Workspace organization, set to `audiences/default`.", + "description": "Optional. The resource name of the [target audience](https://support.google.com/a/answer/9934697) who can discover the space, join the space, and preview the messages in the space. If unset, only users or Google Groups who have been individually invited or added to the space can access it. For details, see [Make a space discoverable to a target audience](https://developers.google.com/workspace/chat/space-target-audience). Format: `audiences/{audience}` To use the default target audience for the Google Workspace organization, set to `audiences/default`. This field is not populated when using the `chat.bot` scope with [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).", "type": "string" } }, diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 620ebfe36f1..ea39d62fda7 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -412,7 +412,9 @@ type AccessSettings struct { // audience // (https://developers.google.com/workspace/chat/space-target-audience). // Format: `audiences/{audience}` To use the default target audience for the - // Google Workspace organization, set to `audiences/default`. + // Google Workspace organization, set to `audiences/default`. This field is not + // populated when using the `chat.bot` scope with app authentication + // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). Audience string `json:"audience,omitempty"` // ForceSendFields is a list of field names (e.g. "AccessState") to // unconditionally include in API requests. By default, fields with empty or diff --git a/developerconnect/v1/developerconnect-api.json b/developerconnect/v1/developerconnect-api.json index b10e36bd582..4b6f7bba56f 100644 --- a/developerconnect/v1/developerconnect-api.json +++ b/developerconnect/v1/developerconnect-api.json @@ -428,7 +428,7 @@ "type": "string" }, "updateMask": { - "description": "Required. Field mask is used to specify the fields to be overwritten in the Connection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + "description": "Optional. Required. Field mask is used to specify the fields to be overwritten in the Connection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -847,7 +847,7 @@ } } }, - "revision": "20240822", + "revision": "20240919", "rootUrl": "https://developerconnect.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -873,6 +873,10 @@ "readOnly": true, "type": "string" }, + "cryptoKeyConfig": { + "$ref": "CryptoKeyConfig", + "description": "Optional. The crypto key configuration. This field is used by the Customer-Managed Encryption Keys (CMEK) feature." + }, "deleteTime": { "description": "Output only. [Output only] Delete timestamp", "format": "google-datetime", @@ -891,6 +895,18 @@ "$ref": "GitHubConfig", "description": "Configuration for connections to github.com." }, + "githubEnterpriseConfig": { + "$ref": "GitHubEnterpriseConfig", + "description": "Configuration for connections to an instance of GitHub Enterprise." + }, + "gitlabConfig": { + "$ref": "GitLabConfig", + "description": "Configuration for connections to gitlab.com." + }, + "gitlabEnterpriseConfig": { + "$ref": "GitLabEnterpriseConfig", + "description": "Configuration for connections to an instance of GitLab Enterprise." + }, "installationState": { "$ref": "InstallationState", "description": "Output only. Installation state of the Connection.", @@ -926,6 +942,17 @@ }, "type": "object" }, + "CryptoKeyConfig": { + "description": "The crypto key configuration. This field is used by the Customer-managed encryption keys (CMEK) feature.", + "id": "CryptoKeyConfig", + "properties": { + "keyReference": { + "description": "Required. The name of the key which is used to encrypt/decrypt customer data. For key in Cloud KMS, the key should be in the format of `projects/*/locations/*/keyRings/*/cryptoKeys/*`.", + "type": "string" + } + }, + "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); }", "id": "Empty", @@ -1069,6 +1096,113 @@ }, "type": "object" }, + "GitHubEnterpriseConfig": { + "description": "Configuration for connections to an instance of GitHub Enterprise.", + "id": "GitHubEnterpriseConfig", + "properties": { + "appId": { + "description": "Optional. ID of the GitHub App created from the manifest.", + "format": "int64", + "type": "string" + }, + "appInstallationId": { + "description": "Optional. ID of the installation of the GitHub App.", + "format": "int64", + "type": "string" + }, + "appSlug": { + "description": "Output only. The URL-friendly name of the GitHub App.", + "readOnly": true, + "type": "string" + }, + "hostUri": { + "description": "Required. The URI of the GitHub Enterprise host this connection is for.", + "type": "string" + }, + "installationUri": { + "description": "Output only. The URI to navigate to in order to manage the installation associated with this GitHubEnterpriseConfig.", + "readOnly": true, + "type": "string" + }, + "privateKeySecretVersion": { + "description": "Optional. SecretManager resource containing the private key of the GitHub App, formatted as `projects/*/secrets/*/versions/*`.", + "type": "string" + }, + "serverVersion": { + "description": "Output only. GitHub Enterprise version installed at the host_uri.", + "readOnly": true, + "type": "string" + }, + "serviceDirectoryConfig": { + "$ref": "ServiceDirectoryConfig", + "description": "Optional. Configuration for using Service Directory to privately connect to a GitHub Enterprise server. This should only be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitHub Enterprise server will be made over the public internet." + }, + "sslCaCertificate": { + "description": "Optional. SSL certificate to use for requests to GitHub Enterprise.", + "type": "string" + }, + "webhookSecretSecretVersion": { + "description": "Optional. SecretManager resource containing the webhook secret of the GitHub App, formatted as `projects/*/secrets/*/versions/*`.", + "type": "string" + } + }, + "type": "object" + }, + "GitLabConfig": { + "description": "Configuration for connections to gitlab.com.", + "id": "GitLabConfig", + "properties": { + "authorizerCredential": { + "$ref": "UserCredential", + "description": "Required. A GitLab personal access token with the minimum `api` scope access and a minimum role of `maintainer`. The GitLab Projects visible to this Personal Access Token will control which Projects Developer Connect has access to." + }, + "readAuthorizerCredential": { + "$ref": "UserCredential", + "description": "Required. A GitLab personal access token with the minimum `read_api` scope access and a minimum role of `reporter`. The GitLab Projects visible to this Personal Access Token will control which Projects Developer Connect has access to." + }, + "webhookSecretSecretVersion": { + "description": "Required. Immutable. SecretManager resource containing the webhook secret of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This is used to validate webhooks.", + "type": "string" + } + }, + "type": "object" + }, + "GitLabEnterpriseConfig": { + "description": "Configuration for connections to an instance of GitLab Enterprise.", + "id": "GitLabEnterpriseConfig", + "properties": { + "authorizerCredential": { + "$ref": "UserCredential", + "description": "Required. A GitLab personal access token with the minimum `api` scope access and a minimum role of `maintainer`. The GitLab Projects visible to this Personal Access Token will control which Projects Developer Connect has access to." + }, + "hostUri": { + "description": "Required. The URI of the GitLab Enterprise host this connection is for.", + "type": "string" + }, + "readAuthorizerCredential": { + "$ref": "UserCredential", + "description": "Required. A GitLab personal access token with the minimum `read_api` scope access and a minimum role of `reporter`. The GitLab Projects visible to this Personal Access Token will control which Projects Developer Connect has access to." + }, + "serverVersion": { + "description": "Output only. Version of the GitLab Enterprise server running on the `host_uri`.", + "readOnly": true, + "type": "string" + }, + "serviceDirectoryConfig": { + "$ref": "ServiceDirectoryConfig", + "description": "Optional. Configuration for using Service Directory to privately connect to a GitLab Enterprise instance. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet." + }, + "sslCaCertificate": { + "description": "Optional. SSL Certificate Authority certificate to use for requests to GitLab Enterprise instance.", + "type": "string" + }, + "webhookSecretSecretVersion": { + "description": "Required. Immutable. SecretManager resource containing the webhook secret of a GitLab project, formatted as `projects/*/secrets/*/versions/*`. This is used to validate webhooks.", + "type": "string" + } + }, + "type": "object" + }, "GitRepositoryLink": { "description": "Message describing the GitRepositoryLink object", "id": "GitRepositoryLink", @@ -1126,6 +1260,11 @@ "format": "google-datetime", "readOnly": true, "type": "string" + }, + "webhookId": { + "description": "Output only. External ID of the webhook created for the repository.", + "readOnly": true, + "type": "string" } }, "type": "object" @@ -1412,6 +1551,17 @@ }, "type": "object" }, + "ServiceDirectoryConfig": { + "description": "ServiceDirectoryConfig represents Service Directory configuration for a connection.", + "id": "ServiceDirectoryConfig", + "properties": { + "service": { + "description": "Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.", + "type": "string" + } + }, + "type": "object" + }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", @@ -1438,6 +1588,22 @@ } }, "type": "object" + }, + "UserCredential": { + "description": "Represents a personal access token that authorized the Connection, and associated metadata.", + "id": "UserCredential", + "properties": { + "userTokenSecretVersion": { + "description": "Required. A SecretManager resource containing the user token that authorizes the Developer Connect connection. Format: `projects/*/secrets/*/versions/*`.", + "type": "string" + }, + "username": { + "description": "Output only. The username associated with this token.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/developerconnect/v1/developerconnect-gen.go b/developerconnect/v1/developerconnect-gen.go index 568985f827e..d8d1611c062 100644 --- a/developerconnect/v1/developerconnect-gen.go +++ b/developerconnect/v1/developerconnect-gen.go @@ -222,6 +222,9 @@ type Connection struct { Annotations map[string]string `json:"annotations,omitempty"` // CreateTime: Output only. [Output only] Create timestamp CreateTime string `json:"createTime,omitempty"` + // CryptoKeyConfig: Optional. The crypto key configuration. This field is used + // by the Customer-Managed Encryption Keys (CMEK) feature. + CryptoKeyConfig *CryptoKeyConfig `json:"cryptoKeyConfig,omitempty"` // DeleteTime: Output only. [Output only] Delete timestamp DeleteTime string `json:"deleteTime,omitempty"` // Disabled: Optional. If disabled is set to true, functionality is disabled @@ -234,6 +237,14 @@ type Connection struct { Etag string `json:"etag,omitempty"` // GithubConfig: Configuration for connections to github.com. GithubConfig *GitHubConfig `json:"githubConfig,omitempty"` + // GithubEnterpriseConfig: Configuration for connections to an instance of + // GitHub Enterprise. + GithubEnterpriseConfig *GitHubEnterpriseConfig `json:"githubEnterpriseConfig,omitempty"` + // GitlabConfig: Configuration for connections to gitlab.com. + GitlabConfig *GitLabConfig `json:"gitlabConfig,omitempty"` + // GitlabEnterpriseConfig: Configuration for connections to an instance of + // GitLab Enterprise. + GitlabEnterpriseConfig *GitLabEnterpriseConfig `json:"gitlabEnterpriseConfig,omitempty"` // InstallationState: Output only. Installation state of the Connection. InstallationState *InstallationState `json:"installationState,omitempty"` // Labels: Optional. Labels as key value pairs @@ -270,6 +281,31 @@ func (s Connection) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// CryptoKeyConfig: The crypto key configuration. This field is used by the +// Customer-managed encryption keys (CMEK) feature. +type CryptoKeyConfig struct { + // KeyReference: Required. The name of the key which is used to encrypt/decrypt + // customer data. For key in Cloud KMS, the key should be in the format of + // `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + KeyReference string `json:"keyReference,omitempty"` + // ForceSendFields is a list of field names (e.g. "KeyReference") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "KeyReference") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CryptoKeyConfig) MarshalJSON() ([]byte, error) { + type NoMethod CryptoKeyConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Empty: 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 @@ -473,6 +509,143 @@ func (s GitHubConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GitHubEnterpriseConfig: Configuration for connections to an instance of +// GitHub Enterprise. +type GitHubEnterpriseConfig struct { + // AppId: Optional. ID of the GitHub App created from the manifest. + AppId int64 `json:"appId,omitempty,string"` + // AppInstallationId: Optional. ID of the installation of the GitHub App. + AppInstallationId int64 `json:"appInstallationId,omitempty,string"` + // AppSlug: Output only. The URL-friendly name of the GitHub App. + AppSlug string `json:"appSlug,omitempty"` + // HostUri: Required. The URI of the GitHub Enterprise host this connection is + // for. + HostUri string `json:"hostUri,omitempty"` + // InstallationUri: Output only. The URI to navigate to in order to manage the + // installation associated with this GitHubEnterpriseConfig. + InstallationUri string `json:"installationUri,omitempty"` + // PrivateKeySecretVersion: Optional. SecretManager resource containing the + // private key of the GitHub App, formatted as + // `projects/*/secrets/*/versions/*`. + PrivateKeySecretVersion string `json:"privateKeySecretVersion,omitempty"` + // ServerVersion: Output only. GitHub Enterprise version installed at the + // host_uri. + ServerVersion string `json:"serverVersion,omitempty"` + // ServiceDirectoryConfig: Optional. Configuration for using Service Directory + // to privately connect to a GitHub Enterprise server. This should only be set + // if the GitHub Enterprise server is hosted on-premises and not reachable by + // public internet. If this field is left empty, calls to the GitHub Enterprise + // server will be made over the public internet. + ServiceDirectoryConfig *ServiceDirectoryConfig `json:"serviceDirectoryConfig,omitempty"` + // SslCaCertificate: Optional. SSL certificate to use for requests to GitHub + // Enterprise. + SslCaCertificate string `json:"sslCaCertificate,omitempty"` + // WebhookSecretSecretVersion: Optional. SecretManager resource containing the + // webhook secret of the GitHub App, formatted as + // `projects/*/secrets/*/versions/*`. + WebhookSecretSecretVersion string `json:"webhookSecretSecretVersion,omitempty"` + // ForceSendFields is a list of field names (e.g. "AppId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AppId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GitHubEnterpriseConfig) MarshalJSON() ([]byte, error) { + type NoMethod GitHubEnterpriseConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GitLabConfig: Configuration for connections to gitlab.com. +type GitLabConfig struct { + // AuthorizerCredential: Required. A GitLab personal access token with the + // minimum `api` scope access and a minimum role of `maintainer`. The GitLab + // Projects visible to this Personal Access Token will control which Projects + // Developer Connect has access to. + AuthorizerCredential *UserCredential `json:"authorizerCredential,omitempty"` + // ReadAuthorizerCredential: Required. A GitLab personal access token with the + // minimum `read_api` scope access and a minimum role of `reporter`. The GitLab + // Projects visible to this Personal Access Token will control which Projects + // Developer Connect has access to. + ReadAuthorizerCredential *UserCredential `json:"readAuthorizerCredential,omitempty"` + // WebhookSecretSecretVersion: Required. Immutable. SecretManager resource + // containing the webhook secret of a GitLab project, formatted as + // `projects/*/secrets/*/versions/*`. This is used to validate webhooks. + WebhookSecretSecretVersion string `json:"webhookSecretSecretVersion,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuthorizerCredential") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuthorizerCredential") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GitLabConfig) MarshalJSON() ([]byte, error) { + type NoMethod GitLabConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GitLabEnterpriseConfig: Configuration for connections to an instance of +// GitLab Enterprise. +type GitLabEnterpriseConfig struct { + // AuthorizerCredential: Required. A GitLab personal access token with the + // minimum `api` scope access and a minimum role of `maintainer`. The GitLab + // Projects visible to this Personal Access Token will control which Projects + // Developer Connect has access to. + AuthorizerCredential *UserCredential `json:"authorizerCredential,omitempty"` + // HostUri: Required. The URI of the GitLab Enterprise host this connection is + // for. + HostUri string `json:"hostUri,omitempty"` + // ReadAuthorizerCredential: Required. A GitLab personal access token with the + // minimum `read_api` scope access and a minimum role of `reporter`. The GitLab + // Projects visible to this Personal Access Token will control which Projects + // Developer Connect has access to. + ReadAuthorizerCredential *UserCredential `json:"readAuthorizerCredential,omitempty"` + // ServerVersion: Output only. Version of the GitLab Enterprise server running + // on the `host_uri`. + ServerVersion string `json:"serverVersion,omitempty"` + // ServiceDirectoryConfig: Optional. Configuration for using Service Directory + // to privately connect to a GitLab Enterprise instance. This should only be + // set if the GitLab Enterprise server is hosted on-premises and not reachable + // by public internet. If this field is left empty, calls to the GitLab + // Enterprise server will be made over the public internet. + ServiceDirectoryConfig *ServiceDirectoryConfig `json:"serviceDirectoryConfig,omitempty"` + // SslCaCertificate: Optional. SSL Certificate Authority certificate to use for + // requests to GitLab Enterprise instance. + SslCaCertificate string `json:"sslCaCertificate,omitempty"` + // WebhookSecretSecretVersion: Required. Immutable. SecretManager resource + // containing the webhook secret of a GitLab project, formatted as + // `projects/*/secrets/*/versions/*`. This is used to validate webhooks. + WebhookSecretSecretVersion string `json:"webhookSecretSecretVersion,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuthorizerCredential") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuthorizerCredential") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GitLabEnterpriseConfig) MarshalJSON() ([]byte, error) { + type NoMethod GitLabEnterpriseConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GitRepositoryLink: Message describing the GitRepositoryLink object type GitRepositoryLink struct { // Annotations: Optional. Allows clients to store small amounts of arbitrary @@ -501,6 +674,9 @@ type GitRepositoryLink struct { Uid string `json:"uid,omitempty"` // UpdateTime: Output only. [Output only] Update timestamp UpdateTime string `json:"updateTime,omitempty"` + // WebhookId: Output only. External ID of the webhook created for the + // repository. + WebhookId string `json:"webhookId,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -879,6 +1055,31 @@ func (s OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ServiceDirectoryConfig: ServiceDirectoryConfig represents Service Directory +// configuration for a connection. +type ServiceDirectoryConfig struct { + // Service: Required. The Service Directory service name. Format: + // projects/{project}/locations/{location}/namespaces/{namespace}/services/{serv + // ice}. + Service string `json:"service,omitempty"` + // ForceSendFields is a list of field names (e.g. "Service") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Service") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ServiceDirectoryConfig) MarshalJSON() ([]byte, error) { + type NoMethod ServiceDirectoryConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Status: The `Status` type defines a logical error model that is suitable for // different programming environments, including REST APIs and RPC APIs. It is // used by gRPC (https://github.com/grpc). Each `Status` message contains three @@ -913,6 +1114,33 @@ func (s Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// UserCredential: Represents a personal access token that authorized the +// Connection, and associated metadata. +type UserCredential struct { + // UserTokenSecretVersion: Required. A SecretManager resource containing the + // user token that authorizes the Developer Connect connection. Format: + // `projects/*/secrets/*/versions/*`. + UserTokenSecretVersion string `json:"userTokenSecretVersion,omitempty"` + // Username: Output only. The username associated with this token. + Username string `json:"username,omitempty"` + // ForceSendFields is a list of field names (e.g. "UserTokenSecretVersion") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "UserTokenSecretVersion") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s UserCredential) MarshalJSON() ([]byte, error) { + type NoMethod UserCredential + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type ProjectsLocationsGetCall struct { s *Service name string diff --git a/gkehub/v1/gkehub-api.json b/gkehub/v1/gkehub-api.json index 26f92d25710..ae3c5d97133 100644 --- a/gkehub/v1/gkehub-api.json +++ b/gkehub/v1/gkehub-api.json @@ -2111,7 +2111,7 @@ } } }, - "revision": "20240902", + "revision": "20240920", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -6105,6 +6105,8 @@ "CLUSTER_HAS_ZERO_NODES", "UNSUPPORTED_MULTIPLE_CONTROL_PLANES", "VPCSC_GA_SUPPORTED", + "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT", + "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT_SAFE", "CONFIG_APPLY_INTERNAL_ERROR", "CONFIG_VALIDATION_ERROR", "CONFIG_VALIDATION_WARNING", @@ -6122,7 +6124,11 @@ "QUOTA_EXCEEDED_SERVICE_LB_POLICIES", "QUOTA_EXCEEDED_HTTP_FILTERS", "QUOTA_EXCEEDED_TCP_FILTERS", - "QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS" + "QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS", + "MODERNIZATION_SCHEDULED", + "MODERNIZATION_IN_PROGRESS", + "MODERNIZATION_COMPLETED", + "MODERNIZATION_ABORTED" ], "enumDescriptions": [ "Default Unspecified code", @@ -6136,6 +6142,8 @@ "Cluster has zero node code", "Multiple control planes unsupported error code", "VPC-SC GA is supported for this control plane.", + "User is using deprecated ControlPlaneManagement and they have not yet set Management.", + "User is using deprecated ControlPlaneManagement and they have already set Management.", "Configuration (Istio/k8s resources) failed to apply due to internal error.", "Configuration failed to be applied due to being invalid.", "Encountered configuration(s) with possible unintended behavior or invalid configuration. These configs may not have been applied.", @@ -6153,7 +6161,11 @@ "ServiceLBPolicy quota exceeded error code.", "HTTPFilter quota exceeded error code.", "TCPFilter quota exceeded error code.", - "NetworkEndpointGroup quota exceeded error code." + "NetworkEndpointGroup quota exceeded error code.", + "Modernization is scheduled for a cluster.", + "Modernization is in progress for a cluster.", + "Modernization is completed for a cluster.", + "Modernization is aborted for a cluster." ], "type": "string" }, diff --git a/gkehub/v1/gkehub-gen.go b/gkehub/v1/gkehub-gen.go index 897b874221c..f6bf9192de2 100644 --- a/gkehub/v1/gkehub-gen.go +++ b/gkehub/v1/gkehub-gen.go @@ -5362,6 +5362,10 @@ type ServiceMeshCondition struct { // "UNSUPPORTED_MULTIPLE_CONTROL_PLANES" - Multiple control planes // unsupported error code // "VPCSC_GA_SUPPORTED" - VPC-SC GA is supported for this control plane. + // "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT" - User is using deprecated + // ControlPlaneManagement and they have not yet set Management. + // "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT_SAFE" - User is using deprecated + // ControlPlaneManagement and they have already set Management. // "CONFIG_APPLY_INTERNAL_ERROR" - Configuration (Istio/k8s resources) failed // to apply due to internal error. // "CONFIG_VALIDATION_ERROR" - Configuration failed to be applied due to @@ -5391,6 +5395,10 @@ type ServiceMeshCondition struct { // "QUOTA_EXCEEDED_TCP_FILTERS" - TCPFilter quota exceeded error code. // "QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS" - NetworkEndpointGroup quota // exceeded error code. + // "MODERNIZATION_SCHEDULED" - Modernization is scheduled for a cluster. + // "MODERNIZATION_IN_PROGRESS" - Modernization is in progress for a cluster. + // "MODERNIZATION_COMPLETED" - Modernization is completed for a cluster. + // "MODERNIZATION_ABORTED" - Modernization is aborted for a cluster. Code string `json:"code,omitempty"` // Details: A short summary about the issue. Details string `json:"details,omitempty"` diff --git a/merchantapi/accounts_v1beta/merchantapi-api.json b/merchantapi/accounts_v1beta/merchantapi-api.json index 737e2f9ae4d..eb1d0deed16 100644 --- a/merchantapi/accounts_v1beta/merchantapi-api.json +++ b/merchantapi/accounts_v1beta/merchantapi-api.json @@ -684,13 +684,8 @@ "required": true, "type": "string" }, - "timeZone.id": { - "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", - "location": "query", - "type": "string" - }, - "timeZone.version": { - "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + "timeZone": { + "description": "Optional. The [IANA](https://www.iana.org/time-zones) timezone used to localize times in human-readable fields. For example 'America/Los_Angeles'. If not set, 'America/Los_Angeles' will be used.", "location": "query", "type": "string" } @@ -1417,7 +1412,7 @@ } } }, - "revision": "20240916", + "revision": "20240923", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "AcceptTermsOfService": { @@ -1492,6 +1487,12 @@ }, "type": "object" }, + "AccountAggregation": { + "description": "`AccountAggregation` payload.", + "id": "AccountAggregation", + "properties": {}, + "type": "object" + }, "AccountIssue": { "description": "An [`AccountIssue`](https://support.google.com/merchants/answer/12153802?sjid=17798438912526418908-EU#account).", "id": "AccountIssue", @@ -1543,8 +1544,8 @@ "id": "AddAccountService", "properties": { "accountAggregation": { - "$ref": "Empty", - "description": "The provider is an aggregator for the account." + "$ref": "AccountAggregation", + "description": "The provider is an [aggregator](https://support.google.com/merchants/answer/188487) for the account. Payload for service type Account Aggregation." }, "provider": { "description": "Optional. The provider of the service. Format: `accounts/{account}`", @@ -1772,7 +1773,7 @@ "description": "Required. The account to be created." }, "service": { - "description": "Required. An account service between the account to be created and the provider account is initialized as part of the creation. At least one such service needs to be provided. Currently only `account_aggregation` is supported which means the newly created account will be a subaccount of the provider defined in the `account_aggregation` service.", + "description": "Required. An account service between the account to be created and the provider account is initialized as part of the creation. At least one such service needs to be provided. Currently exactly one of these needs to be `account_aggregation`, which means you can only create sub accounts, not standalone account through this method. Additional `account_management` or `product_management` services may be provided.", "items": { "$ref": "AddAccountService" }, diff --git a/merchantapi/accounts_v1beta/merchantapi-gen.go b/merchantapi/accounts_v1beta/merchantapi-gen.go index c8815f602ff..361ee2ccd9e 100644 --- a/merchantapi/accounts_v1beta/merchantapi-gen.go +++ b/merchantapi/accounts_v1beta/merchantapi-gen.go @@ -425,6 +425,10 @@ func (s Account) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// AccountAggregation: `AccountAggregation` payload. +type AccountAggregation struct { +} + // AccountIssue: An `AccountIssue` // (https://support.google.com/merchants/answer/12153802?sjid=17798438912526418908-EU#account). type AccountIssue struct { @@ -470,8 +474,10 @@ func (s AccountIssue) MarshalJSON() ([]byte, error) { // AddAccountService: Additional instructions to add account services during // creation of the account. type AddAccountService struct { - // AccountAggregation: The provider is an aggregator for the account. - AccountAggregation *Empty `json:"accountAggregation,omitempty"` + // AccountAggregation: The provider is an aggregator + // (https://support.google.com/merchants/answer/188487) for the account. + // Payload for service type Account Aggregation. + AccountAggregation *AccountAggregation `json:"accountAggregation,omitempty"` // Provider: Optional. The provider of the service. Format: // `accounts/{account}` Provider string `json:"provider,omitempty"` @@ -760,9 +766,10 @@ type CreateAndConfigureAccountRequest struct { Account *Account `json:"account,omitempty"` // Service: Required. An account service between the account to be created and // the provider account is initialized as part of the creation. At least one - // such service needs to be provided. Currently only `account_aggregation` is - // supported which means the newly created account will be a subaccount of the - // provider defined in the `account_aggregation` service. + // such service needs to be provided. Currently exactly one of these needs to + // be `account_aggregation`, which means you can only create sub accounts, not + // standalone account through this method. Additional `account_management` or + // `product_management` services may be provided. Service []*AddAccountService `json:"service,omitempty"` // Users: Optional. Users to be added to the account. Users []*CreateUserRequest `json:"users,omitempty"` @@ -5147,17 +5154,12 @@ func (c *AccountsIssuesListCall) PageToken(pageToken string) *AccountsIssuesList return c } -// TimeZoneId sets the optional parameter "timeZone.id": IANA Time Zone -// Database time zone, e.g. "America/New_York". -func (c *AccountsIssuesListCall) TimeZoneId(timeZoneId string) *AccountsIssuesListCall { - c.urlParams_.Set("timeZone.id", timeZoneId) - return c -} - -// TimeZoneVersion sets the optional parameter "timeZone.version": IANA Time -// Zone Database version number, e.g. "2019a". -func (c *AccountsIssuesListCall) TimeZoneVersion(timeZoneVersion string) *AccountsIssuesListCall { - c.urlParams_.Set("timeZone.version", timeZoneVersion) +// TimeZone sets the optional parameter "timeZone": The IANA +// (https://www.iana.org/time-zones) timezone used to localize times in +// human-readable fields. For example 'America/Los_Angeles'. If not set, +// 'America/Los_Angeles' will be used. +func (c *AccountsIssuesListCall) TimeZone(timeZone string) *AccountsIssuesListCall { + c.urlParams_.Set("timeZone", timeZone) return c } diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json index 44e9ae9ed22..b9f17ad94e5 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json @@ -435,7 +435,7 @@ } } }, - "revision": "20240617", + "revision": "20240922", "rootUrl": "https://paymentsresellersubscription.googleapis.com/", "schemas": { "GoogleCloudPaymentsResellerSubscriptionV1Amount": { @@ -478,7 +478,7 @@ "CANCELLATION_REASON_OTHER" ], "enumDescriptions": [ - "Reason is unspecified.", + "Reason is unspecified. Should not be used.", "Fraudualant transaction.", "Buyer's remorse.", "Accidential purchase.", @@ -1182,7 +1182,7 @@ "CANCELLATION_REASON_OTHER" ], "enumDescriptions": [ - "Reason is unspecified.", + "Reason is unspecified. Should not be used.", "Fraudualant transaction.", "Buyer's remorse.", "Accidential purchase.", diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go index e0ebe1ba5d8..6aaa21d4dae 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go @@ -238,7 +238,8 @@ type GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest struct { // CancellationReason: Specifies the reason for the cancellation. // // Possible values: - // "CANCELLATION_REASON_UNSPECIFIED" - Reason is unspecified. + // "CANCELLATION_REASON_UNSPECIFIED" - Reason is unspecified. Should not be + // used. // "CANCELLATION_REASON_FRAUD" - Fraudualant transaction. // "CANCELLATION_REASON_REMORSE" - Buyer's remorse. // "CANCELLATION_REASON_ACCIDENTAL_PURCHASE" - Accidential purchase. @@ -1147,7 +1148,8 @@ type GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails st // Reason: Output only. The reason of the cancellation. // // Possible values: - // "CANCELLATION_REASON_UNSPECIFIED" - Reason is unspecified. + // "CANCELLATION_REASON_UNSPECIFIED" - Reason is unspecified. Should not be + // used. // "CANCELLATION_REASON_FRAUD" - Fraudualant transaction. // "CANCELLATION_REASON_REMORSE" - Buyer's remorse. // "CANCELLATION_REASON_ACCIDENTAL_PURCHASE" - Accidential purchase. diff --git a/places/v1/places-api.json b/places/v1/places-api.json index 1a70c0ca00e..2865f97752a 100644 --- a/places/v1/places-api.json +++ b/places/v1/places-api.json @@ -14,6 +14,9 @@ "https://www.googleapis.com/auth/maps-platform.places.details": { "description": "Private Service: https://www.googleapis.com/auth/maps-platform.places.details" }, + "https://www.googleapis.com/auth/maps-platform.places.getphotomedia": { + "description": "Private Service: https://www.googleapis.com/auth/maps-platform.places.getphotomedia" + }, "https://www.googleapis.com/auth/maps-platform.places.nearbysearch": { "description": "Private Service: https://www.googleapis.com/auth/maps-platform.places.nearbysearch" }, @@ -268,7 +271,8 @@ }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/maps-platform.places" + "https://www.googleapis.com/auth/maps-platform.places", + "https://www.googleapis.com/auth/maps-platform.places.getphotomedia" ] } } @@ -276,7 +280,7 @@ } } }, - "revision": "20240918", + "revision": "20240920", "rootUrl": "https://places.googleapis.com/", "schemas": { "GoogleGeoTypeViewport": { diff --git a/places/v1/places-gen.go b/places/v1/places-gen.go index 9e9e1c6b7db..4876f506eb6 100644 --- a/places/v1/places-gen.go +++ b/places/v1/places-gen.go @@ -115,6 +115,10 @@ const ( // https://www.googleapis.com/auth/maps-platform.places.details MapsPlatformPlacesDetailsScope = "https://www.googleapis.com/auth/maps-platform.places.details" + // Private Service: + // https://www.googleapis.com/auth/maps-platform.places.getphotomedia + MapsPlatformPlacesGetphotomediaScope = "https://www.googleapis.com/auth/maps-platform.places.getphotomedia" + // Private Service: // https://www.googleapis.com/auth/maps-platform.places.nearbysearch MapsPlatformPlacesNearbysearchScope = "https://www.googleapis.com/auth/maps-platform.places.nearbysearch" @@ -131,6 +135,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err "https://www.googleapis.com/auth/maps-platform.places", "https://www.googleapis.com/auth/maps-platform.places.autocomplete", "https://www.googleapis.com/auth/maps-platform.places.details", + "https://www.googleapis.com/auth/maps-platform.places.getphotomedia", "https://www.googleapis.com/auth/maps-platform.places.nearbysearch", "https://www.googleapis.com/auth/maps-platform.places.textsearch", ) diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index d117d6ee1c3..4d98b3b1c2c 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -281,6 +281,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getGenerativeQuestionFeature": { + "description": "Manages overal generative question feature state -- enables toggling feature on and off.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/generativeQuestionFeature", + "httpMethod": "GET", + "id": "retail.projects.locations.catalogs.getGenerativeQuestionFeature", + "parameterOrder": [ + "catalog" + ], + "parameters": { + "catalog": { + "description": "Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+catalog}/generativeQuestionFeature", + "response": { + "$ref": "GoogleCloudRetailV2GenerativeQuestionsFeatureConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists all the Catalogs associated with the project.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs", @@ -446,6 +471,74 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "updateGenerativeQuestion": { + "description": "Allows management of individual questions.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/generativeQuestion", + "httpMethod": "PATCH", + "id": "retail.projects.locations.catalogs.updateGenerativeQuestion", + "parameterOrder": [ + "catalog" + ], + "parameters": { + "catalog": { + "description": "Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Indicates which fields in the provided GenerativeQuestionConfig to update. The following are NOT supported: * GenerativeQuestionConfig.frequency If not set or empty, all supported fields are updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+catalog}/generativeQuestion", + "request": { + "$ref": "GoogleCloudRetailV2GenerativeQuestionConfig" + }, + "response": { + "$ref": "GoogleCloudRetailV2GenerativeQuestionConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "updateGenerativeQuestionFeature": { + "description": "Manages overal generative question feature state -- enables toggling feature on and off.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/generativeQuestionFeature", + "httpMethod": "PATCH", + "id": "retail.projects.locations.catalogs.updateGenerativeQuestionFeature", + "parameterOrder": [ + "catalog" + ], + "parameters": { + "catalog": { + "description": "Required. Resource name of the affected catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Indicates which fields in the provided GenerativeQuestionsFeatureConfig to update. If not set or empty, all supported fields are updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2/{+catalog}/generativeQuestionFeature", + "request": { + "$ref": "GoogleCloudRetailV2GenerativeQuestionsFeatureConfig" + }, + "response": { + "$ref": "GoogleCloudRetailV2GenerativeQuestionsFeatureConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -1133,6 +1226,67 @@ } } }, + "generativeQuestion": { + "methods": { + "batchUpdate": { + "description": "Allows management of multiple questions.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/generativeQuestion:batchUpdate", + "httpMethod": "POST", + "id": "retail.projects.locations.catalogs.generativeQuestion.batchUpdate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Optional. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/generativeQuestion:batchUpdate", + "request": { + "$ref": "GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest" + }, + "response": { + "$ref": "GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "generativeQuestions": { + "methods": { + "list": { + "description": "Returns all questions for a given catalog.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/generativeQuestions", + "httpMethod": "GET", + "id": "retail.projects.locations.catalogs.generativeQuestions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/generativeQuestions", + "response": { + "$ref": "GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "models": { "methods": { "create": { @@ -2092,7 +2246,7 @@ } } }, - "revision": "20240912", + "revision": "20240920", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2400,6 +2554,34 @@ }, "type": "object" }, + "GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest": { + "description": "Request for BatchUpdateGenerativeQuestionConfig method.", + "id": "GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest", + "properties": { + "requests": { + "description": "Required. The updates question configs.", + "items": { + "$ref": "GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse": { + "description": "Aggregated response for UpdateGenerativeQuestionConfig method.", + "id": "GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse", + "properties": { + "generativeQuestionConfigs": { + "description": "Optional. The updates question configs.", + "items": { + "$ref": "GoogleCloudRetailV2GenerativeQuestionConfig" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudRetailV2BigQueryOutputResult": { "description": "A BigQuery output result.", "id": "GoogleCloudRetailV2BigQueryOutputResult", @@ -3170,6 +3352,68 @@ }, "type": "object" }, + "GoogleCloudRetailV2GenerativeQuestionConfig": { + "description": "Configuration for a single generated question.", + "id": "GoogleCloudRetailV2GenerativeQuestionConfig", + "properties": { + "allowedInConversation": { + "description": "Optional. Whether the question is asked at serving time.", + "type": "boolean" + }, + "catalog": { + "description": "Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "type": "string" + }, + "exampleValues": { + "description": "Output only. Values that can be used to answer the question.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "facet": { + "description": "Required. The facet to which the question is associated.", + "type": "string" + }, + "finalQuestion": { + "description": "Optional. The question that will be used at serving time. Question can have a max length of 300 bytes. When not populated, generated_question should be used.", + "type": "string" + }, + "frequency": { + "description": "Output only. The ratio of how often a question was asked.", + "format": "float", + "readOnly": true, + "type": "number" + }, + "generatedQuestion": { + "description": "Output only. The LLM generated question.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2GenerativeQuestionsFeatureConfig": { + "description": "Configuration for overall generative question feature state.", + "id": "GoogleCloudRetailV2GenerativeQuestionsFeatureConfig", + "properties": { + "catalog": { + "description": "Required. Resource name of the affected catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "type": "string" + }, + "featureEnabled": { + "description": "Optional. Determines whether questions will be used at serving time. Note: This feature cannot be enabled until initial data requirements are satisfied.", + "type": "boolean" + }, + "minimumProducts": { + "description": "Optional. Minimum number of products in the response to trigger follow-up questions. Value must be 0 or positive.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudRetailV2GetDefaultBranchResponse": { "description": "Response message of CatalogService.GetDefaultBranch.", "id": "GoogleCloudRetailV2GetDefaultBranchResponse", @@ -3448,6 +3692,20 @@ }, "type": "object" }, + "GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse": { + "description": "Response for ListQuestions method.", + "id": "GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse", + "properties": { + "generativeQuestionConfigs": { + "description": "All the questions for a given catalog.", + "items": { + "$ref": "GoogleCloudRetailV2GenerativeQuestionConfig" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudRetailV2ListModelsResponse": { "description": "Response to a ListModelRequest.", "id": "GoogleCloudRetailV2ListModelsResponse", @@ -5692,6 +5950,22 @@ "properties": {}, "type": "object" }, + "GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest": { + "description": "Request for UpdateGenerativeQuestionConfig method.", + "id": "GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest", + "properties": { + "generativeQuestionConfig": { + "$ref": "GoogleCloudRetailV2GenerativeQuestionConfig", + "description": "Required. The question to update." + }, + "updateMask": { + "description": "Optional. Indicates which fields in the provided GenerativeQuestionConfig to update. The following are NOT supported: * GenerativeQuestionConfig.frequency If not set or empty, all supported fields are updated.", + "format": "google-fieldmask", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2UserEvent": { "description": "UserEvent captures all metadata information Retail API needs to know about how end users interact with customers' website.", "id": "GoogleCloudRetailV2UserEvent", diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index 72d381d3e50..8e0309fff45 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -190,6 +190,8 @@ func NewProjectsLocationsCatalogsService(s *Service) *ProjectsLocationsCatalogsS rs.Branches = NewProjectsLocationsCatalogsBranchesService(s) rs.CompletionData = NewProjectsLocationsCatalogsCompletionDataService(s) rs.Controls = NewProjectsLocationsCatalogsControlsService(s) + rs.GenerativeQuestion = NewProjectsLocationsCatalogsGenerativeQuestionService(s) + rs.GenerativeQuestions = NewProjectsLocationsCatalogsGenerativeQuestionsService(s) rs.Models = NewProjectsLocationsCatalogsModelsService(s) rs.Operations = NewProjectsLocationsCatalogsOperationsService(s) rs.Placements = NewProjectsLocationsCatalogsPlacementsService(s) @@ -209,6 +211,10 @@ type ProjectsLocationsCatalogsService struct { Controls *ProjectsLocationsCatalogsControlsService + GenerativeQuestion *ProjectsLocationsCatalogsGenerativeQuestionService + + GenerativeQuestions *ProjectsLocationsCatalogsGenerativeQuestionsService + Models *ProjectsLocationsCatalogsModelsService Operations *ProjectsLocationsCatalogsOperationsService @@ -280,6 +286,24 @@ type ProjectsLocationsCatalogsControlsService struct { s *Service } +func NewProjectsLocationsCatalogsGenerativeQuestionService(s *Service) *ProjectsLocationsCatalogsGenerativeQuestionService { + rs := &ProjectsLocationsCatalogsGenerativeQuestionService{s: s} + return rs +} + +type ProjectsLocationsCatalogsGenerativeQuestionService struct { + s *Service +} + +func NewProjectsLocationsCatalogsGenerativeQuestionsService(s *Service) *ProjectsLocationsCatalogsGenerativeQuestionsService { + rs := &ProjectsLocationsCatalogsGenerativeQuestionsService{s: s} + return rs +} + +type ProjectsLocationsCatalogsGenerativeQuestionsService struct { + s *Service +} + func NewProjectsLocationsCatalogsModelsService(s *Service) *ProjectsLocationsCatalogsModelsService { rs := &ProjectsLocationsCatalogsModelsService{s: s} return rs @@ -821,6 +845,55 @@ func (s GoogleCloudRetailV2Audience) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest: Request for +// BatchUpdateGenerativeQuestionConfig method. +type GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest struct { + // Requests: Required. The updates question configs. + Requests []*GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest `json:"requests,omitempty"` + // ForceSendFields is a list of field names (e.g. "Requests") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Requests") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse: Aggregated +// response for UpdateGenerativeQuestionConfig method. +type GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse struct { + // GenerativeQuestionConfigs: Optional. The updates question configs. + GenerativeQuestionConfigs []*GoogleCloudRetailV2GenerativeQuestionConfig `json:"generativeQuestionConfigs,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "GenerativeQuestionConfigs") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GenerativeQuestionConfigs") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2BigQueryOutputResult: A BigQuery output result. type GoogleCloudRetailV2BigQueryOutputResult struct { // DatasetId: The ID of a BigQuery Dataset. @@ -2031,6 +2104,96 @@ func (s GoogleCloudRetailV2GcsSource) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2GenerativeQuestionConfig: Configuration for a single +// generated question. +type GoogleCloudRetailV2GenerativeQuestionConfig struct { + // AllowedInConversation: Optional. Whether the question is asked at serving + // time. + AllowedInConversation bool `json:"allowedInConversation,omitempty"` + // Catalog: Required. Resource name of the catalog. Format: + // projects/{project}/locations/{location}/catalogs/{catalog} + Catalog string `json:"catalog,omitempty"` + // ExampleValues: Output only. Values that can be used to answer the question. + ExampleValues []string `json:"exampleValues,omitempty"` + // Facet: Required. The facet to which the question is associated. + Facet string `json:"facet,omitempty"` + // FinalQuestion: Optional. The question that will be used at serving time. + // Question can have a max length of 300 bytes. When not populated, + // generated_question should be used. + FinalQuestion string `json:"finalQuestion,omitempty"` + // Frequency: Output only. The ratio of how often a question was asked. + Frequency float64 `json:"frequency,omitempty"` + // GeneratedQuestion: Output only. The LLM generated question. + GeneratedQuestion string `json:"generatedQuestion,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AllowedInConversation") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AllowedInConversation") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2GenerativeQuestionConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2GenerativeQuestionConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudRetailV2GenerativeQuestionConfig) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudRetailV2GenerativeQuestionConfig + var s1 struct { + Frequency gensupport.JSONFloat64 `json:"frequency"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Frequency = float64(s1.Frequency) + return nil +} + +// GoogleCloudRetailV2GenerativeQuestionsFeatureConfig: Configuration for +// overall generative question feature state. +type GoogleCloudRetailV2GenerativeQuestionsFeatureConfig struct { + // Catalog: Required. Resource name of the affected catalog. Format: + // projects/{project}/locations/{location}/catalogs/{catalog} + Catalog string `json:"catalog,omitempty"` + // FeatureEnabled: Optional. Determines whether questions will be used at + // serving time. Note: This feature cannot be enabled until initial data + // requirements are satisfied. + FeatureEnabled bool `json:"featureEnabled,omitempty"` + // MinimumProducts: Optional. Minimum number of products in the response to + // trigger follow-up questions. Value must be 0 or positive. + MinimumProducts int64 `json:"minimumProducts,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Catalog") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Catalog") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2GenerativeQuestionsFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2GenerativeQuestionsFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2GetDefaultBranchResponse: Response message of // CatalogService.GetDefaultBranch. type GoogleCloudRetailV2GetDefaultBranchResponse struct { @@ -2453,6 +2616,32 @@ func (s GoogleCloudRetailV2ListControlsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse: Response for +// ListQuestions method. +type GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse struct { + // GenerativeQuestionConfigs: All the questions for a given catalog. + GenerativeQuestionConfigs []*GoogleCloudRetailV2GenerativeQuestionConfig `json:"generativeQuestionConfigs,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "GenerativeQuestionConfigs") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GenerativeQuestionConfigs") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2ListModelsResponse: Response to a ListModelRequest. type GoogleCloudRetailV2ListModelsResponse struct { // Models: List of Models. @@ -5993,6 +6182,34 @@ type GoogleCloudRetailV2TuneModelRequest struct { type GoogleCloudRetailV2TuneModelResponse struct { } +// GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest: Request for +// UpdateGenerativeQuestionConfig method. +type GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest struct { + // GenerativeQuestionConfig: Required. The question to update. + GenerativeQuestionConfig *GoogleCloudRetailV2GenerativeQuestionConfig `json:"generativeQuestionConfig,omitempty"` + // UpdateMask: Optional. Indicates which fields in the provided + // GenerativeQuestionConfig to update. The following are NOT supported: * + // GenerativeQuestionConfig.frequency If not set or empty, all supported fields + // are updated. + UpdateMask string `json:"updateMask,omitempty"` + // ForceSendFields is a list of field names (e.g. "GenerativeQuestionConfig") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GenerativeQuestionConfig") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2UserEvent: UserEvent captures all metadata information // Retail API needs to know about how end users interact with customers' // website. @@ -9118,6 +9335,116 @@ func (c *ProjectsLocationsCatalogsGetDefaultBranchCall) Do(opts ...googleapi.Cal return ret, nil } +type ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall struct { + s *Service + catalog string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetGenerativeQuestionFeature: Manages overal generative question feature +// state -- enables toggling feature on and off. +// +// - catalog: Resource name of the parent catalog. Format: +// projects/{project}/locations/{location}/catalogs/{catalog}. +func (r *ProjectsLocationsCatalogsService) GetGenerativeQuestionFeature(catalog string) *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall { + c := &ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.catalog = catalog + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall) IfNoneMatch(entityTag string) *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall) Context(ctx context.Context) *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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, "v2/{+catalog}/generativeQuestionFeature") + 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{ + "catalog": c.catalog, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "retail.projects.locations.catalogs.getGenerativeQuestionFeature" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRetailV2GenerativeQuestionsFeatureConfig.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 *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2GenerativeQuestionsFeatureConfig, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleCloudRetailV2GenerativeQuestionsFeatureConfig{ + 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 +} + type ProjectsLocationsCatalogsListCall struct { s *Service parent string @@ -9734,81 +10061,87 @@ func (c *ProjectsLocationsCatalogsUpdateCompletionConfigCall) Do(opts ...googlea return ret, nil } -type ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall struct { - s *Service - attributesConfig string - googlecloudretailv2addcatalogattributerequest *GoogleCloudRetailV2AddCatalogAttributeRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsCatalogsUpdateGenerativeQuestionCall struct { + s *Service + catalog string + googlecloudretailv2generativequestionconfig *GoogleCloudRetailV2GenerativeQuestionConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// AddCatalogAttribute: Adds the specified CatalogAttribute to the -// AttributesConfig. If the CatalogAttribute to add already exists, an -// ALREADY_EXISTS error is returned. +// UpdateGenerativeQuestion: Allows management of individual questions. // -// - attributesConfig: Full AttributesConfig resource name. Format: -// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/at -// tributesConfig`. -func (r *ProjectsLocationsCatalogsAttributesConfigService) AddCatalogAttribute(attributesConfig string, googlecloudretailv2addcatalogattributerequest *GoogleCloudRetailV2AddCatalogAttributeRequest) *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall { - c := &ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.attributesConfig = attributesConfig - c.googlecloudretailv2addcatalogattributerequest = googlecloudretailv2addcatalogattributerequest +// - catalog: Resource name of the catalog. Format: +// projects/{project}/locations/{location}/catalogs/{catalog}. +func (r *ProjectsLocationsCatalogsService) UpdateGenerativeQuestion(catalog string, googlecloudretailv2generativequestionconfig *GoogleCloudRetailV2GenerativeQuestionConfig) *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall { + c := &ProjectsLocationsCatalogsUpdateGenerativeQuestionCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.catalog = catalog + c.googlecloudretailv2generativequestionconfig = googlecloudretailv2generativequestionconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": Indicates which fields +// in the provided GenerativeQuestionConfig to update. The following are NOT +// supported: * GenerativeQuestionConfig.frequency If not set or empty, all +// supported fields are updated. +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall) UpdateMask(updateMask string) *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall { + 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 // details. -func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall { +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Context(ctx context.Context) *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall { +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall) Context(ctx context.Context) *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Header() http.Header { +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudretailv2addcatalogattributerequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudretailv2generativequestionconfig) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+attributesConfig}:addCatalogAttribute") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+catalog}/generativeQuestion") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "attributesConfig": c.attributesConfig, + "catalog": c.catalog, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "retail.projects.locations.catalogs.attributesConfig.addCatalogAttribute" call. +// Do executes the "retail.projects.locations.catalogs.updateGenerativeQuestion" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudRetailV2AttributesConfig.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudRetailV2GenerativeQuestionConfig.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 *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2AttributesConfig, error) { +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2GenerativeQuestionConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9827,7 +10160,7 @@ func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Do(op if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudRetailV2AttributesConfig{ + ret := &GoogleCloudRetailV2GenerativeQuestionConfig{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9840,10 +10173,228 @@ func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Do(op return ret, nil } -type ProjectsLocationsCatalogsAttributesConfigRemoveCatalogAttributeCall struct { - s *Service - attributesConfig string - googlecloudretailv2removecatalogattributerequest *GoogleCloudRetailV2RemoveCatalogAttributeRequest +type ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall struct { + s *Service + catalog string + googlecloudretailv2generativequestionsfeatureconfig *GoogleCloudRetailV2GenerativeQuestionsFeatureConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateGenerativeQuestionFeature: Manages overal generative question feature +// state -- enables toggling feature on and off. +// +// - catalog: Resource name of the affected catalog. Format: +// projects/{project}/locations/{location}/catalogs/{catalog}. +func (r *ProjectsLocationsCatalogsService) UpdateGenerativeQuestionFeature(catalog string, googlecloudretailv2generativequestionsfeatureconfig *GoogleCloudRetailV2GenerativeQuestionsFeatureConfig) *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall { + c := &ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.catalog = catalog + c.googlecloudretailv2generativequestionsfeatureconfig = googlecloudretailv2generativequestionsfeatureconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": Indicates which fields +// in the provided GenerativeQuestionsFeatureConfig to update. If not set or +// empty, all supported fields are updated. +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall) UpdateMask(updateMask string) *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall { + 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 +// details. +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall) Context(ctx context.Context) *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudretailv2generativequestionsfeatureconfig) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+catalog}/generativeQuestionFeature") + 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{ + "catalog": c.catalog, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "retail.projects.locations.catalogs.updateGenerativeQuestionFeature" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRetailV2GenerativeQuestionsFeatureConfig.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 *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2GenerativeQuestionsFeatureConfig, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleCloudRetailV2GenerativeQuestionsFeatureConfig{ + 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 +} + +type ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall struct { + s *Service + attributesConfig string + googlecloudretailv2addcatalogattributerequest *GoogleCloudRetailV2AddCatalogAttributeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// AddCatalogAttribute: Adds the specified CatalogAttribute to the +// AttributesConfig. If the CatalogAttribute to add already exists, an +// ALREADY_EXISTS error is returned. +// +// - attributesConfig: Full AttributesConfig resource name. Format: +// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/at +// tributesConfig`. +func (r *ProjectsLocationsCatalogsAttributesConfigService) AddCatalogAttribute(attributesConfig string, googlecloudretailv2addcatalogattributerequest *GoogleCloudRetailV2AddCatalogAttributeRequest) *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall { + c := &ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.attributesConfig = attributesConfig + c.googlecloudretailv2addcatalogattributerequest = googlecloudretailv2addcatalogattributerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Context(ctx context.Context) *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudretailv2addcatalogattributerequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+attributesConfig}:addCatalogAttribute") + 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{ + "attributesConfig": c.attributesConfig, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "retail.projects.locations.catalogs.attributesConfig.addCatalogAttribute" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRetailV2AttributesConfig.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 *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2AttributesConfig, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleCloudRetailV2AttributesConfig{ + 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 +} + +type ProjectsLocationsCatalogsAttributesConfigRemoveCatalogAttributeCall struct { + s *Service + attributesConfig string + googlecloudretailv2removecatalogattributerequest *GoogleCloudRetailV2RemoveCatalogAttributeRequest urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header @@ -12322,6 +12873,218 @@ func (c *ProjectsLocationsCatalogsControlsPatchCall) Do(opts ...googleapi.CallOp return ret, nil } +type ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall struct { + s *Service + parent string + googlecloudretailv2batchupdategenerativequestionconfigsrequest *GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchUpdate: Allows management of multiple questions. +// +// - parent: Optional. Resource name of the parent catalog. Format: +// projects/{project}/locations/{location}/catalogs/{catalog}. +func (r *ProjectsLocationsCatalogsGenerativeQuestionService) BatchUpdate(parent string, googlecloudretailv2batchupdategenerativequestionconfigsrequest *GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest) *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall { + c := &ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudretailv2batchupdategenerativequestionconfigsrequest = googlecloudretailv2batchupdategenerativequestionconfigsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudretailv2batchupdategenerativequestionconfigsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/generativeQuestion:batchUpdate") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "retail.projects.locations.catalogs.generativeQuestion.batchUpdate" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse.ServerRespon +// se.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 *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse{ + 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 +} + +type ProjectsLocationsCatalogsGenerativeQuestionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns all questions for a given catalog. +// +// - parent: Resource name of the parent catalog. Format: +// projects/{project}/locations/{location}/catalogs/{catalog}. +func (r *ProjectsLocationsCatalogsGenerativeQuestionsService) List(parent string) *ProjectsLocationsCatalogsGenerativeQuestionsListCall { + c := &ProjectsLocationsCatalogsGenerativeQuestionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCatalogsGenerativeQuestionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsGenerativeQuestionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsCatalogsGenerativeQuestionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCatalogsGenerativeQuestionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCatalogsGenerativeQuestionsListCall) Context(ctx context.Context) *ProjectsLocationsCatalogsGenerativeQuestionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCatalogsGenerativeQuestionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsGenerativeQuestionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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, "v2/{+parent}/generativeQuestions") + 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 "retail.projects.locations.catalogs.generativeQuestions.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse.ServerResponse.Head +// er 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 *ProjectsLocationsCatalogsGenerativeQuestionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse{ + 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 +} + type ProjectsLocationsCatalogsModelsCreateCall struct { s *Service parent string diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index 1e5aea82760..f9bcb00508a 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -479,6 +479,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getGenerativeQuestionFeature": { + "description": "Manages overal generative question feature state -- enables toggling feature on and off.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/generativeQuestionFeature", + "httpMethod": "GET", + "id": "retail.projects.locations.catalogs.getGenerativeQuestionFeature", + "parameterOrder": [ + "catalog" + ], + "parameters": { + "catalog": { + "description": "Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+catalog}/generativeQuestionFeature", + "response": { + "$ref": "GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists all the Catalogs associated with the project.", "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs", @@ -644,6 +669,74 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "updateGenerativeQuestion": { + "description": "Allows management of individual questions.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/generativeQuestion", + "httpMethod": "PATCH", + "id": "retail.projects.locations.catalogs.updateGenerativeQuestion", + "parameterOrder": [ + "catalog" + ], + "parameters": { + "catalog": { + "description": "Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Indicates which fields in the provided GenerativeQuestionConfig to update. The following are NOT supported: * GenerativeQuestionConfig.frequency If not set or empty, all supported fields are updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2alpha/{+catalog}/generativeQuestion", + "request": { + "$ref": "GoogleCloudRetailV2alphaGenerativeQuestionConfig" + }, + "response": { + "$ref": "GoogleCloudRetailV2alphaGenerativeQuestionConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "updateGenerativeQuestionFeature": { + "description": "Manages overal generative question feature state -- enables toggling feature on and off.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/generativeQuestionFeature", + "httpMethod": "PATCH", + "id": "retail.projects.locations.catalogs.updateGenerativeQuestionFeature", + "parameterOrder": [ + "catalog" + ], + "parameters": { + "catalog": { + "description": "Required. Resource name of the affected catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Indicates which fields in the provided GenerativeQuestionsFeatureConfig to update. If not set or empty, all supported fields are updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2alpha/{+catalog}/generativeQuestionFeature", + "request": { + "$ref": "GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig" + }, + "response": { + "$ref": "GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -1512,6 +1605,67 @@ } } }, + "generativeQuestion": { + "methods": { + "batchUpdate": { + "description": "Allows management of multiple questions.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/generativeQuestion:batchUpdate", + "httpMethod": "POST", + "id": "retail.projects.locations.catalogs.generativeQuestion.batchUpdate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Optional. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+parent}/generativeQuestion:batchUpdate", + "request": { + "$ref": "GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsRequest" + }, + "response": { + "$ref": "GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "generativeQuestions": { + "methods": { + "list": { + "description": "Returns all questions for a given catalog.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/generativeQuestions", + "httpMethod": "GET", + "id": "retail.projects.locations.catalogs.generativeQuestions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+parent}/generativeQuestions", + "response": { + "$ref": "GoogleCloudRetailV2alphaListGenerativeQuestionConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "merchantCenterAccountLinks": { "methods": { "create": { @@ -2613,7 +2767,7 @@ } } }, - "revision": "20240912", + "revision": "20240920", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -3588,6 +3742,34 @@ }, "type": "object" }, + "GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsRequest": { + "description": "Request for BatchUpdateGenerativeQuestionConfig method.", + "id": "GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsRequest", + "properties": { + "requests": { + "description": "Required. The updates question configs.", + "items": { + "$ref": "GoogleCloudRetailV2alphaUpdateGenerativeQuestionConfigRequest" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsResponse": { + "description": "Aggregated response for UpdateGenerativeQuestionConfig method.", + "id": "GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsResponse", + "properties": { + "generativeQuestionConfigs": { + "description": "Optional. The updates question configs.", + "items": { + "$ref": "GoogleCloudRetailV2alphaGenerativeQuestionConfig" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaBigQueryOutputResult": { "description": "A BigQuery output result.", "id": "GoogleCloudRetailV2alphaBigQueryOutputResult", @@ -4637,6 +4819,68 @@ }, "type": "object" }, + "GoogleCloudRetailV2alphaGenerativeQuestionConfig": { + "description": "Configuration for a single generated question.", + "id": "GoogleCloudRetailV2alphaGenerativeQuestionConfig", + "properties": { + "allowedInConversation": { + "description": "Optional. Whether the question is asked at serving time.", + "type": "boolean" + }, + "catalog": { + "description": "Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "type": "string" + }, + "exampleValues": { + "description": "Output only. Values that can be used to answer the question.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "facet": { + "description": "Required. The facet to which the question is associated.", + "type": "string" + }, + "finalQuestion": { + "description": "Optional. The question that will be used at serving time. Question can have a max length of 300 bytes. When not populated, generated_question should be used.", + "type": "string" + }, + "frequency": { + "description": "Output only. The ratio of how often a question was asked.", + "format": "float", + "readOnly": true, + "type": "number" + }, + "generatedQuestion": { + "description": "Output only. The LLM generated question.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig": { + "description": "Configuration for overall generative question feature state.", + "id": "GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig", + "properties": { + "catalog": { + "description": "Required. Resource name of the affected catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "type": "string" + }, + "featureEnabled": { + "description": "Optional. Determines whether questions will be used at serving time. Note: This feature cannot be enabled until initial data requirements are satisfied.", + "type": "boolean" + }, + "minimumProducts": { + "description": "Optional. Minimum number of products in the response to trigger follow-up questions. Value must be 0 or positive.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaGetDefaultBranchResponse": { "description": "Response message of CatalogService.GetDefaultBranch.", "id": "GoogleCloudRetailV2alphaGetDefaultBranchResponse", @@ -4961,6 +5205,20 @@ }, "type": "object" }, + "GoogleCloudRetailV2alphaListGenerativeQuestionConfigsResponse": { + "description": "Response for ListQuestions method.", + "id": "GoogleCloudRetailV2alphaListGenerativeQuestionConfigsResponse", + "properties": { + "generativeQuestionConfigs": { + "description": "All the questions for a given catalog.", + "items": { + "$ref": "GoogleCloudRetailV2alphaGenerativeQuestionConfig" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse": { "description": "Response for MerchantCenterAccountLinkService.ListMerchantCenterAccountLinks method.", "id": "GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse", @@ -7580,6 +7838,22 @@ "properties": {}, "type": "object" }, + "GoogleCloudRetailV2alphaUpdateGenerativeQuestionConfigRequest": { + "description": "Request for UpdateGenerativeQuestionConfig method.", + "id": "GoogleCloudRetailV2alphaUpdateGenerativeQuestionConfigRequest", + "properties": { + "generativeQuestionConfig": { + "$ref": "GoogleCloudRetailV2alphaGenerativeQuestionConfig", + "description": "Required. The question to update." + }, + "updateMask": { + "description": "Optional. Indicates which fields in the provided GenerativeQuestionConfig to update. The following are NOT supported: * GenerativeQuestionConfig.frequency If not set or empty, all supported fields are updated.", + "format": "google-fieldmask", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaUserEvent": { "description": "UserEvent captures all metadata information Retail API needs to know about how end users interact with customers' website.", "id": "GoogleCloudRetailV2alphaUserEvent", diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index 9bed4e8a3d8..c769a73f6c3 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -193,6 +193,8 @@ func NewProjectsLocationsCatalogsService(s *Service) *ProjectsLocationsCatalogsS rs.Branches = NewProjectsLocationsCatalogsBranchesService(s) rs.CompletionData = NewProjectsLocationsCatalogsCompletionDataService(s) rs.Controls = NewProjectsLocationsCatalogsControlsService(s) + rs.GenerativeQuestion = NewProjectsLocationsCatalogsGenerativeQuestionService(s) + rs.GenerativeQuestions = NewProjectsLocationsCatalogsGenerativeQuestionsService(s) rs.MerchantCenterAccountLinks = NewProjectsLocationsCatalogsMerchantCenterAccountLinksService(s) rs.Models = NewProjectsLocationsCatalogsModelsService(s) rs.Operations = NewProjectsLocationsCatalogsOperationsService(s) @@ -213,6 +215,10 @@ type ProjectsLocationsCatalogsService struct { Controls *ProjectsLocationsCatalogsControlsService + GenerativeQuestion *ProjectsLocationsCatalogsGenerativeQuestionService + + GenerativeQuestions *ProjectsLocationsCatalogsGenerativeQuestionsService + MerchantCenterAccountLinks *ProjectsLocationsCatalogsMerchantCenterAccountLinksService Models *ProjectsLocationsCatalogsModelsService @@ -310,6 +316,24 @@ type ProjectsLocationsCatalogsControlsService struct { s *Service } +func NewProjectsLocationsCatalogsGenerativeQuestionService(s *Service) *ProjectsLocationsCatalogsGenerativeQuestionService { + rs := &ProjectsLocationsCatalogsGenerativeQuestionService{s: s} + return rs +} + +type ProjectsLocationsCatalogsGenerativeQuestionService struct { + s *Service +} + +func NewProjectsLocationsCatalogsGenerativeQuestionsService(s *Service) *ProjectsLocationsCatalogsGenerativeQuestionsService { + rs := &ProjectsLocationsCatalogsGenerativeQuestionsService{s: s} + return rs +} + +type ProjectsLocationsCatalogsGenerativeQuestionsService struct { + s *Service +} + func NewProjectsLocationsCatalogsMerchantCenterAccountLinksService(s *Service) *ProjectsLocationsCatalogsMerchantCenterAccountLinksService { rs := &ProjectsLocationsCatalogsMerchantCenterAccountLinksService{s: s} return rs @@ -1807,6 +1831,55 @@ func (s GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesResponse) MarshalJSO return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsRequest: Request +// for BatchUpdateGenerativeQuestionConfig method. +type GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsRequest struct { + // Requests: Required. The updates question configs. + Requests []*GoogleCloudRetailV2alphaUpdateGenerativeQuestionConfigRequest `json:"requests,omitempty"` + // ForceSendFields is a list of field names (e.g. "Requests") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Requests") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsResponse: +// Aggregated response for UpdateGenerativeQuestionConfig method. +type GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsResponse struct { + // GenerativeQuestionConfigs: Optional. The updates question configs. + GenerativeQuestionConfigs []*GoogleCloudRetailV2alphaGenerativeQuestionConfig `json:"generativeQuestionConfigs,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "GenerativeQuestionConfigs") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GenerativeQuestionConfigs") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaBigQueryOutputResult: A BigQuery output result. type GoogleCloudRetailV2alphaBigQueryOutputResult struct { // DatasetId: The ID of a BigQuery Dataset. @@ -3459,6 +3532,96 @@ func (s GoogleCloudRetailV2alphaGcsSource) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2alphaGenerativeQuestionConfig: Configuration for a single +// generated question. +type GoogleCloudRetailV2alphaGenerativeQuestionConfig struct { + // AllowedInConversation: Optional. Whether the question is asked at serving + // time. + AllowedInConversation bool `json:"allowedInConversation,omitempty"` + // Catalog: Required. Resource name of the catalog. Format: + // projects/{project}/locations/{location}/catalogs/{catalog} + Catalog string `json:"catalog,omitempty"` + // ExampleValues: Output only. Values that can be used to answer the question. + ExampleValues []string `json:"exampleValues,omitempty"` + // Facet: Required. The facet to which the question is associated. + Facet string `json:"facet,omitempty"` + // FinalQuestion: Optional. The question that will be used at serving time. + // Question can have a max length of 300 bytes. When not populated, + // generated_question should be used. + FinalQuestion string `json:"finalQuestion,omitempty"` + // Frequency: Output only. The ratio of how often a question was asked. + Frequency float64 `json:"frequency,omitempty"` + // GeneratedQuestion: Output only. The LLM generated question. + GeneratedQuestion string `json:"generatedQuestion,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AllowedInConversation") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AllowedInConversation") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2alphaGenerativeQuestionConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaGenerativeQuestionConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudRetailV2alphaGenerativeQuestionConfig) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudRetailV2alphaGenerativeQuestionConfig + var s1 struct { + Frequency gensupport.JSONFloat64 `json:"frequency"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Frequency = float64(s1.Frequency) + return nil +} + +// GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig: Configuration for +// overall generative question feature state. +type GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig struct { + // Catalog: Required. Resource name of the affected catalog. Format: + // projects/{project}/locations/{location}/catalogs/{catalog} + Catalog string `json:"catalog,omitempty"` + // FeatureEnabled: Optional. Determines whether questions will be used at + // serving time. Note: This feature cannot be enabled until initial data + // requirements are satisfied. + FeatureEnabled bool `json:"featureEnabled,omitempty"` + // MinimumProducts: Optional. Minimum number of products in the response to + // trigger follow-up questions. Value must be 0 or positive. + MinimumProducts int64 `json:"minimumProducts,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Catalog") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Catalog") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaGetDefaultBranchResponse: Response message of // CatalogService.GetDefaultBranch. type GoogleCloudRetailV2alphaGetDefaultBranchResponse struct { @@ -3947,6 +4110,32 @@ func (s GoogleCloudRetailV2alphaListEnrolledSolutionsResponse) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2alphaListGenerativeQuestionConfigsResponse: Response for +// ListQuestions method. +type GoogleCloudRetailV2alphaListGenerativeQuestionConfigsResponse struct { + // GenerativeQuestionConfigs: All the questions for a given catalog. + GenerativeQuestionConfigs []*GoogleCloudRetailV2alphaGenerativeQuestionConfig `json:"generativeQuestionConfigs,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "GenerativeQuestionConfigs") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GenerativeQuestionConfigs") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2alphaListGenerativeQuestionConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaListGenerativeQuestionConfigsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse: Response for // MerchantCenterAccountLinkService.ListMerchantCenterAccountLinks method. type GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse struct { @@ -8070,6 +8259,34 @@ type GoogleCloudRetailV2alphaTuneModelRequest struct { type GoogleCloudRetailV2alphaTuneModelResponse struct { } +// GoogleCloudRetailV2alphaUpdateGenerativeQuestionConfigRequest: Request for +// UpdateGenerativeQuestionConfig method. +type GoogleCloudRetailV2alphaUpdateGenerativeQuestionConfigRequest struct { + // GenerativeQuestionConfig: Required. The question to update. + GenerativeQuestionConfig *GoogleCloudRetailV2alphaGenerativeQuestionConfig `json:"generativeQuestionConfig,omitempty"` + // UpdateMask: Optional. Indicates which fields in the provided + // GenerativeQuestionConfig to update. The following are NOT supported: * + // GenerativeQuestionConfig.frequency If not set or empty, all supported fields + // are updated. + UpdateMask string `json:"updateMask,omitempty"` + // ForceSendFields is a list of field names (e.g. "GenerativeQuestionConfig") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GenerativeQuestionConfig") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2alphaUpdateGenerativeQuestionConfigRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaUpdateGenerativeQuestionConfigRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaUserEvent: UserEvent captures all metadata // information Retail API needs to know about how end users interact with // customers' website. @@ -10778,6 +10995,116 @@ func (c *ProjectsLocationsCatalogsGetDefaultBranchCall) Do(opts ...googleapi.Cal return ret, nil } +type ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall struct { + s *Service + catalog string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetGenerativeQuestionFeature: Manages overal generative question feature +// state -- enables toggling feature on and off. +// +// - catalog: Resource name of the parent catalog. Format: +// projects/{project}/locations/{location}/catalogs/{catalog}. +func (r *ProjectsLocationsCatalogsService) GetGenerativeQuestionFeature(catalog string) *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall { + c := &ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.catalog = catalog + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall) IfNoneMatch(entityTag string) *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall) Context(ctx context.Context) *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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, "v2alpha/{+catalog}/generativeQuestionFeature") + 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{ + "catalog": c.catalog, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "retail.projects.locations.catalogs.getGenerativeQuestionFeature" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig.ServerResponse.Head +// er 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 *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig{ + 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 +} + type ProjectsLocationsCatalogsListCall struct { s *Service parent string @@ -11394,81 +11721,87 @@ func (c *ProjectsLocationsCatalogsUpdateCompletionConfigCall) Do(opts ...googlea return ret, nil } -type ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall struct { - s *Service - attributesConfig string - googlecloudretailv2alphaaddcatalogattributerequest *GoogleCloudRetailV2alphaAddCatalogAttributeRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsCatalogsUpdateGenerativeQuestionCall struct { + s *Service + catalog string + googlecloudretailv2alphagenerativequestionconfig *GoogleCloudRetailV2alphaGenerativeQuestionConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// AddCatalogAttribute: Adds the specified CatalogAttribute to the -// AttributesConfig. If the CatalogAttribute to add already exists, an -// ALREADY_EXISTS error is returned. +// UpdateGenerativeQuestion: Allows management of individual questions. // -// - attributesConfig: Full AttributesConfig resource name. Format: -// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/at -// tributesConfig`. -func (r *ProjectsLocationsCatalogsAttributesConfigService) AddCatalogAttribute(attributesConfig string, googlecloudretailv2alphaaddcatalogattributerequest *GoogleCloudRetailV2alphaAddCatalogAttributeRequest) *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall { - c := &ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.attributesConfig = attributesConfig - c.googlecloudretailv2alphaaddcatalogattributerequest = googlecloudretailv2alphaaddcatalogattributerequest +// - catalog: Resource name of the catalog. Format: +// projects/{project}/locations/{location}/catalogs/{catalog}. +func (r *ProjectsLocationsCatalogsService) UpdateGenerativeQuestion(catalog string, googlecloudretailv2alphagenerativequestionconfig *GoogleCloudRetailV2alphaGenerativeQuestionConfig) *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall { + c := &ProjectsLocationsCatalogsUpdateGenerativeQuestionCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.catalog = catalog + c.googlecloudretailv2alphagenerativequestionconfig = googlecloudretailv2alphagenerativequestionconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": Indicates which fields +// in the provided GenerativeQuestionConfig to update. The following are NOT +// supported: * GenerativeQuestionConfig.frequency If not set or empty, all +// supported fields are updated. +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall) UpdateMask(updateMask string) *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall { + 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 // details. -func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall { +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Context(ctx context.Context) *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall { +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall) Context(ctx context.Context) *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Header() http.Header { +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudretailv2alphaaddcatalogattributerequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudretailv2alphagenerativequestionconfig) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2alpha/{+attributesConfig}:addCatalogAttribute") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2alpha/{+catalog}/generativeQuestion") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "attributesConfig": c.attributesConfig, + "catalog": c.catalog, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "retail.projects.locations.catalogs.attributesConfig.addCatalogAttribute" call. +// Do executes the "retail.projects.locations.catalogs.updateGenerativeQuestion" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudRetailV2alphaAttributesConfig.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudRetailV2alphaGenerativeQuestionConfig.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 *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2alphaAttributesConfig, error) { +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2alphaGenerativeQuestionConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11487,7 +11820,7 @@ func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Do(op if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudRetailV2alphaAttributesConfig{ + ret := &GoogleCloudRetailV2alphaGenerativeQuestionConfig{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11500,9 +11833,227 @@ func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Do(op return ret, nil } -type ProjectsLocationsCatalogsAttributesConfigBatchRemoveCatalogAttributesCall struct { - s *Service - attributesConfig string +type ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall struct { + s *Service + catalog string + googlecloudretailv2alphagenerativequestionsfeatureconfig *GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateGenerativeQuestionFeature: Manages overal generative question feature +// state -- enables toggling feature on and off. +// +// - catalog: Resource name of the affected catalog. Format: +// projects/{project}/locations/{location}/catalogs/{catalog}. +func (r *ProjectsLocationsCatalogsService) UpdateGenerativeQuestionFeature(catalog string, googlecloudretailv2alphagenerativequestionsfeatureconfig *GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig) *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall { + c := &ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.catalog = catalog + c.googlecloudretailv2alphagenerativequestionsfeatureconfig = googlecloudretailv2alphagenerativequestionsfeatureconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": Indicates which fields +// in the provided GenerativeQuestionsFeatureConfig to update. If not set or +// empty, all supported fields are updated. +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall) UpdateMask(updateMask string) *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall { + 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 +// details. +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall) Context(ctx context.Context) *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudretailv2alphagenerativequestionsfeatureconfig) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2alpha/{+catalog}/generativeQuestionFeature") + 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{ + "catalog": c.catalog, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "retail.projects.locations.catalogs.updateGenerativeQuestionFeature" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig.ServerResponse.Head +// er 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 *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig{ + 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 +} + +type ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall struct { + s *Service + attributesConfig string + googlecloudretailv2alphaaddcatalogattributerequest *GoogleCloudRetailV2alphaAddCatalogAttributeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// AddCatalogAttribute: Adds the specified CatalogAttribute to the +// AttributesConfig. If the CatalogAttribute to add already exists, an +// ALREADY_EXISTS error is returned. +// +// - attributesConfig: Full AttributesConfig resource name. Format: +// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/at +// tributesConfig`. +func (r *ProjectsLocationsCatalogsAttributesConfigService) AddCatalogAttribute(attributesConfig string, googlecloudretailv2alphaaddcatalogattributerequest *GoogleCloudRetailV2alphaAddCatalogAttributeRequest) *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall { + c := &ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.attributesConfig = attributesConfig + c.googlecloudretailv2alphaaddcatalogattributerequest = googlecloudretailv2alphaaddcatalogattributerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Context(ctx context.Context) *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudretailv2alphaaddcatalogattributerequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2alpha/{+attributesConfig}:addCatalogAttribute") + 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{ + "attributesConfig": c.attributesConfig, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "retail.projects.locations.catalogs.attributesConfig.addCatalogAttribute" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRetailV2alphaAttributesConfig.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 *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2alphaAttributesConfig, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleCloudRetailV2alphaAttributesConfig{ + 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 +} + +type ProjectsLocationsCatalogsAttributesConfigBatchRemoveCatalogAttributesCall struct { + s *Service + attributesConfig string googlecloudretailv2alphabatchremovecatalogattributesrequest *GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesRequest urlParams_ gensupport.URLParams ctx_ context.Context @@ -14585,6 +15136,218 @@ func (c *ProjectsLocationsCatalogsControlsPatchCall) Do(opts ...googleapi.CallOp return ret, nil } +type ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall struct { + s *Service + parent string + googlecloudretailv2alphabatchupdategenerativequestionconfigsrequest *GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchUpdate: Allows management of multiple questions. +// +// - parent: Optional. Resource name of the parent catalog. Format: +// projects/{project}/locations/{location}/catalogs/{catalog}. +func (r *ProjectsLocationsCatalogsGenerativeQuestionService) BatchUpdate(parent string, googlecloudretailv2alphabatchupdategenerativequestionconfigsrequest *GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsRequest) *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall { + c := &ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudretailv2alphabatchupdategenerativequestionconfigsrequest = googlecloudretailv2alphabatchupdategenerativequestionconfigsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudretailv2alphabatchupdategenerativequestionconfigsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2alpha/{+parent}/generativeQuestion:batchUpdate") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "retail.projects.locations.catalogs.generativeQuestion.batchUpdate" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsResponse.ServerR +// esponse.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 *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsResponse{ + 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 +} + +type ProjectsLocationsCatalogsGenerativeQuestionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns all questions for a given catalog. +// +// - parent: Resource name of the parent catalog. Format: +// projects/{project}/locations/{location}/catalogs/{catalog}. +func (r *ProjectsLocationsCatalogsGenerativeQuestionsService) List(parent string) *ProjectsLocationsCatalogsGenerativeQuestionsListCall { + c := &ProjectsLocationsCatalogsGenerativeQuestionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCatalogsGenerativeQuestionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsGenerativeQuestionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsCatalogsGenerativeQuestionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCatalogsGenerativeQuestionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCatalogsGenerativeQuestionsListCall) Context(ctx context.Context) *ProjectsLocationsCatalogsGenerativeQuestionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCatalogsGenerativeQuestionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsGenerativeQuestionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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, "v2alpha/{+parent}/generativeQuestions") + 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 "retail.projects.locations.catalogs.generativeQuestions.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRetailV2alphaListGenerativeQuestionConfigsResponse.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 *ProjectsLocationsCatalogsGenerativeQuestionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2alphaListGenerativeQuestionConfigsResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleCloudRetailV2alphaListGenerativeQuestionConfigsResponse{ + 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 +} + type ProjectsLocationsCatalogsMerchantCenterAccountLinksCreateCall struct { s *Service parent string diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index 21ede18827b..f3defda5bdb 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -342,6 +342,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getGenerativeQuestionFeature": { + "description": "Manages overal generative question feature state -- enables toggling feature on and off.", + "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/generativeQuestionFeature", + "httpMethod": "GET", + "id": "retail.projects.locations.catalogs.getGenerativeQuestionFeature", + "parameterOrder": [ + "catalog" + ], + "parameters": { + "catalog": { + "description": "Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2beta/{+catalog}/generativeQuestionFeature", + "response": { + "$ref": "GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists all the Catalogs associated with the project.", "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs", @@ -507,6 +532,74 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "updateGenerativeQuestion": { + "description": "Allows management of individual questions.", + "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/generativeQuestion", + "httpMethod": "PATCH", + "id": "retail.projects.locations.catalogs.updateGenerativeQuestion", + "parameterOrder": [ + "catalog" + ], + "parameters": { + "catalog": { + "description": "Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Indicates which fields in the provided GenerativeQuestionConfig to update. The following are NOT supported: * GenerativeQuestionConfig.frequency If not set or empty, all supported fields are updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2beta/{+catalog}/generativeQuestion", + "request": { + "$ref": "GoogleCloudRetailV2betaGenerativeQuestionConfig" + }, + "response": { + "$ref": "GoogleCloudRetailV2betaGenerativeQuestionConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "updateGenerativeQuestionFeature": { + "description": "Manages overal generative question feature state -- enables toggling feature on and off.", + "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/generativeQuestionFeature", + "httpMethod": "PATCH", + "id": "retail.projects.locations.catalogs.updateGenerativeQuestionFeature", + "parameterOrder": [ + "catalog" + ], + "parameters": { + "catalog": { + "description": "Required. Resource name of the affected catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Indicates which fields in the provided GenerativeQuestionsFeatureConfig to update. If not set or empty, all supported fields are updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2beta/{+catalog}/generativeQuestionFeature", + "request": { + "$ref": "GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig" + }, + "response": { + "$ref": "GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -1250,6 +1343,67 @@ } } }, + "generativeQuestion": { + "methods": { + "batchUpdate": { + "description": "Allows management of multiple questions.", + "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/generativeQuestion:batchUpdate", + "httpMethod": "POST", + "id": "retail.projects.locations.catalogs.generativeQuestion.batchUpdate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Optional. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2beta/{+parent}/generativeQuestion:batchUpdate", + "request": { + "$ref": "GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsRequest" + }, + "response": { + "$ref": "GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "generativeQuestions": { + "methods": { + "list": { + "description": "Returns all questions for a given catalog.", + "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/generativeQuestions", + "httpMethod": "GET", + "id": "retail.projects.locations.catalogs.generativeQuestions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2beta/{+parent}/generativeQuestions", + "response": { + "$ref": "GoogleCloudRetailV2betaListGenerativeQuestionConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "models": { "methods": { "create": { @@ -2237,7 +2391,7 @@ } } }, - "revision": "20240912", + "revision": "20240920", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -4036,6 +4190,34 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsRequest": { + "description": "Request for BatchUpdateGenerativeQuestionConfig method.", + "id": "GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsRequest", + "properties": { + "requests": { + "description": "Required. The updates question configs.", + "items": { + "$ref": "GoogleCloudRetailV2betaUpdateGenerativeQuestionConfigRequest" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsResponse": { + "description": "Aggregated response for UpdateGenerativeQuestionConfig method.", + "id": "GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsResponse", + "properties": { + "generativeQuestionConfigs": { + "description": "Optional. The updates question configs.", + "items": { + "$ref": "GoogleCloudRetailV2betaGenerativeQuestionConfig" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaBigQueryOutputResult": { "description": "A BigQuery output result.", "id": "GoogleCloudRetailV2betaBigQueryOutputResult", @@ -4903,6 +5085,68 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaGenerativeQuestionConfig": { + "description": "Configuration for a single generated question.", + "id": "GoogleCloudRetailV2betaGenerativeQuestionConfig", + "properties": { + "allowedInConversation": { + "description": "Optional. Whether the question is asked at serving time.", + "type": "boolean" + }, + "catalog": { + "description": "Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "type": "string" + }, + "exampleValues": { + "description": "Output only. Values that can be used to answer the question.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "facet": { + "description": "Required. The facet to which the question is associated.", + "type": "string" + }, + "finalQuestion": { + "description": "Optional. The question that will be used at serving time. Question can have a max length of 300 bytes. When not populated, generated_question should be used.", + "type": "string" + }, + "frequency": { + "description": "Output only. The ratio of how often a question was asked.", + "format": "float", + "readOnly": true, + "type": "number" + }, + "generatedQuestion": { + "description": "Output only. The LLM generated question.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig": { + "description": "Configuration for overall generative question feature state.", + "id": "GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig", + "properties": { + "catalog": { + "description": "Required. Resource name of the affected catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}", + "type": "string" + }, + "featureEnabled": { + "description": "Optional. Determines whether questions will be used at serving time. Note: This feature cannot be enabled until initial data requirements are satisfied.", + "type": "boolean" + }, + "minimumProducts": { + "description": "Optional. Minimum number of products in the response to trigger follow-up questions. Value must be 0 or positive.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaGetDefaultBranchResponse": { "description": "Response message of CatalogService.GetDefaultBranch.", "id": "GoogleCloudRetailV2betaGetDefaultBranchResponse", @@ -5181,6 +5425,20 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaListGenerativeQuestionConfigsResponse": { + "description": "Response for ListQuestions method.", + "id": "GoogleCloudRetailV2betaListGenerativeQuestionConfigsResponse", + "properties": { + "generativeQuestionConfigs": { + "description": "All the questions for a given catalog.", + "items": { + "$ref": "GoogleCloudRetailV2betaGenerativeQuestionConfig" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaListModelsResponse": { "description": "Response to a ListModelRequest.", "id": "GoogleCloudRetailV2betaListModelsResponse", @@ -7493,6 +7751,22 @@ "properties": {}, "type": "object" }, + "GoogleCloudRetailV2betaUpdateGenerativeQuestionConfigRequest": { + "description": "Request for UpdateGenerativeQuestionConfig method.", + "id": "GoogleCloudRetailV2betaUpdateGenerativeQuestionConfigRequest", + "properties": { + "generativeQuestionConfig": { + "$ref": "GoogleCloudRetailV2betaGenerativeQuestionConfig", + "description": "Required. The question to update." + }, + "updateMask": { + "description": "Optional. Indicates which fields in the provided GenerativeQuestionConfig to update. The following are NOT supported: * GenerativeQuestionConfig.frequency If not set or empty, all supported fields are updated.", + "format": "google-fieldmask", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaUserEvent": { "description": "UserEvent captures all metadata information Retail API needs to know about how end users interact with customers' website.", "id": "GoogleCloudRetailV2betaUserEvent", diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index 227565fbbb6..169e6a4987c 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -190,6 +190,8 @@ func NewProjectsLocationsCatalogsService(s *Service) *ProjectsLocationsCatalogsS rs.Branches = NewProjectsLocationsCatalogsBranchesService(s) rs.CompletionData = NewProjectsLocationsCatalogsCompletionDataService(s) rs.Controls = NewProjectsLocationsCatalogsControlsService(s) + rs.GenerativeQuestion = NewProjectsLocationsCatalogsGenerativeQuestionService(s) + rs.GenerativeQuestions = NewProjectsLocationsCatalogsGenerativeQuestionsService(s) rs.Models = NewProjectsLocationsCatalogsModelsService(s) rs.Operations = NewProjectsLocationsCatalogsOperationsService(s) rs.Placements = NewProjectsLocationsCatalogsPlacementsService(s) @@ -209,6 +211,10 @@ type ProjectsLocationsCatalogsService struct { Controls *ProjectsLocationsCatalogsControlsService + GenerativeQuestion *ProjectsLocationsCatalogsGenerativeQuestionService + + GenerativeQuestions *ProjectsLocationsCatalogsGenerativeQuestionsService + Models *ProjectsLocationsCatalogsModelsService Operations *ProjectsLocationsCatalogsOperationsService @@ -280,6 +286,24 @@ type ProjectsLocationsCatalogsControlsService struct { s *Service } +func NewProjectsLocationsCatalogsGenerativeQuestionService(s *Service) *ProjectsLocationsCatalogsGenerativeQuestionService { + rs := &ProjectsLocationsCatalogsGenerativeQuestionService{s: s} + return rs +} + +type ProjectsLocationsCatalogsGenerativeQuestionService struct { + s *Service +} + +func NewProjectsLocationsCatalogsGenerativeQuestionsService(s *Service) *ProjectsLocationsCatalogsGenerativeQuestionsService { + rs := &ProjectsLocationsCatalogsGenerativeQuestionsService{s: s} + return rs +} + +type ProjectsLocationsCatalogsGenerativeQuestionsService struct { + s *Service +} + func NewProjectsLocationsCatalogsModelsService(s *Service) *ProjectsLocationsCatalogsModelsService { rs := &ProjectsLocationsCatalogsModelsService{s: s} return rs @@ -2940,6 +2964,55 @@ func (s GoogleCloudRetailV2betaBatchRemoveCatalogAttributesResponse) MarshalJSON return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsRequest: Request +// for BatchUpdateGenerativeQuestionConfig method. +type GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsRequest struct { + // Requests: Required. The updates question configs. + Requests []*GoogleCloudRetailV2betaUpdateGenerativeQuestionConfigRequest `json:"requests,omitempty"` + // ForceSendFields is a list of field names (e.g. "Requests") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Requests") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsResponse: +// Aggregated response for UpdateGenerativeQuestionConfig method. +type GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsResponse struct { + // GenerativeQuestionConfigs: Optional. The updates question configs. + GenerativeQuestionConfigs []*GoogleCloudRetailV2betaGenerativeQuestionConfig `json:"generativeQuestionConfigs,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "GenerativeQuestionConfigs") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GenerativeQuestionConfigs") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaBigQueryOutputResult: A BigQuery output result. type GoogleCloudRetailV2betaBigQueryOutputResult struct { // DatasetId: The ID of a BigQuery Dataset. @@ -4329,6 +4402,96 @@ func (s GoogleCloudRetailV2betaGcsSource) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaGenerativeQuestionConfig: Configuration for a single +// generated question. +type GoogleCloudRetailV2betaGenerativeQuestionConfig struct { + // AllowedInConversation: Optional. Whether the question is asked at serving + // time. + AllowedInConversation bool `json:"allowedInConversation,omitempty"` + // Catalog: Required. Resource name of the catalog. Format: + // projects/{project}/locations/{location}/catalogs/{catalog} + Catalog string `json:"catalog,omitempty"` + // ExampleValues: Output only. Values that can be used to answer the question. + ExampleValues []string `json:"exampleValues,omitempty"` + // Facet: Required. The facet to which the question is associated. + Facet string `json:"facet,omitempty"` + // FinalQuestion: Optional. The question that will be used at serving time. + // Question can have a max length of 300 bytes. When not populated, + // generated_question should be used. + FinalQuestion string `json:"finalQuestion,omitempty"` + // Frequency: Output only. The ratio of how often a question was asked. + Frequency float64 `json:"frequency,omitempty"` + // GeneratedQuestion: Output only. The LLM generated question. + GeneratedQuestion string `json:"generatedQuestion,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AllowedInConversation") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AllowedInConversation") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2betaGenerativeQuestionConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaGenerativeQuestionConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudRetailV2betaGenerativeQuestionConfig) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudRetailV2betaGenerativeQuestionConfig + var s1 struct { + Frequency gensupport.JSONFloat64 `json:"frequency"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Frequency = float64(s1.Frequency) + return nil +} + +// GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig: Configuration for +// overall generative question feature state. +type GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig struct { + // Catalog: Required. Resource name of the affected catalog. Format: + // projects/{project}/locations/{location}/catalogs/{catalog} + Catalog string `json:"catalog,omitempty"` + // FeatureEnabled: Optional. Determines whether questions will be used at + // serving time. Note: This feature cannot be enabled until initial data + // requirements are satisfied. + FeatureEnabled bool `json:"featureEnabled,omitempty"` + // MinimumProducts: Optional. Minimum number of products in the response to + // trigger follow-up questions. Value must be 0 or positive. + MinimumProducts int64 `json:"minimumProducts,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Catalog") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Catalog") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaGetDefaultBranchResponse: Response message of // CatalogService.GetDefaultBranch. type GoogleCloudRetailV2betaGetDefaultBranchResponse struct { @@ -4752,6 +4915,32 @@ func (s GoogleCloudRetailV2betaListControlsResponse) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaListGenerativeQuestionConfigsResponse: Response for +// ListQuestions method. +type GoogleCloudRetailV2betaListGenerativeQuestionConfigsResponse struct { + // GenerativeQuestionConfigs: All the questions for a given catalog. + GenerativeQuestionConfigs []*GoogleCloudRetailV2betaGenerativeQuestionConfig `json:"generativeQuestionConfigs,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "GenerativeQuestionConfigs") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GenerativeQuestionConfigs") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2betaListGenerativeQuestionConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaListGenerativeQuestionConfigsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaListModelsResponse: Response to a ListModelRequest. type GoogleCloudRetailV2betaListModelsResponse struct { // Models: List of Models. @@ -8399,6 +8588,34 @@ type GoogleCloudRetailV2betaTuneModelRequest struct { type GoogleCloudRetailV2betaTuneModelResponse struct { } +// GoogleCloudRetailV2betaUpdateGenerativeQuestionConfigRequest: Request for +// UpdateGenerativeQuestionConfig method. +type GoogleCloudRetailV2betaUpdateGenerativeQuestionConfigRequest struct { + // GenerativeQuestionConfig: Required. The question to update. + GenerativeQuestionConfig *GoogleCloudRetailV2betaGenerativeQuestionConfig `json:"generativeQuestionConfig,omitempty"` + // UpdateMask: Optional. Indicates which fields in the provided + // GenerativeQuestionConfig to update. The following are NOT supported: * + // GenerativeQuestionConfig.frequency If not set or empty, all supported fields + // are updated. + UpdateMask string `json:"updateMask,omitempty"` + // ForceSendFields is a list of field names (e.g. "GenerativeQuestionConfig") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GenerativeQuestionConfig") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudRetailV2betaUpdateGenerativeQuestionConfigRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaUpdateGenerativeQuestionConfigRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaUserEvent: UserEvent captures all metadata // information Retail API needs to know about how end users interact with // customers' website. @@ -9711,6 +9928,116 @@ func (c *ProjectsLocationsCatalogsGetDefaultBranchCall) Do(opts ...googleapi.Cal return ret, nil } +type ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall struct { + s *Service + catalog string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetGenerativeQuestionFeature: Manages overal generative question feature +// state -- enables toggling feature on and off. +// +// - catalog: Resource name of the parent catalog. Format: +// projects/{project}/locations/{location}/catalogs/{catalog}. +func (r *ProjectsLocationsCatalogsService) GetGenerativeQuestionFeature(catalog string) *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall { + c := &ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.catalog = catalog + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall) IfNoneMatch(entityTag string) *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall) Context(ctx context.Context) *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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, "v2beta/{+catalog}/generativeQuestionFeature") + 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{ + "catalog": c.catalog, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "retail.projects.locations.catalogs.getGenerativeQuestionFeature" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig.ServerResponse.Heade +// r 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 *ProjectsLocationsCatalogsGetGenerativeQuestionFeatureCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig{ + 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 +} + type ProjectsLocationsCatalogsListCall struct { s *Service parent string @@ -10327,81 +10654,87 @@ func (c *ProjectsLocationsCatalogsUpdateCompletionConfigCall) Do(opts ...googlea return ret, nil } -type ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall struct { - s *Service - attributesConfig string - googlecloudretailv2betaaddcatalogattributerequest *GoogleCloudRetailV2betaAddCatalogAttributeRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsCatalogsUpdateGenerativeQuestionCall struct { + s *Service + catalog string + googlecloudretailv2betagenerativequestionconfig *GoogleCloudRetailV2betaGenerativeQuestionConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// AddCatalogAttribute: Adds the specified CatalogAttribute to the -// AttributesConfig. If the CatalogAttribute to add already exists, an -// ALREADY_EXISTS error is returned. +// UpdateGenerativeQuestion: Allows management of individual questions. // -// - attributesConfig: Full AttributesConfig resource name. Format: -// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/at -// tributesConfig`. -func (r *ProjectsLocationsCatalogsAttributesConfigService) AddCatalogAttribute(attributesConfig string, googlecloudretailv2betaaddcatalogattributerequest *GoogleCloudRetailV2betaAddCatalogAttributeRequest) *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall { - c := &ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.attributesConfig = attributesConfig - c.googlecloudretailv2betaaddcatalogattributerequest = googlecloudretailv2betaaddcatalogattributerequest +// - catalog: Resource name of the catalog. Format: +// projects/{project}/locations/{location}/catalogs/{catalog}. +func (r *ProjectsLocationsCatalogsService) UpdateGenerativeQuestion(catalog string, googlecloudretailv2betagenerativequestionconfig *GoogleCloudRetailV2betaGenerativeQuestionConfig) *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall { + c := &ProjectsLocationsCatalogsUpdateGenerativeQuestionCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.catalog = catalog + c.googlecloudretailv2betagenerativequestionconfig = googlecloudretailv2betagenerativequestionconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": Indicates which fields +// in the provided GenerativeQuestionConfig to update. The following are NOT +// supported: * GenerativeQuestionConfig.frequency If not set or empty, all +// supported fields are updated. +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall) UpdateMask(updateMask string) *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall { + 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 // details. -func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall { +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Context(ctx context.Context) *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall { +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall) Context(ctx context.Context) *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Header() http.Header { +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudretailv2betaaddcatalogattributerequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudretailv2betagenerativequestionconfig) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta/{+attributesConfig}:addCatalogAttribute") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta/{+catalog}/generativeQuestion") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "attributesConfig": c.attributesConfig, + "catalog": c.catalog, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "retail.projects.locations.catalogs.attributesConfig.addCatalogAttribute" call. +// Do executes the "retail.projects.locations.catalogs.updateGenerativeQuestion" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudRetailV2betaAttributesConfig.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudRetailV2betaGenerativeQuestionConfig.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 *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2betaAttributesConfig, error) { +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2betaGenerativeQuestionConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10420,7 +10753,7 @@ func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Do(op if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudRetailV2betaAttributesConfig{ + ret := &GoogleCloudRetailV2betaGenerativeQuestionConfig{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10433,10 +10766,228 @@ func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Do(op return ret, nil } -type ProjectsLocationsCatalogsAttributesConfigBatchRemoveCatalogAttributesCall struct { - s *Service - attributesConfig string - googlecloudretailv2betabatchremovecatalogattributesrequest *GoogleCloudRetailV2betaBatchRemoveCatalogAttributesRequest +type ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall struct { + s *Service + catalog string + googlecloudretailv2betagenerativequestionsfeatureconfig *GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateGenerativeQuestionFeature: Manages overal generative question feature +// state -- enables toggling feature on and off. +// +// - catalog: Resource name of the affected catalog. Format: +// projects/{project}/locations/{location}/catalogs/{catalog}. +func (r *ProjectsLocationsCatalogsService) UpdateGenerativeQuestionFeature(catalog string, googlecloudretailv2betagenerativequestionsfeatureconfig *GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig) *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall { + c := &ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.catalog = catalog + c.googlecloudretailv2betagenerativequestionsfeatureconfig = googlecloudretailv2betagenerativequestionsfeatureconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": Indicates which fields +// in the provided GenerativeQuestionsFeatureConfig to update. If not set or +// empty, all supported fields are updated. +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall) UpdateMask(updateMask string) *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall { + 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 +// details. +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall) Context(ctx context.Context) *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudretailv2betagenerativequestionsfeatureconfig) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta/{+catalog}/generativeQuestionFeature") + 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{ + "catalog": c.catalog, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "retail.projects.locations.catalogs.updateGenerativeQuestionFeature" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig.ServerResponse.Heade +// r 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 *ProjectsLocationsCatalogsUpdateGenerativeQuestionFeatureCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig{ + 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 +} + +type ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall struct { + s *Service + attributesConfig string + googlecloudretailv2betaaddcatalogattributerequest *GoogleCloudRetailV2betaAddCatalogAttributeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// AddCatalogAttribute: Adds the specified CatalogAttribute to the +// AttributesConfig. If the CatalogAttribute to add already exists, an +// ALREADY_EXISTS error is returned. +// +// - attributesConfig: Full AttributesConfig resource name. Format: +// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/at +// tributesConfig`. +func (r *ProjectsLocationsCatalogsAttributesConfigService) AddCatalogAttribute(attributesConfig string, googlecloudretailv2betaaddcatalogattributerequest *GoogleCloudRetailV2betaAddCatalogAttributeRequest) *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall { + c := &ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.attributesConfig = attributesConfig + c.googlecloudretailv2betaaddcatalogattributerequest = googlecloudretailv2betaaddcatalogattributerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Context(ctx context.Context) *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudretailv2betaaddcatalogattributerequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta/{+attributesConfig}:addCatalogAttribute") + 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{ + "attributesConfig": c.attributesConfig, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "retail.projects.locations.catalogs.attributesConfig.addCatalogAttribute" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRetailV2betaAttributesConfig.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 *ProjectsLocationsCatalogsAttributesConfigAddCatalogAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2betaAttributesConfig, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleCloudRetailV2betaAttributesConfig{ + 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 +} + +type ProjectsLocationsCatalogsAttributesConfigBatchRemoveCatalogAttributesCall struct { + s *Service + attributesConfig string + googlecloudretailv2betabatchremovecatalogattributesrequest *GoogleCloudRetailV2betaBatchRemoveCatalogAttributesRequest urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header @@ -13126,6 +13677,218 @@ func (c *ProjectsLocationsCatalogsControlsPatchCall) Do(opts ...googleapi.CallOp return ret, nil } +type ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall struct { + s *Service + parent string + googlecloudretailv2betabatchupdategenerativequestionconfigsrequest *GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchUpdate: Allows management of multiple questions. +// +// - parent: Optional. Resource name of the parent catalog. Format: +// projects/{project}/locations/{location}/catalogs/{catalog}. +func (r *ProjectsLocationsCatalogsGenerativeQuestionService) BatchUpdate(parent string, googlecloudretailv2betabatchupdategenerativequestionconfigsrequest *GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsRequest) *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall { + c := &ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudretailv2betabatchupdategenerativequestionconfigsrequest = googlecloudretailv2betabatchupdategenerativequestionconfigsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudretailv2betabatchupdategenerativequestionconfigsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta/{+parent}/generativeQuestion:batchUpdate") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "retail.projects.locations.catalogs.generativeQuestion.batchUpdate" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsResponse.ServerRe +// sponse.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 *ProjectsLocationsCatalogsGenerativeQuestionBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsResponse{ + 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 +} + +type ProjectsLocationsCatalogsGenerativeQuestionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns all questions for a given catalog. +// +// - parent: Resource name of the parent catalog. Format: +// projects/{project}/locations/{location}/catalogs/{catalog}. +func (r *ProjectsLocationsCatalogsGenerativeQuestionsService) List(parent string) *ProjectsLocationsCatalogsGenerativeQuestionsListCall { + c := &ProjectsLocationsCatalogsGenerativeQuestionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCatalogsGenerativeQuestionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsGenerativeQuestionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsCatalogsGenerativeQuestionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCatalogsGenerativeQuestionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCatalogsGenerativeQuestionsListCall) Context(ctx context.Context) *ProjectsLocationsCatalogsGenerativeQuestionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCatalogsGenerativeQuestionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsGenerativeQuestionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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, "v2beta/{+parent}/generativeQuestions") + 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 "retail.projects.locations.catalogs.generativeQuestions.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRetailV2betaListGenerativeQuestionConfigsResponse.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 *ProjectsLocationsCatalogsGenerativeQuestionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2betaListGenerativeQuestionConfigsResponse, 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, gensupport.WrapError(&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, gensupport.WrapError(err) + } + ret := &GoogleCloudRetailV2betaListGenerativeQuestionConfigsResponse{ + 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 +} + type ProjectsLocationsCatalogsModelsCreateCall struct { s *Service parent string diff --git a/securitycenter/v1beta2/securitycenter-api.json b/securitycenter/v1beta2/securitycenter-api.json index 8e3a60758f8..341cfd521c6 100644 --- a/securitycenter/v1beta2/securitycenter-api.json +++ b/securitycenter/v1beta2/securitycenter-api.json @@ -512,6 +512,11 @@ "pattern": "^folders/[^/]+/containerThreatDetectionSettings$", "required": true, "type": "string" + }, + "showEligibleModulesOnly": { + "description": "Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.", + "location": "query", + "type": "boolean" } }, "path": "v1beta2/{+name}:calculate", @@ -541,6 +546,11 @@ "pattern": "^folders/[^/]+/eventThreatDetectionSettings$", "required": true, "type": "string" + }, + "showEligibleModulesOnly": { + "description": "Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.", + "location": "query", + "type": "boolean" } }, "path": "v1beta2/{+name}:calculate", @@ -599,6 +609,11 @@ "pattern": "^folders/[^/]+/securityHealthAnalyticsSettings$", "required": true, "type": "string" + }, + "showEligibleModulesOnly": { + "description": "Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.", + "location": "query", + "type": "boolean" } }, "path": "v1beta2/{+name}:calculate", @@ -628,6 +643,11 @@ "pattern": "^folders/[^/]+/virtualMachineThreatDetectionSettings$", "required": true, "type": "string" + }, + "showEligibleModulesOnly": { + "description": "Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.", + "location": "query", + "type": "boolean" } }, "path": "v1beta2/{+name}:calculate", @@ -657,6 +677,11 @@ "pattern": "^folders/[^/]+/webSecurityScannerSettings$", "required": true, "type": "string" + }, + "showEligibleModulesOnly": { + "description": "Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.", + "location": "query", + "type": "boolean" } }, "path": "v1beta2/{+name}:calculate", @@ -1096,6 +1121,11 @@ "pattern": "^organizations/[^/]+/containerThreatDetectionSettings$", "required": true, "type": "string" + }, + "showEligibleModulesOnly": { + "description": "Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.", + "location": "query", + "type": "boolean" } }, "path": "v1beta2/{+name}:calculate", @@ -1125,6 +1155,11 @@ "pattern": "^organizations/[^/]+/eventThreatDetectionSettings$", "required": true, "type": "string" + }, + "showEligibleModulesOnly": { + "description": "Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.", + "location": "query", + "type": "boolean" } }, "path": "v1beta2/{+name}:calculate", @@ -1183,6 +1218,11 @@ "pattern": "^organizations/[^/]+/securityHealthAnalyticsSettings$", "required": true, "type": "string" + }, + "showEligibleModulesOnly": { + "description": "Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.", + "location": "query", + "type": "boolean" } }, "path": "v1beta2/{+name}:calculate", @@ -1212,6 +1252,11 @@ "pattern": "^organizations/[^/]+/virtualMachineThreatDetectionSettings$", "required": true, "type": "string" + }, + "showEligibleModulesOnly": { + "description": "Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.", + "location": "query", + "type": "boolean" } }, "path": "v1beta2/{+name}:calculate", @@ -1241,6 +1286,11 @@ "pattern": "^organizations/[^/]+/webSecurityScannerSettings$", "required": true, "type": "string" + }, + "showEligibleModulesOnly": { + "description": "Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.", + "location": "query", + "type": "boolean" } }, "path": "v1beta2/{+name}:calculate", @@ -1655,6 +1705,11 @@ "pattern": "^projects/[^/]+/containerThreatDetectionSettings$", "required": true, "type": "string" + }, + "showEligibleModulesOnly": { + "description": "Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.", + "location": "query", + "type": "boolean" } }, "path": "v1beta2/{+name}:calculate", @@ -1684,6 +1739,11 @@ "pattern": "^projects/[^/]+/eventThreatDetectionSettings$", "required": true, "type": "string" + }, + "showEligibleModulesOnly": { + "description": "Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.", + "location": "query", + "type": "boolean" } }, "path": "v1beta2/{+name}:calculate", @@ -1778,6 +1838,11 @@ "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/containerThreatDetectionSettings$", "required": true, "type": "string" + }, + "showEligibleModulesOnly": { + "description": "Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.", + "location": "query", + "type": "boolean" } }, "path": "v1beta2/{+name}:calculate", @@ -1840,6 +1905,11 @@ "pattern": "^projects/[^/]+/securityHealthAnalyticsSettings$", "required": true, "type": "string" + }, + "showEligibleModulesOnly": { + "description": "Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.", + "location": "query", + "type": "boolean" } }, "path": "v1beta2/{+name}:calculate", @@ -1869,6 +1939,11 @@ "pattern": "^projects/[^/]+/virtualMachineThreatDetectionSettings$", "required": true, "type": "string" + }, + "showEligibleModulesOnly": { + "description": "Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.", + "location": "query", + "type": "boolean" } }, "path": "v1beta2/{+name}:calculate", @@ -1898,6 +1973,11 @@ "pattern": "^projects/[^/]+/webSecurityScannerSettings$", "required": true, "type": "string" + }, + "showEligibleModulesOnly": { + "description": "Optional. When set, will only retrieve the modules that are in scope. By default, all modules will be shown.", + "location": "query", + "type": "boolean" } }, "path": "v1beta2/{+name}:calculate", @@ -1913,7 +1993,7 @@ } } }, - "revision": "20240916", + "revision": "20240918", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index 4ed3ade9454..896ce252e27 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -10309,6 +10309,14 @@ func (r *FoldersContainerThreatDetectionSettingsService) Calculate(name string) return c } +// ShowEligibleModulesOnly sets the optional parameter +// "showEligibleModulesOnly": When set, will only retrieve the modules that are +// in scope. By default, all modules will be shown. +func (c *FoldersContainerThreatDetectionSettingsCalculateCall) ShowEligibleModulesOnly(showEligibleModulesOnly bool) *FoldersContainerThreatDetectionSettingsCalculateCall { + c.urlParams_.Set("showEligibleModulesOnly", fmt.Sprint(showEligibleModulesOnly)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -10426,6 +10434,14 @@ func (r *FoldersEventThreatDetectionSettingsService) Calculate(name string) *Fol return c } +// ShowEligibleModulesOnly sets the optional parameter +// "showEligibleModulesOnly": When set, will only retrieve the modules that are +// in scope. By default, all modules will be shown. +func (c *FoldersEventThreatDetectionSettingsCalculateCall) ShowEligibleModulesOnly(showEligibleModulesOnly bool) *FoldersEventThreatDetectionSettingsCalculateCall { + c.urlParams_.Set("showEligibleModulesOnly", fmt.Sprint(showEligibleModulesOnly)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -10661,6 +10677,14 @@ func (r *FoldersSecurityHealthAnalyticsSettingsService) Calculate(name string) * return c } +// ShowEligibleModulesOnly sets the optional parameter +// "showEligibleModulesOnly": When set, will only retrieve the modules that are +// in scope. By default, all modules will be shown. +func (c *FoldersSecurityHealthAnalyticsSettingsCalculateCall) ShowEligibleModulesOnly(showEligibleModulesOnly bool) *FoldersSecurityHealthAnalyticsSettingsCalculateCall { + c.urlParams_.Set("showEligibleModulesOnly", fmt.Sprint(showEligibleModulesOnly)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -10779,6 +10803,14 @@ func (r *FoldersVirtualMachineThreatDetectionSettingsService) Calculate(name str return c } +// ShowEligibleModulesOnly sets the optional parameter +// "showEligibleModulesOnly": When set, will only retrieve the modules that are +// in scope. By default, all modules will be shown. +func (c *FoldersVirtualMachineThreatDetectionSettingsCalculateCall) ShowEligibleModulesOnly(showEligibleModulesOnly bool) *FoldersVirtualMachineThreatDetectionSettingsCalculateCall { + c.urlParams_.Set("showEligibleModulesOnly", fmt.Sprint(showEligibleModulesOnly)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -10896,6 +10928,14 @@ func (r *FoldersWebSecurityScannerSettingsService) Calculate(name string) *Folde return c } +// ShowEligibleModulesOnly sets the optional parameter +// "showEligibleModulesOnly": When set, will only retrieve the modules that are +// in scope. By default, all modules will be shown. +func (c *FoldersWebSecurityScannerSettingsCalculateCall) ShowEligibleModulesOnly(showEligibleModulesOnly bool) *FoldersWebSecurityScannerSettingsCalculateCall { + c.urlParams_.Set("showEligibleModulesOnly", fmt.Sprint(showEligibleModulesOnly)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -12627,6 +12667,14 @@ func (r *OrganizationsContainerThreatDetectionSettingsService) Calculate(name st return c } +// ShowEligibleModulesOnly sets the optional parameter +// "showEligibleModulesOnly": When set, will only retrieve the modules that are +// in scope. By default, all modules will be shown. +func (c *OrganizationsContainerThreatDetectionSettingsCalculateCall) ShowEligibleModulesOnly(showEligibleModulesOnly bool) *OrganizationsContainerThreatDetectionSettingsCalculateCall { + c.urlParams_.Set("showEligibleModulesOnly", fmt.Sprint(showEligibleModulesOnly)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -12744,6 +12792,14 @@ func (r *OrganizationsEventThreatDetectionSettingsService) Calculate(name string return c } +// ShowEligibleModulesOnly sets the optional parameter +// "showEligibleModulesOnly": When set, will only retrieve the modules that are +// in scope. By default, all modules will be shown. +func (c *OrganizationsEventThreatDetectionSettingsCalculateCall) ShowEligibleModulesOnly(showEligibleModulesOnly bool) *OrganizationsEventThreatDetectionSettingsCalculateCall { + c.urlParams_.Set("showEligibleModulesOnly", fmt.Sprint(showEligibleModulesOnly)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -12979,6 +13035,14 @@ func (r *OrganizationsSecurityHealthAnalyticsSettingsService) Calculate(name str return c } +// ShowEligibleModulesOnly sets the optional parameter +// "showEligibleModulesOnly": When set, will only retrieve the modules that are +// in scope. By default, all modules will be shown. +func (c *OrganizationsSecurityHealthAnalyticsSettingsCalculateCall) ShowEligibleModulesOnly(showEligibleModulesOnly bool) *OrganizationsSecurityHealthAnalyticsSettingsCalculateCall { + c.urlParams_.Set("showEligibleModulesOnly", fmt.Sprint(showEligibleModulesOnly)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -13097,6 +13161,14 @@ func (r *OrganizationsVirtualMachineThreatDetectionSettingsService) Calculate(na return c } +// ShowEligibleModulesOnly sets the optional parameter +// "showEligibleModulesOnly": When set, will only retrieve the modules that are +// in scope. By default, all modules will be shown. +func (c *OrganizationsVirtualMachineThreatDetectionSettingsCalculateCall) ShowEligibleModulesOnly(showEligibleModulesOnly bool) *OrganizationsVirtualMachineThreatDetectionSettingsCalculateCall { + c.urlParams_.Set("showEligibleModulesOnly", fmt.Sprint(showEligibleModulesOnly)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -13214,6 +13286,14 @@ func (r *OrganizationsWebSecurityScannerSettingsService) Calculate(name string) return c } +// ShowEligibleModulesOnly sets the optional parameter +// "showEligibleModulesOnly": When set, will only retrieve the modules that are +// in scope. By default, all modules will be shown. +func (c *OrganizationsWebSecurityScannerSettingsCalculateCall) ShowEligibleModulesOnly(showEligibleModulesOnly bool) *OrganizationsWebSecurityScannerSettingsCalculateCall { + c.urlParams_.Set("showEligibleModulesOnly", fmt.Sprint(showEligibleModulesOnly)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -14837,6 +14917,14 @@ func (r *ProjectsContainerThreatDetectionSettingsService) Calculate(name string) return c } +// ShowEligibleModulesOnly sets the optional parameter +// "showEligibleModulesOnly": When set, will only retrieve the modules that are +// in scope. By default, all modules will be shown. +func (c *ProjectsContainerThreatDetectionSettingsCalculateCall) ShowEligibleModulesOnly(showEligibleModulesOnly bool) *ProjectsContainerThreatDetectionSettingsCalculateCall { + c.urlParams_.Set("showEligibleModulesOnly", fmt.Sprint(showEligibleModulesOnly)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -14954,6 +15042,14 @@ func (r *ProjectsEventThreatDetectionSettingsService) Calculate(name string) *Pr return c } +// ShowEligibleModulesOnly sets the optional parameter +// "showEligibleModulesOnly": When set, will only retrieve the modules that are +// in scope. By default, all modules will be shown. +func (c *ProjectsEventThreatDetectionSettingsCalculateCall) ShowEligibleModulesOnly(showEligibleModulesOnly bool) *ProjectsEventThreatDetectionSettingsCalculateCall { + c.urlParams_.Set("showEligibleModulesOnly", fmt.Sprint(showEligibleModulesOnly)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -15309,6 +15405,14 @@ func (r *ProjectsLocationsClustersContainerThreatDetectionSettingsService) Calcu return c } +// ShowEligibleModulesOnly sets the optional parameter +// "showEligibleModulesOnly": When set, will only retrieve the modules that are +// in scope. By default, all modules will be shown. +func (c *ProjectsLocationsClustersContainerThreatDetectionSettingsCalculateCall) ShowEligibleModulesOnly(showEligibleModulesOnly bool) *ProjectsLocationsClustersContainerThreatDetectionSettingsCalculateCall { + c.urlParams_.Set("showEligibleModulesOnly", fmt.Sprint(showEligibleModulesOnly)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -15544,6 +15648,14 @@ func (r *ProjectsSecurityHealthAnalyticsSettingsService) Calculate(name string) return c } +// ShowEligibleModulesOnly sets the optional parameter +// "showEligibleModulesOnly": When set, will only retrieve the modules that are +// in scope. By default, all modules will be shown. +func (c *ProjectsSecurityHealthAnalyticsSettingsCalculateCall) ShowEligibleModulesOnly(showEligibleModulesOnly bool) *ProjectsSecurityHealthAnalyticsSettingsCalculateCall { + c.urlParams_.Set("showEligibleModulesOnly", fmt.Sprint(showEligibleModulesOnly)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -15662,6 +15774,14 @@ func (r *ProjectsVirtualMachineThreatDetectionSettingsService) Calculate(name st return c } +// ShowEligibleModulesOnly sets the optional parameter +// "showEligibleModulesOnly": When set, will only retrieve the modules that are +// in scope. By default, all modules will be shown. +func (c *ProjectsVirtualMachineThreatDetectionSettingsCalculateCall) ShowEligibleModulesOnly(showEligibleModulesOnly bool) *ProjectsVirtualMachineThreatDetectionSettingsCalculateCall { + c.urlParams_.Set("showEligibleModulesOnly", fmt.Sprint(showEligibleModulesOnly)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -15779,6 +15899,14 @@ func (r *ProjectsWebSecurityScannerSettingsService) Calculate(name string) *Proj return c } +// ShowEligibleModulesOnly sets the optional parameter +// "showEligibleModulesOnly": When set, will only retrieve the modules that are +// in scope. By default, all modules will be shown. +func (c *ProjectsWebSecurityScannerSettingsCalculateCall) ShowEligibleModulesOnly(showEligibleModulesOnly bool) *ProjectsWebSecurityScannerSettingsCalculateCall { + c.urlParams_.Set("showEligibleModulesOnly", fmt.Sprint(showEligibleModulesOnly)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/serviceconsumermanagement/v1/serviceconsumermanagement-api.json b/serviceconsumermanagement/v1/serviceconsumermanagement-api.json index 6f372796c52..5f8553e505e 100644 --- a/serviceconsumermanagement/v1/serviceconsumermanagement-api.json +++ b/serviceconsumermanagement/v1/serviceconsumermanagement-api.json @@ -542,7 +542,7 @@ } } }, - "revision": "20240912", + "revision": "20240919", "rootUrl": "https://serviceconsumermanagement.googleapis.com/", "schemas": { "AddTenantProjectRequest": { @@ -966,6 +966,10 @@ "deprecated": true, "description": "Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest", "type": "string" + }, + "selectiveGapicGeneration": { + "$ref": "SelectiveGapicGeneration", + "description": "Configuration for which RPCs should be generated in the GAPIC client." } }, "type": "object" @@ -2477,6 +2481,20 @@ }, "type": "object" }, + "SelectiveGapicGeneration": { + "description": "This message is used to configure the generation of a subset of the RPCs in a service for client libraries.", + "id": "SelectiveGapicGeneration", + "properties": { + "methods": { + "description": "An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Service": { "description": "`Service` is the root object of Google API service configuration (service config). It describes the basic information about a logical service, such as the service name and the user-facing title, and delegates other aspects to sub-sections. Each sub-section is either a proto message or a repeated proto message that configures a specific aspect, such as auth. For more information, see each proto message definition. Example: type: google.api.Service name: calendar.googleapis.com title: Google Calendar API apis: - name: google.calendar.v3.Calendar visibility: rules: - selector: \"google.calendar.v3.*\" restriction: PREVIEW backend: rules: - selector: \"google.calendar.v3.*\" address: calendar.example.com authentication: providers: - id: google_calendar_auth jwks_uri: https://www.googleapis.com/oauth2/v1/certs issuer: https://securetoken.google.com rules: - selector: \"*\" requirements: provider_id: google_calendar_auth", "id": "Service", diff --git a/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go b/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go index 903b5772361..f3051ebbeeb 100644 --- a/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go +++ b/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go @@ -822,6 +822,9 @@ type CommonLanguageSettings struct { // ReferenceDocsUri: Link to automatically generated reference documentation. // Example: https://cloud.google.com/nodejs/docs/reference/asset/latest ReferenceDocsUri string `json:"referenceDocsUri,omitempty"` + // SelectiveGapicGeneration: Configuration for which RPCs should be generated + // in the GAPIC client. + SelectiveGapicGeneration *SelectiveGapicGeneration `json:"selectiveGapicGeneration,omitempty"` // ForceSendFields is a list of field names (e.g. "Destinations") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -3183,6 +3186,30 @@ func (s SearchTenancyUnitsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// SelectiveGapicGeneration: This message is used to configure the generation +// of a subset of the RPCs in a service for client libraries. +type SelectiveGapicGeneration struct { + // Methods: An allowlist of the fully qualified names of RPCs that should be + // included on public client surfaces. + Methods []string `json:"methods,omitempty"` + // ForceSendFields is a list of field names (e.g. "Methods") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Methods") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SelectiveGapicGeneration) MarshalJSON() ([]byte, error) { + type NoMethod SelectiveGapicGeneration + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Service: `Service` is the root object of Google API service configuration // (service config). It describes the basic information about a logical // service, such as the service name and the user-facing title, and delegates diff --git a/sheets/v4/sheets-api.json b/sheets/v4/sheets-api.json index 971a1645454..306c85d4eb6 100644 --- a/sheets/v4/sheets-api.json +++ b/sheets/v4/sheets-api.json @@ -870,7 +870,7 @@ } } }, - "revision": "20240826", + "revision": "20240917", "rootUrl": "https://sheets.googleapis.com/", "schemas": { "AddBandingRequest": { @@ -6957,7 +6957,7 @@ "description": "The default format of all cells in the spreadsheet. CellData.effectiveFormat will not be set if the cell's format is equal to this default format. This field is read-only." }, "importFunctionsExternalUrlAccessAllowed": { - "description": "Whether to allow external URL access for image and import functions. Read only when true. When false, you can set to true. This value will be bypassed and always return true if the admin has enabled the allowlisting feature.", + "description": "Whether to allow external URL access for image and import functions. Read only when true. When false, you can set to true. This value will be bypassed and always return true if the admin has enabled the [allowlisting feature](https://support.google.com/a?p=url_allowlist).", "type": "boolean" }, "iterativeCalculationSettings": { diff --git a/sheets/v4/sheets-gen.go b/sheets/v4/sheets-gen.go index c8cbc279048..141b1370e51 100644 --- a/sheets/v4/sheets-gen.go +++ b/sheets/v4/sheets-gen.go @@ -7932,7 +7932,8 @@ type SpreadsheetProperties struct { // ImportFunctionsExternalUrlAccessAllowed: Whether to allow external URL // access for image and import functions. Read only when true. When false, you // can set to true. This value will be bypassed and always return true if the - // admin has enabled the allowlisting feature. + // admin has enabled the allowlisting feature + // (https://support.google.com/a?p=url_allowlist). ImportFunctionsExternalUrlAccessAllowed bool `json:"importFunctionsExternalUrlAccessAllowed,omitempty"` // IterativeCalculationSettings: Determines whether and how circular references // are resolved with iterative calculation. Absence of this field means that From 63f0bcb891d626525ffa1dc0686dee2925647956 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Wed, 25 Sep 2024 17:08:37 -0600 Subject: [PATCH 8/9] chore(all): manually update auth and metadata (#2800) --- go.mod | 4 ++-- go.sum | 8 ++++---- go.work.sum | 8 ++++++++ 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index bc6a20668b5..0ca4a2eff1b 100644 --- a/go.mod +++ b/go.mod @@ -4,9 +4,9 @@ go 1.21 require ( cloud.google.com/go v0.115.1 - cloud.google.com/go/auth v0.9.4 + cloud.google.com/go/auth v0.9.5 cloud.google.com/go/auth/oauth2adapt v0.2.4 - cloud.google.com/go/compute/metadata v0.5.1 + cloud.google.com/go/compute/metadata v0.5.2 github.com/google/go-cmp v0.6.0 github.com/google/s2a-go v0.1.8 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index 9ef214b1092..7503d20e21f 100644 --- a/go.sum +++ b/go.sum @@ -1,12 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.115.1 h1:Jo0SM9cQnSkYfp44+v+NQXHpcHqlnRJk2qxh6yvxxxQ= cloud.google.com/go v0.115.1/go.mod h1:DuujITeaufu3gL68/lOFIirVNJwQeyf5UXyi+Wbgknc= -cloud.google.com/go/auth v0.9.4 h1:DxF7imbEbiFu9+zdKC6cKBko1e8XeJnipNqIbWZ+kDI= -cloud.google.com/go/auth v0.9.4/go.mod h1:SHia8n6//Ya940F1rLimhJCjjx7KE17t0ctFEci3HkA= +cloud.google.com/go/auth v0.9.5 h1:4CTn43Eynw40aFVr3GpPqsQponx2jv0BQpjvajsbbzw= +cloud.google.com/go/auth v0.9.5/go.mod h1:Xo0n7n66eHyOWWCnitop6870Ilwo3PiZyodVkkH1xWM= cloud.google.com/go/auth/oauth2adapt v0.2.4 h1:0GWE/FUsXhf6C+jAkWgYm7X9tK8cuEIfy19DBn6B6bY= cloud.google.com/go/auth/oauth2adapt v0.2.4/go.mod h1:jC/jOpwFP6JBxhB3P5Rr0a9HLMC/Pe3eaL4NmdvqPtc= -cloud.google.com/go/compute/metadata v0.5.1 h1:NM6oZeZNlYjiwYje+sYFjEpP0Q0zCan1bmQW/KmIrGs= -cloud.google.com/go/compute/metadata v0.5.1/go.mod h1:C66sj2AluDcIqakBq/M8lw8/ybHgOZqin2obFxa/E5k= +cloud.google.com/go/compute/metadata v0.5.2 h1:UxK4uu/Tn+I3p2dYWTfiX4wva7aYlKixAHn3fyqngqo= +cloud.google.com/go/compute/metadata v0.5.2/go.mod h1:C66sj2AluDcIqakBq/M8lw8/ybHgOZqin2obFxa/E5k= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= diff --git a/go.work.sum b/go.work.sum index c2cde28aa9d..10e67cd0ef8 100644 --- a/go.work.sum +++ b/go.work.sum @@ -1,4 +1,5 @@ cel.dev/expr v0.15.0/go.mod h1:TRSuuV7DlVCE/uwv5QbAiW/v8l5O8C4eEPHeu7gf7Sg= +cel.dev/expr v0.16.0/go.mod h1:TRSuuV7DlVCE/uwv5QbAiW/v8l5O8C4eEPHeu7gf7Sg= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.110.2/go.mod h1:k04UEeEtb6ZBRTv3dZz4CeJC3jKGxyhl0sAiVVquxiw= cloud.google.com/go v0.112.0 h1:tpFCD7hpHFlQ8yPwT3x+QeXqc2T6+n6T+hmABHfDUSM= @@ -54,6 +55,7 @@ cloud.google.com/go/bigquery v1.59.1/go.mod h1:VP1UJYgevyTwsV7desjzNzDND5p6hZB+Z cloud.google.com/go/bigquery v1.62.0/go.mod h1:5ee+ZkF1x/ntgCsFQJAQTM3QkAZOecfCmvxhkJsWRSA= cloud.google.com/go/bigtable v1.27.2-0.20240730134218-123c88616251/go.mod h1:avmXcmxVbLJAo9moICRYMgDyTTPoV0MA0lHKnyqV4fQ= cloud.google.com/go/bigtable v1.29.0/go.mod h1:5p909nNdWaNUcWs6KGZO8mI5HUovstlmrIi7+eA5PTQ= +cloud.google.com/go/bigtable v1.31.0/go.mod h1:N/mwZO+4TSHOeyiE1JxO+sRPnW4bnR7WLn9AEaiJqew= cloud.google.com/go/billing v1.18.2/go.mod h1:PPIwVsOOQ7xzbADCwNe8nvK776QpfrOAUkvKjCUcpSE= cloud.google.com/go/billing v1.18.9/go.mod h1:bKTnh8MBfCMUT1fzZ936CPN9rZG7ZEiHB2J3SjIjByc= cloud.google.com/go/billing v1.19.0/go.mod h1:bGvChbZguyaWRGmu5pQHfFN1VxTDPFmabnCVA/dNdRM= @@ -169,6 +171,7 @@ cloud.google.com/go/gkebackup v1.6.0/go.mod h1:1rskt7NgawoMDHTdLASX8caXXYG3MvDso cloud.google.com/go/gkeconnect v0.8.5/go.mod h1:LC/rS7+CuJ5fgIbXv8tCD/mdfnlAadTaUufgOkmijuk= cloud.google.com/go/gkeconnect v0.8.11/go.mod h1:ejHv5ehbceIglu1GsMwlH0nZpTftjxEY6DX7tvaM8gA= cloud.google.com/go/gkeconnect v0.10.0/go.mod h1:d8TE+YAlX7mvq8pWy1Q4yOnmxbN0SimmcQdtJwBdUHk= +cloud.google.com/go/gkeconnect v0.11.0/go.mod h1:l3iPZl1OfT+DUQ+QkmH1PC5RTLqxKQSVnboLiQGAcCA= cloud.google.com/go/gkehub v0.14.5/go.mod h1:6bzqxM+a+vEH/h8W8ec4OJl4r36laxTs3A/fMNHJ0wA= cloud.google.com/go/gkehub v0.14.11/go.mod h1:CsmDJ4qbBnSPkoBltEubK6qGOjG0xNfeeT5jI5gCnRQ= cloud.google.com/go/gkehub v0.15.0/go.mod h1:obpeROly2mjxZJbRkFfHEflcH54XhJI+g2QgfHphL0I= @@ -271,6 +274,7 @@ cloud.google.com/go/pubsublite v1.8.2/go.mod h1:4r8GSa9NznExjuLPEJlF1VjOPOpgf3IT cloud.google.com/go/recaptchaenterprise/v2 v2.9.2/go.mod h1:trwwGkfhCmp05Ll5MSJPXY7yvnO0p4v3orGANAFHAuU= cloud.google.com/go/recaptchaenterprise/v2 v2.14.2/go.mod h1:MwPgdgvBkE46aWuuXeBTCB8hQJ88p+CpXInROZYCTkc= cloud.google.com/go/recaptchaenterprise/v2 v2.16.0/go.mod h1:iq7s8lR3dXv4mDXE3/qyPtZEXOK7wHC1r3bX2fQyU9s= +cloud.google.com/go/recaptchaenterprise/v2 v2.17.0/go.mod h1:SS4QDdlmJ3NvbOMCXQxaFhVGRjvNMfoKCoCdxqXadqs= cloud.google.com/go/recommendationengine v0.8.5/go.mod h1:A38rIXHGFvoPvmy6pZLozr0g59NRNREz4cx7F58HAsQ= cloud.google.com/go/recommendationengine v0.8.11/go.mod h1:cEkU4tCXAF88a4boMFZym7U7uyxvVwcQtKzS85IbQio= cloud.google.com/go/recommendationengine v0.9.0/go.mod h1:59ydKXFyXO4Y8S0Bk224sKfj6YvIyzgcpG6w8kXIMm4= @@ -381,19 +385,23 @@ github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWH github.com/cncf/xds/go v0.0.0-20231128003011-0fa0005c9caa/go.mod h1:x/1Gn8zydmfq8dk6e9PdstVsDgu9RuyIIJqAaF//0IM= github.com/cncf/xds/go v0.0.0-20240318125728-8a4994d93e50/go.mod h1:5e1+Vvlzido69INQaVO6d87Qn543Xr6nooe9Kz7oBFM= github.com/cncf/xds/go v0.0.0-20240423153145-555b57ec207b/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8= +github.com/cncf/xds/go v0.0.0-20240723142845-024c85f92f20/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8= github.com/elazarl/goproxy v0.0.0-20230808193330-2592e75ae04a/go.mod h1:Ro8st/ElPeALwNFlcTpWmkr6IoMFfkjXAvTHpevnDsM= github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/go-control-plane v0.12.0/go.mod h1:ZBTaoJ23lqITozF0M6G4/IragXCQKCnYbmlmtHvwRG0= github.com/envoyproxy/go-control-plane v0.12.1-0.20240621013728-1eb8caab5155/go.mod h1:5Wkq+JduFtdAXihLmeTJf+tRYIT4KBc2vPXDhwVo1pA= +github.com/envoyproxy/go-control-plane v0.13.0/go.mod h1:GRaKG3dwvFoTg4nj7aXdZnvMg4d7nvT/wl9WgVXn3Q8= github.com/envoyproxy/protoc-gen-validate v1.0.4/go.mod h1:qys6tmnRsYrQqIhm2bvKZH4Blx/1gTIZ2UKVY1M+Yew= +github.com/envoyproxy/protoc-gen-validate v1.1.0/go.mod h1:sXRDRVmzEbkM7CVcM06s9shE/m23dg3wzjl0UWqJ2q4= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gliderlabs/ssh v0.3.7/go.mod h1:zpHEXBstFnQYtGnB8k8kQLol82umzn/2/snG7alWVD8= github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII= github.com/go-logr/logr v1.3.0/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/glog v1.2.1/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= From f7c6e66fd838cdbc73e863d205081166624fde68 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 25 Sep 2024 19:21:06 -0400 Subject: [PATCH 9/9] chore(main): release 0.199.0 (#2792) --- CHANGES.md | 12 ++++++++++++ internal/version.go | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index bb5aead61d8..276b0171af0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,17 @@ # Changes +## [0.199.0](https://github.com/googleapis/google-api-go-client/compare/v0.198.0...v0.199.0) (2024-09-25) + + +### Features + +* **all:** Auto-regenerate discovery clients ([#2791](https://github.com/googleapis/google-api-go-client/issues/2791)) ([bd9630a](https://github.com/googleapis/google-api-go-client/commit/bd9630ab6fc22bc2bf7108d72457f914c69a4b14)) +* **all:** Auto-regenerate discovery clients ([#2793](https://github.com/googleapis/google-api-go-client/issues/2793)) ([ac7c6de](https://github.com/googleapis/google-api-go-client/commit/ac7c6de55a590ab4b9bcb9f0c184bf8829574c3f)) +* **all:** Auto-regenerate discovery clients ([#2794](https://github.com/googleapis/google-api-go-client/issues/2794)) ([d0e0dc3](https://github.com/googleapis/google-api-go-client/commit/d0e0dc31cd30ec9b5e71541ad905236401b56d96)) +* **all:** Auto-regenerate discovery clients ([#2796](https://github.com/googleapis/google-api-go-client/issues/2796)) ([34102ae](https://github.com/googleapis/google-api-go-client/commit/34102ae8645c5ec2b9e04e821d3910b6b30abd5b)) +* **all:** Auto-regenerate discovery clients ([#2797](https://github.com/googleapis/google-api-go-client/issues/2797)) ([21926ca](https://github.com/googleapis/google-api-go-client/commit/21926caa29a1141e7ed78abe78d7559a595e721d)) +* **all:** Auto-regenerate discovery clients ([#2799](https://github.com/googleapis/google-api-go-client/issues/2799)) ([9ce4b50](https://github.com/googleapis/google-api-go-client/commit/9ce4b506f2a90a591da35bb1d12251f9ee45ee84)) + ## [0.198.0](https://github.com/googleapis/google-api-go-client/compare/v0.197.0...v0.198.0) (2024-09-19) diff --git a/internal/version.go b/internal/version.go index ed0987b42e9..df50575b90a 100644 --- a/internal/version.go +++ b/internal/version.go @@ -5,4 +5,4 @@ package internal // Version is the current tagged release of the library. -const Version = "0.198.0" +const Version = "0.199.0"