diff --git a/abusiveexperiencereport/v1/abusiveexperiencereport-gen.go b/abusiveexperiencereport/v1/abusiveexperiencereport-gen.go index 980d85556e4..ac4fec910fc 100644 --- a/abusiveexperiencereport/v1/abusiveexperiencereport-gen.go +++ b/abusiveexperiencereport/v1/abusiveexperiencereport-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-gen.go b/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-gen.go index 8ad16642c67..6fc5f98c66c 100644 --- a/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-gen.go +++ b/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/accessapproval/v1/accessapproval-gen.go b/accessapproval/v1/accessapproval-gen.go index c6958cb15bc..e74e1a4c049 100644 --- a/accessapproval/v1/accessapproval-gen.go +++ b/accessapproval/v1/accessapproval-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/accesscontextmanager/v1/accesscontextmanager-gen.go b/accesscontextmanager/v1/accesscontextmanager-gen.go index d0ac4070b37..84b463ac75e 100644 --- a/accesscontextmanager/v1/accesscontextmanager-gen.go +++ b/accesscontextmanager/v1/accesscontextmanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/accesscontextmanager/v1beta/accesscontextmanager-gen.go b/accesscontextmanager/v1beta/accesscontextmanager-gen.go index d65e9105463..56562a949c3 100644 --- a/accesscontextmanager/v1beta/accesscontextmanager-gen.go +++ b/accesscontextmanager/v1beta/accesscontextmanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go b/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go index 9e90828028f..a3a3077eed6 100644 --- a/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go +++ b/adexchangebuyer2/v2beta1/adexchangebuyer2-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/adexperiencereport/v1/adexperiencereport-gen.go b/adexperiencereport/v1/adexperiencereport-gen.go index 05e94e50b41..0cf799822b2 100644 --- a/adexperiencereport/v1/adexperiencereport-gen.go +++ b/adexperiencereport/v1/adexperiencereport-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/admin/datatransfer/v1/admin-gen.go b/admin/datatransfer/v1/admin-gen.go index 20066756116..f7922411c5d 100644 --- a/admin/datatransfer/v1/admin-gen.go +++ b/admin/datatransfer/v1/admin-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/admin/directory/v1/admin-api.json b/admin/directory/v1/admin-api.json index 308cc3c2183..02c92e85f01 100644 --- a/admin/directory/v1/admin-api.json +++ b/admin/directory/v1/admin-api.json @@ -4630,7 +4630,7 @@ } } }, - "revision": "20221129", + "revision": "20230103", "rootUrl": "https://admin.googleapis.com/", "schemas": { "Alias": { @@ -5340,6 +5340,36 @@ }, "type": "array" }, + "deprovisionReason": { + "description": "(Read-only) Deprovision reason.", + "enum": [ + "deprovisionReasonUnspecified", + "deprovisionReasonSameModelReplacement", + "deprovisionReasonUpgrade", + "deprovisionReasonDomainMove", + "deprovisionReasonServiceExpiration", + "deprovisionReasonOther", + "deprovisionReasonDifferentModelReplacement", + "deprovisionReasonRetiringDevice", + "deprovisionReasonUpgradeTransfer", + "deprovisionReasonNotRequired", + "deprovisionReasonRepairCenter" + ], + "enumDescriptions": [ + "The deprovision reason is unknown.", + "Same model replacement.", + "Device upgrade.", + "Domain move.", + "Service expiration.", + "Other.", + "Different model replacement.", + "Retiring device.", + "Transferring perpetual upgrade to a new device.", + "No reason required, i.e. licenses returned to customer's license pool.", + "Deprovisioned by a RMA (service center) caller." + ], + "type": "string" + }, "deviceFiles": { "description": "A list of device files to download (Read-only)", "items": { @@ -5431,6 +5461,10 @@ "description": "The type of resource. For the Chromeosdevices resource, the value is `admin#directory#chromeosdevice`.", "type": "string" }, + "lastDeprovisionTimestamp": { + "description": "(Read-only) Date and time for the last deprovision of the device.", + "type": "string" + }, "lastEnrollmentTime": { "description": "Date and time the device was last enrolled (Read-only)", "format": "date-time", @@ -5860,7 +5894,8 @@ "TAKE_A_SCREENSHOT", "SET_VOLUME", "WIPE_USERS", - "REMOTE_POWERWASH" + "REMOTE_POWERWASH", + "DEVICE_START_CRD_SESSION" ], "enumDescriptions": [ "The command type was unspecified.", @@ -5868,7 +5903,8 @@ "Take a screenshot of the device. Only available if the device is in Kiosk Mode.", "Set the volume of the device. Can only be issued to Kiosk and managed guest session devices.", "Wipe all the users off of the device. Executing this command in the device will remove all user profile data, but it will keep device policy and enrollment.", - "Wipes the device by performing a power wash. Executing this command in the device will remove all data including user policies, device policies and enrollment policies. Warning: This will revert the device back to a factory state with no enrollment unless the device is subject to forced or auto enrollment. Use with caution, as this is an irreversible action!" + "Wipes the device by performing a power wash. Executing this command in the device will remove all data including user policies, device policies and enrollment policies. Warning: This will revert the device back to a factory state with no enrollment unless the device is subject to forced or auto enrollment. Use with caution, as this is an irreversible action!", + "Starts a Chrome Remote Desktop session." ], "type": "string" } @@ -5879,6 +5915,10 @@ "description": "The result of executing a command.", "id": "DirectoryChromeosdevicesCommandResult", "properties": { + "commandResultPayload": { + "description": "The payload for the command result. The following commands respond with a payload: - DEVICE_START_CRD_SESSION: Payload is a stringified JSON object in the form: { \"url\": url }. The URL provides a link to the CRD session.", + "type": "string" + }, "errorMessage": { "description": "The error message with a short explanation as to why the command failed. Only present if the command failed.", "type": "string" @@ -5919,7 +5959,8 @@ "TAKE_A_SCREENSHOT", "SET_VOLUME", "WIPE_USERS", - "REMOTE_POWERWASH" + "REMOTE_POWERWASH", + "DEVICE_START_CRD_SESSION" ], "enumDescriptions": [ "The command type was unspecified.", @@ -5927,12 +5968,13 @@ "Take a screenshot of the device. Only available if the device is in Kiosk Mode.", "Set the volume of the device. Can only be issued to Kiosk and managed guest session devices.", "Wipe all the users off of the device. Executing this command in the device will remove all user profile data, but it will keep device policy and enrollment.", - "Wipes the device by performing a power wash. Executing this command in the device will remove all data including user policies, device policies and enrollment policies. Warning: This will revert the device back to a factory state with no enrollment unless the device is subject to forced or auto enrollment. Use with caution, as this is an irreversible action!" + "Wipes the device by performing a power wash. Executing this command in the device will remove all data including user policies, device policies and enrollment policies. Warning: This will revert the device back to a factory state with no enrollment unless the device is subject to forced or auto enrollment. Use with caution, as this is an irreversible action!", + "Starts a Chrome Remote Desktop session." ], "type": "string" }, "payload": { - "description": "The payload for the command, provide it only if command supports it. The following commands support adding payload: - SET_VOLUME: Payload is a stringified JSON object in the form: { \"volume\": 50 }. The volume has to be an integer in the range [0,100].", + "description": "The payload for the command, provide it only if command supports it. The following commands support adding payload: - SET_VOLUME: Payload is a stringified JSON object in the form: { \"volume\": 50 }. The volume has to be an integer in the range [0,100]. - DEVICE_START_CRD_SESSION: Payload is optionally a stringified JSON object in the form: { \"ackedUserPresence\": true }. ackedUserPresence is a boolean. If a device is being used, ackedUserPresence must be set to true to acknowledge that you want to start a CRD session anyways. It is false by default, so a CRD command will fail if used on an active device without this field.", "type": "string" } }, @@ -6221,7 +6263,7 @@ "type": "object" }, "Group": { - "description": "Google Groups provide your users the ability to send messages to groups of people using the group's email address. For more information about common tasks, see the [Developer's Guide](/admin-sdk/directory/v1/guides/manage-groups).", + "description": "Google Groups provide your users the ability to send messages to groups of people using the group's email address. For more information about common tasks, see the [Developer's Guide](https://developers.google.com/admin-sdk/directory/v1/guides/manage-groups). For information about other types of groups, see the [Cloud Identity Groups API documentation](https://cloud.google.com/identity/docs/groups). Note: The user calling the API (or being impersonated by a service account) must have an assigned [role](https://developers.google.com/admin-sdk/directory/v1/guides/manage-roles) that includes Admin API Groups permissions, such as Super Admin or Groups Admin.", "id": "Group", "properties": { "adminCreated": { diff --git a/admin/directory/v1/admin-gen.go b/admin/directory/v1/admin-gen.go index 7e03a985cb5..dcdadb07124 100644 --- a/admin/directory/v1/admin-gen.go +++ b/admin/directory/v1/admin-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -1561,6 +1561,26 @@ type ChromeOsDevice struct { // (Read-only) CpuStatusReports []*ChromeOsDeviceCpuStatusReports `json:"cpuStatusReports,omitempty"` + // DeprovisionReason: (Read-only) Deprovision reason. + // + // Possible values: + // "deprovisionReasonUnspecified" - The deprovision reason is unknown. + // "deprovisionReasonSameModelReplacement" - Same model replacement. + // "deprovisionReasonUpgrade" - Device upgrade. + // "deprovisionReasonDomainMove" - Domain move. + // "deprovisionReasonServiceExpiration" - Service expiration. + // "deprovisionReasonOther" - Other. + // "deprovisionReasonDifferentModelReplacement" - Different model + // replacement. + // "deprovisionReasonRetiringDevice" - Retiring device. + // "deprovisionReasonUpgradeTransfer" - Transferring perpetual upgrade + // to a new device. + // "deprovisionReasonNotRequired" - No reason required, i.e. licenses + // returned to customer's license pool. + // "deprovisionReasonRepairCenter" - Deprovisioned by a RMA (service + // center) caller. + DeprovisionReason string `json:"deprovisionReason,omitempty"` + // DeviceFiles: A list of device files to download (Read-only) DeviceFiles []*ChromeOsDeviceDeviceFiles `json:"deviceFiles,omitempty"` @@ -1604,6 +1624,10 @@ type ChromeOsDevice struct { // value is `admin#directory#chromeosdevice`. Kind string `json:"kind,omitempty"` + // LastDeprovisionTimestamp: (Read-only) Date and time for the last + // deprovision of the device. + LastDeprovisionTimestamp string `json:"lastDeprovisionTimestamp,omitempty"` + // LastEnrollmentTime: Date and time the device was last enrolled // (Read-only) LastEnrollmentTime string `json:"lastEnrollmentTime,omitempty"` @@ -2570,6 +2594,8 @@ type DirectoryChromeosdevicesCommand struct { // will revert the device back to a factory state with no enrollment // unless the device is subject to forced or auto enrollment. Use with // caution, as this is an irreversible action! + // "DEVICE_START_CRD_SESSION" - Starts a Chrome Remote Desktop + // session. Type string `json:"type,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -2603,6 +2629,12 @@ func (s *DirectoryChromeosdevicesCommand) MarshalJSON() ([]byte, error) { // DirectoryChromeosdevicesCommandResult: The result of executing a // command. type DirectoryChromeosdevicesCommandResult struct { + // CommandResultPayload: The payload for the command result. The + // following commands respond with a payload: - + // DEVICE_START_CRD_SESSION: Payload is a stringified JSON object in the + // form: { "url": url }. The URL provides a link to the CRD session. + CommandResultPayload string `json:"commandResultPayload,omitempty"` + // ErrorMessage: The error message with a short explanation as to why // the command failed. Only present if the command failed. ErrorMessage string `json:"errorMessage,omitempty"` @@ -2621,20 +2653,22 @@ type DirectoryChromeosdevicesCommandResult struct { // "SUCCESS" - The command was successfully executed. Result string `json:"result,omitempty"` - // ForceSendFields is a list of field names (e.g. "ErrorMessage") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "CommandResultPayload") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ErrorMessage") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CommandResultPayload") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -2666,12 +2700,20 @@ type DirectoryChromeosdevicesIssueCommandRequest struct { // will revert the device back to a factory state with no enrollment // unless the device is subject to forced or auto enrollment. Use with // caution, as this is an irreversible action! + // "DEVICE_START_CRD_SESSION" - Starts a Chrome Remote Desktop + // session. CommandType string `json:"commandType,omitempty"` // Payload: The payload for the command, provide it only if command // supports it. The following commands support adding payload: - // SET_VOLUME: Payload is a stringified JSON object in the form: { // "volume": 50 }. The volume has to be an integer in the range [0,100]. + // - DEVICE_START_CRD_SESSION: Payload is optionally a stringified JSON + // object in the form: { "ackedUserPresence": true }. ackedUserPresence + // is a boolean. If a device is being used, ackedUserPresence must be + // set to true to acknowledge that you want to start a CRD session + // anyways. It is false by default, so a CRD command will fail if used + // on an active device without this field. Payload string `json:"payload,omitempty"` // ForceSendFields is a list of field names (e.g. "CommandType") to @@ -3181,7 +3223,15 @@ func (s *Features) MarshalJSON() ([]byte, error) { // Group: Google Groups provide your users the ability to send messages // to groups of people using the group's email address. For more // information about common tasks, see the Developer's Guide -// (/admin-sdk/directory/v1/guides/manage-groups). +// (https://developers.google.com/admin-sdk/directory/v1/guides/manage-groups). +// For information about other types of groups, see the Cloud Identity +// Groups API documentation +// (https://cloud.google.com/identity/docs/groups). Note: The user +// calling the API (or being impersonated by a service account) must +// have an assigned role +// (https://developers.google.com/admin-sdk/directory/v1/guides/manage-roles) +// that includes Admin API Groups permissions, such as Super Admin or +// Groups Admin. type Group struct { // AdminCreated: Read-only. Value is `true` if this group was created by // an administrator rather than a user. diff --git a/admin/reports/v1/admin-gen.go b/admin/reports/v1/admin-gen.go index 2702dec8721..e06d48638ef 100644 --- a/admin/reports/v1/admin-gen.go +++ b/admin/reports/v1/admin-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/admob/v1/admob-gen.go b/admob/v1/admob-gen.go index b575baf7c27..f9eb01a36ed 100644 --- a/admob/v1/admob-gen.go +++ b/admob/v1/admob-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/admob/v1beta/admob-gen.go b/admob/v1beta/admob-gen.go index 7f78c2b3ede..363771bf37d 100644 --- a/admob/v1beta/admob-gen.go +++ b/admob/v1beta/admob-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/adsense/v2/adsense-gen.go b/adsense/v2/adsense-gen.go index ca8f2fe50f2..61266156ef9 100644 --- a/adsense/v2/adsense-gen.go +++ b/adsense/v2/adsense-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/adsensehost/v4.1/adsensehost-gen.go b/adsensehost/v4.1/adsensehost-gen.go index bac5ec18f4d..f0a16e35ffc 100644 --- a/adsensehost/v4.1/adsensehost-gen.go +++ b/adsensehost/v4.1/adsensehost-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/alertcenter/v1beta1/alertcenter-gen.go b/alertcenter/v1beta1/alertcenter-gen.go index 62c3b8b48c6..d9fcfc49d0f 100644 --- a/alertcenter/v1beta1/alertcenter-gen.go +++ b/alertcenter/v1beta1/alertcenter-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/analytics/v3/analytics-gen.go b/analytics/v3/analytics-gen.go index 51bdad33336..8977fc45613 100644 --- a/analytics/v3/analytics-gen.go +++ b/analytics/v3/analytics-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index 0ef67a5921b..9221f3ecbbb 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/analyticsadmin/v1beta/analyticsadmin-gen.go b/analyticsadmin/v1beta/analyticsadmin-gen.go index 71d53370c98..6d5585083ca 100644 --- a/analyticsadmin/v1beta/analyticsadmin-gen.go +++ b/analyticsadmin/v1beta/analyticsadmin-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/analyticsdata/v1beta/analyticsdata-gen.go b/analyticsdata/v1beta/analyticsdata-gen.go index 29b9a3d1377..0b136e75cdd 100644 --- a/analyticsdata/v1beta/analyticsdata-gen.go +++ b/analyticsdata/v1beta/analyticsdata-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/analyticshub/v1/analyticshub-gen.go b/analyticshub/v1/analyticshub-gen.go index 60115b86e3c..c8e1e0fb5fa 100644 --- a/analyticshub/v1/analyticshub-gen.go +++ b/analyticshub/v1/analyticshub-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/analyticshub/v1beta1/analyticshub-gen.go b/analyticshub/v1beta1/analyticshub-gen.go index 1cb7e52900f..1926ca1c6d9 100644 --- a/analyticshub/v1beta1/analyticshub-gen.go +++ b/analyticshub/v1beta1/analyticshub-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/analyticsreporting/v4/analyticsreporting-gen.go b/analyticsreporting/v4/analyticsreporting-gen.go index c15ed336f8c..af07c86b4a2 100644 --- a/analyticsreporting/v4/analyticsreporting-gen.go +++ b/analyticsreporting/v4/analyticsreporting-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go b/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go index 0473d4bc4dc..fff1390323b 100644 --- a/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go +++ b/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/androidenterprise/v1/androidenterprise-gen.go b/androidenterprise/v1/androidenterprise-gen.go index 83fcdbe020c..b5408be6f8f 100644 --- a/androidenterprise/v1/androidenterprise-gen.go +++ b/androidenterprise/v1/androidenterprise-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index 526049c40eb..6b9849090bc 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index 6344d21c214..c53a5fd134e 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/api-list.json b/api-list.json index 20b5b8446c7..21cbda075c8 100644 --- a/api-list.json +++ b/api-list.json @@ -616,36 +616,6 @@ "documentationLink": "https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/", "preferred": true }, - { - "kind": "discovery#directoryItem", - "id": "baremetalsolution:v1alpha1", - "name": "baremetalsolution", - "version": "v1alpha1", - "title": "Bare Metal Solution API", - "description": "Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center.", - "discoveryRestUrl": "https://baremetalsolution.googleapis.com/$discovery/rest?version=v1alpha1", - "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" - }, - "documentationLink": "https://cloud.google.com/bare-metal", - "preferred": false - }, - { - "kind": "discovery#directoryItem", - "id": "baremetalsolution:v1", - "name": "baremetalsolution", - "version": "v1", - "title": "Bare Metal Solution API", - "description": "Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center.", - "discoveryRestUrl": "https://baremetalsolution.googleapis.com/$discovery/rest?version=v1", - "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" - }, - "documentationLink": "https://cloud.google.com/bare-metal", - "preferred": false - }, { "kind": "discovery#directoryItem", "id": "baremetalsolution:v2", @@ -3486,21 +3456,6 @@ "documentationLink": "https://developers.google.com/search/apis/indexing-api/", "preferred": true }, - { - "kind": "discovery#directoryItem", - "id": "integrations:v1alpha", - "name": "integrations", - "version": "v1alpha", - "title": "Application Integration API", - "description": "", - "discoveryRestUrl": "https://integrations.googleapis.com/$discovery/rest?version=v1alpha", - "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" - }, - "documentationLink": "https://cloud.google.com/application-integration", - "preferred": false - }, { "kind": "discovery#directoryItem", "id": "integrations:v1", diff --git a/apigateway/v1/apigateway-gen.go b/apigateway/v1/apigateway-gen.go index af4c174e7e1..573722e3941 100644 --- a/apigateway/v1/apigateway-gen.go +++ b/apigateway/v1/apigateway-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/apigateway/v1beta/apigateway-gen.go b/apigateway/v1beta/apigateway-gen.go index a411168ccab..8cb512f42f2 100644 --- a/apigateway/v1beta/apigateway-gen.go +++ b/apigateway/v1beta/apigateway-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/apigee/v1/apigee-api.json b/apigee/v1/apigee-api.json index 762f680c7a5..83d79ad4d8c 100644 --- a/apigee/v1/apigee-api.json +++ b/apigee/v1/apigee-api.json @@ -148,7 +148,7 @@ "parameterOrder": [], "parameters": { "parent": { - "description": "Required. Name of the GCP project in which to associate the Apigee organization. Pass the information as a query parameter using the following structure in your request: `projects/`", + "description": "Required. Name of the Google Cloud project in which to associate the Apigee organization. Pass the information as a query parameter using the following structure in your request: `projects/`", "location": "query", "type": "string" } @@ -346,7 +346,7 @@ ] }, "list": { - "description": "Lists the Apigee organizations and associated GCP projects that you have permission to access. See [Understanding organizations](https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).", + "description": "Lists the Apigee organizations and associated Google Cloud projects that you have permission to access. See [Understanding organizations](https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).", "flatPath": "v1/organizations", "httpMethod": "GET", "id": "apigee.organizations.list", @@ -8674,7 +8674,7 @@ } } }, - "revision": "20221213", + "revision": "20230104", "rootUrl": "https://apigee.googleapis.com/", "schemas": { "EdgeConfigstoreBundleBadBundle": { @@ -12312,7 +12312,7 @@ "id": "GoogleCloudApigeeV1ListOrganizationsResponse", "properties": { "organizations": { - "description": "List of Apigee organizations and associated GCP projects.", + "description": "List of Apigee organizations and associated Google Cloud projects.", "items": { "$ref": "GoogleCloudApigeeV1OrganizationProjectMapping" }, @@ -12792,7 +12792,7 @@ "description": "Addon configurations of the Apigee organization." }, "analyticsRegion": { - "description": "Required. DEPRECATED: This field will be deprecated once Apigee supports DRZ. Primary GCP region for analytics data storage. For valid values, see [Create an Apigee organization](https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).", + "description": "Required. DEPRECATED: This field will be deprecated once Apigee supports DRZ. Primary Google Cloud region for analytics data storage. For valid values, see [Create an Apigee organization](https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).", "type": "string" }, "apigeeProjectId": { @@ -12973,7 +12973,7 @@ "type": "string" }, "projectId": { - "description": "GCP project associated with the Apigee organization", + "description": "Google Cloud project associated with the Apigee organization", "type": "string" }, "projectIds": { diff --git a/apigee/v1/apigee-gen.go b/apigee/v1/apigee-gen.go index 636080be87d..3c236e18a6a 100644 --- a/apigee/v1/apigee-gen.go +++ b/apigee/v1/apigee-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -6794,8 +6794,8 @@ func (s *GoogleCloudApigeeV1ListOfDevelopersResponse) MarshalJSON() ([]byte, err } type GoogleCloudApigeeV1ListOrganizationsResponse struct { - // Organizations: List of Apigee organizations and associated GCP - // projects. + // Organizations: List of Apigee organizations and associated Google + // Cloud projects. Organizations []*GoogleCloudApigeeV1OrganizationProjectMapping `json:"organizations,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -7632,8 +7632,8 @@ type GoogleCloudApigeeV1Organization struct { AddonsConfig *GoogleCloudApigeeV1AddonsConfig `json:"addonsConfig,omitempty"` // AnalyticsRegion: Required. DEPRECATED: This field will be deprecated - // once Apigee supports DRZ. Primary GCP region for analytics data - // storage. For valid values, see Create an Apigee organization + // once Apigee supports DRZ. Primary Google Cloud region for analytics + // data storage. For valid values, see Create an Apigee organization // (https://cloud.google.com/apigee/docs/api-platform/get-started/create-org). AnalyticsRegion string `json:"analyticsRegion,omitempty"` @@ -7807,7 +7807,8 @@ type GoogleCloudApigeeV1OrganizationProjectMapping struct { // Organization: Name of the Apigee organization. Organization string `json:"organization,omitempty"` - // ProjectId: GCP project associated with the Apigee organization + // ProjectId: Google Cloud project associated with the Apigee + // organization ProjectId string `json:"projectId,omitempty"` // ProjectIds: DEPRECATED: Use `project_id`. An Apigee Organization is @@ -12222,9 +12223,9 @@ func (r *OrganizationsService) Create(googlecloudapigeev1organization *GoogleClo } // Parent sets the optional parameter "parent": Required. Name of the -// GCP project in which to associate the Apigee organization. Pass the -// information as a query parameter using the following structure in -// your request: `projects/` +// Google Cloud project in which to associate the Apigee organization. +// Pass the information as a query parameter using the following +// structure in your request: `projects/` func (c *OrganizationsCreateCall) Parent(parent string) *OrganizationsCreateCall { c.urlParams_.Set("parent", parent) return c @@ -12325,7 +12326,7 @@ func (c *OrganizationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongr // "parameterOrder": [], // "parameters": { // "parent": { - // "description": "Required. Name of the GCP project in which to associate the Apigee organization. Pass the information as a query parameter using the following structure in your request: `projects/`", + // "description": "Required. Name of the Google Cloud project in which to associate the Apigee organization. Pass the information as a query parameter using the following structure in your request: `projects/`", // "location": "query", // "type": "string" // } @@ -13314,8 +13315,9 @@ type OrganizationsListCall struct { header_ http.Header } -// List: Lists the Apigee organizations and associated GCP projects that -// you have permission to access. See Understanding organizations +// List: Lists the Apigee organizations and associated Google Cloud +// projects that you have permission to access. See Understanding +// organizations // (https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure). // // - parent: Use the following structure in your request: @@ -13427,7 +13429,7 @@ func (c *OrganizationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAp } return ret, nil // { - // "description": "Lists the Apigee organizations and associated GCP projects that you have permission to access. See [Understanding organizations](https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).", + // "description": "Lists the Apigee organizations and associated Google Cloud projects that you have permission to access. See [Understanding organizations](https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).", // "flatPath": "v1/organizations", // "httpMethod": "GET", // "id": "apigee.organizations.list", diff --git a/apigeeregistry/v1/apigeeregistry-gen.go b/apigeeregistry/v1/apigeeregistry-gen.go index d95ca3ad233..0013921022b 100644 --- a/apigeeregistry/v1/apigeeregistry-gen.go +++ b/apigeeregistry/v1/apigeeregistry-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/apikeys/v2/apikeys-gen.go b/apikeys/v2/apikeys-gen.go index 76e120af70d..4f0207dd02e 100644 --- a/apikeys/v2/apikeys-gen.go +++ b/apikeys/v2/apikeys-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/appengine/v1/appengine-gen.go b/appengine/v1/appengine-gen.go index f259e8a3ac3..35cc1d606a1 100644 --- a/appengine/v1/appengine-gen.go +++ b/appengine/v1/appengine-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/appengine/v1alpha/appengine-gen.go b/appengine/v1alpha/appengine-gen.go index a317aea12ca..205c67cb838 100644 --- a/appengine/v1alpha/appengine-gen.go +++ b/appengine/v1alpha/appengine-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/appengine/v1beta/appengine-gen.go b/appengine/v1beta/appengine-gen.go index 95a73d94bf9..a39548e00de 100644 --- a/appengine/v1beta/appengine-gen.go +++ b/appengine/v1beta/appengine-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/area120tables/v1alpha1/area120tables-gen.go b/area120tables/v1alpha1/area120tables-gen.go index 77b9e4258e1..65bd7d90cbc 100644 --- a/area120tables/v1alpha1/area120tables-gen.go +++ b/area120tables/v1alpha1/area120tables-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/artifactregistry/v1/artifactregistry-gen.go b/artifactregistry/v1/artifactregistry-gen.go index 8d174df62b4..2f900969921 100644 --- a/artifactregistry/v1/artifactregistry-gen.go +++ b/artifactregistry/v1/artifactregistry-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/artifactregistry/v1beta1/artifactregistry-gen.go b/artifactregistry/v1beta1/artifactregistry-gen.go index b99fefb44ef..42c880f8bde 100644 --- a/artifactregistry/v1beta1/artifactregistry-gen.go +++ b/artifactregistry/v1beta1/artifactregistry-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/artifactregistry/v1beta2/artifactregistry-gen.go b/artifactregistry/v1beta2/artifactregistry-gen.go index c8d15ef4355..2abbba8c619 100644 --- a/artifactregistry/v1beta2/artifactregistry-gen.go +++ b/artifactregistry/v1beta2/artifactregistry-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/assuredworkloads/v1/assuredworkloads-api.json b/assuredworkloads/v1/assuredworkloads-api.json index 1004dc5c99e..da237acc68b 100644 --- a/assuredworkloads/v1/assuredworkloads-api.json +++ b/assuredworkloads/v1/assuredworkloads-api.json @@ -519,7 +519,7 @@ } } }, - "revision": "20221128", + "revision": "20221229", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest": { @@ -685,7 +685,7 @@ "type": "object" }, "GoogleCloudAssuredworkloadsV1Violation": { - "description": "Workload monitoring Violation.", + "description": "Workload monitoring Violation. Next Id: 22", "id": "GoogleCloudAssuredworkloadsV1Violation", "properties": { "acknowledged": { diff --git a/assuredworkloads/v1/assuredworkloads-gen.go b/assuredworkloads/v1/assuredworkloads-gen.go index 5a2159ca09c..8dd1d2a8f4f 100644 --- a/assuredworkloads/v1/assuredworkloads-gen.go +++ b/assuredworkloads/v1/assuredworkloads-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -468,7 +468,7 @@ type GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse struct { } // GoogleCloudAssuredworkloadsV1Violation: Workload monitoring -// Violation. +// Violation. Next Id: 22 type GoogleCloudAssuredworkloadsV1Violation struct { // Acknowledged: A boolean that indicates if the violation is // acknowledged diff --git a/assuredworkloads/v1beta1/assuredworkloads-api.json b/assuredworkloads/v1beta1/assuredworkloads-api.json index bce55297637..c10b208a564 100644 --- a/assuredworkloads/v1beta1/assuredworkloads-api.json +++ b/assuredworkloads/v1beta1/assuredworkloads-api.json @@ -595,7 +595,7 @@ } } }, - "revision": "20221110", + "revision": "20221229", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest": { @@ -699,7 +699,7 @@ "type": "object" }, "GoogleCloudAssuredworkloadsV1beta1Violation": { - "description": "Workload monitoring Violation.", + "description": "Workload monitoring Violation. Next Id: 22", "id": "GoogleCloudAssuredworkloadsV1beta1Violation", "properties": { "acknowledged": { diff --git a/assuredworkloads/v1beta1/assuredworkloads-gen.go b/assuredworkloads/v1beta1/assuredworkloads-gen.go index 5264350e726..5789d2889e6 100644 --- a/assuredworkloads/v1beta1/assuredworkloads-gen.go +++ b/assuredworkloads/v1beta1/assuredworkloads-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -489,7 +489,7 @@ type GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesResponse struct { } // GoogleCloudAssuredworkloadsV1beta1Violation: Workload monitoring -// Violation. +// Violation. Next Id: 22 type GoogleCloudAssuredworkloadsV1beta1Violation struct { // Acknowledged: A boolean that indicates if the violation is // acknowledged diff --git a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go index 52024536d28..d2a4a562de7 100644 --- a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go +++ b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/baremetalsolution/v2/baremetalsolution-gen.go b/baremetalsolution/v2/baremetalsolution-gen.go index e0d04e8c8fc..49eab61b242 100644 --- a/baremetalsolution/v2/baremetalsolution-gen.go +++ b/baremetalsolution/v2/baremetalsolution-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/batch/v1/batch-gen.go b/batch/v1/batch-gen.go index 28f40fe15ed..e329955f4be 100644 --- a/batch/v1/batch-gen.go +++ b/batch/v1/batch-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/beyondcorp/v1/beyondcorp-gen.go b/beyondcorp/v1/beyondcorp-gen.go index d0fc122fb1a..9f88f473dc9 100644 --- a/beyondcorp/v1/beyondcorp-gen.go +++ b/beyondcorp/v1/beyondcorp-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/beyondcorp/v1alpha/beyondcorp-gen.go b/beyondcorp/v1alpha/beyondcorp-gen.go index 4e786472000..46688fbd525 100644 --- a/beyondcorp/v1alpha/beyondcorp-gen.go +++ b/beyondcorp/v1alpha/beyondcorp-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/bigquery/v2/bigquery-api.json b/bigquery/v2/bigquery-api.json index 4c233fe1a45..3b57ce9f3c5 100644 --- a/bigquery/v2/bigquery-api.json +++ b/bigquery/v2/bigquery-api.json @@ -1710,7 +1710,7 @@ } } }, - "revision": "20221127", + "revision": "20221209", "rootUrl": "https://bigquery.googleapis.com/", "schemas": { "AggregateClassificationMetrics": { @@ -6141,7 +6141,7 @@ "type": "array" }, "mainFileUri": { - "description": "The main file URI of the Spark application. Exactly one of the definition_body field and the main_file_uri field must be set.", + "description": "The main file/jar URI of the Spark application. Exactly one of the definition_body field and the main_file_uri field must be set for Python. Exactly one of main_class and main_file_uri field should be set for Java/Scala language type.", "type": "string" }, "properties": { diff --git a/bigquery/v2/bigquery-gen.go b/bigquery/v2/bigquery-gen.go index f3499e5c4b2..98cc672f2be 100644 --- a/bigquery/v2/bigquery-gen.go +++ b/bigquery/v2/bigquery-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -7583,8 +7583,10 @@ type SparkOptions struct { // (https://spark.apache.org/docs/latest/index.html). JarUris []string `json:"jarUris,omitempty"` - // MainFileUri: The main file URI of the Spark application. Exactly one - // of the definition_body field and the main_file_uri field must be set. + // MainFileUri: The main file/jar URI of the Spark application. Exactly + // one of the definition_body field and the main_file_uri field must be + // set for Python. Exactly one of main_class and main_file_uri field + // should be set for Java/Scala language type. MainFileUri string `json:"mainFileUri,omitempty"` // Properties: Configuration properties as a set of key/value pairs, diff --git a/bigqueryconnection/v1beta1/bigqueryconnection-gen.go b/bigqueryconnection/v1beta1/bigqueryconnection-gen.go index 874f4d3e2a9..5459eccc69d 100644 --- a/bigqueryconnection/v1beta1/bigqueryconnection-gen.go +++ b/bigqueryconnection/v1beta1/bigqueryconnection-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go b/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go index bb6b1e9af26..e2b9185bfa1 100644 --- a/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go +++ b/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/bigqueryreservation/v1/bigqueryreservation-gen.go b/bigqueryreservation/v1/bigqueryreservation-gen.go index c7fcbf8cbdc..09c6013bff6 100644 --- a/bigqueryreservation/v1/bigqueryreservation-gen.go +++ b/bigqueryreservation/v1/bigqueryreservation-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/bigtableadmin/v2/bigtableadmin-gen.go b/bigtableadmin/v2/bigtableadmin-gen.go index 76547712516..5f04b3ed361 100644 --- a/bigtableadmin/v2/bigtableadmin-gen.go +++ b/bigtableadmin/v2/bigtableadmin-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/billingbudgets/v1/billingbudgets-gen.go b/billingbudgets/v1/billingbudgets-gen.go index c4b332569d0..05b2f31a875 100644 --- a/billingbudgets/v1/billingbudgets-gen.go +++ b/billingbudgets/v1/billingbudgets-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/billingbudgets/v1beta1/billingbudgets-gen.go b/billingbudgets/v1beta1/billingbudgets-gen.go index e073e57affa..d20a9f9e4a2 100644 --- a/billingbudgets/v1beta1/billingbudgets-gen.go +++ b/billingbudgets/v1beta1/billingbudgets-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/binaryauthorization/v1/binaryauthorization-gen.go b/binaryauthorization/v1/binaryauthorization-gen.go index b44b6e3969f..4640c052dfe 100644 --- a/binaryauthorization/v1/binaryauthorization-gen.go +++ b/binaryauthorization/v1/binaryauthorization-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/binaryauthorization/v1beta1/binaryauthorization-gen.go b/binaryauthorization/v1beta1/binaryauthorization-gen.go index cabaeef98fd..3396ff6b93e 100644 --- a/binaryauthorization/v1beta1/binaryauthorization-gen.go +++ b/binaryauthorization/v1beta1/binaryauthorization-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/blogger/v2/blogger-gen.go b/blogger/v2/blogger-gen.go index 132543aa8f5..76e746f1536 100644 --- a/blogger/v2/blogger-gen.go +++ b/blogger/v2/blogger-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/blogger/v3/blogger-gen.go b/blogger/v3/blogger-gen.go index 76bd8d37f15..9de590ac537 100644 --- a/blogger/v3/blogger-gen.go +++ b/blogger/v3/blogger-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/books/v1/books-gen.go b/books/v1/books-gen.go index d160f5ec4b1..d4c12cd669f 100644 --- a/books/v1/books-gen.go +++ b/books/v1/books-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/businessprofileperformance/v1/businessprofileperformance-gen.go b/businessprofileperformance/v1/businessprofileperformance-gen.go index e8385954005..eb7e96b43e5 100644 --- a/businessprofileperformance/v1/businessprofileperformance-gen.go +++ b/businessprofileperformance/v1/businessprofileperformance-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/calendar/v3/calendar-gen.go b/calendar/v3/calendar-gen.go index da637a0da89..bc9d00a0f95 100644 --- a/calendar/v3/calendar-gen.go +++ b/calendar/v3/calendar-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/certificatemanager/v1/certificatemanager-gen.go b/certificatemanager/v1/certificatemanager-gen.go index 5c5f8ae79aa..bd91556c245 100644 --- a/certificatemanager/v1/certificatemanager-gen.go +++ b/certificatemanager/v1/certificatemanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index fb1aba86c54..9af82523538 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/chromemanagement/v1/chromemanagement-api.json b/chromemanagement/v1/chromemanagement-api.json index e00b961fca4..bfc942957af 100644 --- a/chromemanagement/v1/chromemanagement-api.json +++ b/chromemanagement/v1/chromemanagement-api.json @@ -682,7 +682,7 @@ } } }, - "revision": "20221129", + "revision": "20230104", "rootUrl": "https://chromemanagement.googleapis.com/", "schemas": { "GoogleChromeManagementV1AndroidAppInfo": { @@ -1200,6 +1200,21 @@ "description": "Output only. The app developer has enabled support for their app. Version-specific field that will only be set when the requested app version is found.", "readOnly": true, "type": "boolean" + }, + "type": { + "description": "Output only. Types of an item in the Chrome Web Store", + "enum": [ + "ITEM_TYPE_UNSPECIFIED", + "EXTENSION", + "OTHERS" + ], + "enumDescriptions": [ + "Unspecified ItemType.", + "Chrome Extensions.", + "Any other type than extension." + ], + "readOnly": true, + "type": "string" } }, "type": "object" @@ -2585,16 +2600,16 @@ "readOnly": true, "type": "string" }, - "networkConnectionStateChangeEvent": { - "$ref": "GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent", - "description": "Output only. Payload for network connection state change event. Present only when `event_type` is `NETWORK_CONNECTION_STATE_CHANGE`.", - "readOnly": true - }, "reportTime": { "description": "Timestamp that represents when the event was reported.", "format": "google-datetime", "type": "string" }, + "usbPeripheralsEvent": { + "$ref": "GoogleChromeManagementV1TelemetryUsbPeripheralsEvent", + "description": "Output only. Payload for usb peripherals event. Present only when the `event_type` field is either `USB_ADDED` or `USB_REMOVED`.", + "readOnly": true + }, "user": { "$ref": "GoogleChromeManagementV1TelemetryUserInfo", "description": "Output only. Information about the user associated with the event.", @@ -2628,33 +2643,16 @@ }, "type": "object" }, - "GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent": { - "description": "`TelemetryNetworkConnectionStateChangeEvent` is triggered on network connection state changes.", - "id": "GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent", + "GoogleChromeManagementV1TelemetryUsbPeripheralsEvent": { + "description": "`TelemetryUsbPeripheralsEvent` is triggered USB devices are either added or removed.", + "id": "GoogleChromeManagementV1TelemetryUsbPeripheralsEvent", "properties": { - "connectionState": { - "description": "Current connection state of the network.", - "enum": [ - "NETWORK_CONNECTION_STATE_UNSPECIFIED", - "ONLINE", - "CONNECTED", - "PORTAL", - "CONNECTING", - "NOT_CONNECTED" - ], - "enumDescriptions": [ - "Network connection state unspecified.", - "The network is connected and internet connectivity is available.", - "The network is connected and not in a detected portal state, but internet connectivity may not be available.", - "The network is connected but a portal state was detected. Internet connectivity may be limited.", - "The network is in the process of connecting.", - "The network is not connected." - ], - "type": "string" - }, - "guid": { - "description": "Unique identifier of the network.", - "type": "string" + "usbPeripheralReport": { + "description": "List of usb devices that were either added or removed.", + "items": { + "$ref": "GoogleChromeManagementV1UsbPeripheralReport" + }, + "type": "array" } }, "type": "object" @@ -2756,6 +2754,60 @@ }, "type": "object" }, + "GoogleChromeManagementV1UsbPeripheralReport": { + "description": "USB connected peripheral report.", + "id": "GoogleChromeManagementV1UsbPeripheralReport", + "properties": { + "categories": { + "description": "Output only. Categories the device belongs to https://www.usb.org/defined-class-codes", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "classId": { + "description": "Output only. Class ID https://www.usb.org/defined-class-codes", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "firmwareVersion": { + "description": "Output only. Firmware version", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. Device name, model name, or product name", + "readOnly": true, + "type": "string" + }, + "pid": { + "description": "Output only. Product ID", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "subclassId": { + "description": "Output only. Subclass ID https://www.usb.org/defined-class-codes", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "vendor": { + "description": "Output only. Vendor name", + "readOnly": true, + "type": "string" + }, + "vid": { + "description": "Output only. Vendor ID", + "format": "int32", + "readOnly": true, + "type": "integer" + } + }, + "type": "object" + }, "GoogleRpcStatus": { "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": "GoogleRpcStatus", diff --git a/chromemanagement/v1/chromemanagement-gen.go b/chromemanagement/v1/chromemanagement-gen.go index d54d560b161..bae55ceb4c9 100644 --- a/chromemanagement/v1/chromemanagement-gen.go +++ b/chromemanagement/v1/chromemanagement-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -838,6 +838,14 @@ type GoogleChromeManagementV1ChromeAppInfo struct { // requested app version is found. SupportEnabled bool `json:"supportEnabled,omitempty"` + // Type: Output only. Types of an item in the Chrome Web Store + // + // Possible values: + // "ITEM_TYPE_UNSPECIFIED" - Unspecified ItemType. + // "EXTENSION" - Chrome Extensions. + // "OTHERS" - Any other type than extension. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "GoogleOwned") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2714,14 +2722,14 @@ type GoogleChromeManagementV1TelemetryEvent struct { // Name: Output only. Resource name of the event. Name string `json:"name,omitempty"` - // NetworkConnectionStateChangeEvent: Output only. Payload for network - // connection state change event. Present only when `event_type` is - // `NETWORK_CONNECTION_STATE_CHANGE`. - NetworkConnectionStateChangeEvent *GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent `json:"networkConnectionStateChangeEvent,omitempty"` - // ReportTime: Timestamp that represents when the event was reported. ReportTime string `json:"reportTime,omitempty"` + // UsbPeripheralsEvent: Output only. Payload for usb peripherals event. + // Present only when the `event_type` field is either `USB_ADDED` or + // `USB_REMOVED`. + UsbPeripheralsEvent *GoogleChromeManagementV1TelemetryUsbPeripheralsEvent `json:"usbPeripheralsEvent,omitempty"` + // User: Output only. Information about the user associated with the // event. User *GoogleChromeManagementV1TelemetryUserInfo `json:"user,omitempty"` @@ -2794,37 +2802,23 @@ func (s *GoogleChromeManagementV1TelemetryHttpsLatencyChangeEvent) MarshalJSON() return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent: -// `TelemetryNetworkConnectionStateChangeEvent` is triggered on network -// connection state changes. -type GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent struct { - // ConnectionState: Current connection state of the network. - // - // Possible values: - // "NETWORK_CONNECTION_STATE_UNSPECIFIED" - Network connection state - // unspecified. - // "ONLINE" - The network is connected and internet connectivity is - // available. - // "CONNECTED" - The network is connected and not in a detected portal - // state, but internet connectivity may not be available. - // "PORTAL" - The network is connected but a portal state was - // detected. Internet connectivity may be limited. - // "CONNECTING" - The network is in the process of connecting. - // "NOT_CONNECTED" - The network is not connected. - ConnectionState string `json:"connectionState,omitempty"` - - // Guid: Unique identifier of the network. - Guid string `json:"guid,omitempty"` +// GoogleChromeManagementV1TelemetryUsbPeripheralsEvent: +// `TelemetryUsbPeripheralsEvent` is triggered USB devices are either +// added or removed. +type GoogleChromeManagementV1TelemetryUsbPeripheralsEvent struct { + // UsbPeripheralReport: List of usb devices that were either added or + // removed. + UsbPeripheralReport []*GoogleChromeManagementV1UsbPeripheralReport `json:"usbPeripheralReport,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConnectionState") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "UsbPeripheralReport") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ConnectionState") to + // NullFields is a list of field names (e.g. "UsbPeripheralReport") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -2834,8 +2828,8 @@ type GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent struct { NullFields []string `json:"-"` } -func (s *GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent) MarshalJSON() ([]byte, error) { - type NoMethod GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent +func (s *GoogleChromeManagementV1TelemetryUsbPeripheralsEvent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementV1TelemetryUsbPeripheralsEvent raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -2998,6 +2992,59 @@ func (s *GoogleChromeManagementV1TotalMemoryEncryptionInfo) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleChromeManagementV1UsbPeripheralReport: USB connected peripheral +// report. +type GoogleChromeManagementV1UsbPeripheralReport struct { + // Categories: Output only. Categories the device belongs to + // https://www.usb.org/defined-class-codes + Categories []string `json:"categories,omitempty"` + + // ClassId: Output only. Class ID + // https://www.usb.org/defined-class-codes + ClassId int64 `json:"classId,omitempty"` + + // FirmwareVersion: Output only. Firmware version + FirmwareVersion string `json:"firmwareVersion,omitempty"` + + // Name: Output only. Device name, model name, or product name + Name string `json:"name,omitempty"` + + // Pid: Output only. Product ID + Pid int64 `json:"pid,omitempty"` + + // SubclassId: Output only. Subclass ID + // https://www.usb.org/defined-class-codes + SubclassId int64 `json:"subclassId,omitempty"` + + // Vendor: Output only. Vendor name + Vendor string `json:"vendor,omitempty"` + + // Vid: Output only. Vendor ID + Vid int64 `json:"vid,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Categories") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Categories") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleChromeManagementV1UsbPeripheralReport) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementV1UsbPeripheralReport + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleRpcStatus: 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 diff --git a/chromepolicy/v1/chromepolicy-gen.go b/chromepolicy/v1/chromepolicy-gen.go index 1f0e576361f..ed158d71a1b 100644 --- a/chromepolicy/v1/chromepolicy-gen.go +++ b/chromepolicy/v1/chromepolicy-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/chromeuxreport/v1/chromeuxreport-gen.go b/chromeuxreport/v1/chromeuxreport-gen.go index 124c2afd872..144055dfdcd 100644 --- a/chromeuxreport/v1/chromeuxreport-gen.go +++ b/chromeuxreport/v1/chromeuxreport-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/civicinfo/v2/civicinfo-gen.go b/civicinfo/v2/civicinfo-gen.go index 036430d7cb1..ae26bee7fe6 100644 --- a/civicinfo/v2/civicinfo-gen.go +++ b/civicinfo/v2/civicinfo-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/classroom/v1/classroom-gen.go b/classroom/v1/classroom-gen.go index 4c0c1332228..d2136bedce8 100644 --- a/classroom/v1/classroom-gen.go +++ b/classroom/v1/classroom-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudasset/v1/cloudasset-gen.go b/cloudasset/v1/cloudasset-gen.go index df55fe87e1b..e08d1185792 100644 --- a/cloudasset/v1/cloudasset-gen.go +++ b/cloudasset/v1/cloudasset-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudasset/v1beta1/cloudasset-gen.go b/cloudasset/v1beta1/cloudasset-gen.go index 7bea1bedbc5..2e0edf7052f 100644 --- a/cloudasset/v1beta1/cloudasset-gen.go +++ b/cloudasset/v1beta1/cloudasset-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudasset/v1p1beta1/cloudasset-gen.go b/cloudasset/v1p1beta1/cloudasset-gen.go index 6be3681ec57..e7f51fe28c9 100644 --- a/cloudasset/v1p1beta1/cloudasset-gen.go +++ b/cloudasset/v1p1beta1/cloudasset-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudasset/v1p5beta1/cloudasset-gen.go b/cloudasset/v1p5beta1/cloudasset-gen.go index 5b5a62c1f04..d0d1c1bacc5 100644 --- a/cloudasset/v1p5beta1/cloudasset-gen.go +++ b/cloudasset/v1p5beta1/cloudasset-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudasset/v1p7beta1/cloudasset-gen.go b/cloudasset/v1p7beta1/cloudasset-gen.go index c02554916e8..bb02889be62 100644 --- a/cloudasset/v1p7beta1/cloudasset-gen.go +++ b/cloudasset/v1p7beta1/cloudasset-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudbilling/v1/cloudbilling-gen.go b/cloudbilling/v1/cloudbilling-gen.go index bd11906b103..26855d0bb85 100644 --- a/cloudbilling/v1/cloudbilling-gen.go +++ b/cloudbilling/v1/cloudbilling-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudbilling/v1beta/cloudbilling-gen.go b/cloudbilling/v1beta/cloudbilling-gen.go index 6a276cef0e7..a5d357a6ba4 100644 --- a/cloudbilling/v1beta/cloudbilling-gen.go +++ b/cloudbilling/v1beta/cloudbilling-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudbuild/v1/cloudbuild-api.json b/cloudbuild/v1/cloudbuild-api.json index 11c272b0a44..a2354df78ba 100644 --- a/cloudbuild/v1/cloudbuild-api.json +++ b/cloudbuild/v1/cloudbuild-api.json @@ -2295,7 +2295,7 @@ } } }, - "revision": "20221201", + "revision": "20230102", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -4296,7 +4296,7 @@ "type": "string" }, "peeredNetworkIpRange": { - "description": "Immutable. Subnet IP range within the peered network. This is specified in CIDR notation. The IP and prefix size are both optional. If unspecified, the default value for IP is blank (will use an automatic value from the peered network), and the prefix size will default to 24 bits. e.g. `192.168.0.0/30` would specify a subnet mask of 192.168.0.0 with a prefix size of 30 bits. `192.168.0.0` would specify a subnet mask of 192.168.0.0 with a prefix size of 24 bits (the default prefix size). `/16` would specify a prefix size of 16 bits, with an unspecified IP.", + "description": "Immutable. Subnet IP range within the peered network. This is specified in CIDR notation with a slash and the subnet prefix size. You can optionally specify an IP address before the subnet prefix value. e.g. `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a prefix size of 29 bits. `/16` would specify a prefix size of 16 bits, with an automatically determined IP within the peered VPC. If unspecified, a value of `/24` will be used.", "type": "string" } }, diff --git a/cloudbuild/v1/cloudbuild-gen.go b/cloudbuild/v1/cloudbuild-gen.go index 75080fa3664..be9e767ecbb 100644 --- a/cloudbuild/v1/cloudbuild-gen.go +++ b/cloudbuild/v1/cloudbuild-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -3498,14 +3498,13 @@ type NetworkConfig struct { PeeredNetwork string `json:"peeredNetwork,omitempty"` // PeeredNetworkIpRange: Immutable. Subnet IP range within the peered - // network. This is specified in CIDR notation. The IP and prefix size - // are both optional. If unspecified, the default value for IP is blank - // (will use an automatic value from the peered network), and the prefix - // size will default to 24 bits. e.g. `192.168.0.0/30` would specify a - // subnet mask of 192.168.0.0 with a prefix size of 30 bits. - // `192.168.0.0` would specify a subnet mask of 192.168.0.0 with a - // prefix size of 24 bits (the default prefix size). `/16` would specify - // a prefix size of 16 bits, with an unspecified IP. + // network. This is specified in CIDR notation with a slash and the + // subnet prefix size. You can optionally specify an IP address before + // the subnet prefix value. e.g. `192.168.0.0/29` would specify an IP + // range starting at 192.168.0.0 with a prefix size of 29 bits. `/16` + // would specify a prefix size of 16 bits, with an automatically + // determined IP within the peered VPC. If unspecified, a value of `/24` + // will be used. PeeredNetworkIpRange string `json:"peeredNetworkIpRange,omitempty"` // ForceSendFields is a list of field names (e.g. "EgressOption") to diff --git a/cloudbuild/v1alpha1/cloudbuild-gen.go b/cloudbuild/v1alpha1/cloudbuild-gen.go index 4865dab9c14..39d84ebf6d4 100644 --- a/cloudbuild/v1alpha1/cloudbuild-gen.go +++ b/cloudbuild/v1alpha1/cloudbuild-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudbuild/v1alpha2/cloudbuild-gen.go b/cloudbuild/v1alpha2/cloudbuild-gen.go index ea20647f9b8..1edbade2f03 100644 --- a/cloudbuild/v1alpha2/cloudbuild-gen.go +++ b/cloudbuild/v1alpha2/cloudbuild-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudbuild/v1beta1/cloudbuild-gen.go b/cloudbuild/v1beta1/cloudbuild-gen.go index 8f505804ede..f936c9d148a 100644 --- a/cloudbuild/v1beta1/cloudbuild-gen.go +++ b/cloudbuild/v1beta1/cloudbuild-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudchannel/v1/cloudchannel-gen.go b/cloudchannel/v1/cloudchannel-gen.go index 3702de3b6dd..d622c5f6c10 100644 --- a/cloudchannel/v1/cloudchannel-gen.go +++ b/cloudchannel/v1/cloudchannel-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/clouddebugger/v2/clouddebugger-gen.go b/clouddebugger/v2/clouddebugger-gen.go index 37204d7776c..477f7343197 100644 --- a/clouddebugger/v2/clouddebugger-gen.go +++ b/clouddebugger/v2/clouddebugger-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/clouddeploy/v1/clouddeploy-api.json b/clouddeploy/v1/clouddeploy-api.json index 7ffbf7a8738..d28c952356f 100644 --- a/clouddeploy/v1/clouddeploy-api.json +++ b/clouddeploy/v1/clouddeploy-api.json @@ -1334,7 +1334,7 @@ } } }, - "revision": "20221208", + "revision": "20221213", "rootUrl": "https://clouddeploy.googleapis.com/", "schemas": { "AbandonReleaseRequest": { @@ -1676,13 +1676,15 @@ "FAILURE_CAUSE_UNSPECIFIED", "CLOUD_BUILD_UNAVAILABLE", "EXECUTION_FAILED", - "DEADLINE_EXCEEDED" + "DEADLINE_EXCEEDED", + "CLOUD_BUILD_REQUEST_FAILED" ], "enumDescriptions": [ "No reason for failure is specified.", "Cloud Build is not available, either because it is not enabled or because Google Cloud Deploy has insufficient permissions. See [Required permission](/deploy/docs/cloud-deploy-service-account#required_permissions).", "The deploy operation did not complete successfully; check Cloud Build logs.", - "The deploy build did not complete within the alloted time." + "The deploy build did not complete within the alloted time.", + "Cloud Build failed to fulfill Google Cloud Deploy's request. See failure_message for additional details." ], "readOnly": true, "type": "string" @@ -2652,7 +2654,8 @@ "DEADLINE_EXCEEDED", "RELEASE_FAILED", "RELEASE_ABANDONED", - "VERIFICATION_CONFIG_NOT_FOUND" + "VERIFICATION_CONFIG_NOT_FOUND", + "CLOUD_BUILD_REQUEST_FAILED" ], "enumDescriptions": [ "No reason for failure is specified.", @@ -2661,7 +2664,8 @@ "Deployment did not complete within the alloted time.", "Release is in a failed state.", "Release is abandoned.", - "No skaffold verify configuration was found." + "No skaffold verify configuration was found.", + "Cloud Build failed to fulfill Google Cloud Deploy's request. See failure_message for additional details." ], "readOnly": true, "type": "string" @@ -3052,12 +3056,14 @@ "enum": [ "FAILURE_CAUSE_UNSPECIFIED", "CLOUD_BUILD_UNAVAILABLE", - "EXECUTION_FAILED" + "EXECUTION_FAILED", + "CLOUD_BUILD_REQUEST_FAILED" ], "enumDescriptions": [ "No reason for failure is specified.", "Cloud Build is not available, either because it is not enabled or because Google Cloud Deploy has insufficient permissions. See [required permission](/deploy/docs/cloud-deploy-service-account#required_permissions).", - "The render operation did not complete successfully; check Cloud Build logs." + "The render operation did not complete successfully; check Cloud Build logs.", + "Cloud Build failed to fulfill Google Cloud Deploy's request. See failure_message for additional details." ], "readOnly": true, "type": "string" @@ -3190,14 +3196,16 @@ "CLOUD_BUILD_UNAVAILABLE", "EXECUTION_FAILED", "DEADLINE_EXCEEDED", - "VERIFICATION_CONFIG_NOT_FOUND" + "VERIFICATION_CONFIG_NOT_FOUND", + "CLOUD_BUILD_REQUEST_FAILED" ], "enumDescriptions": [ "No reason for failure is specified.", "Cloud Build is not available, either because it is not enabled or because Google Cloud Deploy has insufficient permissions. See [required permission](/deploy/docs/cloud-deploy-service-account#required_permissions).", "The verify operation did not complete successfully; check Cloud Build logs.", "The verify build did not complete within the alloted time.", - "No Skaffold verify configuration was found." + "No Skaffold verify configuration was found.", + "Cloud Build failed to fulfill Google Cloud Deploy's request. See failure_message for additional details." ], "readOnly": true, "type": "string" diff --git a/clouddeploy/v1/clouddeploy-gen.go b/clouddeploy/v1/clouddeploy-gen.go index 66291c79573..bccd15eaa48 100644 --- a/clouddeploy/v1/clouddeploy-gen.go +++ b/clouddeploy/v1/clouddeploy-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -868,6 +868,8 @@ type DeployJobRun struct { // successfully; check Cloud Build logs. // "DEADLINE_EXCEEDED" - The deploy build did not complete within the // alloted time. + // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Google + // Cloud Deploy's request. See failure_message for additional details. FailureCause string `json:"failureCause,omitempty"` // FailureMessage: Output only. Additional information about the deploy @@ -2353,6 +2355,8 @@ type Rollout struct { // "RELEASE_ABANDONED" - Release is abandoned. // "VERIFICATION_CONFIG_NOT_FOUND" - No skaffold verify configuration // was found. + // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Google + // Cloud Deploy's request. See failure_message for additional details. DeployFailureCause string `json:"deployFailureCause,omitempty"` // DeployStartTime: Output only. Time at which the `Rollout` started @@ -2939,6 +2943,8 @@ type TargetRender struct { // ions). // "EXECUTION_FAILED" - The render operation did not complete // successfully; check Cloud Build logs. + // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Google + // Cloud Deploy's request. See failure_message for additional details. FailureCause string `json:"failureCause,omitempty"` // FailureMessage: Output only. Additional information about the render @@ -3161,6 +3167,8 @@ type VerifyJobRun struct { // alloted time. // "VERIFICATION_CONFIG_NOT_FOUND" - No Skaffold verify configuration // was found. + // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Google + // Cloud Deploy's request. See failure_message for additional details. FailureCause string `json:"failureCause,omitempty"` // FailureMessage: Output only. Additional information about the verify diff --git a/clouderrorreporting/v1beta1/clouderrorreporting-gen.go b/clouderrorreporting/v1beta1/clouderrorreporting-gen.go index 37cef5e2599..2f78f2e21cc 100644 --- a/clouderrorreporting/v1beta1/clouderrorreporting-gen.go +++ b/clouderrorreporting/v1beta1/clouderrorreporting-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudfunctions/v1/cloudfunctions-gen.go b/cloudfunctions/v1/cloudfunctions-gen.go index 38fb3f2ae5d..883a099e84f 100644 --- a/cloudfunctions/v1/cloudfunctions-gen.go +++ b/cloudfunctions/v1/cloudfunctions-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index 8adbe25ecb8..5c61780e043 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index 32021f460fc..64106aad9df 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index 8bbb09346b3..3dfef96c99b 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudidentity/v1/cloudidentity-gen.go b/cloudidentity/v1/cloudidentity-gen.go index 5888094412b..6f3126f82e8 100644 --- a/cloudidentity/v1/cloudidentity-gen.go +++ b/cloudidentity/v1/cloudidentity-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudidentity/v1beta1/cloudidentity-gen.go b/cloudidentity/v1beta1/cloudidentity-gen.go index 678c3b5b74d..77e40586320 100644 --- a/cloudidentity/v1beta1/cloudidentity-gen.go +++ b/cloudidentity/v1beta1/cloudidentity-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudiot/v1/cloudiot-gen.go b/cloudiot/v1/cloudiot-gen.go index c4c22b773d9..d4444217b5b 100644 --- a/cloudiot/v1/cloudiot-gen.go +++ b/cloudiot/v1/cloudiot-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudkms/v1/cloudkms-gen.go b/cloudkms/v1/cloudkms-gen.go index 93f45cccb80..66b8efe7093 100644 --- a/cloudkms/v1/cloudkms-gen.go +++ b/cloudkms/v1/cloudkms-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudprofiler/v2/cloudprofiler-gen.go b/cloudprofiler/v2/cloudprofiler-gen.go index 7396a1840c4..2fa63cc6955 100644 --- a/cloudprofiler/v2/cloudprofiler-gen.go +++ b/cloudprofiler/v2/cloudprofiler-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudresourcemanager/v1/cloudresourcemanager-gen.go b/cloudresourcemanager/v1/cloudresourcemanager-gen.go index 012a50a8709..a9a8286862d 100644 --- a/cloudresourcemanager/v1/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v1/cloudresourcemanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go b/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go index aebad00611b..96b0209a557 100644 --- a/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudresourcemanager/v2/cloudresourcemanager-gen.go b/cloudresourcemanager/v2/cloudresourcemanager-gen.go index 678e7154580..92b4beeee2c 100644 --- a/cloudresourcemanager/v2/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v2/cloudresourcemanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go b/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go index 22f26a6b54c..6b3832ceea7 100644 --- a/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudresourcemanager/v3/cloudresourcemanager-api.json b/cloudresourcemanager/v3/cloudresourcemanager-api.json index 646a6215a0b..20b7627f441 100644 --- a/cloudresourcemanager/v3/cloudresourcemanager-api.json +++ b/cloudresourcemanager/v3/cloudresourcemanager-api.json @@ -264,7 +264,7 @@ "type": "string" }, "parent": { - "description": "Required. The resource name of the organization or folder whose folders are being listed. Must be of the form `folders/{folder_id}` or `organizations/{org_id}`. Access to this method is controlled by checking the `resourcemanager.folders.list` permission on the `parent`.", + "description": "Required. The name of the parent resource whose folders are being listed. Only children of this parent resource are listed; descendants are not listed. If the parent is a folder, use the value `folders/{folder_id}`. If the parent is an organization, use the value `organizations/{org_id}`. Access to this method is controlled by checking the `resourcemanager.folders.list` permission on the `parent`.", "location": "query", "type": "string" }, @@ -870,7 +870,7 @@ "type": "string" }, "parent": { - "description": "Required. The name of the parent resource to list projects under. For example, setting this field to 'folders/1234' would list all projects directly under that folder.", + "description": "Required. The name of the parent resource whose projects are being listed. Only children of this parent resource are listed; descendants are not listed. If the parent is a folder, use the value `folders/{folder_id}`. If the parent is an organization, use the value `organizations/{org_id}`.", "location": "query", "type": "string" }, @@ -1538,7 +1538,7 @@ "type": "string" }, "parent": { - "description": "Required. Resource name for TagKey, parent of the TagValues to be listed, in the format `tagKeys/123`.", + "description": "Required.", "location": "query", "type": "string" } @@ -1761,7 +1761,7 @@ } } }, - "revision": "20221113", + "revision": "20230103", "rootUrl": "https://cloudresourcemanager.googleapis.com/", "schemas": { "AuditConfig": { @@ -2574,7 +2574,7 @@ "additionalProperties": { "type": "string" }, - "description": "Optional. The labels associated with this project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: \\[a-z\\](\\[-a-z0-9\\]*\\[a-z0-9\\])?. Label values must be between 0 and 63 characters long and must conform to the regular expression (\\[a-z\\](\\[-a-z0-9\\]*\\[a-z0-9\\])?)?. No more than 256 labels can be associated with a given resource. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: `\"myBusinessDimension\" : \"businessValue\"`", + "description": "Optional. The labels associated with this project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: \\[a-z\\](\\[-a-z0-9\\]*\\[a-z0-9\\])?. Label values must be between 0 and 63 characters long and must conform to the regular expression (\\[a-z\\](\\[-a-z0-9\\]*\\[a-z0-9\\])?)?. No more than 64 labels can be associated with a given resource. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: `\"myBusinessDimension\" : \"businessValue\"`", "type": "object" }, "name": { diff --git a/cloudresourcemanager/v3/cloudresourcemanager-gen.go b/cloudresourcemanager/v3/cloudresourcemanager-gen.go index f684b0aa567..afb52761c1d 100644 --- a/cloudresourcemanager/v3/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v3/cloudresourcemanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -1768,7 +1768,7 @@ type Project struct { // following regular expression: \a-z\ (\[-a-z0-9\]*\[a-z0-9\])?. Label // values must be between 0 and 63 characters long and must conform to // the regular expression (\a-z\ (\[-a-z0-9\]*\[a-z0-9\])?)?. No more - // than 256 labels can be associated with a given resource. Clients + // than 64 labels can be associated with a given resource. Clients // should store labels in a representation such as JSON that does not // depend on specific characters being disallowed. Example: // "myBusinessDimension" : "businessValue" @@ -3257,12 +3257,13 @@ func (c *FoldersListCall) PageToken(pageToken string) *FoldersListCall { return c } -// Parent sets the optional parameter "parent": Required. The resource -// name of the organization or folder whose folders are being listed. -// Must be of the form `folders/{folder_id}` or -// `organizations/{org_id}`. Access to this method is controlled by -// checking the `resourcemanager.folders.list` permission on the -// `parent`. +// Parent sets the optional parameter "parent": Required. The name of +// the parent resource whose folders are being listed. Only children of +// this parent resource are listed; descendants are not listed. If the +// parent is a folder, use the value `folders/{folder_id}`. If the +// parent is an organization, use the value `organizations/{org_id}`. +// Access to this method is controlled by checking the +// `resourcemanager.folders.list` permission on the `parent`. func (c *FoldersListCall) Parent(parent string) *FoldersListCall { c.urlParams_.Set("parent", parent) return c @@ -3390,7 +3391,7 @@ func (c *FoldersListCall) Do(opts ...googleapi.CallOption) (*ListFoldersResponse // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the organization or folder whose folders are being listed. Must be of the form `folders/{folder_id}` or `organizations/{org_id}`. Access to this method is controlled by checking the `resourcemanager.folders.list` permission on the `parent`.", + // "description": "Required. The name of the parent resource whose folders are being listed. Only children of this parent resource are listed; descendants are not listed. If the parent is a folder, use the value `folders/{folder_id}`. If the parent is an organization, use the value `organizations/{org_id}`. Access to this method is controlled by checking the `resourcemanager.folders.list` permission on the `parent`.", // "location": "query", // "type": "string" // }, @@ -6604,9 +6605,10 @@ func (c *ProjectsListCall) PageToken(pageToken string) *ProjectsListCall { } // Parent sets the optional parameter "parent": Required. The name of -// the parent resource to list projects under. For example, setting this -// field to 'folders/1234' would list all projects directly under that -// folder. +// the parent resource whose projects are being listed. Only children of +// this parent resource are listed; descendants are not listed. If the +// parent is a folder, use the value `folders/{folder_id}`. If the +// parent is an organization, use the value `organizations/{org_id}`. func (c *ProjectsListCall) Parent(parent string) *ProjectsListCall { c.urlParams_.Set("parent", parent) return c @@ -6734,7 +6736,7 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ListProjectsRespon // "type": "string" // }, // "parent": { - // "description": "Required. The name of the parent resource to list projects under. For example, setting this field to 'folders/1234' would list all projects directly under that folder.", + // "description": "Required. The name of the parent resource whose projects are being listed. Only children of this parent resource are listed; descendants are not listed. If the parent is a folder, use the value `folders/{folder_id}`. If the parent is an organization, use the value `organizations/{org_id}`.", // "location": "query", // "type": "string" // }, @@ -10155,9 +10157,7 @@ func (c *TagValuesListCall) PageToken(pageToken string) *TagValuesListCall { return c } -// Parent sets the optional parameter "parent": Required. Resource name -// for TagKey, parent of the TagValues to be listed, in the format -// `tagKeys/123`. +// Parent sets the optional parameter "parent": Required. func (c *TagValuesListCall) Parent(parent string) *TagValuesListCall { c.urlParams_.Set("parent", parent) return c @@ -10277,7 +10277,7 @@ func (c *TagValuesListCall) Do(opts ...googleapi.CallOption) (*ListTagValuesResp // "type": "string" // }, // "parent": { - // "description": "Required. Resource name for TagKey, parent of the TagValues to be listed, in the format `tagKeys/123`.", + // "description": "Required.", // "location": "query", // "type": "string" // } diff --git a/cloudscheduler/v1/cloudscheduler-gen.go b/cloudscheduler/v1/cloudscheduler-gen.go index 66d2b161027..0f29bd6abb3 100644 --- a/cloudscheduler/v1/cloudscheduler-gen.go +++ b/cloudscheduler/v1/cloudscheduler-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudscheduler/v1beta1/cloudscheduler-gen.go b/cloudscheduler/v1beta1/cloudscheduler-gen.go index 68527698cab..1138cbc8d36 100644 --- a/cloudscheduler/v1beta1/cloudscheduler-gen.go +++ b/cloudscheduler/v1beta1/cloudscheduler-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudsearch/v1/cloudsearch-gen.go b/cloudsearch/v1/cloudsearch-gen.go index 4fbcc4839ee..fd1db1d0bb8 100644 --- a/cloudsearch/v1/cloudsearch-gen.go +++ b/cloudsearch/v1/cloudsearch-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudshell/v1/cloudshell-gen.go b/cloudshell/v1/cloudshell-gen.go index 1a8e3ef3568..d601627f921 100644 --- a/cloudshell/v1/cloudshell-gen.go +++ b/cloudshell/v1/cloudshell-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudsupport/v2beta/cloudsupport-gen.go b/cloudsupport/v2beta/cloudsupport-gen.go index f3e5c5c45fc..6dd40d408cb 100644 --- a/cloudsupport/v2beta/cloudsupport-gen.go +++ b/cloudsupport/v2beta/cloudsupport-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudtasks/v2/cloudtasks-gen.go b/cloudtasks/v2/cloudtasks-gen.go index 0fb03cbfc64..1b190cad17b 100644 --- a/cloudtasks/v2/cloudtasks-gen.go +++ b/cloudtasks/v2/cloudtasks-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudtasks/v2beta2/cloudtasks-gen.go b/cloudtasks/v2beta2/cloudtasks-gen.go index 07b300e8b52..df3b6b40589 100644 --- a/cloudtasks/v2beta2/cloudtasks-gen.go +++ b/cloudtasks/v2beta2/cloudtasks-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudtasks/v2beta3/cloudtasks-gen.go b/cloudtasks/v2beta3/cloudtasks-gen.go index 2e474aed1a3..bed36e1d911 100644 --- a/cloudtasks/v2beta3/cloudtasks-gen.go +++ b/cloudtasks/v2beta3/cloudtasks-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudtrace/v1/cloudtrace-gen.go b/cloudtrace/v1/cloudtrace-gen.go index 5633dd6823d..c572f55cb19 100644 --- a/cloudtrace/v1/cloudtrace-gen.go +++ b/cloudtrace/v1/cloudtrace-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudtrace/v2/cloudtrace-gen.go b/cloudtrace/v2/cloudtrace-gen.go index a3ee681609b..5bcda9f8a27 100644 --- a/cloudtrace/v2/cloudtrace-gen.go +++ b/cloudtrace/v2/cloudtrace-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/cloudtrace/v2beta1/cloudtrace-gen.go b/cloudtrace/v2beta1/cloudtrace-gen.go index 42ff1eae63e..6f499493491 100644 --- a/cloudtrace/v2beta1/cloudtrace-gen.go +++ b/cloudtrace/v2beta1/cloudtrace-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/composer/v1/composer-gen.go b/composer/v1/composer-gen.go index 04a8cda9dff..f71e14446bc 100644 --- a/composer/v1/composer-gen.go +++ b/composer/v1/composer-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/composer/v1beta1/composer-gen.go b/composer/v1beta1/composer-gen.go index 6142d5ff9ca..b94075f3728 100644 --- a/composer/v1beta1/composer-gen.go +++ b/composer/v1beta1/composer-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index 0c5b3e282d9..5eb884ecf5f 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index 366eebe8364..7dedcd79686 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index 3d27b1a0359..8ca1a613732 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/connectors/v1/connectors-gen.go b/connectors/v1/connectors-gen.go index 2a611aed03f..f8191402eb9 100644 --- a/connectors/v1/connectors-gen.go +++ b/connectors/v1/connectors-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/connectors/v2/connectors-gen.go b/connectors/v2/connectors-gen.go index 53cb98a1061..0e873c27967 100644 --- a/connectors/v2/connectors-gen.go +++ b/connectors/v2/connectors-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json new file mode 100644 index 00000000000..bb7f7cf4883 --- /dev/null +++ b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json @@ -0,0 +1,941 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." + } + } + } + }, + "basePath": "", + "baseUrl": "https://contactcenteraiplatform.googleapis.com/", + "batchPath": "batch", + "canonicalName": "CCAI Platform", + "description": "", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com/solutions/contact-center-ai-platform", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "contactcenteraiplatform:v1alpha1", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://contactcenteraiplatform.mtls.googleapis.com/", + "name": "contactcenteraiplatform", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "projects": { + "methods": { + "queryContactCenterQuota": { + "description": "Queries the contact center quota, an aggregation over all the projects, that belongs to the billing account, which the input project belongs to.", + "flatPath": "v1alpha1/projects/{projectsId}:queryContactCenterQuota", + "httpMethod": "GET", + "id": "contactcenteraiplatform.projects.queryContactCenterQuota", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Parent project resource id.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+parent}:queryContactCenterQuota", + "response": { + "$ref": "ContactCenterQuota" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "locations": { + "methods": { + "get": { + "description": "Gets information about a location.", + "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}", + "httpMethod": "GET", + "id": "contactcenteraiplatform.projects.locations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name for the location.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+name}", + "response": { + "$ref": "Location" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists information about the supported locations for this service.", + "flatPath": "v1alpha1/projects/{projectsId}/locations", + "httpMethod": "GET", + "id": "contactcenteraiplatform.projects.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The maximum number of results to return. If not set, the service selects a default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha1/{+name}/locations", + "response": { + "$ref": "ListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "queryContactCenterQuota": { + "description": "Queries the contact center quota, an aggregation over all the projects, that belongs to the billing account, which the input project belongs to.", + "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}:queryContactCenterQuota", + "httpMethod": "GET", + "id": "contactcenteraiplatform.projects.locations.queryContactCenterQuota", + "parameterOrder": [ + "parent", + "locationsId" + ], + "parameters": { + "locationsId": { + "location": "path", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent project resource id.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+parent}/locations/{locationsId}:queryContactCenterQuota", + "response": { + "$ref": "ContactCenterQuota" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "contactCenters": { + "methods": { + "create": { + "description": "Creates a new ContactCenter in a given project and location.", + "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/contactCenters", + "httpMethod": "POST", + "id": "contactcenteraiplatform.projects.locations.contactCenters.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "contactCenterId": { + "description": "Required. Id of the requesting object If auto-generating Id server-side, remove this field and contact_center_id from the method_signature of Create RPC", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Value for parent.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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": "v1alpha1/{+parent}/contactCenters", + "request": { + "$ref": "ContactCenter" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single ContactCenter.", + "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/contactCenters/{contactCentersId}", + "httpMethod": "DELETE", + "id": "contactcenteraiplatform.projects.locations.contactCenters.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/contactCenters/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. 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. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and t he 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": "v1alpha1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single ContactCenter.", + "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/contactCenters/{contactCentersId}", + "httpMethod": "GET", + "id": "contactcenteraiplatform.projects.locations.contactCenters.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/contactCenters/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+name}", + "response": { + "$ref": "ContactCenter" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists ContactCenters in a given project and location.", + "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/contactCenters", + "httpMethod": "GET", + "id": "contactcenteraiplatform.projects.locations.contactCenters.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Filtering results", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Hint for how to order the results", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent value for ListContactCentersRequest", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+parent}/contactCenters", + "response": { + "$ref": "ListContactCentersResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single ContactCenter.", + "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/contactCenters/{contactCentersId}", + "httpMethod": "PATCH", + "id": "contactcenteraiplatform.projects.locations.contactCenters.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "name of resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/contactCenters/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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" + }, + "updateMask": { + "description": "Required. Field mask is used to specify the fields to be overwritten in the ContactCenter 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" + } + }, + "path": "v1alpha1/{+name}", + "request": { + "$ref": "ContactCenter" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "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`.", + "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "contactcenteraiplatform.projects.locations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+name}:cancel", + "request": { + "$ref": "CancelOperationRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "contactcenteraiplatform.projects.locations.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+name}", + "response": { + "$ref": "Empty" + }, + "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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "contactcenteraiplatform.projects.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "contactcenteraiplatform.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha1/{+name}/operations", + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + }, + "revision": "20230103", + "rootUrl": "https://contactcenteraiplatform.googleapis.com/", + "schemas": { + "CancelOperationRequest": { + "description": "The request message for Operations.CancelOperation.", + "id": "CancelOperationRequest", + "properties": {}, + "type": "object" + }, + "ContactCenter": { + "description": "Message describing ContactCenter object", + "id": "ContactCenter", + "properties": { + "ccaipManagedUsers": { + "description": "Optional. Whether to enable users to be created in the CCAIP-instance concurrently to having users in Cloud identity", + "type": "boolean" + }, + "createTime": { + "description": "Output only. [Output only] Create time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "customerDomainPrefix": { + "description": "Required. Immutable. At least 2 and max 16 char long, must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).", + "type": "string" + }, + "displayName": { + "description": "Required. A user friendly name for the ContactCenter.", + "type": "string" + }, + "instanceConfig": { + "$ref": "InstanceConfig", + "description": "The configuration of this instance, it is currently immutable once created." + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Labels as key value pairs", + "type": "object" + }, + "name": { + "description": "name of resource", + "type": "string" + }, + "samlParams": { + "$ref": "SAMLParams", + "description": "Optional. Params that sets up Google as IdP." + }, + "state": { + "description": "Output only. The state of this contact center.", + "enum": [ + "STATE_UNSPECIFIED", + "STATE_DEPLOYING", + "STATE_DEPLOYED", + "STATE_TERMINATING", + "STATE_FAILED", + "STATE_TERMINATING_FAILED", + "STATE_TERMINATED" + ], + "enumDescriptions": [ + "The default value. This value is used if the state is omitted.", + "State DEPLOYING", + "State DEPLOYED", + "State TERMINATING", + "State FAILED", + "State TERMINATING_FAILED", + "State TERMINATED" + ], + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. [Output only] Update time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "uris": { + "$ref": "URIs", + "description": "Output only. URIs to access the deployed ContactCenters.", + "readOnly": true + }, + "userEmail": { + "description": "Optional. Email address of the first admin users.", + "type": "string" + } + }, + "type": "object" + }, + "ContactCenterQuota": { + "description": "Represents a quota for contact centers.", + "id": "ContactCenterQuota", + "properties": { + "contactCenterCountLimit": { + "description": "Reflects the count limit of contact centers on a billing account.", + "format": "int32", + "type": "integer" + }, + "contactCenterCountSum": { + "description": "Reflects the count sum of contact centers on a billing account.", + "format": "int32", + "type": "integer" + } + }, + "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", + "properties": {}, + "type": "object" + }, + "InstanceConfig": { + "description": "Message storing the instance configuration.", + "id": "InstanceConfig", + "properties": { + "instanceSize": { + "description": "The instance size of this the instance configuration.", + "enum": [ + "INSTANCE_SIZE_UNSPECIFIED", + "STANDARD_SMALL", + "STANDARD_MEDIUM", + "STANDARD_LARGE" + ], + "enumDescriptions": [ + "The default value. This value is used if the state is omitted.", + "Instance Size STANDARD_SMALL.", + "Instance Size STANDARD_MEDIUM.", + "Instance Size STANDARD_LARGE." + ], + "type": "string" + } + }, + "type": "object" + }, + "ListContactCentersResponse": { + "description": "Message for response to listing ContactCenters", + "id": "ListContactCentersResponse", + "properties": { + "contactCenters": { + "description": "The list of ContactCenter", + "items": { + "$ref": "ContactCenter" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListLocationsResponse": { + "description": "The response message for Locations.ListLocations.", + "id": "ListLocationsResponse", + "properties": { + "locations": { + "description": "A list of locations that matches the specified filter in the request.", + "items": { + "$ref": "Location" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + } + }, + "type": "object" + }, + "ListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "ListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + }, + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "Operation" + }, + "type": "array" + } + }, + "type": "object" + }, + "Location": { + "description": "A resource that represents Google Cloud Platform location.", + "id": "Location", + "properties": { + "displayName": { + "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}", + "type": "object" + }, + "locationId": { + "description": "The canonical id for this location. For example: `\"us-east1\"`.", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata. For example the available capacity at the given location.", + "type": "object" + }, + "name": { + "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`", + "type": "string" + } + }, + "type": "object" + }, + "Operation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "Operation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "Status", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, + "OperationMetadata": { + "description": "Represents the metadata of the long-running operation.", + "id": "OperationMetadata", + "properties": { + "apiVersion": { + "description": "Output only. API version used to start the operation.", + "readOnly": true, + "type": "string" + }, + "contactCenter": { + "$ref": "ContactCenter", + "description": "Contact center information for this request" + }, + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "requestedCancellation": { + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "readOnly": true, + "type": "boolean" + }, + "statusMessage": { + "description": "Output only. Human-readable status of the operation, if any.", + "readOnly": true, + "type": "string" + }, + "target": { + "description": "Output only. Server-defined resource path for the target of the operation.", + "readOnly": true, + "type": "string" + }, + "verb": { + "description": "Output only. Name of the verb executed by the operation.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "SAMLParams": { + "description": "Message storing SAML params to enable Google as IDP.", + "id": "SAMLParams", + "properties": { + "certificate": { + "description": "SAML certificate", + "type": "string" + }, + "entityId": { + "description": "Entity id URL", + "type": "string" + }, + "ssoUri": { + "description": "Single sign-on URL", + "type": "string" + }, + "userEmail": { + "description": "Email address of the first admin users.", + "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", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + }, + "URIs": { + "description": "Message storing the URIs of the ContactCenter.", + "id": "URIs", + "properties": { + "chatBotUri": { + "description": "Chat Bot Uri of the ContactCenter", + "type": "string" + }, + "mediaUri": { + "description": "Media Uri of the ContactCenter.", + "type": "string" + }, + "rootUri": { + "description": "Root Uri of the ContactCenter.", + "type": "string" + }, + "virtualAgentStreamingServiceUri": { + "description": "Virtual Agent Streaming Service Uri of the ContactCenter.", + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Contact Center AI Platform API", + "version": "v1alpha1", + "version_module": true +} \ No newline at end of file diff --git a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go new file mode 100644 index 00000000000..415f42e480a --- /dev/null +++ b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go @@ -0,0 +1,2940 @@ +// Copyright 2023 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package contactcenteraiplatform provides access to the Contact Center AI Platform API. +// +// For product documentation, see: https://cloud.google.com/solutions/contact-center-ai-platform +// +// # Creating a client +// +// Usage example: +// +// import "google.golang.org/api/contactcenteraiplatform/v1alpha1" +// ... +// ctx := context.Background() +// contactcenteraiplatformService, err := contactcenteraiplatform.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// # Other authentication options +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// contactcenteraiplatformService, err := contactcenteraiplatform.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// contactcenteraiplatformService, err := contactcenteraiplatform.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package contactcenteraiplatform // import "google.golang.org/api/contactcenteraiplatform/v1alpha1" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "contactcenteraiplatform:v1alpha1" +const apiName = "contactcenteraiplatform" +const apiVersion = "v1alpha1" +const basePath = "https://contactcenteraiplatform.googleapis.com/" +const mtlsBasePath = "https://contactcenteraiplatform.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // See, edit, configure, and delete your Google Cloud data and see the + // email address for your Google Account. + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := internaloption.WithDefaultScopes( + "https://www.googleapis.com/auth/cloud-platform", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Projects = NewProjectsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Projects *ProjectsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Locations = NewProjectsLocationsService(s) + return rs +} + +type ProjectsService struct { + s *Service + + Locations *ProjectsLocationsService +} + +func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.ContactCenters = NewProjectsLocationsContactCentersService(s) + rs.Operations = NewProjectsLocationsOperationsService(s) + return rs +} + +type ProjectsLocationsService struct { + s *Service + + ContactCenters *ProjectsLocationsContactCentersService + + Operations *ProjectsLocationsOperationsService +} + +func NewProjectsLocationsContactCentersService(s *Service) *ProjectsLocationsContactCentersService { + rs := &ProjectsLocationsContactCentersService{s: s} + return rs +} + +type ProjectsLocationsContactCentersService struct { + s *Service +} + +func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { + rs := &ProjectsLocationsOperationsService{s: s} + return rs +} + +type ProjectsLocationsOperationsService struct { + s *Service +} + +// CancelOperationRequest: The request message for +// Operations.CancelOperation. +type CancelOperationRequest struct { +} + +// ContactCenter: Message describing ContactCenter object +type ContactCenter struct { + // CcaipManagedUsers: Optional. Whether to enable users to be created in + // the CCAIP-instance concurrently to having users in Cloud identity + CcaipManagedUsers bool `json:"ccaipManagedUsers,omitempty"` + + // CreateTime: Output only. [Output only] Create time stamp + CreateTime string `json:"createTime,omitempty"` + + // CustomerDomainPrefix: Required. Immutable. At least 2 and max 16 char + // long, must conform to RFC 1035 + // (https://www.ietf.org/rfc/rfc1035.txt). + CustomerDomainPrefix string `json:"customerDomainPrefix,omitempty"` + + // DisplayName: Required. A user friendly name for the ContactCenter. + DisplayName string `json:"displayName,omitempty"` + + // InstanceConfig: The configuration of this instance, it is currently + // immutable once created. + InstanceConfig *InstanceConfig `json:"instanceConfig,omitempty"` + + // Labels: Labels as key value pairs + Labels map[string]string `json:"labels,omitempty"` + + // Name: name of resource + Name string `json:"name,omitempty"` + + // SamlParams: Optional. Params that sets up Google as IdP. + SamlParams *SAMLParams `json:"samlParams,omitempty"` + + // State: Output only. The state of this contact center. + // + // Possible values: + // "STATE_UNSPECIFIED" - The default value. This value is used if the + // state is omitted. + // "STATE_DEPLOYING" - State DEPLOYING + // "STATE_DEPLOYED" - State DEPLOYED + // "STATE_TERMINATING" - State TERMINATING + // "STATE_FAILED" - State FAILED + // "STATE_TERMINATING_FAILED" - State TERMINATING_FAILED + // "STATE_TERMINATED" - State TERMINATED + State string `json:"state,omitempty"` + + // UpdateTime: Output only. [Output only] Update time stamp + UpdateTime string `json:"updateTime,omitempty"` + + // Uris: Output only. URIs to access the deployed ContactCenters. + Uris *URIs `json:"uris,omitempty"` + + // UserEmail: Optional. Email address of the first admin users. + UserEmail string `json:"userEmail,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CcaipManagedUsers") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CcaipManagedUsers") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ContactCenter) MarshalJSON() ([]byte, error) { + type NoMethod ContactCenter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ContactCenterQuota: Represents a quota for contact centers. +type ContactCenterQuota struct { + // ContactCenterCountLimit: Reflects the count limit of contact centers + // on a billing account. + ContactCenterCountLimit int64 `json:"contactCenterCountLimit,omitempty"` + + // ContactCenterCountSum: Reflects the count sum of contact centers on a + // billing account. + ContactCenterCountSum int64 `json:"contactCenterCountSum,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "ContactCenterCountLimit") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ContactCenterCountLimit") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ContactCenterQuota) MarshalJSON() ([]byte, error) { + type NoMethod ContactCenterQuota + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, 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 { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// InstanceConfig: Message storing the instance configuration. +type InstanceConfig struct { + // InstanceSize: The instance size of this the instance configuration. + // + // Possible values: + // "INSTANCE_SIZE_UNSPECIFIED" - The default value. This value is used + // if the state is omitted. + // "STANDARD_SMALL" - Instance Size STANDARD_SMALL. + // "STANDARD_MEDIUM" - Instance Size STANDARD_MEDIUM. + // "STANDARD_LARGE" - Instance Size STANDARD_LARGE. + InstanceSize string `json:"instanceSize,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InstanceSize") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "InstanceSize") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *InstanceConfig) MarshalJSON() ([]byte, error) { + type NoMethod InstanceConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListContactCentersResponse: Message for response to listing +// ContactCenters +type ListContactCentersResponse struct { + // ContactCenters: The list of ContactCenter + ContactCenters []*ContactCenter `json:"contactCenters,omitempty"` + + // NextPageToken: A token identifying a page of results the server + // should return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ContactCenters") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ContactCenters") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ListContactCentersResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListContactCentersResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListLocationsResponse: The response message for +// Locations.ListLocations. +type ListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in + // the request. + Locations []*Location `json:"locations,omitempty"` + + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Locations") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Locations") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListLocationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListOperationsResponse: The response message for +// Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*Operation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Location: A resource that represents Google Cloud Platform location. +type Location struct { + // DisplayName: The friendly name for this location, typically a nearby + // city name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` + + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} + Labels map[string]string `json:"labels,omitempty"` + + // LocationId: The canonical id for this location. For example: + // "us-east1". + LocationId string `json:"locationId,omitempty"` + + // Metadata: Service-specific metadata. For example the available + // capacity at the given location. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Location) MarshalJSON() ([]byte, error) { + type NoMethod Location + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Operation: This resource represents a long-running operation that is +// the result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure or + // cancellation. + Error *Status `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Done") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// OperationMetadata: Represents the metadata of the long-running +// operation. +type OperationMetadata struct { + // ApiVersion: Output only. API version used to start the operation. + ApiVersion string `json:"apiVersion,omitempty"` + + // ContactCenter: Contact center information for this request + ContactCenter *ContactCenter `json:"contactCenter,omitempty"` + + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // RequestedCancellation: Output only. Identifies whether the user has + // requested cancellation of the operation. Operations that have been + // cancelled successfully have Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + RequestedCancellation bool `json:"requestedCancellation,omitempty"` + + // StatusMessage: Output only. Human-readable status of the operation, + // if any. + StatusMessage string `json:"statusMessage,omitempty"` + + // Target: Output only. Server-defined resource path for the target of + // the operation. + Target string `json:"target,omitempty"` + + // Verb: Output only. Name of the verb executed by the operation. + Verb string `json:"verb,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApiVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ApiVersion") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *OperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod OperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SAMLParams: Message storing SAML params to enable Google as IDP. +type SAMLParams struct { + // Certificate: SAML certificate + Certificate string `json:"certificate,omitempty"` + + // EntityId: Entity id URL + EntityId string `json:"entityId,omitempty"` + + // SsoUri: Single sign-on URL + SsoUri string `json:"ssoUri,omitempty"` + + // UserEmail: Email address of the first admin users. + UserEmail string `json:"userEmail,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Certificate") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Certificate") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SAMLParams) MarshalJSON() ([]byte, error) { + type NoMethod SAMLParams + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each +// `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). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + 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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// URIs: Message storing the URIs of the ContactCenter. +type URIs struct { + // ChatBotUri: Chat Bot Uri of the ContactCenter + ChatBotUri string `json:"chatBotUri,omitempty"` + + // MediaUri: Media Uri of the ContactCenter. + MediaUri string `json:"mediaUri,omitempty"` + + // RootUri: Root Uri of the ContactCenter. + RootUri string `json:"rootUri,omitempty"` + + // VirtualAgentStreamingServiceUri: Virtual Agent Streaming Service Uri + // of the ContactCenter. + VirtualAgentStreamingServiceUri string `json:"virtualAgentStreamingServiceUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ChatBotUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ChatBotUri") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *URIs) MarshalJSON() ([]byte, error) { + type NoMethod URIs + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "contactcenteraiplatform.projects.queryContactCenterQuota": + +type ProjectsQueryContactCenterQuotaCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// QueryContactCenterQuota: Queries the contact center quota, an +// aggregation over all the projects, that belongs to the billing +// account, which the input project belongs to. +// +// - parent: Parent project resource id. +func (r *ProjectsService) QueryContactCenterQuota(parent string) *ProjectsQueryContactCenterQuotaCall { + c := &ProjectsQueryContactCenterQuotaCall{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 information. +func (c *ProjectsQueryContactCenterQuotaCall) Fields(s ...googleapi.Field) *ProjectsQueryContactCenterQuotaCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsQueryContactCenterQuotaCall) IfNoneMatch(entityTag string) *ProjectsQueryContactCenterQuotaCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsQueryContactCenterQuotaCall) Context(ctx context.Context) *ProjectsQueryContactCenterQuotaCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsQueryContactCenterQuotaCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsQueryContactCenterQuotaCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}:queryContactCenterQuota") + 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 "contactcenteraiplatform.projects.queryContactCenterQuota" call. +// Exactly one of *ContactCenterQuota or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ContactCenterQuota.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 *ProjectsQueryContactCenterQuotaCall) Do(opts ...googleapi.CallOption) (*ContactCenterQuota, 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 := &ContactCenterQuota{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Queries the contact center quota, an aggregation over all the projects, that belongs to the billing account, which the input project belongs to.", + // "flatPath": "v1alpha1/projects/{projectsId}:queryContactCenterQuota", + // "httpMethod": "GET", + // "id": "contactcenteraiplatform.projects.queryContactCenterQuota", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Parent project resource id.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+parent}:queryContactCenterQuota", + // "response": { + // "$ref": "ContactCenterQuota" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "contactcenteraiplatform.projects.locations.get": + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +// +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+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 "contactcenteraiplatform.projects.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, 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 := &Location{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about a location.", + // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "contactcenteraiplatform.projects.locations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name for the location.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+name}", + // "response": { + // "$ref": "Location" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "contactcenteraiplatform.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +// +// - name: The resource that owns the locations collection, if +// applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// received from the `next_page_token` field in the response. Send that +// page token to receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}/locations") + 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 "contactcenteraiplatform.projects.locations.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, 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 := &ListLocationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v1alpha1/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "contactcenteraiplatform.projects.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return. If not set, the service selects a default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+name}/locations", + // "response": { + // "$ref": "ListLocationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// 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 *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "contactcenteraiplatform.projects.locations.queryContactCenterQuota": + +type ProjectsLocationsQueryContactCenterQuotaCall struct { + s *Service + parent string + locationsId string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// QueryContactCenterQuota: Queries the contact center quota, an +// aggregation over all the projects, that belongs to the billing +// account, which the input project belongs to. +// +// - locationsId: . +// - parent: Parent project resource id. +func (r *ProjectsLocationsService) QueryContactCenterQuota(parent string, locationsId string) *ProjectsLocationsQueryContactCenterQuotaCall { + c := &ProjectsLocationsQueryContactCenterQuotaCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.locationsId = locationsId + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsQueryContactCenterQuotaCall) Fields(s ...googleapi.Field) *ProjectsLocationsQueryContactCenterQuotaCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsQueryContactCenterQuotaCall) IfNoneMatch(entityTag string) *ProjectsLocationsQueryContactCenterQuotaCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsQueryContactCenterQuotaCall) Context(ctx context.Context) *ProjectsLocationsQueryContactCenterQuotaCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsQueryContactCenterQuotaCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsQueryContactCenterQuotaCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/locations/{locationsId}:queryContactCenterQuota") + 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, + "locationsId": c.locationsId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenteraiplatform.projects.locations.queryContactCenterQuota" call. +// Exactly one of *ContactCenterQuota or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ContactCenterQuota.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 *ProjectsLocationsQueryContactCenterQuotaCall) Do(opts ...googleapi.CallOption) (*ContactCenterQuota, 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 := &ContactCenterQuota{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Queries the contact center quota, an aggregation over all the projects, that belongs to the billing account, which the input project belongs to.", + // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}:queryContactCenterQuota", + // "httpMethod": "GET", + // "id": "contactcenteraiplatform.projects.locations.queryContactCenterQuota", + // "parameterOrder": [ + // "parent", + // "locationsId" + // ], + // "parameters": { + // "locationsId": { + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "parent": { + // "description": "Required. Parent project resource id.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+parent}/locations/{locationsId}:queryContactCenterQuota", + // "response": { + // "$ref": "ContactCenterQuota" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "contactcenteraiplatform.projects.locations.contactCenters.create": + +type ProjectsLocationsContactCentersCreateCall struct { + s *Service + parent string + contactcenter *ContactCenter + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new ContactCenter in a given project and location. +// +// - parent: Value for parent. +func (r *ProjectsLocationsContactCentersService) Create(parent string, contactcenter *ContactCenter) *ProjectsLocationsContactCentersCreateCall { + c := &ProjectsLocationsContactCentersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.contactcenter = contactcenter + return c +} + +// ContactCenterId sets the optional parameter "contactCenterId": +// Required. Id of the requesting object If auto-generating Id +// server-side, remove this field and contact_center_id from the +// method_signature of Create RPC +func (c *ProjectsLocationsContactCentersCreateCall) ContactCenterId(contactCenterId string) *ProjectsLocationsContactCentersCreateCall { + c.urlParams_.Set("contactCenterId", contactCenterId) + 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. The server will guarantee +// that for at least 60 minutes since the first request. For example, +// consider a situation where you make an initial request and t he +// 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 *ProjectsLocationsContactCentersCreateCall) RequestId(requestId string) *ProjectsLocationsContactCentersCreateCall { + 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 information. +func (c *ProjectsLocationsContactCentersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsContactCentersCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsContactCentersCreateCall) Context(ctx context.Context) *ProjectsLocationsContactCentersCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsContactCentersCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsContactCentersCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.contactcenter) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/contactCenters") + 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 "contactcenteraiplatform.projects.locations.contactCenters.create" call. +// Exactly one of *Operation or error will be non-nil. 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 *ProjectsLocationsContactCentersCreateCall) 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 + // { + // "description": "Creates a new ContactCenter in a given project and location.", + // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/contactCenters", + // "httpMethod": "POST", + // "id": "contactcenteraiplatform.projects.locations.contactCenters.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "contactCenterId": { + // "description": "Required. Id of the requesting object If auto-generating Id server-side, remove this field and contact_center_id from the method_signature of Create RPC", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Value for parent.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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": "v1alpha1/{+parent}/contactCenters", + // "request": { + // "$ref": "ContactCenter" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "contactcenteraiplatform.projects.locations.contactCenters.delete": + +type ProjectsLocationsContactCentersDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single ContactCenter. +// +// - name: Name of the resource. +func (r *ProjectsLocationsContactCentersService) Delete(name string) *ProjectsLocationsContactCentersDeleteCall { + c := &ProjectsLocationsContactCentersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + 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. The server will guarantee +// that for at least 60 minutes after the first request. For example, +// consider a situation where you make an initial request and t he +// 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 *ProjectsLocationsContactCentersDeleteCall) RequestId(requestId string) *ProjectsLocationsContactCentersDeleteCall { + 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 information. +func (c *ProjectsLocationsContactCentersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsContactCentersDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsContactCentersDeleteCall) Context(ctx context.Context) *ProjectsLocationsContactCentersDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsContactCentersDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsContactCentersDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+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 "contactcenteraiplatform.projects.locations.contactCenters.delete" call. +// Exactly one of *Operation or error will be non-nil. 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 *ProjectsLocationsContactCentersDeleteCall) 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 + // { + // "description": "Deletes a single ContactCenter.", + // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/contactCenters/{contactCentersId}", + // "httpMethod": "DELETE", + // "id": "contactcenteraiplatform.projects.locations.contactCenters.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the resource", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/contactCenters/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. 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. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and t he 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": "v1alpha1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "contactcenteraiplatform.projects.locations.contactCenters.get": + +type ProjectsLocationsContactCentersGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single ContactCenter. +// +// - name: Name of the resource. +func (r *ProjectsLocationsContactCentersService) Get(name string) *ProjectsLocationsContactCentersGetCall { + c := &ProjectsLocationsContactCentersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsContactCentersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsContactCentersGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsContactCentersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsContactCentersGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsContactCentersGetCall) Context(ctx context.Context) *ProjectsLocationsContactCentersGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsContactCentersGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsContactCentersGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+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 "contactcenteraiplatform.projects.locations.contactCenters.get" call. +// Exactly one of *ContactCenter or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *ContactCenter.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 *ProjectsLocationsContactCentersGetCall) Do(opts ...googleapi.CallOption) (*ContactCenter, 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 := &ContactCenter{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets details of a single ContactCenter.", + // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/contactCenters/{contactCentersId}", + // "httpMethod": "GET", + // "id": "contactcenteraiplatform.projects.locations.contactCenters.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the resource", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/contactCenters/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+name}", + // "response": { + // "$ref": "ContactCenter" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "contactcenteraiplatform.projects.locations.contactCenters.list": + +type ProjectsLocationsContactCentersListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists ContactCenters in a given project and location. +// +// - parent: Parent value for ListContactCentersRequest. +func (r *ProjectsLocationsContactCentersService) List(parent string) *ProjectsLocationsContactCentersListCall { + c := &ProjectsLocationsContactCentersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering results +func (c *ProjectsLocationsContactCentersListCall) Filter(filter string) *ProjectsLocationsContactCentersListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Hint for how to order +// the results +func (c *ProjectsLocationsContactCentersListCall) OrderBy(orderBy string) *ProjectsLocationsContactCentersListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Server may return fewer items than requested. If unspecified, server +// will pick an appropriate default. +func (c *ProjectsLocationsContactCentersListCall) PageSize(pageSize int64) *ProjectsLocationsContactCentersListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results the server should return. +func (c *ProjectsLocationsContactCentersListCall) PageToken(pageToken string) *ProjectsLocationsContactCentersListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsContactCentersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsContactCentersListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsContactCentersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsContactCentersListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsContactCentersListCall) Context(ctx context.Context) *ProjectsLocationsContactCentersListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsContactCentersListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsContactCentersListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/contactCenters") + 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 "contactcenteraiplatform.projects.locations.contactCenters.list" call. +// Exactly one of *ListContactCentersResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListContactCentersResponse.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 *ProjectsLocationsContactCentersListCall) Do(opts ...googleapi.CallOption) (*ListContactCentersResponse, 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 := &ListContactCentersResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists ContactCenters in a given project and location.", + // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/contactCenters", + // "httpMethod": "GET", + // "id": "contactcenteraiplatform.projects.locations.contactCenters.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Filtering results", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Hint for how to order the results", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A token identifying a page of results the server should return.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Parent value for ListContactCentersRequest", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+parent}/contactCenters", + // "response": { + // "$ref": "ListContactCentersResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// 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 *ProjectsLocationsContactCentersListCall) Pages(ctx context.Context, f func(*ListContactCentersResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "contactcenteraiplatform.projects.locations.contactCenters.patch": + +type ProjectsLocationsContactCentersPatchCall struct { + s *Service + name string + contactcenter *ContactCenter + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of a single ContactCenter. +// +// - name: name of resource. +func (r *ProjectsLocationsContactCentersService) Patch(name string, contactcenter *ContactCenter) *ProjectsLocationsContactCentersPatchCall { + c := &ProjectsLocationsContactCentersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.contactcenter = contactcenter + 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. The server will guarantee +// that for at least 60 minutes since the first request. For example, +// consider a situation where you make an initial request and t he +// 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 *ProjectsLocationsContactCentersPatchCall) RequestId(requestId string) *ProjectsLocationsContactCentersPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Field +// mask is used to specify the fields to be overwritten in the +// ContactCenter resource by the update. The fields specified in the +// update_mask are relative to the resource, not the full request. A +// field will be overwritten if it is in the mask. If the user does not +// provide a mask then all fields will be overwritten. +func (c *ProjectsLocationsContactCentersPatchCall) UpdateMask(updateMask string) *ProjectsLocationsContactCentersPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsContactCentersPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsContactCentersPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsContactCentersPatchCall) Context(ctx context.Context) *ProjectsLocationsContactCentersPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsContactCentersPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsContactCentersPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.contactcenter) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenteraiplatform.projects.locations.contactCenters.patch" call. +// Exactly one of *Operation or error will be non-nil. 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 *ProjectsLocationsContactCentersPatchCall) 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 + // { + // "description": "Updates the parameters of a single ContactCenter.", + // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/contactCenters/{contactCentersId}", + // "httpMethod": "PATCH", + // "id": "contactcenteraiplatform.projects.locations.contactCenters.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "name of resource", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/contactCenters/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. 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. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he 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" + // }, + // "updateMask": { + // "description": "Required. Field mask is used to specify the fields to be overwritten in the ContactCenter 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" + // } + // }, + // "path": "v1alpha1/{+name}", + // "request": { + // "$ref": "ContactCenter" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "contactcenteraiplatform.projects.locations.operations.cancel": + +type ProjectsLocationsOperationsCancelCall struct { + s *Service + name string + canceloperationrequest *CancelOperationRequest + 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, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.canceloperationrequest = canceloperationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *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. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *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 := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+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 "contactcenteraiplatform.projects.locations.operations.cancel" call. +// Exactly one of *Empty or error will be non-nil. 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 + // { + // "description": "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`.", + // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "contactcenteraiplatform.projects.locations.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+name}:cancel", + // "request": { + // "$ref": "CancelOperationRequest" + // }, + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "contactcenteraiplatform.projects.locations.operations.delete": + +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 information. +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. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *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 := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+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 "contactcenteraiplatform.projects.locations.operations.delete" call. +// Exactly one of *Empty or error will be non-nil. 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 + // { + // "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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "contactcenteraiplatform.projects.locations.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "contactcenteraiplatform.projects.locations.operations.get": + +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 information. +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *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 := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+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 "contactcenteraiplatform.projects.locations.operations.get" call. +// Exactly one of *Operation or error will be non-nil. 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 *ProjectsLocationsOperationsGetCall) 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 + // { + // "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": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "contactcenteraiplatform.projects.locations.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "contactcenteraiplatform.projects.locations.operations.list": + +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`. NOTE: the `name` binding allows API services to +// override the binding to use different resource name schemes, such as +// `users/*/operations`. To override the binding, API services can add a +// binding such as "/v1/{name=users/*}/operations" to their service +// configuration. For backwards compatibility, the default name includes +// the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations +// collection id. +// +// - 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) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *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 := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+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 "contactcenteraiplatform.projects.locations.operations.list" call. +// Exactly one of *ListOperationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.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) (*ListOperationsResponse, 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 := &ListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "contactcenteraiplatform.projects.locations.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+name}/operations", + // "response": { + // "$ref": "ListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// 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(*ListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} diff --git a/contactcenterinsights/v1/contactcenterinsights-gen.go b/contactcenterinsights/v1/contactcenterinsights-gen.go index 23743823ab9..0f85d0e84c1 100644 --- a/contactcenterinsights/v1/contactcenterinsights-gen.go +++ b/contactcenterinsights/v1/contactcenterinsights-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index 0251d55c7bd..8e567d16870 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index d6987c60b58..c9b4db7cd43 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2512,7 +2512,7 @@ } } }, - "revision": "20221110", + "revision": "20230104", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2985,6 +2985,10 @@ "description": "[Output only] The IP address of this cluster's master endpoint. The endpoint can be accessed from the internet at `https://username:password@endpoint/`. See the `masterAuth` property of this resource for username and password information.", "type": "string" }, + "etag": { + "description": "This checksum is computed by the server based on the value of cluster fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.", + "type": "string" + }, "expireTime": { "description": "[Output only] The time the cluster will be automatically deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.", "type": "string" @@ -3513,6 +3517,10 @@ "desiredWorkloadIdentityConfig": { "$ref": "WorkloadIdentityConfig", "description": "Configuration for Workload Identity." + }, + "etag": { + "description": "The current etag of the cluster. If an etag is provided and does not match the current etag of the cluster, update will be blocked and an ABORTED error will be returned.", + "type": "string" } }, "type": "object" @@ -3781,6 +3789,18 @@ }, "type": "object" }, + "EphemeralStorageLocalSsdConfig": { + "description": "EphemeralStorageLocalSsdConfig contains configuration for the node ephemeral storage using Local SSDs.", + "id": "EphemeralStorageLocalSsdConfig", + "properties": { + "localSsdCount": { + "description": "Number of local SSDs to use to back ephemeral storage. Uses NVMe interfaces. Each local SSD is 375 GB in size. If zero, it means to disable using local SSDs as ephemeral storage. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "FastSocket": { "description": "Configuration of Fast Socket feature.", "id": "FastSocket", @@ -4376,6 +4396,18 @@ }, "type": "object" }, + "LocalNvmeSsdBlockConfig": { + "description": "LocalNvmeSsdBlockConfig contains configuration for using raw-block local NVMe SSDs", + "id": "LocalNvmeSsdBlockConfig", + "properties": { + "localSsdCount": { + "description": "The number of raw-block local NVMe SSD disks to be attached to the node. Each local SSD is 375 GB in size. If zero, it means no raw-block local NVMe SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "Location": { "description": "Location returns the location name, and if the location is recommended for GKE cluster scheduling.", "id": "Location", @@ -4871,6 +4903,10 @@ "$ref": "EphemeralStorageConfig", "description": "Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk." }, + "ephemeralStorageLocalSsdConfig": { + "$ref": "EphemeralStorageLocalSsdConfig", + "description": "Parameters for the node ephemeral storage using Local SSDs. If unspecified, ephemeral storage is backed by the boot disk. This field is functionally equivalent to the ephemeral_storage_config" + }, "fastSocket": { "$ref": "FastSocket", "description": "Enable or disable NCCL fast socket for the node pool." @@ -4902,6 +4938,10 @@ "$ref": "LinuxNodeConfig", "description": "Parameters that can be configured on Linux nodes." }, + "localNvmeSsdBlockConfig": { + "$ref": "LocalNvmeSsdBlockConfig", + "description": "Parameters for using raw-block Local NVMe SSDs." + }, "localSsdCount": { "description": "The number of local SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.", "format": "int32", @@ -4982,6 +5022,10 @@ }, "type": "array" }, + "windowsNodeConfig": { + "$ref": "WindowsNodeConfig", + "description": "Parameters that can be configured on Windows nodes." + }, "workloadMetadataConfig": { "$ref": "WorkloadMetadataConfig", "description": "The workload metadata configuration for this node." @@ -5107,6 +5151,10 @@ "$ref": "NodeConfig", "description": "The node configuration of the pool." }, + "etag": { + "description": "This checksum is computed by the server based on the value of node pool fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.", + "type": "string" + }, "initialNodeCount": { "description": "The initial node count for the pool. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota.", "format": "int32", @@ -6624,6 +6672,10 @@ "$ref": "ConfidentialNodes", "description": "Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled." }, + "etag": { + "description": "The current etag of the node pool. If an etag is provided and does not match the current etag of the node pool, update will be blocked and an ABORTED error will be returned.", + "type": "string" + }, "fastSocket": { "$ref": "FastSocket", "description": "Enable or disable NCCL fast socket for the node pool." @@ -6699,6 +6751,10 @@ "$ref": "UpgradeSettings", "description": "Upgrade settings control disruption and speed of the upgrade." }, + "windowsNodeConfig": { + "$ref": "WindowsNodeConfig", + "description": "Parameters that can be configured on Windows nodes." + }, "workloadMetadataConfig": { "$ref": "WorkloadMetadataConfig", "description": "The desired workload metadata config for the node pool." @@ -6909,6 +6965,27 @@ }, "type": "object" }, + "WindowsNodeConfig": { + "description": "Parameters that can be configured on Windows nodes. Windows Node Config that define the parameters that will be used to configure the Windows node pool settings", + "id": "WindowsNodeConfig", + "properties": { + "osVersion": { + "description": "OSVersion specifies the Windows node config to be used on the node", + "enum": [ + "OS_VERSION_UNSPECIFIED", + "OS_VERSION_LTSC2019", + "OS_VERSION_LTSC2022" + ], + "enumDescriptions": [ + "When OSVersion is not specified", + "LTSC2019 specifies to use LTSC2019 as the Windows Servercore Base Image", + "LTSC2022 specifies to use LTSC2022 as the Windows Servercore Base Image" + ], + "type": "string" + } + }, + "type": "object" + }, "WindowsVersion": { "description": "Windows server version.", "id": "WindowsVersion", diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index 9bb00bc6ee2..4197803f9a8 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -1072,6 +1072,11 @@ type Cluster struct { // of this resource for username and password information. Endpoint string `json:"endpoint,omitempty"` + // Etag: This checksum is computed by the server based on the value of + // cluster fields, and may be sent on update requests to ensure the + // client has an up-to-date value before proceeding. + Etag string `json:"etag,omitempty"` + // ExpireTime: [Output only] The time the cluster will be automatically // deleted in RFC3339 (https://www.ietf.org/rfc/rfc3339.txt) text // format. @@ -1710,6 +1715,11 @@ type ClusterUpdate struct { // DesiredWorkloadIdentityConfig: Configuration for Workload Identity. DesiredWorkloadIdentityConfig *WorkloadIdentityConfig `json:"desiredWorkloadIdentityConfig,omitempty"` + // Etag: The current etag of the cluster. If an etag is provided and + // does not match the current etag of the cluster, update will be + // blocked and an ABORTED error will be returned. + Etag string `json:"etag,omitempty"` + // ForceSendFields is a list of field names (e.g. "DesiredAddonsConfig") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2273,6 +2283,42 @@ func (s *EphemeralStorageConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// EphemeralStorageLocalSsdConfig: EphemeralStorageLocalSsdConfig +// contains configuration for the node ephemeral storage using Local +// SSDs. +type EphemeralStorageLocalSsdConfig struct { + // LocalSsdCount: Number of local SSDs to use to back ephemeral storage. + // Uses NVMe interfaces. Each local SSD is 375 GB in size. If zero, it + // means to disable using local SSDs as ephemeral storage. The limit for + // this value is dependent upon the maximum number of disks available on + // a machine per zone. See: + // https://cloud.google.com/compute/docs/disks/local-ssd for more + // information. + LocalSsdCount int64 `json:"localSsdCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LocalSsdCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LocalSsdCount") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EphemeralStorageLocalSsdConfig) MarshalJSON() ([]byte, error) { + type NoMethod EphemeralStorageLocalSsdConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // FastSocket: Configuration of Fast Socket feature. type FastSocket struct { // Enabled: Whether Fast Socket features are enabled in the node pool. @@ -3392,6 +3438,41 @@ func (s *ListUsableSubnetworksResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LocalNvmeSsdBlockConfig: LocalNvmeSsdBlockConfig contains +// configuration for using raw-block local NVMe SSDs +type LocalNvmeSsdBlockConfig struct { + // LocalSsdCount: The number of raw-block local NVMe SSD disks to be + // attached to the node. Each local SSD is 375 GB in size. If zero, it + // means no raw-block local NVMe SSD disks to be attached to the node. + // The limit for this value is dependent upon the maximum number of + // disks available on a machine per zone. See: + // https://cloud.google.com/compute/docs/disks/local-ssd for more + // information. + LocalSsdCount int64 `json:"localSsdCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LocalSsdCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LocalSsdCount") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LocalNvmeSsdBlockConfig) MarshalJSON() ([]byte, error) { + type NoMethod LocalNvmeSsdBlockConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Location: Location returns the location name, and if the location is // recommended for GKE cluster scheduling. type Location struct { @@ -4258,6 +4339,12 @@ type NodeConfig struct { // disk. EphemeralStorageConfig *EphemeralStorageConfig `json:"ephemeralStorageConfig,omitempty"` + // EphemeralStorageLocalSsdConfig: Parameters for the node ephemeral + // storage using Local SSDs. If unspecified, ephemeral storage is backed + // by the boot disk. This field is functionally equivalent to the + // ephemeral_storage_config + EphemeralStorageLocalSsdConfig *EphemeralStorageLocalSsdConfig `json:"ephemeralStorageLocalSsdConfig,omitempty"` + // FastSocket: Enable or disable NCCL fast socket for the node pool. FastSocket *FastSocket `json:"fastSocket,omitempty"` @@ -4287,6 +4374,10 @@ type NodeConfig struct { // LinuxNodeConfig: Parameters that can be configured on Linux nodes. LinuxNodeConfig *LinuxNodeConfig `json:"linuxNodeConfig,omitempty"` + // LocalNvmeSsdBlockConfig: Parameters for using raw-block Local NVMe + // SSDs. + LocalNvmeSsdBlockConfig *LocalNvmeSsdBlockConfig `json:"localNvmeSsdBlockConfig,omitempty"` + // LocalSsdCount: The number of local SSD disks to be attached to the // node. The limit for this value is dependent upon the maximum number // of disks available on a machine per zone. See: @@ -4389,6 +4480,10 @@ type NodeConfig struct { // https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ Taints []*NodeTaint `json:"taints,omitempty"` + // WindowsNodeConfig: Parameters that can be configured on Windows + // nodes. + WindowsNodeConfig *WindowsNodeConfig `json:"windowsNodeConfig,omitempty"` + // WorkloadMetadataConfig: The workload metadata configuration for this // node. WorkloadMetadataConfig *WorkloadMetadataConfig `json:"workloadMetadataConfig,omitempty"` @@ -4664,6 +4759,11 @@ type NodePool struct { // Config: The node configuration of the pool. Config *NodeConfig `json:"config,omitempty"` + // Etag: This checksum is computed by the server based on the value of + // node pool fields, and may be sent on update requests to ensure the + // client has an up-to-date value before proceeding. + Etag string `json:"etag,omitempty"` + // InitialNodeCount: The initial node count for the pool. You must // ensure that your Compute Engine resource quota // (https://cloud.google.com/compute/quotas) is sufficient for this @@ -7213,6 +7313,11 @@ type UpdateNodePoolRequest struct { // node pool will be Confidential VM once enabled. ConfidentialNodes *ConfidentialNodes `json:"confidentialNodes,omitempty"` + // Etag: The current etag of the node pool. If an etag is provided and + // does not match the current etag of the node pool, update will be + // blocked and an ABORTED error will be returned. + Etag string `json:"etag,omitempty"` + // FastSocket: Enable or disable NCCL fast socket for the node pool. FastSocket *FastSocket `json:"fastSocket,omitempty"` @@ -7297,6 +7402,10 @@ type UpdateNodePoolRequest struct { // upgrade. UpgradeSettings *UpgradeSettings `json:"upgradeSettings,omitempty"` + // WindowsNodeConfig: Parameters that can be configured on Windows + // nodes. + WindowsNodeConfig *WindowsNodeConfig `json:"windowsNodeConfig,omitempty"` + // WorkloadMetadataConfig: The desired workload metadata config for the // node pool. WorkloadMetadataConfig *WorkloadMetadataConfig `json:"workloadMetadataConfig,omitempty"` @@ -7659,6 +7768,44 @@ func (s *VirtualNIC) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// WindowsNodeConfig: Parameters that can be configured on Windows +// nodes. Windows Node Config that define the parameters that will be +// used to configure the Windows node pool settings +type WindowsNodeConfig struct { + // OsVersion: OSVersion specifies the Windows node config to be used on + // the node + // + // Possible values: + // "OS_VERSION_UNSPECIFIED" - When OSVersion is not specified + // "OS_VERSION_LTSC2019" - LTSC2019 specifies to use LTSC2019 as the + // Windows Servercore Base Image + // "OS_VERSION_LTSC2022" - LTSC2022 specifies to use LTSC2022 as the + // Windows Servercore Base Image + OsVersion string `json:"osVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OsVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OsVersion") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WindowsNodeConfig) MarshalJSON() ([]byte, error) { + type NoMethod WindowsNodeConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // WindowsVersion: Windows server version. type WindowsVersion struct { // ImageType: Windows server image type diff --git a/containeranalysis/v1/containeranalysis-gen.go b/containeranalysis/v1/containeranalysis-gen.go index 43bd835c736..7a4cc0da916 100644 --- a/containeranalysis/v1/containeranalysis-gen.go +++ b/containeranalysis/v1/containeranalysis-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/containeranalysis/v1alpha1/containeranalysis-gen.go b/containeranalysis/v1alpha1/containeranalysis-gen.go index 82ca96f10f7..03abbb85807 100644 --- a/containeranalysis/v1alpha1/containeranalysis-gen.go +++ b/containeranalysis/v1alpha1/containeranalysis-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/containeranalysis/v1beta1/containeranalysis-gen.go b/containeranalysis/v1beta1/containeranalysis-gen.go index 8301b8c9d77..77180610222 100644 --- a/containeranalysis/v1beta1/containeranalysis-gen.go +++ b/containeranalysis/v1beta1/containeranalysis-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/content/v2.1/content-api.json b/content/v2.1/content-api.json index 45a4c279420..7dec320abca 100644 --- a/content/v2.1/content-api.json +++ b/content/v2.1/content-api.json @@ -5953,7 +5953,7 @@ } } }, - "revision": "20221128", + "revision": "20221228", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { @@ -14817,7 +14817,7 @@ "type": "object" }, "RepricingRule": { - "description": "Represents a repricing rule. A repricing rule is used by shopping serving to adjust transactable offer prices if conditions are met. Next ID: 24", + "description": "Represents a repricing rule. A repricing rule is used by shopping serving to adjust transactable offer prices if conditions are met.", "id": "RepricingRule", "properties": { "cogsBasedRule": { diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index 20611fd86d6..c3995891564 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -15292,7 +15292,7 @@ func (s *RepricingProductReportBuyboxWinningProductStats) MarshalJSON() ([]byte, // RepricingRule: Represents a repricing rule. A repricing rule is used // by shopping serving to adjust transactable offer prices if conditions -// are met. Next ID: 24 +// are met. type RepricingRule struct { // CogsBasedRule: The rule definition for TYPE_COGS_BASED. Required when // the rule type is TYPE_COGS_BASED. diff --git a/contentwarehouse/v1/contentwarehouse-gen.go b/contentwarehouse/v1/contentwarehouse-gen.go index 2a6c58deb02..c84e98a927e 100644 --- a/contentwarehouse/v1/contentwarehouse-gen.go +++ b/contentwarehouse/v1/contentwarehouse-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/customsearch/v1/customsearch-gen.go b/customsearch/v1/customsearch-gen.go index 8fcddc834a7..e80fa4c3528 100644 --- a/customsearch/v1/customsearch-gen.go +++ b/customsearch/v1/customsearch-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/datacatalog/v1/datacatalog-api.json b/datacatalog/v1/datacatalog-api.json index 033eb2f2eb2..b3bed01bcc4 100644 --- a/datacatalog/v1/datacatalog-api.json +++ b/datacatalog/v1/datacatalog-api.json @@ -531,6 +531,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "import": { + "description": "Imports entries from some source (e.g. dump in a Cloud Storage bucket) to the Data Catalog. Dump here is a snapshot of the third-party system state, that needs to be ingested in the Data Catalog. Import of entries is a sync operation that reconciles state of the third-party system and Data Catalog. ImportEntries is a long-running operation done in the background, so this method returns long-running operation resource. The resource can be queried with Operations.GetOperation which contains metadata and response.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/entryGroups/{entryGroupsId}/entries:import", + "httpMethod": "POST", + "id": "datacatalog.projects.locations.entryGroups.entries.import", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Target entry group for ingested entries.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/entries:import", + "request": { + "$ref": "GoogleCloudDatacatalogV1ImportEntriesRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists entries. Note: Currently, this method can list only custom entries. To get a list of both custom and automatically created entries, use SearchCatalog.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/entryGroups/{entryGroupsId}/entries", @@ -1007,6 +1035,126 @@ } } }, + "operations": { + "methods": { + "cancel": { + "description": "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`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "datacatalog.projects.locations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "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}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "datacatalog.projects.locations.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "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}/operations/{operationsId}", + "httpMethod": "GET", + "id": "datacatalog.projects.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "datacatalog.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "tagTemplates": { "methods": { "create": { @@ -1953,7 +2101,7 @@ } } }, - "revision": "20221025", + "revision": "20221203", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -2183,6 +2331,10 @@ "description": "Required. Name of the column. Must be a UTF-8 string without dots (.). The maximum size is 64 bytes.", "type": "string" }, + "defaultValue": { + "description": "Optional. Default value for the column.", + "type": "string" + }, "description": { "description": "Optional. Description of the column. Default value is an empty string. The description must be a UTF-8 string with the maximum size of 2000 bytes.", "type": "string" @@ -2191,10 +2343,37 @@ "description": "Optional. Garbage collection policy for the column or column family. Applies to systems like Cloud Bigtable.", "type": "string" }, + "highestIndexingType": { + "description": "Optional. Most important inclusion of this column.", + "enum": [ + "INDEXING_TYPE_UNSPECIFIED", + "INDEXING_TYPE_NONE", + "INDEXING_TYPE_NON_UNIQUE", + "INDEXING_TYPE_UNIQUE", + "INDEXING_TYPE_PRIMARY_KEY" + ], + "enumDescriptions": [ + "Unspecified.", + "Column not a part of an index.", + "Column Part of non unique index.", + "Column part of unique index.", + "Column part of the primary key." + ], + "type": "string" + }, + "lookerColumnSpec": { + "$ref": "GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec", + "description": "Looker specific column info of this column." + }, "mode": { "description": "Optional. A column's mode indicates whether values in this column are required, nullable, or repeated. Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported. Default mode is `NULLABLE`.", "type": "string" }, + "ordinalPosition": { + "description": "Optional. Ordinal position", + "format": "int32", + "type": "integer" + }, "subcolumns": { "description": "Optional. Schema of sub-columns. A column can have zero or more sub-columns.", "items": { @@ -2209,6 +2388,45 @@ }, "type": "object" }, + "GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec": { + "description": "Column info specific to Looker System.", + "id": "GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec", + "properties": { + "type": { + "description": "Looker specific column type of this column.", + "enum": [ + "LOOKER_COLUMN_TYPE_UNSPECIFIED", + "DIMENSION", + "DIMENSION_GROUP", + "FILTER", + "MEASURE", + "PAREMETER" + ], + "enumDescriptions": [ + "Unspecified.", + "Dimension.", + "Dimension group - parent for Dimension.", + "Filter.", + "Measure.", + "Parameter." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1CommonUsageStats": { + "description": "Common statistics on the entry's usage. They can be set on any system.", + "id": "GoogleCloudDatacatalogV1CommonUsageStats", + "properties": { + "viewCount": { + "description": "View count in source system.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDatacatalogV1Contacts": { "description": "Contact people for the entry.", "id": "GoogleCloudDatacatalogV1Contacts", @@ -2298,6 +2516,10 @@ "description": "Specification that applies to a table resource. Valid only for entries with the `TABLE` type.", "id": "GoogleCloudDatacatalogV1DatabaseTableSpec", "properties": { + "databaseViewSpec": { + "$ref": "GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec", + "description": "Spec what aplies to tables that are actually views. Not set for \"real\" tables." + }, "dataplexTable": { "$ref": "GoogleCloudDatacatalogV1DataplexTableSpec", "description": "Output only. Fields specific to a Dataplex table and present only in the Dataplex table entries.", @@ -2320,6 +2542,35 @@ }, "type": "object" }, + "GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec": { + "description": "Specification that applies to database view.", + "id": "GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec", + "properties": { + "baseTable": { + "description": "Name of a singular table this view reflects one to one.", + "type": "string" + }, + "sqlQuery": { + "description": "SQL query used to generate this view.", + "type": "string" + }, + "viewType": { + "description": "Type of this view.", + "enum": [ + "VIEW_TYPE_UNSPECIFIED", + "STANDARD_VIEW", + "MATERIALIZED_VIEW" + ], + "enumDescriptions": [ + "Default unknown view type.", + "Standard view.", + "Materialized view." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDatacatalogV1DataplexExternalTable": { "description": "External table registered by Dataplex. Dataplex publishes data discovered from an asset into multiple other systems (BigQuery, DPMS) in form of tables. We call them \"external tables\". External tables are also synced into the Data Catalog. This message contains pointers to those external tables (fully qualified name, resource name et cetera) within the Data Catalog.", "id": "GoogleCloudDatacatalogV1DataplexExternalTable", @@ -2343,14 +2594,18 @@ "BIGQUERY", "CLOUD_PUBSUB", "DATAPROC_METASTORE", - "DATAPLEX" + "DATAPLEX", + "CLOUD_SQL", + "LOOKER" ], "enumDescriptions": [ "Default unknown system.", "BigQuery.", "Cloud Pub/Sub.", "Dataproc Metastore.", - "Dataplex." + "Dataplex.", + "Cloud Sql", + "Looker" ], "type": "string" } @@ -2442,14 +2697,14 @@ }, "databaseTableSpec": { "$ref": "GoogleCloudDatacatalogV1DatabaseTableSpec", - "description": "Specification that applies to a table resource. Valid only for entries with the `TABLE` type." + "description": "Specification that applies to a table resource. Valid only for entries with the `TABLE` or `EXPLORE` type." }, "description": { "description": "Entry description that can consist of several sentences or paragraphs that describe entry contents. The description must not contain Unicode non-characters as well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). The maximum size is 2000 bytes when encoded in UTF-8. Default value is an empty string.", "type": "string" }, "displayName": { - "description": "Display name of an entry. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can't start or end with spaces. The maximum size is 200 bytes when encoded in UTF-8. Default value is an empty string.", + "description": "Display name of an entry. The maximum size is 500 bytes when encoded in UTF-8. Default value is an empty string.", "type": "string" }, "filesetSpec": { @@ -2471,14 +2726,18 @@ "BIGQUERY", "CLOUD_PUBSUB", "DATAPROC_METASTORE", - "DATAPLEX" + "DATAPLEX", + "CLOUD_SQL", + "LOOKER" ], "enumDescriptions": [ "Default unknown system.", "BigQuery.", "Cloud Pub/Sub.", "Dataproc Metastore.", - "Dataplex." + "Dataplex.", + "Cloud Sql", + "Looker" ], "readOnly": true, "type": "string" @@ -2494,6 +2753,10 @@ "description": "The resource this metadata entry refers to. For Google Cloud Platform resources, `linked_resource` is the [Full Resource Name] (https://cloud.google.com/apis/design/resource_names#full_resource_name). For example, the `linked_resource` for a table resource from BigQuery is: `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` Output only when the entry is one of the types in the `EntryType` enum. For entries with a `user_specified_type`, this field is optional and defaults to an empty string. The resource string must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), periods (.), colons (:), slashes (/), dashes (-), and hashes (#). The maximum size is 200 bytes when encoded in UTF-8.", "type": "string" }, + "lookerSystemSpec": { + "$ref": "GoogleCloudDatacatalogV1LookerSystemSpec", + "description": "Specification that applies to Looker sysstem. Only settable when `user_specified_system` is equal to `LOOKER`" + }, "name": { "description": "Output only. The resource name of an entry in URL format. Note: The entry itself and its child resources might not be stored in the location specified in its name.", "readOnly": true, @@ -2516,6 +2779,10 @@ "$ref": "GoogleCloudDatacatalogV1SystemTimestamps", "description": "Timestamps from the underlying resource, not from the Data Catalog entry. Output only when the entry has a system listed in the `IntegratedSystem` enum. For entries with `user_specified_system`, this field is optional and defaults to an empty timestamp." }, + "sqlDatabaseSystemSpec": { + "$ref": "GoogleCloudDatacatalogV1SqlDatabaseSystemSpec", + "description": "Specification that applies to a relational database system. Only settable when `user_specified_system` is equal to `SQL_DATABASE`" + }, "type": { "description": "The type of the entry. Only used for entries with types listed in the `EntryType` enum. Currently, only `FILESET` enum value is allowed. All other entries created in Data Catalog must use the `user_specified_type`.", "enum": [ @@ -2530,7 +2797,11 @@ "ROUTINE", "LAKE", "ZONE", - "SERVICE" + "SERVICE", + "DATABASE_SCHEMA", + "DASHBOARD", + "EXPLORE", + "LOOK" ], "enumDescriptions": [ "Default unknown type.", @@ -2544,7 +2815,11 @@ "Output only. Routine, for example, a BigQuery routine.", "A Dataplex lake.", "A Dataplex zone.", - "A service, for example, a Dataproc Metastore service." + "A service, for example, a Dataproc Metastore service.", + "Schema within a relational database.", + "A Dashboard, for example from Looker.", + "A Looker Explore. For more information, see [Looker Explore API] (https://developers.looker.com/api/explorer/4.0/methods/LookmlModel/lookml_model_explore).", + "A Looker Look. For more information, see [Looker Look API] (https://developers.looker.com/api/explorer/4.0/methods/Look)." ], "type": "string" }, @@ -2720,6 +2995,66 @@ }, "type": "object" }, + "GoogleCloudDatacatalogV1ImportEntriesMetadata": { + "description": "Metadata message for long-running operation returned by the ImportEntries.", + "id": "GoogleCloudDatacatalogV1ImportEntriesMetadata", + "properties": { + "errors": { + "description": "Partial errors that are encountered during the ImportEntries operation. There is no guarantee that all the encountered errors are reported. However, if no errors are reported, it means that no errors were encountered.", + "items": { + "$ref": "Status" + }, + "type": "array" + }, + "state": { + "description": "State of the import operation.", + "enum": [ + "IMPORT_STATE_UNSPECIFIED", + "IMPORT_QUEUED", + "IMPORT_IN_PROGRESS", + "IMPORT_DONE", + "IMPORT_OBSOLETE" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The dump with entries has been queued for import.", + "The import of entries is in progress.", + "The import of entries has been finished.", + "The import of entries has been abandoned in favor of a newer request." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1ImportEntriesRequest": { + "description": "Request message for ImportEntries method.", + "id": "GoogleCloudDatacatalogV1ImportEntriesRequest", + "properties": { + "gcsBucketPath": { + "description": "Path to a Cloud Storage bucket that contains a dump ready for ingestion.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1ImportEntriesResponse": { + "description": "Response message for long-running operation returned by the ImportEntries.", + "id": "GoogleCloudDatacatalogV1ImportEntriesResponse", + "properties": { + "deletedEntriesCount": { + "description": "Number of entries deleted as a result of import operation.", + "format": "int64", + "type": "string" + }, + "upsertedEntriesCount": { + "description": "Cumulative number of entries created and entries updated as a result of import operation.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDatacatalogV1ImportTaxonomiesRequest": { "description": "Request message for ImportTaxonomies.", "id": "GoogleCloudDatacatalogV1ImportTaxonomiesRequest", @@ -2853,6 +3188,37 @@ }, "type": "object" }, + "GoogleCloudDatacatalogV1LookerSystemSpec": { + "description": "Specification that applies to entries that are part `LOOKER` system (user_specified_type)", + "id": "GoogleCloudDatacatalogV1LookerSystemSpec", + "properties": { + "parentInstanceDisplayName": { + "description": "Name of the parent Looker Instance. Empty if it does not exist.", + "type": "string" + }, + "parentInstanceId": { + "description": "ID of the parent Looker Instance. Empty if it does not exist. Example value: `someinstance.looker.com`", + "type": "string" + }, + "parentModelDisplayName": { + "description": "Name of the parent Model. Empty if it does not exist.", + "type": "string" + }, + "parentModelId": { + "description": "ID of the parent Model. Empty if it does not exist.", + "type": "string" + }, + "parentViewDisplayName": { + "description": "Name of the parent View. Empty if it does not exist.", + "type": "string" + }, + "parentViewId": { + "description": "ID of the parent View. Empty if it does not exist.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDatacatalogV1ModifyEntryContactsRequest": { "description": "Request message for ModifyEntryContacts.", "id": "GoogleCloudDatacatalogV1ModifyEntryContactsRequest", @@ -3243,14 +3609,18 @@ "BIGQUERY", "CLOUD_PUBSUB", "DATAPROC_METASTORE", - "DATAPLEX" + "DATAPLEX", + "CLOUD_SQL", + "LOOKER" ], "enumDescriptions": [ "Default unknown system.", "BigQuery.", "Cloud Pub/Sub.", "Dataproc Metastore.", - "Dataplex." + "Dataplex.", + "Cloud Sql", + "Looker" ], "readOnly": true, "type": "string" @@ -3358,6 +3728,25 @@ }, "type": "object" }, + "GoogleCloudDatacatalogV1SqlDatabaseSystemSpec": { + "description": "Specification that applies to entries that are part `SQL_DATABASE` system (user_specified_type)", + "id": "GoogleCloudDatacatalogV1SqlDatabaseSystemSpec", + "properties": { + "databaseVersion": { + "description": "Version of the database engine.", + "type": "string" + }, + "instanceHost": { + "description": "Host of the SQL database enum InstanceHost { UNDEFINED = 0; SELF_HOSTED = 1; CLOUD_SQL = 2; AMAZON_RDS = 3; AZURE_SQL = 4; } Host of the enclousing database instance.", + "type": "string" + }, + "sqlEngine": { + "description": "SQL Database Engine. enum SqlEngine { UNDEFINED = 0; MY_SQL = 1; POSTGRE_SQL = 2; SQL_SERVER = 3; } Engine of the enclosing database instance.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDatacatalogV1StarEntryRequest": { "description": "Request message for StarEntry.", "id": "GoogleCloudDatacatalogV1StarEntryRequest", @@ -3630,6 +4019,18 @@ "description": "The set of all usage signals that Data Catalog stores. Note: Usually, these signals are updated daily. In rare cases, an update may fail but will be performed again on the next day.", "id": "GoogleCloudDatacatalogV1UsageSignal", "properties": { + "commonUsageWithinTimeRange": { + "additionalProperties": { + "$ref": "GoogleCloudDatacatalogV1CommonUsageStats" + }, + "description": "Common usage statistics over each of the predefined time ranges. Supported time ranges are `{\"24H\", \"7D\", \"30D\", \"Lifetime\"}`.", + "type": "object" + }, + "favoriteCount": { + "description": "Favorite count in the source system.", + "format": "int64", + "type": "string" + }, "updateTime": { "description": "The end timestamp of the duration of usage statistics.", "format": "google-datetime", @@ -3685,6 +4086,59 @@ }, "type": "object" }, + "ListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "ListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + }, + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "Operation" + }, + "type": "array" + } + }, + "type": "object" + }, + "Operation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "Operation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "Status", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, "Policy": { "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", "id": "Policy", @@ -3720,6 +4174,33 @@ }, "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", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + }, "TestIamPermissionsRequest": { "description": "Request message for `TestIamPermissions` method.", "id": "TestIamPermissionsRequest", diff --git a/datacatalog/v1/datacatalog-gen.go b/datacatalog/v1/datacatalog-gen.go index 838b2d9d484..14d874b2e25 100644 --- a/datacatalog/v1/datacatalog-gen.go +++ b/datacatalog/v1/datacatalog-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -176,6 +176,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.EntryGroups = NewProjectsLocationsEntryGroupsService(s) + rs.Operations = NewProjectsLocationsOperationsService(s) rs.TagTemplates = NewProjectsLocationsTagTemplatesService(s) rs.Taxonomies = NewProjectsLocationsTaxonomiesService(s) return rs @@ -186,6 +187,8 @@ type ProjectsLocationsService struct { EntryGroups *ProjectsLocationsEntryGroupsService + Operations *ProjectsLocationsOperationsService + TagTemplates *ProjectsLocationsTagTemplatesService Taxonomies *ProjectsLocationsTaxonomiesService @@ -236,6 +239,15 @@ type ProjectsLocationsEntryGroupsTagsService struct { s *Service } +func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { + rs := &ProjectsLocationsOperationsService{s: s} + return rs +} + +type ProjectsLocationsOperationsService struct { + s *Service +} + func NewProjectsLocationsTagTemplatesService(s *Service) *ProjectsLocationsTagTemplatesService { rs := &ProjectsLocationsTagTemplatesService{s: s} rs.Fields = NewProjectsLocationsTagTemplatesFieldsService(s) @@ -751,6 +763,9 @@ type GoogleCloudDatacatalogV1ColumnSchema struct { // dots (.). The maximum size is 64 bytes. Column string `json:"column,omitempty"` + // DefaultValue: Optional. Default value for the column. + DefaultValue string `json:"defaultValue,omitempty"` + // Description: Optional. Description of the column. Default value is an // empty string. The description must be a UTF-8 string with the maximum // size of 2000 bytes. @@ -760,12 +775,29 @@ type GoogleCloudDatacatalogV1ColumnSchema struct { // family. Applies to systems like Cloud Bigtable. GcRule string `json:"gcRule,omitempty"` + // HighestIndexingType: Optional. Most important inclusion of this + // column. + // + // Possible values: + // "INDEXING_TYPE_UNSPECIFIED" - Unspecified. + // "INDEXING_TYPE_NONE" - Column not a part of an index. + // "INDEXING_TYPE_NON_UNIQUE" - Column Part of non unique index. + // "INDEXING_TYPE_UNIQUE" - Column part of unique index. + // "INDEXING_TYPE_PRIMARY_KEY" - Column part of the primary key. + HighestIndexingType string `json:"highestIndexingType,omitempty"` + + // LookerColumnSpec: Looker specific column info of this column. + LookerColumnSpec *GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec `json:"lookerColumnSpec,omitempty"` + // Mode: Optional. A column's mode indicates whether values in this // column are required, nullable, or repeated. Only `NULLABLE`, // `REQUIRED`, and `REPEATED` values are supported. Default mode is // `NULLABLE`. Mode string `json:"mode,omitempty"` + // OrdinalPosition: Optional. Ordinal position + OrdinalPosition int64 `json:"ordinalPosition,omitempty"` + // Subcolumns: Optional. Schema of sub-columns. A column can have zero // or more sub-columns. Subcolumns []*GoogleCloudDatacatalogV1ColumnSchema `json:"subcolumns,omitempty"` @@ -797,6 +829,72 @@ func (s *GoogleCloudDatacatalogV1ColumnSchema) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec: Column info +// specific to Looker System. +type GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec struct { + // Type: Looker specific column type of this column. + // + // Possible values: + // "LOOKER_COLUMN_TYPE_UNSPECIFIED" - Unspecified. + // "DIMENSION" - Dimension. + // "DIMENSION_GROUP" - Dimension group - parent for Dimension. + // "FILTER" - Filter. + // "MEASURE" - Measure. + // "PAREMETER" - Parameter. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Type") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Type") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1CommonUsageStats: Common statistics on the +// entry's usage. They can be set on any system. +type GoogleCloudDatacatalogV1CommonUsageStats struct { + // ViewCount: View count in source system. + ViewCount int64 `json:"viewCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "ViewCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ViewCount") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1CommonUsageStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1CommonUsageStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDatacatalogV1Contacts: Contact people for the entry. type GoogleCloudDatacatalogV1Contacts struct { // People: The list of contact people for the entry. @@ -974,6 +1072,10 @@ func (s *GoogleCloudDatacatalogV1DataSourceConnectionSpec) MarshalJSON() ([]byte // GoogleCloudDatacatalogV1DatabaseTableSpec: Specification that applies // to a table resource. Valid only for entries with the `TABLE` type. type GoogleCloudDatacatalogV1DatabaseTableSpec struct { + // DatabaseViewSpec: Spec what aplies to tables that are actually views. + // Not set for "real" tables. + DatabaseViewSpec *GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec `json:"databaseViewSpec,omitempty"` + // DataplexTable: Output only. Fields specific to a Dataplex table and // present only in the Dataplex table entries. DataplexTable *GoogleCloudDatacatalogV1DataplexTableSpec `json:"dataplexTable,omitempty"` @@ -986,7 +1088,7 @@ type GoogleCloudDatacatalogV1DatabaseTableSpec struct { // "EXTERNAL" - External table. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataplexTable") to + // ForceSendFields is a list of field names (e.g. "DatabaseViewSpec") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -994,12 +1096,13 @@ type GoogleCloudDatacatalogV1DatabaseTableSpec struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DataplexTable") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DatabaseViewSpec") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -1009,6 +1112,46 @@ func (s *GoogleCloudDatacatalogV1DatabaseTableSpec) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec: +// Specification that applies to database view. +type GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec struct { + // BaseTable: Name of a singular table this view reflects one to one. + BaseTable string `json:"baseTable,omitempty"` + + // SqlQuery: SQL query used to generate this view. + SqlQuery string `json:"sqlQuery,omitempty"` + + // ViewType: Type of this view. + // + // Possible values: + // "VIEW_TYPE_UNSPECIFIED" - Default unknown view type. + // "STANDARD_VIEW" - Standard view. + // "MATERIALIZED_VIEW" - Materialized view. + ViewType string `json:"viewType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BaseTable") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BaseTable") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDatacatalogV1DataplexExternalTable: External table // registered by Dataplex. Dataplex publishes data discovered from an // asset into multiple other systems (BigQuery, DPMS) in form of tables. @@ -1036,6 +1179,8 @@ type GoogleCloudDatacatalogV1DataplexExternalTable struct { // "CLOUD_PUBSUB" - Cloud Pub/Sub. // "DATAPROC_METASTORE" - Dataproc Metastore. // "DATAPLEX" - Dataplex. + // "CLOUD_SQL" - Cloud Sql + // "LOOKER" - Looker System string `json:"system,omitempty"` // ForceSendFields is a list of field names (e.g. "DataCatalogEntry") to @@ -1202,7 +1347,7 @@ type GoogleCloudDatacatalogV1Entry struct { DataSourceConnectionSpec *GoogleCloudDatacatalogV1DataSourceConnectionSpec `json:"dataSourceConnectionSpec,omitempty"` // DatabaseTableSpec: Specification that applies to a table resource. - // Valid only for entries with the `TABLE` type. + // Valid only for entries with the `TABLE` or `EXPLORE` type. DatabaseTableSpec *GoogleCloudDatacatalogV1DatabaseTableSpec `json:"databaseTableSpec,omitempty"` // Description: Entry description that can consist of several sentences @@ -1213,9 +1358,7 @@ type GoogleCloudDatacatalogV1Entry struct { // Default value is an empty string. Description string `json:"description,omitempty"` - // DisplayName: Display name of an entry. The name must contain only - // Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( - // ), and can't start or end with spaces. The maximum size is 200 bytes + // DisplayName: Display name of an entry. The maximum size is 500 bytes // when encoded in UTF-8. Default value is an empty string. DisplayName string `json:"displayName,omitempty"` @@ -1250,6 +1393,8 @@ type GoogleCloudDatacatalogV1Entry struct { // "CLOUD_PUBSUB" - Cloud Pub/Sub. // "DATAPROC_METASTORE" - Dataproc Metastore. // "DATAPLEX" - Dataplex. + // "CLOUD_SQL" - Cloud Sql + // "LOOKER" - Looker IntegratedSystem string `json:"integratedSystem,omitempty"` // Labels: Cloud labels attached to the entry. In Data Catalog, you can @@ -1272,6 +1417,10 @@ type GoogleCloudDatacatalogV1Entry struct { // and hashes (#). The maximum size is 200 bytes when encoded in UTF-8. LinkedResource string `json:"linkedResource,omitempty"` + // LookerSystemSpec: Specification that applies to Looker sysstem. Only + // settable when `user_specified_system` is equal to `LOOKER` + LookerSystemSpec *GoogleCloudDatacatalogV1LookerSystemSpec `json:"lookerSystemSpec,omitempty"` + // Name: Output only. The resource name of an entry in URL format. Note: // The entry itself and its child resources might not be stored in the // location specified in its name. @@ -1296,6 +1445,11 @@ type GoogleCloudDatacatalogV1Entry struct { // empty timestamp. SourceSystemTimestamps *GoogleCloudDatacatalogV1SystemTimestamps `json:"sourceSystemTimestamps,omitempty"` + // SqlDatabaseSystemSpec: Specification that applies to a relational + // database system. Only settable when `user_specified_system` is equal + // to `SQL_DATABASE` + SqlDatabaseSystemSpec *GoogleCloudDatacatalogV1SqlDatabaseSystemSpec `json:"sqlDatabaseSystemSpec,omitempty"` + // Type: The type of the entry. Only used for entries with types listed // in the `EntryType` enum. Currently, only `FILESET` enum value is // allowed. All other entries created in Data Catalog must use the @@ -1321,6 +1475,13 @@ type GoogleCloudDatacatalogV1Entry struct { // "LAKE" - A Dataplex lake. // "ZONE" - A Dataplex zone. // "SERVICE" - A service, for example, a Dataproc Metastore service. + // "DATABASE_SCHEMA" - Schema within a relational database. + // "DASHBOARD" - A Dashboard, for example from Looker. + // "EXPLORE" - A Looker Explore. For more information, see [Looker + // Explore API] + // (https://developers.looker.com/api/explorer/4.0/methods/LookmlModel/lookml_model_explore). + // "LOOK" - A Looker Look. For more information, see [Looker Look API] + // (https://developers.looker.com/api/explorer/4.0/methods/Look). Type string `json:"type,omitempty"` // UsageSignal: Resource usage statistics. @@ -1718,6 +1879,114 @@ func (s *GoogleCloudDatacatalogV1GcsFilesetSpec) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDatacatalogV1ImportEntriesMetadata: Metadata message for +// long-running operation returned by the ImportEntries. +type GoogleCloudDatacatalogV1ImportEntriesMetadata struct { + // Errors: Partial errors that are encountered during the ImportEntries + // operation. There is no guarantee that all the encountered errors are + // reported. However, if no errors are reported, it means that no errors + // were encountered. + Errors []*Status `json:"errors,omitempty"` + + // State: State of the import operation. + // + // Possible values: + // "IMPORT_STATE_UNSPECIFIED" - Default value. This value is unused. + // "IMPORT_QUEUED" - The dump with entries has been queued for import. + // "IMPORT_IN_PROGRESS" - The import of entries is in progress. + // "IMPORT_DONE" - The import of entries has been finished. + // "IMPORT_OBSOLETE" - The import of entries has been abandoned in + // favor of a newer request. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Errors") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Errors") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1ImportEntriesMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1ImportEntriesMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1ImportEntriesRequest: Request message for +// ImportEntries method. +type GoogleCloudDatacatalogV1ImportEntriesRequest struct { + // GcsBucketPath: Path to a Cloud Storage bucket that contains a dump + // ready for ingestion. + GcsBucketPath string `json:"gcsBucketPath,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GcsBucketPath") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GcsBucketPath") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1ImportEntriesRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1ImportEntriesRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1ImportEntriesResponse: Response message for +// long-running operation returned by the ImportEntries. +type GoogleCloudDatacatalogV1ImportEntriesResponse struct { + // DeletedEntriesCount: Number of entries deleted as a result of import + // operation. + DeletedEntriesCount int64 `json:"deletedEntriesCount,omitempty,string"` + + // UpsertedEntriesCount: Cumulative number of entries created and + // entries updated as a result of import operation. + UpsertedEntriesCount int64 `json:"upsertedEntriesCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "DeletedEntriesCount") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DeletedEntriesCount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1ImportEntriesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1ImportEntriesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDatacatalogV1ImportTaxonomiesRequest: Request message for // ImportTaxonomies. type GoogleCloudDatacatalogV1ImportTaxonomiesRequest struct { @@ -1998,6 +2267,56 @@ func (s *GoogleCloudDatacatalogV1ListTaxonomiesResponse) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDatacatalogV1LookerSystemSpec: Specification that applies +// to entries that are part `LOOKER` system (user_specified_type) +type GoogleCloudDatacatalogV1LookerSystemSpec struct { + // ParentInstanceDisplayName: Name of the parent Looker Instance. Empty + // if it does not exist. + ParentInstanceDisplayName string `json:"parentInstanceDisplayName,omitempty"` + + // ParentInstanceId: ID of the parent Looker Instance. Empty if it does + // not exist. Example value: `someinstance.looker.com` + ParentInstanceId string `json:"parentInstanceId,omitempty"` + + // ParentModelDisplayName: Name of the parent Model. Empty if it does + // not exist. + ParentModelDisplayName string `json:"parentModelDisplayName,omitempty"` + + // ParentModelId: ID of the parent Model. Empty if it does not exist. + ParentModelId string `json:"parentModelId,omitempty"` + + // ParentViewDisplayName: Name of the parent View. Empty if it does not + // exist. + ParentViewDisplayName string `json:"parentViewDisplayName,omitempty"` + + // ParentViewId: ID of the parent View. Empty if it does not exist. + ParentViewId string `json:"parentViewId,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ParentInstanceDisplayName") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "ParentInstanceDisplayName") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1LookerSystemSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1LookerSystemSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDatacatalogV1ModifyEntryContactsRequest: Request message // for ModifyEntryContacts. type GoogleCloudDatacatalogV1ModifyEntryContactsRequest struct { @@ -2715,6 +3034,8 @@ type GoogleCloudDatacatalogV1SearchCatalogResult struct { // "CLOUD_PUBSUB" - Cloud Pub/Sub. // "DATAPROC_METASTORE" - Dataproc Metastore. // "DATAPLEX" - Dataplex. + // "CLOUD_SQL" - Cloud Sql + // "LOOKER" - Looker IntegratedSystem string `json:"integratedSystem,omitempty"` // LinkedResource: The full name of the Google Cloud resource the entry @@ -2872,6 +3193,47 @@ func (s *GoogleCloudDatacatalogV1SerializedTaxonomy) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDatacatalogV1SqlDatabaseSystemSpec: Specification that +// applies to entries that are part `SQL_DATABASE` system +// (user_specified_type) +type GoogleCloudDatacatalogV1SqlDatabaseSystemSpec struct { + // DatabaseVersion: Version of the database engine. + DatabaseVersion string `json:"databaseVersion,omitempty"` + + // InstanceHost: Host of the SQL database enum InstanceHost { UNDEFINED + // = 0; SELF_HOSTED = 1; CLOUD_SQL = 2; AMAZON_RDS = 3; AZURE_SQL = 4; } + // Host of the enclousing database instance. + InstanceHost string `json:"instanceHost,omitempty"` + + // SqlEngine: SQL Database Engine. enum SqlEngine { UNDEFINED = 0; + // MY_SQL = 1; POSTGRE_SQL = 2; SQL_SERVER = 3; } Engine of the + // enclosing database instance. + SqlEngine string `json:"sqlEngine,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DatabaseVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DatabaseVersion") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1SqlDatabaseSystemSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1SqlDatabaseSystemSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDatacatalogV1StarEntryRequest: Request message for // StarEntry. type GoogleCloudDatacatalogV1StarEntryRequest struct { @@ -3379,6 +3741,14 @@ type GoogleCloudDatacatalogV1UnstarEntryResponse struct { // daily. In rare cases, an update may fail but will be performed again // on the next day. type GoogleCloudDatacatalogV1UsageSignal struct { + // CommonUsageWithinTimeRange: Common usage statistics over each of the + // predefined time ranges. Supported time ranges are `{"24H", "7D", + // "30D", "Lifetime"}`. + CommonUsageWithinTimeRange map[string]GoogleCloudDatacatalogV1CommonUsageStats `json:"commonUsageWithinTimeRange,omitempty"` + + // FavoriteCount: Favorite count in the source system. + FavoriteCount int64 `json:"favoriteCount,omitempty,string"` + // UpdateTime: The end timestamp of the duration of usage statistics. UpdateTime string `json:"updateTime,omitempty"` @@ -3387,20 +3757,22 @@ type GoogleCloudDatacatalogV1UsageSignal struct { // `{"24H", "7D", "30D"}`. UsageWithinTimeRange map[string]GoogleCloudDatacatalogV1UsageStats `json:"usageWithinTimeRange,omitempty"` - // ForceSendFields is a list of field names (e.g. "UpdateTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "CommonUsageWithinTimeRange") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "UpdateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. + // "CommonUsageWithinTimeRange") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. NullFields []string `json:"-"` } @@ -3506,42 +3878,141 @@ func (s *GoogleCloudDatacatalogV1ViewSpec) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Policy: An Identity and Access Management (IAM) policy, which -// specifies access controls for Google Cloud resources. A `Policy` is a -// collection of `bindings`. A `binding` binds one or more `members`, or -// principals, to a single `role`. Principals can be user accounts, -// service accounts, Google groups, and domains (such as G Suite). A -// `role` is a named list of permissions; each `role` can be an IAM -// predefined role or a user-created custom role. For some types of -// Google Cloud resources, a `binding` can also specify a `condition`, -// which is a logical expression that allows access to a resource only -// if the expression evaluates to `true`. A condition can add -// constraints based on attributes of the request, the resource, or -// both. To learn which resources support conditions in their IAM -// policies, see the IAM documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -// **JSON example:** { "bindings": [ { "role": -// "roles/resourcemanager.organizationAdmin", "members": [ -// "user:mike@example.com", "group:admins@example.com", -// "domain:google.com", -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { -// "role": "roles/resourcemanager.organizationViewer", "members": [ -// "user:eve@example.com" ], "condition": { "title": "expirable access", -// "description": "Does not grant access after Sep 2020", "expression": -// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - -// serviceAccount:my-project-id@appspot.gserviceaccount.com role: -// roles/resourcemanager.organizationAdmin - members: - -// user:eve@example.com role: roles/resourcemanager.organizationViewer -// condition: title: expirable access description: Does not grant access -// after Sep 2020 expression: request.time < -// timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 -// For a description of IAM and its features, see the IAM documentation -// (https://cloud.google.com/iam/docs/). -type Policy struct { - // Bindings: Associates a list of `members`, or principals, with a +// ListOperationsResponse: The response message for +// Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*Operation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Operation: This resource represents a long-running operation that is +// the result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure or + // cancellation. + Error *Status `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Done") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Policy: An Identity and Access Management (IAM) policy, which +// specifies access controls for Google Cloud resources. A `Policy` is a +// collection of `bindings`. A `binding` binds one or more `members`, or +// principals, to a single `role`. Principals can be user accounts, +// service accounts, Google groups, and domains (such as G Suite). A +// `role` is a named list of permissions; each `role` can be an IAM +// predefined role or a user-created custom role. For some types of +// Google Cloud resources, a `binding` can also specify a `condition`, +// which is a logical expression that allows access to a resource only +// if the expression evaluates to `true`. A condition can add +// constraints based on attributes of the request, the resource, or +// both. To learn which resources support conditions in their IAM +// policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +// **JSON example:** { "bindings": [ { "role": +// "roles/resourcemanager.organizationAdmin", "members": [ +// "user:mike@example.com", "group:admins@example.com", +// "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { +// "role": "roles/resourcemanager.organizationViewer", "members": [ +// "user:eve@example.com" ], "condition": { "title": "expirable access", +// "description": "Does not grant access after Sep 2020", "expression": +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], +// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - +// members: - user:mike@example.com - group:admins@example.com - +// domain:google.com - +// serviceAccount:my-project-id@appspot.gserviceaccount.com role: +// roles/resourcemanager.organizationAdmin - members: - +// user:eve@example.com role: roles/resourcemanager.organizationViewer +// condition: title: expirable access description: Does not grant access +// after Sep 2020 expression: request.time < +// timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 +// For a description of IAM and its features, see the IAM documentation +// (https://cloud.google.com/iam/docs/). +type Policy struct { + // Bindings: Associates a list of `members`, or principals, with a // `role`. Optionally, may specify a `condition` that determines how and // when the `bindings` are applied. Each of the `bindings` must contain // at least one principal. The `bindings` in a `Policy` can refer to up @@ -3643,6 +4114,50 @@ func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each +// `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). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + 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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // TestIamPermissionsRequest: Request message for `TestIamPermissions` // method. type TestIamPermissionsRequest struct { @@ -5962,6 +6477,155 @@ func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Do(opts ...googlea } +// method id "datacatalog.projects.locations.entryGroups.entries.import": + +type ProjectsLocationsEntryGroupsEntriesImportCall struct { + s *Service + parent string + googleclouddatacatalogv1importentriesrequest *GoogleCloudDatacatalogV1ImportEntriesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Import: Imports entries from some source (e.g. dump in a Cloud +// Storage bucket) to the Data Catalog. Dump here is a snapshot of the +// third-party system state, that needs to be ingested in the Data +// Catalog. Import of entries is a sync operation that reconciles state +// of the third-party system and Data Catalog. ImportEntries is a +// long-running operation done in the background, so this method returns +// long-running operation resource. The resource can be queried with +// Operations.GetOperation which contains metadata and response. +// +// - parent: Target entry group for ingested entries. +func (r *ProjectsLocationsEntryGroupsEntriesService) Import(parent string, googleclouddatacatalogv1importentriesrequest *GoogleCloudDatacatalogV1ImportEntriesRequest) *ProjectsLocationsEntryGroupsEntriesImportCall { + c := &ProjectsLocationsEntryGroupsEntriesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddatacatalogv1importentriesrequest = googleclouddatacatalogv1importentriesrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsEntryGroupsEntriesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesImportCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsEntryGroupsEntriesImportCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesImportCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsEntryGroupsEntriesImportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEntryGroupsEntriesImportCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1importentriesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries:import") + 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 "datacatalog.projects.locations.entryGroups.entries.import" call. +// Exactly one of *Operation or error will be non-nil. 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 *ProjectsLocationsEntryGroupsEntriesImportCall) 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 + // { + // "description": "Imports entries from some source (e.g. dump in a Cloud Storage bucket) to the Data Catalog. Dump here is a snapshot of the third-party system state, that needs to be ingested in the Data Catalog. Import of entries is a sync operation that reconciles state of the third-party system and Data Catalog. ImportEntries is a long-running operation done in the background, so this method returns long-running operation resource. The resource can be queried with Operations.GetOperation which contains metadata and response.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/entryGroups/{entryGroupsId}/entries:import", + // "httpMethod": "POST", + // "id": "datacatalog.projects.locations.entryGroups.entries.import", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Target entry group for ingested entries.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/entries:import", + // "request": { + // "$ref": "GoogleCloudDatacatalogV1ImportEntriesRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "datacatalog.projects.locations.entryGroups.entries.list": type ProjectsLocationsEntryGroupsEntriesListCall struct { @@ -8365,6 +9029,643 @@ func (c *ProjectsLocationsEntryGroupsTagsPatchCall) Do(opts ...googleapi.CallOpt } +// method id "datacatalog.projects.locations.operations.cancel": + +type ProjectsLocationsOperationsCancelCall struct { + s *Service + name string + 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) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *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. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *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 := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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 "datacatalog.projects.locations.operations.cancel" call. +// Exactly one of *Empty or error will be non-nil. 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 + // { + // "description": "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`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "datacatalog.projects.locations.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:cancel", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datacatalog.projects.locations.operations.delete": + +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 information. +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. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *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 := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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 "datacatalog.projects.locations.operations.delete" call. +// Exactly one of *Empty or error will be non-nil. 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 + // { + // "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}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "datacatalog.projects.locations.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datacatalog.projects.locations.operations.get": + +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 information. +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *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 := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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 "datacatalog.projects.locations.operations.get" call. +// Exactly one of *Operation or error will be non-nil. 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 *ProjectsLocationsOperationsGetCall) 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 + // { + // "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}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "datacatalog.projects.locations.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datacatalog.projects.locations.operations.list": + +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`. NOTE: the `name` binding allows API services to +// override the binding to use different resource name schemes, such as +// `users/*/operations`. To override the binding, API services can add a +// binding such as "/v1/{name=users/*}/operations" to their service +// configuration. For backwards compatibility, the default name includes +// the operations collection id, however overriding users must ensure +// the name binding is the parent resource, without the operations +// collection id. +// +// - 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) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *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 := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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 "datacatalog.projects.locations.operations.list" call. +// Exactly one of *ListOperationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.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) (*ListOperationsResponse, 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 := &ListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "datacatalog.projects.locations.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}/operations", + // "response": { + // "$ref": "ListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// 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(*ListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + // method id "datacatalog.projects.locations.tagTemplates.create": type ProjectsLocationsTagTemplatesCreateCall struct { diff --git a/datacatalog/v1beta1/datacatalog-api.json b/datacatalog/v1beta1/datacatalog-api.json index 370f2166335..0aaa7224268 100644 --- a/datacatalog/v1beta1/datacatalog-api.json +++ b/datacatalog/v1beta1/datacatalog-api.json @@ -1808,7 +1808,7 @@ } } }, - "revision": "20220826", + "revision": "20221203", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -1885,6 +1885,55 @@ }, "type": "object" }, + "GoogleCloudDatacatalogV1ImportEntriesMetadata": { + "description": "Metadata message for long-running operation returned by the ImportEntries.", + "id": "GoogleCloudDatacatalogV1ImportEntriesMetadata", + "properties": { + "errors": { + "description": "Partial errors that are encountered during the ImportEntries operation. There is no guarantee that all the encountered errors are reported. However, if no errors are reported, it means that no errors were encountered.", + "items": { + "$ref": "Status" + }, + "type": "array" + }, + "state": { + "description": "State of the import operation.", + "enum": [ + "IMPORT_STATE_UNSPECIFIED", + "IMPORT_QUEUED", + "IMPORT_IN_PROGRESS", + "IMPORT_DONE", + "IMPORT_OBSOLETE" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The dump with entries has been queued for import.", + "The import of entries is in progress.", + "The import of entries has been finished.", + "The import of entries has been abandoned in favor of a newer request." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1ImportEntriesResponse": { + "description": "Response message for long-running operation returned by the ImportEntries.", + "id": "GoogleCloudDatacatalogV1ImportEntriesResponse", + "properties": { + "deletedEntriesCount": { + "description": "Number of entries deleted as a result of import operation.", + "format": "int64", + "type": "string" + }, + "upsertedEntriesCount": { + "description": "Cumulative number of entries created and entries updated as a result of import operation.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec": { "description": "Spec for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`. Context: https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding", "id": "GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec", @@ -2889,6 +2938,33 @@ }, "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", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + }, "TestIamPermissionsRequest": { "description": "Request message for `TestIamPermissions` method.", "id": "TestIamPermissionsRequest", diff --git a/datacatalog/v1beta1/datacatalog-gen.go b/datacatalog/v1beta1/datacatalog-gen.go index b563a2cd856..d63e8ccae6d 100644 --- a/datacatalog/v1beta1/datacatalog-gen.go +++ b/datacatalog/v1beta1/datacatalog-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -509,6 +509,84 @@ func (s *GetPolicyOptions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDatacatalogV1ImportEntriesMetadata: Metadata message for +// long-running operation returned by the ImportEntries. +type GoogleCloudDatacatalogV1ImportEntriesMetadata struct { + // Errors: Partial errors that are encountered during the ImportEntries + // operation. There is no guarantee that all the encountered errors are + // reported. However, if no errors are reported, it means that no errors + // were encountered. + Errors []*Status `json:"errors,omitempty"` + + // State: State of the import operation. + // + // Possible values: + // "IMPORT_STATE_UNSPECIFIED" - Default value. This value is unused. + // "IMPORT_QUEUED" - The dump with entries has been queued for import. + // "IMPORT_IN_PROGRESS" - The import of entries is in progress. + // "IMPORT_DONE" - The import of entries has been finished. + // "IMPORT_OBSOLETE" - The import of entries has been abandoned in + // favor of a newer request. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Errors") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Errors") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1ImportEntriesMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1ImportEntriesMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1ImportEntriesResponse: Response message for +// long-running operation returned by the ImportEntries. +type GoogleCloudDatacatalogV1ImportEntriesResponse struct { + // DeletedEntriesCount: Number of entries deleted as a result of import + // operation. + DeletedEntriesCount int64 `json:"deletedEntriesCount,omitempty,string"` + + // UpsertedEntriesCount: Cumulative number of entries created and + // entries updated as a result of import operation. + UpsertedEntriesCount int64 `json:"upsertedEntriesCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "DeletedEntriesCount") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DeletedEntriesCount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1ImportEntriesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1ImportEntriesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec: Spec for a // group of BigQuery tables with name pattern `[prefix]YYYYMMDD`. // Context: @@ -2477,6 +2555,50 @@ func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each +// `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). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + 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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // TestIamPermissionsRequest: Request message for `TestIamPermissions` // method. type TestIamPermissionsRequest struct { diff --git a/dataflow/v1b3/dataflow-gen.go b/dataflow/v1b3/dataflow-gen.go index f6410904bdb..3da0cdcc276 100644 --- a/dataflow/v1b3/dataflow-gen.go +++ b/dataflow/v1b3/dataflow-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/dataform/v1beta1/dataform-api.json b/dataform/v1beta1/dataform-api.json index 73f0930237b..b32f49ee5a4 100644 --- a/dataform/v1beta1/dataform-api.json +++ b/dataform/v1beta1/dataform-api.json @@ -669,6 +669,163 @@ } } }, + "workflowConfigs": { + "methods": { + "create": { + "description": "Creates a new WorkflowConfig in a given Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowConfigs", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.workflowConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The repository in which to create the workflow config. Must be in the format `projects/*/locations/*/repositories/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + }, + "workflowConfigId": { + "description": "Required. The ID to use for the workflow config, which will become the final component of the workflow config's resource name.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/workflowConfigs", + "request": { + "$ref": "WorkflowConfig" + }, + "response": { + "$ref": "WorkflowConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single WorkflowConfig.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowConfigs/{workflowConfigsId}", + "httpMethod": "DELETE", + "id": "dataform.projects.locations.repositories.workflowConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workflow config's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Fetches a single WorkflowConfig.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowConfigs/{workflowConfigsId}", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workflowConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The workflow config's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "WorkflowConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists WorkflowConfigs in a given Repository.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowConfigs", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.workflowConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. Maximum number of workflow configs to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token received from a previous `ListWorkflowConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWorkflowConfigs` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The repository in which to list workflow configs. Must be in the format `projects/*/locations/*/repositories/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/workflowConfigs", + "response": { + "$ref": "ListWorkflowConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a single WorkflowConfig.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowConfigs/{workflowConfigsId}", + "httpMethod": "PATCH", + "id": "dataform.projects.locations.repositories.workflowConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The workflow config's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Specifies the fields to be updated in the workflow config. If left unset, all fields will be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "WorkflowConfig" + }, + "response": { + "$ref": "WorkflowConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "workflowInvocations": { "methods": { "cancel": { @@ -1465,7 +1622,7 @@ } } }, - "revision": "20221203", + "revision": "20221217", "rootUrl": "https://dataform.googleapis.com/", "schemas": { "Assertion": { @@ -1689,7 +1846,7 @@ "type": "string" }, "resolvedGitCommitSha": { - "description": "Output only. The fully resolved Git commit SHA of the code that was compiled.", + "description": "Output only. The fully resolved Git commit SHA of the code that was compiled. Not set for compilation results whose source is a workspace.", "readOnly": true, "type": "string" }, @@ -1929,33 +2086,33 @@ "type": "object" }, "InvocationConfig": { - "description": "Includes various configuration options for this workflow invocation. If both `included_targets` and `included_tags` are unset, all actions will be included.", + "description": "Includes various configuration options for a workflow invocation. If both `included_targets` and `included_tags` are unset, all actions will be included.", "id": "InvocationConfig", "properties": { "fullyRefreshIncrementalTablesEnabled": { - "description": "Immutable. When set to true, any incremental tables will be fully refreshed.", + "description": "Optional. When set to true, any incremental tables will be fully refreshed.", "type": "boolean" }, "includedTags": { - "description": "Immutable. The set of tags to include.", + "description": "Optional. The set of tags to include.", "items": { "type": "string" }, "type": "array" }, "includedTargets": { - "description": "Immutable. The set of action identifiers to include.", + "description": "Optional. The set of action identifiers to include.", "items": { "$ref": "Target" }, "type": "array" }, "transitiveDependenciesIncluded": { - "description": "Immutable. When set to true, transitive dependencies of included actions will be executed.", + "description": "Optional. When set to true, transitive dependencies of included actions will be executed.", "type": "boolean" }, "transitiveDependentsIncluded": { - "description": "Immutable. When set to true, transitive dependents of included actions will be executed.", + "description": "Optional. When set to true, transitive dependents of included actions will be executed.", "type": "boolean" } }, @@ -2054,6 +2211,31 @@ }, "type": "object" }, + "ListWorkflowConfigsResponse": { + "description": "`ListWorkflowConfigs` response message.", + "id": "ListWorkflowConfigsResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "unreachable": { + "description": "Locations which could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + }, + "workflowConfigs": { + "description": "List of workflow configs.", + "items": { + "$ref": "WorkflowConfig" + }, + "type": "array" + } + }, + "type": "object" + }, "ListWorkflowInvocationsResponse": { "description": "`ListWorkflowInvocations` response message.", "id": "ListWorkflowInvocationsResponse", @@ -2500,7 +2682,7 @@ "properties": { "codeCompilationConfig": { "$ref": "CodeCompilationConfig", - "description": "Immutable. If set, fields of `code_compilation_config` override the default compilation settings that are specified in dataform.json." + "description": "Optional. If set, fields of `code_compilation_config` override the default compilation settings that are specified in dataform.json." }, "cronSchedule": { "description": "Optional. Optional schedule (in cron format) for automatic creation of compilation results.", @@ -2526,6 +2708,10 @@ "releaseCompilationResult": { "description": "Optional. The name of the currently released compilation result for this release config. This value is updated when a compilation result is created from this release config, or when this resource is updated by API call (perhaps to roll back to an earlier release). The compilation result must have been created using this release config. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`.", "type": "string" + }, + "timeZone": { + "description": "Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC.", + "type": "string" } }, "type": "object" @@ -2590,6 +2776,26 @@ }, "type": "object" }, + "ScheduledExecutionRecord": { + "description": "A record of an attempt to create a workflow invocation for this workflow config.", + "id": "ScheduledExecutionRecord", + "properties": { + "errorStatus": { + "$ref": "Status", + "description": "The error status encountered upon this attempt to create the workflow invocation, if the attempt was unsuccessful." + }, + "executionTime": { + "description": "The timestamp of this execution attempt.", + "format": "google-datetime", + "type": "string" + }, + "workflowInvocation": { + "description": "The name of the created workflow invocation, if one was successfully created. Must be in the format `projects/*/locations/*/repositories/*/workflowInvocations/*`.", + "type": "string" + } + }, + "type": "object" + }, "ScheduledReleaseRecord": { "description": "A record of an attempt to create a compilation result for this release config.", "id": "ScheduledReleaseRecord", @@ -2685,6 +2891,42 @@ }, "type": "object" }, + "WorkflowConfig": { + "description": "Represents a Dataform workflow configuration.", + "id": "WorkflowConfig", + "properties": { + "cronSchedule": { + "description": "Optional. Optional schedule (in cron format) for automatic execution of this workflow config.", + "type": "string" + }, + "invocationConfig": { + "$ref": "InvocationConfig", + "description": "Optional. If left unset, a default InvocationConfig will be used." + }, + "name": { + "description": "Output only. The workflow config's name.", + "readOnly": true, + "type": "string" + }, + "recentScheduledExecutionRecords": { + "description": "Output only. Records of the 10 most recent scheduled execution attempts. Updated whenever automatic creation of a compilation result is triggered by cron_schedule.", + "items": { + "$ref": "ScheduledExecutionRecord" + }, + "readOnly": true, + "type": "array" + }, + "releaseConfig": { + "description": "Required. The name of the release config whose release_compilation_result should be executed. Must be in the format `projects/*/locations/*/repositories/*/releaseConfigs/*`.", + "type": "string" + }, + "timeZone": { + "description": "Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC.", + "type": "string" + } + }, + "type": "object" + }, "WorkflowInvocation": { "description": "Represents a single invocation of a compilation result.", "id": "WorkflowInvocation", diff --git a/dataform/v1beta1/dataform-gen.go b/dataform/v1beta1/dataform-gen.go index a8f829672bb..e64aa529206 100644 --- a/dataform/v1beta1/dataform-gen.go +++ b/dataform/v1beta1/dataform-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -165,6 +165,7 @@ func NewProjectsLocationsRepositoriesService(s *Service) *ProjectsLocationsRepos rs := &ProjectsLocationsRepositoriesService{s: s} rs.CompilationResults = NewProjectsLocationsRepositoriesCompilationResultsService(s) rs.ReleaseConfigs = NewProjectsLocationsRepositoriesReleaseConfigsService(s) + rs.WorkflowConfigs = NewProjectsLocationsRepositoriesWorkflowConfigsService(s) rs.WorkflowInvocations = NewProjectsLocationsRepositoriesWorkflowInvocationsService(s) rs.Workspaces = NewProjectsLocationsRepositoriesWorkspacesService(s) return rs @@ -177,6 +178,8 @@ type ProjectsLocationsRepositoriesService struct { ReleaseConfigs *ProjectsLocationsRepositoriesReleaseConfigsService + WorkflowConfigs *ProjectsLocationsRepositoriesWorkflowConfigsService + WorkflowInvocations *ProjectsLocationsRepositoriesWorkflowInvocationsService Workspaces *ProjectsLocationsRepositoriesWorkspacesService @@ -200,6 +203,15 @@ type ProjectsLocationsRepositoriesReleaseConfigsService struct { s *Service } +func NewProjectsLocationsRepositoriesWorkflowConfigsService(s *Service) *ProjectsLocationsRepositoriesWorkflowConfigsService { + rs := &ProjectsLocationsRepositoriesWorkflowConfigsService{s: s} + return rs +} + +type ProjectsLocationsRepositoriesWorkflowConfigsService struct { + s *Service +} + func NewProjectsLocationsRepositoriesWorkflowInvocationsService(s *Service) *ProjectsLocationsRepositoriesWorkflowInvocationsService { rs := &ProjectsLocationsRepositoriesWorkflowInvocationsService{s: s} return rs @@ -536,7 +548,8 @@ type CompilationResult struct { ReleaseConfig string `json:"releaseConfig,omitempty"` // ResolvedGitCommitSha: Output only. The fully resolved Git commit SHA - // of the code that was compiled. + // of the code that was compiled. Not set for compilation results whose + // source is a workspace. ResolvedGitCommitSha string `json:"resolvedGitCommitSha,omitempty"` // Workspace: Immutable. The name of the workspace to compile. Must be @@ -991,25 +1004,25 @@ func (s *Interval) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// InvocationConfig: Includes various configuration options for this +// InvocationConfig: Includes various configuration options for a // workflow invocation. If both `included_targets` and `included_tags` // are unset, all actions will be included. type InvocationConfig struct { - // FullyRefreshIncrementalTablesEnabled: Immutable. When set to true, - // any incremental tables will be fully refreshed. + // FullyRefreshIncrementalTablesEnabled: Optional. When set to true, any + // incremental tables will be fully refreshed. FullyRefreshIncrementalTablesEnabled bool `json:"fullyRefreshIncrementalTablesEnabled,omitempty"` - // IncludedTags: Immutable. The set of tags to include. + // IncludedTags: Optional. The set of tags to include. IncludedTags []string `json:"includedTags,omitempty"` - // IncludedTargets: Immutable. The set of action identifiers to include. + // IncludedTargets: Optional. The set of action identifiers to include. IncludedTargets []*Target `json:"includedTargets,omitempty"` - // TransitiveDependenciesIncluded: Immutable. When set to true, + // TransitiveDependenciesIncluded: Optional. When set to true, // transitive dependencies of included actions will be executed. TransitiveDependenciesIncluded bool `json:"transitiveDependenciesIncluded,omitempty"` - // TransitiveDependentsIncluded: Immutable. When set to true, transitive + // TransitiveDependentsIncluded: Optional. When set to true, transitive // dependents of included actions will be executed. TransitiveDependentsIncluded bool `json:"transitiveDependentsIncluded,omitempty"` @@ -1197,6 +1210,46 @@ func (s *ListRepositoriesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListWorkflowConfigsResponse: `ListWorkflowConfigs` response message. +type ListWorkflowConfigsResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: Locations which could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // WorkflowConfigs: List of workflow configs. + WorkflowConfigs []*WorkflowConfig `json:"workflowConfigs,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListWorkflowConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListWorkflowConfigsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListWorkflowInvocationsResponse: `ListWorkflowInvocations` response // message. type ListWorkflowInvocationsResponse struct { @@ -1879,7 +1932,7 @@ func (s *RelationDescriptor) MarshalJSON() ([]byte, error) { // ReleaseConfig: Represents a Dataform release configuration. type ReleaseConfig struct { - // CodeCompilationConfig: Immutable. If set, fields of + // CodeCompilationConfig: Optional. If set, fields of // `code_compilation_config` override the default compilation settings // that are specified in dataform.json. CodeCompilationConfig *CodeCompilationConfig `json:"codeCompilationConfig,omitempty"` @@ -1911,6 +1964,13 @@ type ReleaseConfig struct { // `projects/*/locations/*/repositories/*/compilationResults/*`. ReleaseCompilationResult string `json:"releaseCompilationResult,omitempty"` + // TimeZone: Optional. Specifies the time zone to be used when + // interpreting cron_schedule. Must be a time zone name from the time + // zone database + // (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If + // left unspecified, the default is UTC. + TimeZone string `json:"timeZone,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -2076,6 +2136,44 @@ func (s *ResetWorkspaceChangesRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ScheduledExecutionRecord: A record of an attempt to create a workflow +// invocation for this workflow config. +type ScheduledExecutionRecord struct { + // ErrorStatus: The error status encountered upon this attempt to create + // the workflow invocation, if the attempt was unsuccessful. + ErrorStatus *Status `json:"errorStatus,omitempty"` + + // ExecutionTime: The timestamp of this execution attempt. + ExecutionTime string `json:"executionTime,omitempty"` + + // WorkflowInvocation: The name of the created workflow invocation, if + // one was successfully created. Must be in the format + // `projects/*/locations/*/repositories/*/workflowInvocations/*`. + WorkflowInvocation string `json:"workflowInvocation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ErrorStatus") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ErrorStatus") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ScheduledExecutionRecord) MarshalJSON() ([]byte, error) { + type NoMethod ScheduledExecutionRecord + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ScheduledReleaseRecord: A record of an attempt to create a // compilation result for this release config. type ScheduledReleaseRecord struct { @@ -2234,6 +2332,63 @@ func (s *UncommittedFileChange) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// WorkflowConfig: Represents a Dataform workflow configuration. +type WorkflowConfig struct { + // CronSchedule: Optional. Optional schedule (in cron format) for + // automatic execution of this workflow config. + CronSchedule string `json:"cronSchedule,omitempty"` + + // InvocationConfig: Optional. If left unset, a default InvocationConfig + // will be used. + InvocationConfig *InvocationConfig `json:"invocationConfig,omitempty"` + + // Name: Output only. The workflow config's name. + Name string `json:"name,omitempty"` + + // RecentScheduledExecutionRecords: Output only. Records of the 10 most + // recent scheduled execution attempts. Updated whenever automatic + // creation of a compilation result is triggered by cron_schedule. + RecentScheduledExecutionRecords []*ScheduledExecutionRecord `json:"recentScheduledExecutionRecords,omitempty"` + + // ReleaseConfig: Required. The name of the release config whose + // release_compilation_result should be executed. Must be in the format + // `projects/*/locations/*/repositories/*/releaseConfigs/*`. + ReleaseConfig string `json:"releaseConfig,omitempty"` + + // TimeZone: Optional. Specifies the time zone to be used when + // interpreting cron_schedule. Must be a time zone name from the time + // zone database + // (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If + // left unspecified, the default is UTC. + TimeZone string `json:"timeZone,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CronSchedule") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CronSchedule") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WorkflowConfig) MarshalJSON() ([]byte, error) { + type NoMethod WorkflowConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // WorkflowInvocation: Represents a single invocation of a compilation // result. type WorkflowInvocation struct { @@ -5257,6 +5412,794 @@ func (c *ProjectsLocationsRepositoriesReleaseConfigsPatchCall) Do(opts ...google } +// method id "dataform.projects.locations.repositories.workflowConfigs.create": + +type ProjectsLocationsRepositoriesWorkflowConfigsCreateCall struct { + s *Service + parent string + workflowconfig *WorkflowConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new WorkflowConfig in a given Repository. +// +// - parent: The repository in which to create the workflow config. Must +// be in the format `projects/*/locations/*/repositories/*`. +func (r *ProjectsLocationsRepositoriesWorkflowConfigsService) Create(parent string, workflowconfig *WorkflowConfig) *ProjectsLocationsRepositoriesWorkflowConfigsCreateCall { + c := &ProjectsLocationsRepositoriesWorkflowConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.workflowconfig = workflowconfig + return c +} + +// WorkflowConfigId sets the optional parameter "workflowConfigId": +// Required. The ID to use for the workflow config, which will become +// the final component of the workflow config's resource name. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsCreateCall) WorkflowConfigId(workflowConfigId string) *ProjectsLocationsRepositoriesWorkflowConfigsCreateCall { + c.urlParams_.Set("workflowConfigId", workflowConfigId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkflowConfigsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkflowConfigsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkflowConfigsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.workflowconfig) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/workflowConfigs") + 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 "dataform.projects.locations.repositories.workflowConfigs.create" call. +// Exactly one of *WorkflowConfig or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *WorkflowConfig.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 *ProjectsLocationsRepositoriesWorkflowConfigsCreateCall) Do(opts ...googleapi.CallOption) (*WorkflowConfig, 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 := &WorkflowConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new WorkflowConfig in a given Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowConfigs", + // "httpMethod": "POST", + // "id": "dataform.projects.locations.repositories.workflowConfigs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The repository in which to create the workflow config. Must be in the format `projects/*/locations/*/repositories/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "workflowConfigId": { + // "description": "Required. The ID to use for the workflow config, which will become the final component of the workflow config's resource name.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/workflowConfigs", + // "request": { + // "$ref": "WorkflowConfig" + // }, + // "response": { + // "$ref": "WorkflowConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workflowConfigs.delete": + +type ProjectsLocationsRepositoriesWorkflowConfigsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single WorkflowConfig. +// +// - name: The workflow config's name. +func (r *ProjectsLocationsRepositoriesWorkflowConfigsService) Delete(name string) *ProjectsLocationsRepositoriesWorkflowConfigsDeleteCall { + c := &ProjectsLocationsRepositoriesWorkflowConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkflowConfigsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkflowConfigsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkflowConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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 "dataform.projects.locations.repositories.workflowConfigs.delete" call. +// Exactly one of *Empty or error will be non-nil. 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 *ProjectsLocationsRepositoriesWorkflowConfigsDeleteCall) 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 + // { + // "description": "Deletes a single WorkflowConfig.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowConfigs/{workflowConfigsId}", + // "httpMethod": "DELETE", + // "id": "dataform.projects.locations.repositories.workflowConfigs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workflow config's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workflowConfigs.get": + +type ProjectsLocationsRepositoriesWorkflowConfigsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Fetches a single WorkflowConfig. +// +// - name: The workflow config's name. +func (r *ProjectsLocationsRepositoriesWorkflowConfigsService) Get(name string) *ProjectsLocationsRepositoriesWorkflowConfigsGetCall { + c := &ProjectsLocationsRepositoriesWorkflowConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkflowConfigsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkflowConfigsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkflowConfigsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkflowConfigsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+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 "dataform.projects.locations.repositories.workflowConfigs.get" call. +// Exactly one of *WorkflowConfig or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *WorkflowConfig.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 *ProjectsLocationsRepositoriesWorkflowConfigsGetCall) Do(opts ...googleapi.CallOption) (*WorkflowConfig, 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 := &WorkflowConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Fetches a single WorkflowConfig.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowConfigs/{workflowConfigsId}", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workflowConfigs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The workflow config's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "WorkflowConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "dataform.projects.locations.repositories.workflowConfigs.list": + +type ProjectsLocationsRepositoriesWorkflowConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists WorkflowConfigs in a given Repository. +// +// - parent: The repository in which to list workflow configs. Must be +// in the format `projects/*/locations/*/repositories/*`. +func (r *ProjectsLocationsRepositoriesWorkflowConfigsService) List(parent string) *ProjectsLocationsRepositoriesWorkflowConfigsListCall { + c := &ProjectsLocationsRepositoriesWorkflowConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// workflow configs to return. The server may return fewer items than +// requested. If unspecified, the server will pick an appropriate +// default. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesWorkflowConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token +// received from a previous `ListWorkflowConfigs` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListWorkflowConfigs` must match the call that provided +// the page token. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesWorkflowConfigsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkflowConfigsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesWorkflowConfigsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkflowConfigsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkflowConfigsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/workflowConfigs") + 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 "dataform.projects.locations.repositories.workflowConfigs.list" call. +// Exactly one of *ListWorkflowConfigsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListWorkflowConfigsResponse.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 *ProjectsLocationsRepositoriesWorkflowConfigsListCall) Do(opts ...googleapi.CallOption) (*ListWorkflowConfigsResponse, 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 := &ListWorkflowConfigsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists WorkflowConfigs in a given Repository.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowConfigs", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.workflowConfigs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. Maximum number of workflow configs to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. Page token received from a previous `ListWorkflowConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWorkflowConfigs` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The repository in which to list workflow configs. Must be in the format `projects/*/locations/*/repositories/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/workflowConfigs", + // "response": { + // "$ref": "ListWorkflowConfigsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// 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 *ProjectsLocationsRepositoriesWorkflowConfigsListCall) Pages(ctx context.Context, f func(*ListWorkflowConfigsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "dataform.projects.locations.repositories.workflowConfigs.patch": + +type ProjectsLocationsRepositoriesWorkflowConfigsPatchCall struct { + s *Service + name string + workflowconfig *WorkflowConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a single WorkflowConfig. +// +// - name: Output only. The workflow config's name. +func (r *ProjectsLocationsRepositoriesWorkflowConfigsService) Patch(name string, workflowconfig *WorkflowConfig) *ProjectsLocationsRepositoriesWorkflowConfigsPatchCall { + c := &ProjectsLocationsRepositoriesWorkflowConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.workflowconfig = workflowconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": Specifies the +// fields to be updated in the workflow config. If left unset, all +// fields will be updated. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesWorkflowConfigsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesWorkflowConfigsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesWorkflowConfigsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesWorkflowConfigsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesWorkflowConfigsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.workflowconfig) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.workflowConfigs.patch" call. +// Exactly one of *WorkflowConfig or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *WorkflowConfig.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 *ProjectsLocationsRepositoriesWorkflowConfigsPatchCall) Do(opts ...googleapi.CallOption) (*WorkflowConfig, 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 := &WorkflowConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a single WorkflowConfig.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowConfigs/{workflowConfigsId}", + // "httpMethod": "PATCH", + // "id": "dataform.projects.locations.repositories.workflowConfigs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The workflow config's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. Specifies the fields to be updated in the workflow config. If left unset, all fields will be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "WorkflowConfig" + // }, + // "response": { + // "$ref": "WorkflowConfig" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "dataform.projects.locations.repositories.workflowInvocations.cancel": type ProjectsLocationsRepositoriesWorkflowInvocationsCancelCall struct { diff --git a/datafusion/v1/datafusion-gen.go b/datafusion/v1/datafusion-gen.go index e78e7e8b4bd..1476fcfd3df 100644 --- a/datafusion/v1/datafusion-gen.go +++ b/datafusion/v1/datafusion-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/datafusion/v1beta1/datafusion-gen.go b/datafusion/v1beta1/datafusion-gen.go index 6d88fc04db1..d8c6b8b62be 100644 --- a/datafusion/v1beta1/datafusion-gen.go +++ b/datafusion/v1beta1/datafusion-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/datalabeling/v1beta1/datalabeling-gen.go b/datalabeling/v1beta1/datalabeling-gen.go index 3ab59676afd..131b4c5ce92 100644 --- a/datalabeling/v1beta1/datalabeling-gen.go +++ b/datalabeling/v1beta1/datalabeling-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index c7613da75f1..aba581633ed 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/datamigration/v1beta1/datamigration-gen.go b/datamigration/v1beta1/datamigration-gen.go index 22b9e2bc612..b0c1b59acec 100644 --- a/datamigration/v1beta1/datamigration-gen.go +++ b/datamigration/v1beta1/datamigration-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/datapipelines/v1/datapipelines-gen.go b/datapipelines/v1/datapipelines-gen.go index 5f8ce087cd6..1ae8efcd04a 100644 --- a/datapipelines/v1/datapipelines-gen.go +++ b/datapipelines/v1/datapipelines-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index ab218c47b18..a00ec911cbf 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/dataproc/v1/dataproc-gen.go b/dataproc/v1/dataproc-gen.go index 78711646e95..d714cca1818 100644 --- a/dataproc/v1/dataproc-gen.go +++ b/dataproc/v1/dataproc-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/datastore/v1/datastore-gen.go b/datastore/v1/datastore-gen.go index 233c4bc73b2..387faee6e83 100644 --- a/datastore/v1/datastore-gen.go +++ b/datastore/v1/datastore-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/datastore/v1beta1/datastore-gen.go b/datastore/v1beta1/datastore-gen.go index fff9539cf3b..87f9d5266bb 100644 --- a/datastore/v1beta1/datastore-gen.go +++ b/datastore/v1beta1/datastore-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/datastore/v1beta3/datastore-gen.go b/datastore/v1beta3/datastore-gen.go index 672453a64d3..c61684c1ef1 100644 --- a/datastore/v1beta3/datastore-gen.go +++ b/datastore/v1beta3/datastore-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/datastream/v1/datastream-gen.go b/datastream/v1/datastream-gen.go index 07f5cca88d4..efe7a9a8fa9 100644 --- a/datastream/v1/datastream-gen.go +++ b/datastream/v1/datastream-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/datastream/v1alpha1/datastream-gen.go b/datastream/v1alpha1/datastream-gen.go index cb717870cef..c7b190f50ec 100644 --- a/datastream/v1alpha1/datastream-gen.go +++ b/datastream/v1alpha1/datastream-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/deploymentmanager/v0.alpha/deploymentmanager-gen.go b/deploymentmanager/v0.alpha/deploymentmanager-gen.go index cdc7f1e49d6..652644df87f 100644 --- a/deploymentmanager/v0.alpha/deploymentmanager-gen.go +++ b/deploymentmanager/v0.alpha/deploymentmanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/deploymentmanager/v2/deploymentmanager-gen.go b/deploymentmanager/v2/deploymentmanager-gen.go index fd1d150f8a9..f8a7ba65b0e 100644 --- a/deploymentmanager/v2/deploymentmanager-gen.go +++ b/deploymentmanager/v2/deploymentmanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/deploymentmanager/v2beta/deploymentmanager-gen.go b/deploymentmanager/v2beta/deploymentmanager-gen.go index afb05683c44..30d91640398 100644 --- a/deploymentmanager/v2beta/deploymentmanager-gen.go +++ b/deploymentmanager/v2beta/deploymentmanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/dfareporting/v3.5/dfareporting-gen.go b/dfareporting/v3.5/dfareporting-gen.go index b17744cf269..ac3c21e1eb6 100644 --- a/dfareporting/v3.5/dfareporting-gen.go +++ b/dfareporting/v3.5/dfareporting-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/dfareporting/v4/dfareporting-gen.go b/dfareporting/v4/dfareporting-gen.go index 84b316c2a18..8a0aa0851e3 100644 --- a/dfareporting/v4/dfareporting-gen.go +++ b/dfareporting/v4/dfareporting-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index 74fbd0edba8..4350ade17d8 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index 7d3e55f1ac6..cdfd2fe6b7e 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index 3d082f6bd8f..ddeb4971774 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index cc2f4b917b0..7353509f588 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/digitalassetlinks/v1/digitalassetlinks-gen.go b/digitalassetlinks/v1/digitalassetlinks-gen.go index 7a29fea9f09..7bdfd5eb822 100644 --- a/digitalassetlinks/v1/digitalassetlinks-gen.go +++ b/digitalassetlinks/v1/digitalassetlinks-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/discovery/v1/discovery-gen.go b/discovery/v1/discovery-gen.go index eb9389d0fa2..ddeb4c916f0 100644 --- a/discovery/v1/discovery-gen.go +++ b/discovery/v1/discovery-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/discoveryengine/v1alpha/discoveryengine-gen.go b/discoveryengine/v1alpha/discoveryengine-gen.go index c1825714aa1..a0f64527a4c 100644 --- a/discoveryengine/v1alpha/discoveryengine-gen.go +++ b/discoveryengine/v1alpha/discoveryengine-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/discoveryengine/v1beta/discoveryengine-gen.go b/discoveryengine/v1beta/discoveryengine-gen.go index 57e6b63e54c..ac3c22eb2e1 100644 --- a/discoveryengine/v1beta/discoveryengine-gen.go +++ b/discoveryengine/v1beta/discoveryengine-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/displayvideo/v1/displayvideo-api.json b/displayvideo/v1/displayvideo-api.json index e17c64c73f5..6ae0b7c5183 100644 --- a/displayvideo/v1/displayvideo-api.json +++ b/displayvideo/v1/displayvideo-api.json @@ -8146,7 +8146,7 @@ } } }, - "revision": "20221110", + "revision": "20230105", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -12577,7 +12577,11 @@ "EXCHANGE_MEDIANET", "EXCHANGE_TAPJOY", "EXCHANGE_VISTAR", - "EXCHANGE_DAX" + "EXCHANGE_DAX", + "EXCHANGE_JCD", + "EXCHANGE_PLACE_EXCHANGE", + "EXCHANGE_APPLOVIN", + "EXCHANGE_CONNATIX" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -12648,7 +12652,11 @@ "Media.net.", "Tapjoy.", "Vistar.", - "DAX." + "DAX.", + "JCD.", + "Place Exchange.", + "AppLovin.", + "Connatix." ], "type": "string" }, @@ -12745,7 +12753,11 @@ "EXCHANGE_MEDIANET", "EXCHANGE_TAPJOY", "EXCHANGE_VISTAR", - "EXCHANGE_DAX" + "EXCHANGE_DAX", + "EXCHANGE_JCD", + "EXCHANGE_PLACE_EXCHANGE", + "EXCHANGE_APPLOVIN", + "EXCHANGE_CONNATIX" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -12816,7 +12828,11 @@ "Media.net.", "Tapjoy.", "Vistar.", - "DAX." + "DAX.", + "JCD.", + "Place Exchange.", + "AppLovin.", + "Connatix." ], "type": "string" }, @@ -12914,7 +12930,11 @@ "EXCHANGE_MEDIANET", "EXCHANGE_TAPJOY", "EXCHANGE_VISTAR", - "EXCHANGE_DAX" + "EXCHANGE_DAX", + "EXCHANGE_JCD", + "EXCHANGE_PLACE_EXCHANGE", + "EXCHANGE_APPLOVIN", + "EXCHANGE_CONNATIX" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -12985,7 +13005,11 @@ "Media.net.", "Tapjoy.", "Vistar.", - "DAX." + "DAX.", + "JCD.", + "Place Exchange.", + "AppLovin.", + "Connatix." ], "readOnly": true, "type": "string" @@ -13824,7 +13848,11 @@ "EXCHANGE_MEDIANET", "EXCHANGE_TAPJOY", "EXCHANGE_VISTAR", - "EXCHANGE_DAX" + "EXCHANGE_DAX", + "EXCHANGE_JCD", + "EXCHANGE_PLACE_EXCHANGE", + "EXCHANGE_APPLOVIN", + "EXCHANGE_CONNATIX" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -13895,7 +13923,11 @@ "Media.net.", "Tapjoy.", "Vistar.", - "DAX." + "DAX.", + "JCD.", + "Place Exchange.", + "AppLovin.", + "Connatix." ], "type": "string" }, @@ -14665,7 +14697,11 @@ "EXCHANGE_MEDIANET", "EXCHANGE_TAPJOY", "EXCHANGE_VISTAR", - "EXCHANGE_DAX" + "EXCHANGE_DAX", + "EXCHANGE_JCD", + "EXCHANGE_PLACE_EXCHANGE", + "EXCHANGE_APPLOVIN", + "EXCHANGE_CONNATIX" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -14736,7 +14772,11 @@ "Media.net.", "Tapjoy.", "Vistar.", - "DAX." + "DAX.", + "JCD.", + "Place Exchange.", + "AppLovin.", + "Connatix." ], "type": "string" }, diff --git a/displayvideo/v1/displayvideo-gen.go b/displayvideo/v1/displayvideo-gen.go index f0b76262838..e1ee453babb 100644 --- a/displayvideo/v1/displayvideo-gen.go +++ b/displayvideo/v1/displayvideo-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -7588,6 +7588,10 @@ type ExchangeConfigEnabledExchange struct { // "EXCHANGE_TAPJOY" - Tapjoy. // "EXCHANGE_VISTAR" - Vistar. // "EXCHANGE_DAX" - DAX. + // "EXCHANGE_JCD" - JCD. + // "EXCHANGE_PLACE_EXCHANGE" - Place Exchange. + // "EXCHANGE_APPLOVIN" - AppLovin. + // "EXCHANGE_CONNATIX" - Connatix. Exchange string `json:"exchange,omitempty"` // GoogleAdManagerAgencyId: Output only. Agency ID of Google Ad Manager. @@ -7702,6 +7706,10 @@ type ExchangeReviewStatus struct { // "EXCHANGE_TAPJOY" - Tapjoy. // "EXCHANGE_VISTAR" - Vistar. // "EXCHANGE_DAX" - DAX. + // "EXCHANGE_JCD" - JCD. + // "EXCHANGE_PLACE_EXCHANGE" - Place Exchange. + // "EXCHANGE_APPLOVIN" - AppLovin. + // "EXCHANGE_CONNATIX" - Connatix. Exchange string `json:"exchange,omitempty"` // Status: Status of the exchange review. @@ -7815,6 +7823,10 @@ type ExchangeTargetingOptionDetails struct { // "EXCHANGE_TAPJOY" - Tapjoy. // "EXCHANGE_VISTAR" - Vistar. // "EXCHANGE_DAX" - DAX. + // "EXCHANGE_JCD" - JCD. + // "EXCHANGE_PLACE_EXCHANGE" - Place Exchange. + // "EXCHANGE_APPLOVIN" - AppLovin. + // "EXCHANGE_CONNATIX" - Connatix. Exchange string `json:"exchange,omitempty"` // ForceSendFields is a list of field names (e.g. "Exchange") to @@ -8930,6 +8942,10 @@ type GuaranteedOrder struct { // "EXCHANGE_TAPJOY" - Tapjoy. // "EXCHANGE_VISTAR" - Vistar. // "EXCHANGE_DAX" - DAX. + // "EXCHANGE_JCD" - JCD. + // "EXCHANGE_PLACE_EXCHANGE" - Place Exchange. + // "EXCHANGE_APPLOVIN" - AppLovin. + // "EXCHANGE_CONNATIX" - Connatix. Exchange string `json:"exchange,omitempty"` // GuaranteedOrderId: Output only. The unique identifier of the @@ -9801,6 +9817,10 @@ type InventorySource struct { // "EXCHANGE_TAPJOY" - Tapjoy. // "EXCHANGE_VISTAR" - Vistar. // "EXCHANGE_DAX" - DAX. + // "EXCHANGE_JCD" - JCD. + // "EXCHANGE_PLACE_EXCHANGE" - Place Exchange. + // "EXCHANGE_APPLOVIN" - AppLovin. + // "EXCHANGE_CONNATIX" - Connatix. Exchange string `json:"exchange,omitempty"` // GuaranteedOrderId: Immutable. The ID of the guaranteed order that diff --git a/displayvideo/v2/displayvideo-api.json b/displayvideo/v2/displayvideo-api.json index 3df6e46874d..f1fa18b1d6d 100644 --- a/displayvideo/v2/displayvideo-api.json +++ b/displayvideo/v2/displayvideo-api.json @@ -8491,7 +8491,7 @@ } } }, - "revision": "20221208", + "revision": "20230105", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -13049,7 +13049,11 @@ "EXCHANGE_MEDIANET", "EXCHANGE_TAPJOY", "EXCHANGE_VISTAR", - "EXCHANGE_DAX" + "EXCHANGE_DAX", + "EXCHANGE_JCD", + "EXCHANGE_PLACE_EXCHANGE", + "EXCHANGE_APPLOVIN", + "EXCHANGE_CONNATIX" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -13120,7 +13124,11 @@ "Media.net.", "Tapjoy.", "Vistar.", - "DAX." + "DAX.", + "JCD.", + "Place Exchange.", + "AppLovin.", + "Connatix." ], "type": "string" } @@ -13216,7 +13224,11 @@ "EXCHANGE_MEDIANET", "EXCHANGE_TAPJOY", "EXCHANGE_VISTAR", - "EXCHANGE_DAX" + "EXCHANGE_DAX", + "EXCHANGE_JCD", + "EXCHANGE_PLACE_EXCHANGE", + "EXCHANGE_APPLOVIN", + "EXCHANGE_CONNATIX" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -13287,7 +13299,11 @@ "Media.net.", "Tapjoy.", "Vistar.", - "DAX." + "DAX.", + "JCD.", + "Place Exchange.", + "AppLovin.", + "Connatix." ], "type": "string" }, @@ -13384,7 +13400,11 @@ "EXCHANGE_MEDIANET", "EXCHANGE_TAPJOY", "EXCHANGE_VISTAR", - "EXCHANGE_DAX" + "EXCHANGE_DAX", + "EXCHANGE_JCD", + "EXCHANGE_PLACE_EXCHANGE", + "EXCHANGE_APPLOVIN", + "EXCHANGE_CONNATIX" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -13455,7 +13475,11 @@ "Media.net.", "Tapjoy.", "Vistar.", - "DAX." + "DAX.", + "JCD.", + "Place Exchange.", + "AppLovin.", + "Connatix." ], "type": "string" }, @@ -13553,7 +13577,11 @@ "EXCHANGE_MEDIANET", "EXCHANGE_TAPJOY", "EXCHANGE_VISTAR", - "EXCHANGE_DAX" + "EXCHANGE_DAX", + "EXCHANGE_JCD", + "EXCHANGE_PLACE_EXCHANGE", + "EXCHANGE_APPLOVIN", + "EXCHANGE_CONNATIX" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -13624,7 +13652,11 @@ "Media.net.", "Tapjoy.", "Vistar.", - "DAX." + "DAX.", + "JCD.", + "Place Exchange.", + "AppLovin.", + "Connatix." ], "readOnly": true, "type": "string" @@ -14482,7 +14514,11 @@ "EXCHANGE_MEDIANET", "EXCHANGE_TAPJOY", "EXCHANGE_VISTAR", - "EXCHANGE_DAX" + "EXCHANGE_DAX", + "EXCHANGE_JCD", + "EXCHANGE_PLACE_EXCHANGE", + "EXCHANGE_APPLOVIN", + "EXCHANGE_CONNATIX" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -14553,7 +14589,11 @@ "Media.net.", "Tapjoy.", "Vistar.", - "DAX." + "DAX.", + "JCD.", + "Place Exchange.", + "AppLovin.", + "Connatix." ], "type": "string" }, @@ -15323,7 +15363,11 @@ "EXCHANGE_MEDIANET", "EXCHANGE_TAPJOY", "EXCHANGE_VISTAR", - "EXCHANGE_DAX" + "EXCHANGE_DAX", + "EXCHANGE_JCD", + "EXCHANGE_PLACE_EXCHANGE", + "EXCHANGE_APPLOVIN", + "EXCHANGE_CONNATIX" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -15394,7 +15438,11 @@ "Media.net.", "Tapjoy.", "Vistar.", - "DAX." + "DAX.", + "JCD.", + "Place Exchange.", + "AppLovin.", + "Connatix." ], "type": "string" }, @@ -19197,6 +19245,74 @@ }, "type": "object" }, + "VideoAdSequenceSettings": { + "description": "Settings related to VideoAdSequence.", + "id": "VideoAdSequenceSettings", + "properties": { + "minimumDuration": { + "description": "The minimum time interval before the same user sees this sequence again.", + "enum": [ + "VIDEO_AD_SEQUENCE_MINIMUM_DURATION_UNSPECIFIED", + "VIDEO_AD_SEQUENCE_MINIMUM_DURATION_WEEK", + "VIDEO_AD_SEQUENCE_MINIMUM_DURATION_MONTH" + ], + "enumDescriptions": [ + "Unspecified or unknown.", + "7 days.", + "30 days." + ], + "type": "string" + }, + "steps": { + "description": "The steps of which the sequence consists.", + "items": { + "$ref": "VideoAdSequenceStep" + }, + "type": "array" + } + }, + "type": "object" + }, + "VideoAdSequenceStep": { + "description": "The detail of a single step in a VideoAdSequence.", + "id": "VideoAdSequenceStep", + "properties": { + "adGroupId": { + "description": "The ID of the corresponding ad group of the step.", + "format": "int64", + "type": "string" + }, + "interactionType": { + "description": "The interaction on the previous step that will lead the viewer to this step. The first step does not have interaction_type.", + "enum": [ + "INTERACTION_TYPE_UNSPECIFIED", + "INTERACTION_TYPE_PAID_VIEW", + "INTERACTION_TYPE_SKIP", + "INTERACTION_TYPE_IMPRESSION", + "INTERACTION_TYPE_ENGAGED_IMPRESSION" + ], + "enumDescriptions": [ + "Unspecified or unknown", + "A paid view.", + "Skipped by the viewer.", + "A (viewed) ad impression.", + "An ad impression that was not immediately skipped by the viewer, but didn't reach the billable event either." + ], + "type": "string" + }, + "previousStepId": { + "description": "The ID of the previous step. The first step does not have previous step.", + "format": "int64", + "type": "string" + }, + "stepId": { + "description": "The ID of the step.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "VideoPlayerSizeAssignedTargetingOptionDetails": { "description": "Video player size targeting option details. This will be populated in the video_player_size_details field when targeting_type is `TARGETING_TYPE_VIDEO_PLAYER_SIZE`. Explicitly targeting all options is not supported. Remove all video player size targeting options to achieve this effect.", "id": "VideoPlayerSizeAssignedTargetingOptionDetails", @@ -19404,6 +19520,10 @@ "$ref": "YoutubeAndPartnersThirdPartyMeasurementSettings", "description": "The third-party measurement settings of the line item." }, + "videoAdSequenceSettings": { + "$ref": "VideoAdSequenceSettings", + "description": "The settings related to VideoAdSequence." + }, "viewFrequencyCap": { "$ref": "FrequencyCap", "description": "The view frequency cap settings of the line item. The max_views field in this settings object must be used if assigning a limited cap." diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go index 80e9f9a62a0..f615f4fe0ec 100644 --- a/displayvideo/v2/displayvideo-gen.go +++ b/displayvideo/v2/displayvideo-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -7801,6 +7801,10 @@ type ExchangeAssignedTargetingOptionDetails struct { // "EXCHANGE_TAPJOY" - Tapjoy. // "EXCHANGE_VISTAR" - Vistar. // "EXCHANGE_DAX" - DAX. + // "EXCHANGE_JCD" - JCD. + // "EXCHANGE_PLACE_EXCHANGE" - Place Exchange. + // "EXCHANGE_APPLOVIN" - AppLovin. + // "EXCHANGE_CONNATIX" - Connatix. Exchange string `json:"exchange,omitempty"` // ForceSendFields is a list of field names (e.g. "Exchange") to @@ -7933,6 +7937,10 @@ type ExchangeConfigEnabledExchange struct { // "EXCHANGE_TAPJOY" - Tapjoy. // "EXCHANGE_VISTAR" - Vistar. // "EXCHANGE_DAX" - DAX. + // "EXCHANGE_JCD" - JCD. + // "EXCHANGE_PLACE_EXCHANGE" - Place Exchange. + // "EXCHANGE_APPLOVIN" - AppLovin. + // "EXCHANGE_CONNATIX" - Connatix. Exchange string `json:"exchange,omitempty"` // GoogleAdManagerAgencyId: Output only. Agency ID of Google Ad Manager. @@ -8047,6 +8055,10 @@ type ExchangeReviewStatus struct { // "EXCHANGE_TAPJOY" - Tapjoy. // "EXCHANGE_VISTAR" - Vistar. // "EXCHANGE_DAX" - DAX. + // "EXCHANGE_JCD" - JCD. + // "EXCHANGE_PLACE_EXCHANGE" - Place Exchange. + // "EXCHANGE_APPLOVIN" - AppLovin. + // "EXCHANGE_CONNATIX" - Connatix. Exchange string `json:"exchange,omitempty"` // Status: Status of the exchange review. @@ -8160,6 +8172,10 @@ type ExchangeTargetingOptionDetails struct { // "EXCHANGE_TAPJOY" - Tapjoy. // "EXCHANGE_VISTAR" - Vistar. // "EXCHANGE_DAX" - DAX. + // "EXCHANGE_JCD" - JCD. + // "EXCHANGE_PLACE_EXCHANGE" - Place Exchange. + // "EXCHANGE_APPLOVIN" - AppLovin. + // "EXCHANGE_CONNATIX" - Connatix. Exchange string `json:"exchange,omitempty"` // ForceSendFields is a list of field names (e.g. "Exchange") to @@ -9312,6 +9328,10 @@ type GuaranteedOrder struct { // "EXCHANGE_TAPJOY" - Tapjoy. // "EXCHANGE_VISTAR" - Vistar. // "EXCHANGE_DAX" - DAX. + // "EXCHANGE_JCD" - JCD. + // "EXCHANGE_PLACE_EXCHANGE" - Place Exchange. + // "EXCHANGE_APPLOVIN" - AppLovin. + // "EXCHANGE_CONNATIX" - Connatix. Exchange string `json:"exchange,omitempty"` // GuaranteedOrderId: Output only. The unique identifier of the @@ -10183,6 +10203,10 @@ type InventorySource struct { // "EXCHANGE_TAPJOY" - Tapjoy. // "EXCHANGE_VISTAR" - Vistar. // "EXCHANGE_DAX" - DAX. + // "EXCHANGE_JCD" - JCD. + // "EXCHANGE_PLACE_EXCHANGE" - Place Exchange. + // "EXCHANGE_APPLOVIN" - AppLovin. + // "EXCHANGE_CONNATIX" - Connatix. Exchange string `json:"exchange,omitempty"` // GuaranteedOrderId: Immutable. The ID of the guaranteed order that @@ -16465,6 +16489,95 @@ func (s *UserRewardedContentTargetingOptionDetails) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// VideoAdSequenceSettings: Settings related to VideoAdSequence. +type VideoAdSequenceSettings struct { + // MinimumDuration: The minimum time interval before the same user sees + // this sequence again. + // + // Possible values: + // "VIDEO_AD_SEQUENCE_MINIMUM_DURATION_UNSPECIFIED" - Unspecified or + // unknown. + // "VIDEO_AD_SEQUENCE_MINIMUM_DURATION_WEEK" - 7 days. + // "VIDEO_AD_SEQUENCE_MINIMUM_DURATION_MONTH" - 30 days. + MinimumDuration string `json:"minimumDuration,omitempty"` + + // Steps: The steps of which the sequence consists. + Steps []*VideoAdSequenceStep `json:"steps,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MinimumDuration") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MinimumDuration") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *VideoAdSequenceSettings) MarshalJSON() ([]byte, error) { + type NoMethod VideoAdSequenceSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// VideoAdSequenceStep: The detail of a single step in a +// VideoAdSequence. +type VideoAdSequenceStep struct { + // AdGroupId: The ID of the corresponding ad group of the step. + AdGroupId int64 `json:"adGroupId,omitempty,string"` + + // InteractionType: The interaction on the previous step that will lead + // the viewer to this step. The first step does not have + // interaction_type. + // + // Possible values: + // "INTERACTION_TYPE_UNSPECIFIED" - Unspecified or unknown + // "INTERACTION_TYPE_PAID_VIEW" - A paid view. + // "INTERACTION_TYPE_SKIP" - Skipped by the viewer. + // "INTERACTION_TYPE_IMPRESSION" - A (viewed) ad impression. + // "INTERACTION_TYPE_ENGAGED_IMPRESSION" - An ad impression that was + // not immediately skipped by the viewer, but didn't reach the billable + // event either. + InteractionType string `json:"interactionType,omitempty"` + + // PreviousStepId: The ID of the previous step. The first step does not + // have previous step. + PreviousStepId int64 `json:"previousStepId,omitempty,string"` + + // StepId: The ID of the step. + StepId int64 `json:"stepId,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "AdGroupId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AdGroupId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *VideoAdSequenceStep) MarshalJSON() ([]byte, error) { + type NoMethod VideoAdSequenceStep + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // VideoPlayerSizeAssignedTargetingOptionDetails: Video player size // targeting option details. This will be populated in the // video_player_size_details field when targeting_type is @@ -16807,6 +16920,9 @@ type YoutubeAndPartnersSettings struct { // of the line item. ThirdPartyMeasurementSettings *YoutubeAndPartnersThirdPartyMeasurementSettings `json:"thirdPartyMeasurementSettings,omitempty"` + // VideoAdSequenceSettings: The settings related to VideoAdSequence. + VideoAdSequenceSettings *VideoAdSequenceSettings `json:"videoAdSequenceSettings,omitempty"` + // ViewFrequencyCap: The view frequency cap settings of the line item. // The max_views field in this settings object must be used if assigning // a limited cap. diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index acf682c3ee2..5e389bf209c 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/dns/v1/dns-gen.go b/dns/v1/dns-gen.go index 378d5a5ef91..32b96680875 100644 --- a/dns/v1/dns-gen.go +++ b/dns/v1/dns-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/dns/v1beta2/dns-gen.go b/dns/v1beta2/dns-gen.go index 4cd920f4cc7..081a14dad64 100644 --- a/dns/v1beta2/dns-gen.go +++ b/dns/v1beta2/dns-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/docs/v1/docs-gen.go b/docs/v1/docs-gen.go index 16c0c9ad8c5..375d331cf66 100644 --- a/docs/v1/docs-gen.go +++ b/docs/v1/docs-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index 6b0ec6ad70c..86b6fc6da11 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/documentai/v1beta2/documentai-gen.go b/documentai/v1beta2/documentai-gen.go index b8856c498d3..d0cf8b84080 100644 --- a/documentai/v1beta2/documentai-gen.go +++ b/documentai/v1beta2/documentai-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index 184bebfec1b..247c6efbe99 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/domains/v1/domains-gen.go b/domains/v1/domains-gen.go index fa9256d5b3e..a1c4a824554 100644 --- a/domains/v1/domains-gen.go +++ b/domains/v1/domains-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/domains/v1alpha2/domains-gen.go b/domains/v1alpha2/domains-gen.go index 26df4d83f93..e5724ee8ebd 100644 --- a/domains/v1alpha2/domains-gen.go +++ b/domains/v1alpha2/domains-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/domains/v1beta1/domains-gen.go b/domains/v1beta1/domains-gen.go index e5c58d67966..01b482e6a80 100644 --- a/domains/v1beta1/domains-gen.go +++ b/domains/v1beta1/domains-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/domainsrdap/v1/domainsrdap-gen.go b/domainsrdap/v1/domainsrdap-gen.go index a1cb655ec27..67e7e1a93a1 100644 --- a/domainsrdap/v1/domainsrdap-gen.go +++ b/domainsrdap/v1/domainsrdap-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/doubleclickbidmanager/v1.1/doubleclickbidmanager-gen.go b/doubleclickbidmanager/v1.1/doubleclickbidmanager-gen.go index e7db0fbcb6d..eb22dbba8c5 100644 --- a/doubleclickbidmanager/v1.1/doubleclickbidmanager-gen.go +++ b/doubleclickbidmanager/v1.1/doubleclickbidmanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go b/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go index d261481edad..897740631ed 100644 --- a/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go +++ b/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/doubleclicksearch/v2/doubleclicksearch-gen.go b/doubleclicksearch/v2/doubleclicksearch-gen.go index efac53a9409..2ee328053ae 100644 --- a/doubleclicksearch/v2/doubleclicksearch-gen.go +++ b/doubleclicksearch/v2/doubleclicksearch-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/drive/v2/drive-gen.go b/drive/v2/drive-gen.go index a6195bbd896..4d3dffba682 100644 --- a/drive/v2/drive-gen.go +++ b/drive/v2/drive-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/drive/v3/drive-gen.go b/drive/v3/drive-gen.go index 6ef6df23c7a..2fc445a0ccd 100644 --- a/drive/v3/drive-gen.go +++ b/drive/v3/drive-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/driveactivity/v2/driveactivity-gen.go b/driveactivity/v2/driveactivity-gen.go index 738e8ec8960..da4de21272c 100644 --- a/driveactivity/v2/driveactivity-gen.go +++ b/driveactivity/v2/driveactivity-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/drivelabels/v2/drivelabels-gen.go b/drivelabels/v2/drivelabels-gen.go index 81411ce497d..09473e8c83f 100644 --- a/drivelabels/v2/drivelabels-gen.go +++ b/drivelabels/v2/drivelabels-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/drivelabels/v2beta/drivelabels-gen.go b/drivelabels/v2beta/drivelabels-gen.go index a6fa14a1d9d..d2af8dd0df2 100644 --- a/drivelabels/v2beta/drivelabels-gen.go +++ b/drivelabels/v2beta/drivelabels-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/essentialcontacts/v1/essentialcontacts-gen.go b/essentialcontacts/v1/essentialcontacts-gen.go index 252905f18b4..fe94fb35533 100644 --- a/essentialcontacts/v1/essentialcontacts-gen.go +++ b/essentialcontacts/v1/essentialcontacts-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/eventarc/v1/eventarc-gen.go b/eventarc/v1/eventarc-gen.go index c126d91258b..2d93f2a9af7 100644 --- a/eventarc/v1/eventarc-gen.go +++ b/eventarc/v1/eventarc-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/eventarc/v1beta1/eventarc-gen.go b/eventarc/v1beta1/eventarc-gen.go index f3916e17adc..3230fc7623a 100644 --- a/eventarc/v1beta1/eventarc-gen.go +++ b/eventarc/v1beta1/eventarc-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/factchecktools/v1alpha1/factchecktools-gen.go b/factchecktools/v1alpha1/factchecktools-gen.go index 5665f22590b..4ca7e2f23eb 100644 --- a/factchecktools/v1alpha1/factchecktools-gen.go +++ b/factchecktools/v1alpha1/factchecktools-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/fcm/v1/fcm-gen.go b/fcm/v1/fcm-gen.go index fc7e9f5e50d..61976606dcc 100644 --- a/fcm/v1/fcm-gen.go +++ b/fcm/v1/fcm-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/fcmdata/v1beta1/fcmdata-gen.go b/fcmdata/v1beta1/fcmdata-gen.go index 0fa550c7e39..35f044476dc 100644 --- a/fcmdata/v1beta1/fcmdata-gen.go +++ b/fcmdata/v1beta1/fcmdata-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/file/v1/file-gen.go b/file/v1/file-gen.go index 8668617431d..a6786811017 100644 --- a/file/v1/file-gen.go +++ b/file/v1/file-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/file/v1beta1/file-gen.go b/file/v1beta1/file-gen.go index 28aa7761a7a..e7c24d2f475 100644 --- a/file/v1beta1/file-gen.go +++ b/file/v1beta1/file-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/firebase/v1beta1/firebase-gen.go b/firebase/v1beta1/firebase-gen.go index 7de35c029e1..fb93cae7864 100644 --- a/firebase/v1beta1/firebase-gen.go +++ b/firebase/v1beta1/firebase-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/firebaseappcheck/v1/firebaseappcheck-gen.go b/firebaseappcheck/v1/firebaseappcheck-gen.go index b1b3ff930bc..3516813b2b9 100644 --- a/firebaseappcheck/v1/firebaseappcheck-gen.go +++ b/firebaseappcheck/v1/firebaseappcheck-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/firebaseappcheck/v1beta/firebaseappcheck-gen.go b/firebaseappcheck/v1beta/firebaseappcheck-gen.go index 3680b434b66..affce3c1795 100644 --- a/firebaseappcheck/v1beta/firebaseappcheck-gen.go +++ b/firebaseappcheck/v1beta/firebaseappcheck-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/firebasedatabase/v1beta/firebasedatabase-gen.go b/firebasedatabase/v1beta/firebasedatabase-gen.go index f90e24f125a..504f431d44b 100644 --- a/firebasedatabase/v1beta/firebasedatabase-gen.go +++ b/firebasedatabase/v1beta/firebasedatabase-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/firebasedynamiclinks/v1/firebasedynamiclinks-gen.go b/firebasedynamiclinks/v1/firebasedynamiclinks-gen.go index 7e111d16c7a..d8dba7398f0 100644 --- a/firebasedynamiclinks/v1/firebasedynamiclinks-gen.go +++ b/firebasedynamiclinks/v1/firebasedynamiclinks-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/firebasehosting/v1/firebasehosting-gen.go b/firebasehosting/v1/firebasehosting-gen.go index 2b697cba236..11c7e933f81 100644 --- a/firebasehosting/v1/firebasehosting-gen.go +++ b/firebasehosting/v1/firebasehosting-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/firebasehosting/v1beta1/firebasehosting-gen.go b/firebasehosting/v1beta1/firebasehosting-gen.go index 81b7d77cfbe..623a046903d 100644 --- a/firebasehosting/v1beta1/firebasehosting-gen.go +++ b/firebasehosting/v1beta1/firebasehosting-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/firebaseml/v1/firebaseml-gen.go b/firebaseml/v1/firebaseml-gen.go index 13bf78a0963..ccbf2070376 100644 --- a/firebaseml/v1/firebaseml-gen.go +++ b/firebaseml/v1/firebaseml-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/firebaseml/v1beta2/firebaseml-gen.go b/firebaseml/v1beta2/firebaseml-gen.go index dddcd5886ba..80351193bf8 100644 --- a/firebaseml/v1beta2/firebaseml-gen.go +++ b/firebaseml/v1beta2/firebaseml-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/firebaserules/v1/firebaserules-gen.go b/firebaserules/v1/firebaserules-gen.go index 4365140ac8c..5e43b4041a0 100644 --- a/firebaserules/v1/firebaserules-gen.go +++ b/firebaserules/v1/firebaserules-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/firebasestorage/v1beta/firebasestorage-gen.go b/firebasestorage/v1beta/firebasestorage-gen.go index 62a7d9ea4da..44d53ea4f00 100644 --- a/firebasestorage/v1beta/firebasestorage-gen.go +++ b/firebasestorage/v1beta/firebasestorage-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/firestore/v1/firestore-gen.go b/firestore/v1/firestore-gen.go index 66c7d7ec60e..d73858683db 100644 --- a/firestore/v1/firestore-gen.go +++ b/firestore/v1/firestore-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/firestore/v1beta1/firestore-gen.go b/firestore/v1beta1/firestore-gen.go index e92033beff0..44a8ad168bf 100644 --- a/firestore/v1beta1/firestore-gen.go +++ b/firestore/v1beta1/firestore-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/firestore/v1beta2/firestore-gen.go b/firestore/v1beta2/firestore-gen.go index 5f1e738d03e..4c17192cf7c 100644 --- a/firestore/v1beta2/firestore-gen.go +++ b/firestore/v1beta2/firestore-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/fitness/v1/fitness-gen.go b/fitness/v1/fitness-gen.go index bb874492d45..e8d26f4a0c5 100644 --- a/fitness/v1/fitness-gen.go +++ b/fitness/v1/fitness-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/forms/v1/forms-gen.go b/forms/v1/forms-gen.go index 50946558125..ae85cb0fff8 100644 --- a/forms/v1/forms-gen.go +++ b/forms/v1/forms-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/games/v1/games-gen.go b/games/v1/games-gen.go index 0794a32a8ee..3ba2e8bd859 100644 --- a/games/v1/games-gen.go +++ b/games/v1/games-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/gamesconfiguration/v1configuration/gamesconfiguration-gen.go b/gamesconfiguration/v1configuration/gamesconfiguration-gen.go index d4361e11143..e0ec9a0ad08 100644 --- a/gamesconfiguration/v1configuration/gamesconfiguration-gen.go +++ b/gamesconfiguration/v1configuration/gamesconfiguration-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/gameservices/v1/gameservices-gen.go b/gameservices/v1/gameservices-gen.go index 4003e2b25ba..8ecc96e7211 100644 --- a/gameservices/v1/gameservices-gen.go +++ b/gameservices/v1/gameservices-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/gameservices/v1beta/gameservices-gen.go b/gameservices/v1beta/gameservices-gen.go index 4277964640f..a7e69286eba 100644 --- a/gameservices/v1beta/gameservices-gen.go +++ b/gameservices/v1beta/gameservices-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/gamesmanagement/v1management/gamesmanagement-gen.go b/gamesmanagement/v1management/gamesmanagement-gen.go index 5a44a12e351..9ceeb9776b3 100644 --- a/gamesmanagement/v1management/gamesmanagement-gen.go +++ b/gamesmanagement/v1management/gamesmanagement-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/genomics/v2alpha1/genomics-gen.go b/genomics/v2alpha1/genomics-gen.go index 8c05059f95b..595aa6bc179 100644 --- a/genomics/v2alpha1/genomics-gen.go +++ b/genomics/v2alpha1/genomics-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/gkebackup/v1/gkebackup-gen.go b/gkebackup/v1/gkebackup-gen.go index 751f88c2e4f..d4130887c78 100644 --- a/gkebackup/v1/gkebackup-gen.go +++ b/gkebackup/v1/gkebackup-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/gkehub/v1/gkehub-gen.go b/gkehub/v1/gkehub-gen.go index a2fd4609998..01a6ee74b11 100644 --- a/gkehub/v1/gkehub-gen.go +++ b/gkehub/v1/gkehub-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index 7ec3741ba4a..c9c738c3aa5 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/gkehub/v1alpha2/gkehub-gen.go b/gkehub/v1alpha2/gkehub-gen.go index 261c0015915..2cef72cb9a4 100644 --- a/gkehub/v1alpha2/gkehub-gen.go +++ b/gkehub/v1alpha2/gkehub-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index ee68be848be..00e11eaf245 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/gkehub/v1beta1/gkehub-gen.go b/gkehub/v1beta1/gkehub-gen.go index f0591ffbc8c..699878176c8 100644 --- a/gkehub/v1beta1/gkehub-gen.go +++ b/gkehub/v1beta1/gkehub-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/gkehub/v2alpha/gkehub-gen.go b/gkehub/v2alpha/gkehub-gen.go index 8412cac79f8..ebe47b2331c 100644 --- a/gkehub/v2alpha/gkehub-gen.go +++ b/gkehub/v2alpha/gkehub-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/gmail/v1/gmail-gen.go b/gmail/v1/gmail-gen.go index 01decdbc1b6..30d0b980ecf 100644 --- a/gmail/v1/gmail-gen.go +++ b/gmail/v1/gmail-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/gmailpostmastertools/v1/gmailpostmastertools-gen.go b/gmailpostmastertools/v1/gmailpostmastertools-gen.go index e9aa640ef6c..9ab4747c046 100644 --- a/gmailpostmastertools/v1/gmailpostmastertools-gen.go +++ b/gmailpostmastertools/v1/gmailpostmastertools-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/gmailpostmastertools/v1beta1/gmailpostmastertools-gen.go b/gmailpostmastertools/v1beta1/gmailpostmastertools-gen.go index 41c15de985b..80772035dce 100644 --- a/gmailpostmastertools/v1beta1/gmailpostmastertools-gen.go +++ b/gmailpostmastertools/v1beta1/gmailpostmastertools-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/groupsmigration/v1/groupsmigration-gen.go b/groupsmigration/v1/groupsmigration-gen.go index 76bbefe7f62..7afdcec82ee 100644 --- a/groupsmigration/v1/groupsmigration-gen.go +++ b/groupsmigration/v1/groupsmigration-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/groupssettings/v1/groupssettings-gen.go b/groupssettings/v1/groupssettings-gen.go index e1ae71f1bf6..9cbef46e5a8 100644 --- a/groupssettings/v1/groupssettings-gen.go +++ b/groupssettings/v1/groupssettings-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/homegraph/v1/homegraph-gen.go b/homegraph/v1/homegraph-gen.go index e75e08aeca2..3316eda1291 100644 --- a/homegraph/v1/homegraph-gen.go +++ b/homegraph/v1/homegraph-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/iam/v1/iam-gen.go b/iam/v1/iam-gen.go index d099d34598b..69093e884e1 100644 --- a/iam/v1/iam-gen.go +++ b/iam/v1/iam-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/iam/v2beta/iam-gen.go b/iam/v2beta/iam-gen.go index fd8b4579783..730f87f959e 100644 --- a/iam/v2beta/iam-gen.go +++ b/iam/v2beta/iam-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/iamcredentials/v1/iamcredentials-gen.go b/iamcredentials/v1/iamcredentials-gen.go index 63e5ef64c0d..29302a1e993 100644 --- a/iamcredentials/v1/iamcredentials-gen.go +++ b/iamcredentials/v1/iamcredentials-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/iap/v1/iap-gen.go b/iap/v1/iap-gen.go index 1e5d63ad550..e9a1e5337c6 100644 --- a/iap/v1/iap-gen.go +++ b/iap/v1/iap-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/iap/v1beta1/iap-gen.go b/iap/v1beta1/iap-gen.go index 3572446c371..71f1b8c4301 100644 --- a/iap/v1beta1/iap-gen.go +++ b/iap/v1beta1/iap-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/ideahub/v1beta/ideahub-gen.go b/ideahub/v1beta/ideahub-gen.go index 34145b7c691..83587bc924c 100644 --- a/ideahub/v1beta/ideahub-gen.go +++ b/ideahub/v1beta/ideahub-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/identitytoolkit/v1/identitytoolkit-gen.go b/identitytoolkit/v1/identitytoolkit-gen.go index 4e05f85b366..f61c0278c57 100644 --- a/identitytoolkit/v1/identitytoolkit-gen.go +++ b/identitytoolkit/v1/identitytoolkit-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/identitytoolkit/v2/identitytoolkit-gen.go b/identitytoolkit/v2/identitytoolkit-gen.go index 4cd0dba8a86..cdb66d6dc44 100644 --- a/identitytoolkit/v2/identitytoolkit-gen.go +++ b/identitytoolkit/v2/identitytoolkit-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/identitytoolkit/v3/identitytoolkit-gen.go b/identitytoolkit/v3/identitytoolkit-gen.go index 6243fe2ed3f..d8cef399ead 100644 --- a/identitytoolkit/v3/identitytoolkit-gen.go +++ b/identitytoolkit/v3/identitytoolkit-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/ids/v1/ids-gen.go b/ids/v1/ids-gen.go index bfa3e5156c0..20ddbee612f 100644 --- a/ids/v1/ids-gen.go +++ b/ids/v1/ids-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/indexing/v3/indexing-gen.go b/indexing/v3/indexing-gen.go index fdeb409d06f..f2c904dea3e 100644 --- a/indexing/v3/indexing-gen.go +++ b/indexing/v3/indexing-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/jobs/v3/jobs-gen.go b/jobs/v3/jobs-gen.go index cf3295d9497..ff201eae88f 100644 --- a/jobs/v3/jobs-gen.go +++ b/jobs/v3/jobs-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/jobs/v3p1beta1/jobs-gen.go b/jobs/v3p1beta1/jobs-gen.go index 051880e6520..6c868e95afe 100644 --- a/jobs/v3p1beta1/jobs-gen.go +++ b/jobs/v3p1beta1/jobs-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/jobs/v4/jobs-gen.go b/jobs/v4/jobs-gen.go index 95f82d14bb3..e9405f2041c 100644 --- a/jobs/v4/jobs-gen.go +++ b/jobs/v4/jobs-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/keep/v1/keep-gen.go b/keep/v1/keep-gen.go index 8ad87947253..36b615a229e 100644 --- a/keep/v1/keep-gen.go +++ b/keep/v1/keep-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/kgsearch/v1/kgsearch-gen.go b/kgsearch/v1/kgsearch-gen.go index 961b5a40cdf..8342a01daba 100644 --- a/kgsearch/v1/kgsearch-gen.go +++ b/kgsearch/v1/kgsearch-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/language/v1/language-gen.go b/language/v1/language-gen.go index 1ec55628b7c..81aea83f9c2 100644 --- a/language/v1/language-gen.go +++ b/language/v1/language-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/language/v1beta1/language-gen.go b/language/v1beta1/language-gen.go index 5519b9ccddb..51a2636af33 100644 --- a/language/v1beta1/language-gen.go +++ b/language/v1beta1/language-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/language/v1beta2/language-gen.go b/language/v1beta2/language-gen.go index 4fb8bfd133f..a91dcc1328b 100644 --- a/language/v1beta2/language-gen.go +++ b/language/v1beta2/language-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/libraryagent/v1/libraryagent-gen.go b/libraryagent/v1/libraryagent-gen.go index 1a9db6817a2..cac6001f051 100644 --- a/libraryagent/v1/libraryagent-gen.go +++ b/libraryagent/v1/libraryagent-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/licensing/v1/licensing-gen.go b/licensing/v1/licensing-gen.go index 8eb498fb569..7b12981e5ed 100644 --- a/licensing/v1/licensing-gen.go +++ b/licensing/v1/licensing-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/lifesciences/v2beta/lifesciences-gen.go b/lifesciences/v2beta/lifesciences-gen.go index b78217665a8..0f1c44bef0f 100644 --- a/lifesciences/v2beta/lifesciences-gen.go +++ b/lifesciences/v2beta/lifesciences-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/localservices/v1/localservices-gen.go b/localservices/v1/localservices-gen.go index 38674b72380..633307fb882 100644 --- a/localservices/v1/localservices-gen.go +++ b/localservices/v1/localservices-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/logging/v2/logging-gen.go b/logging/v2/logging-gen.go index fa829882def..5f1b0ae2468 100644 --- a/logging/v2/logging-gen.go +++ b/logging/v2/logging-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/managedidentities/v1/managedidentities-gen.go b/managedidentities/v1/managedidentities-gen.go index b664c25ff28..3b339c593c7 100644 --- a/managedidentities/v1/managedidentities-gen.go +++ b/managedidentities/v1/managedidentities-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/managedidentities/v1alpha1/managedidentities-gen.go b/managedidentities/v1alpha1/managedidentities-gen.go index a0549ce657c..0e10632002e 100644 --- a/managedidentities/v1alpha1/managedidentities-gen.go +++ b/managedidentities/v1alpha1/managedidentities-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/managedidentities/v1beta1/managedidentities-gen.go b/managedidentities/v1beta1/managedidentities-gen.go index 28377a550b2..cc02dba9bbe 100644 --- a/managedidentities/v1beta1/managedidentities-gen.go +++ b/managedidentities/v1beta1/managedidentities-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/manufacturers/v1/manufacturers-gen.go b/manufacturers/v1/manufacturers-gen.go index 7774c509f86..7cffb635f3e 100644 --- a/manufacturers/v1/manufacturers-gen.go +++ b/manufacturers/v1/manufacturers-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/memcache/v1/memcache-gen.go b/memcache/v1/memcache-gen.go index 0b85d530531..d883618df39 100644 --- a/memcache/v1/memcache-gen.go +++ b/memcache/v1/memcache-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/memcache/v1beta2/memcache-gen.go b/memcache/v1beta2/memcache-gen.go index c38c202472d..ebdea1431fa 100644 --- a/memcache/v1beta2/memcache-gen.go +++ b/memcache/v1beta2/memcache-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/metastore/v1/metastore-gen.go b/metastore/v1/metastore-gen.go index c15fa44d891..e94cb2913e6 100644 --- a/metastore/v1/metastore-gen.go +++ b/metastore/v1/metastore-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/metastore/v1alpha/metastore-gen.go b/metastore/v1alpha/metastore-gen.go index 3f5b41ede61..3da495b1239 100644 --- a/metastore/v1alpha/metastore-gen.go +++ b/metastore/v1alpha/metastore-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/metastore/v1beta/metastore-gen.go b/metastore/v1beta/metastore-gen.go index a2f83db8265..22c2ed52a55 100644 --- a/metastore/v1beta/metastore-gen.go +++ b/metastore/v1beta/metastore-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/ml/v1/ml-gen.go b/ml/v1/ml-gen.go index 9a22a4ea40d..420e0d1af1e 100644 --- a/ml/v1/ml-gen.go +++ b/ml/v1/ml-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/monitoring/v1/monitoring-gen.go b/monitoring/v1/monitoring-gen.go index 58ffdc72196..92a93e43229 100644 --- a/monitoring/v1/monitoring-gen.go +++ b/monitoring/v1/monitoring-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/monitoring/v3/monitoring-gen.go b/monitoring/v3/monitoring-gen.go index c1f886606c8..54e23437ae0 100644 --- a/monitoring/v3/monitoring-gen.go +++ b/monitoring/v3/monitoring-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-gen.go b/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-gen.go index f71206f0967..d17e8acd600 100644 --- a/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-gen.go +++ b/mybusinessaccountmanagement/v1/mybusinessaccountmanagement-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/mybusinessbusinesscalls/v1/mybusinessbusinesscalls-gen.go b/mybusinessbusinesscalls/v1/mybusinessbusinesscalls-gen.go index 404bd336689..7bae98ae1dd 100644 --- a/mybusinessbusinesscalls/v1/mybusinessbusinesscalls-gen.go +++ b/mybusinessbusinesscalls/v1/mybusinessbusinesscalls-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go index 03256df7b2c..dbe65891120 100644 --- a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go +++ b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/mybusinesslodging/v1/mybusinesslodging-gen.go b/mybusinesslodging/v1/mybusinesslodging-gen.go index f16c2f6a153..c9ffa575422 100644 --- a/mybusinesslodging/v1/mybusinesslodging-gen.go +++ b/mybusinesslodging/v1/mybusinesslodging-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/mybusinessnotifications/v1/mybusinessnotifications-gen.go b/mybusinessnotifications/v1/mybusinessnotifications-gen.go index 9800db5467c..8beb1b2a3c8 100644 --- a/mybusinessnotifications/v1/mybusinessnotifications-gen.go +++ b/mybusinessnotifications/v1/mybusinessnotifications-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/mybusinessplaceactions/v1/mybusinessplaceactions-gen.go b/mybusinessplaceactions/v1/mybusinessplaceactions-gen.go index f9fd146857d..5ead1ecfa71 100644 --- a/mybusinessplaceactions/v1/mybusinessplaceactions-gen.go +++ b/mybusinessplaceactions/v1/mybusinessplaceactions-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/mybusinessqanda/v1/mybusinessqanda-gen.go b/mybusinessqanda/v1/mybusinessqanda-gen.go index bad0526a655..e9aa52522fa 100644 --- a/mybusinessqanda/v1/mybusinessqanda-gen.go +++ b/mybusinessqanda/v1/mybusinessqanda-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/mybusinessverifications/v1/mybusinessverifications-gen.go b/mybusinessverifications/v1/mybusinessverifications-gen.go index fa044c152bf..97eeedd2ecc 100644 --- a/mybusinessverifications/v1/mybusinessverifications-gen.go +++ b/mybusinessverifications/v1/mybusinessverifications-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/networkconnectivity/v1/networkconnectivity-gen.go b/networkconnectivity/v1/networkconnectivity-gen.go index ea006f7d744..8c8786303f4 100644 --- a/networkconnectivity/v1/networkconnectivity-gen.go +++ b/networkconnectivity/v1/networkconnectivity-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/networkconnectivity/v1alpha1/networkconnectivity-gen.go b/networkconnectivity/v1alpha1/networkconnectivity-gen.go index 8f9c2a34756..720de885007 100644 --- a/networkconnectivity/v1alpha1/networkconnectivity-gen.go +++ b/networkconnectivity/v1alpha1/networkconnectivity-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/networkmanagement/v1/networkmanagement-gen.go b/networkmanagement/v1/networkmanagement-gen.go index 00473ec8876..44d722f304f 100644 --- a/networkmanagement/v1/networkmanagement-gen.go +++ b/networkmanagement/v1/networkmanagement-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/networkmanagement/v1beta1/networkmanagement-gen.go b/networkmanagement/v1beta1/networkmanagement-gen.go index 2c8b72821c0..311eb963af0 100644 --- a/networkmanagement/v1beta1/networkmanagement-gen.go +++ b/networkmanagement/v1beta1/networkmanagement-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/networksecurity/v1/networksecurity-gen.go b/networksecurity/v1/networksecurity-gen.go index 2c4a2b499b4..6d716bfcb40 100644 --- a/networksecurity/v1/networksecurity-gen.go +++ b/networksecurity/v1/networksecurity-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/networksecurity/v1beta1/networksecurity-gen.go b/networksecurity/v1beta1/networksecurity-gen.go index a18b4597a43..e1c695cf2f5 100644 --- a/networksecurity/v1beta1/networksecurity-gen.go +++ b/networksecurity/v1beta1/networksecurity-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/networkservices/v1/networkservices-gen.go b/networkservices/v1/networkservices-gen.go index 3619212bd33..194f77ac7e5 100644 --- a/networkservices/v1/networkservices-gen.go +++ b/networkservices/v1/networkservices-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/networkservices/v1beta1/networkservices-gen.go b/networkservices/v1beta1/networkservices-gen.go index 9600946fe8e..3d68266eab2 100644 --- a/networkservices/v1beta1/networkservices-gen.go +++ b/networkservices/v1beta1/networkservices-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/notebooks/v1/notebooks-gen.go b/notebooks/v1/notebooks-gen.go index f5bdc8ac342..837149cf9cf 100644 --- a/notebooks/v1/notebooks-gen.go +++ b/notebooks/v1/notebooks-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/oauth2/v2/oauth2-gen.go b/oauth2/v2/oauth2-gen.go index efaef610bac..fd437fde825 100644 --- a/oauth2/v2/oauth2-gen.go +++ b/oauth2/v2/oauth2-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/ondemandscanning/v1/ondemandscanning-gen.go b/ondemandscanning/v1/ondemandscanning-gen.go index 440c7da9589..d5a697e44e6 100644 --- a/ondemandscanning/v1/ondemandscanning-gen.go +++ b/ondemandscanning/v1/ondemandscanning-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/ondemandscanning/v1beta1/ondemandscanning-gen.go b/ondemandscanning/v1beta1/ondemandscanning-gen.go index b28848ee7d5..76ae83e1e04 100644 --- a/ondemandscanning/v1beta1/ondemandscanning-gen.go +++ b/ondemandscanning/v1beta1/ondemandscanning-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/orgpolicy/v2/orgpolicy-gen.go b/orgpolicy/v2/orgpolicy-gen.go index 4f345a62c9d..bf9ac131484 100644 --- a/orgpolicy/v2/orgpolicy-gen.go +++ b/orgpolicy/v2/orgpolicy-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/osconfig/v1/osconfig-gen.go b/osconfig/v1/osconfig-gen.go index 6f859b0bb42..130a16d111e 100644 --- a/osconfig/v1/osconfig-gen.go +++ b/osconfig/v1/osconfig-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/osconfig/v1alpha/osconfig-gen.go b/osconfig/v1alpha/osconfig-gen.go index ae9079c1164..3d215262a2b 100644 --- a/osconfig/v1alpha/osconfig-gen.go +++ b/osconfig/v1alpha/osconfig-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/osconfig/v1beta/osconfig-gen.go b/osconfig/v1beta/osconfig-gen.go index 7590474354a..dff3a513ffd 100644 --- a/osconfig/v1beta/osconfig-gen.go +++ b/osconfig/v1beta/osconfig-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/oslogin/v1/oslogin-gen.go b/oslogin/v1/oslogin-gen.go index 574037d8e77..f583ca91bc0 100644 --- a/oslogin/v1/oslogin-gen.go +++ b/oslogin/v1/oslogin-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/oslogin/v1alpha/oslogin-gen.go b/oslogin/v1alpha/oslogin-gen.go index 75fd64aa2f7..9d6a6d2df83 100644 --- a/oslogin/v1alpha/oslogin-gen.go +++ b/oslogin/v1alpha/oslogin-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/oslogin/v1beta/oslogin-gen.go b/oslogin/v1beta/oslogin-gen.go index 8c3399e14cd..d0430f08405 100644 --- a/oslogin/v1beta/oslogin-gen.go +++ b/oslogin/v1beta/oslogin-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/pagespeedonline/v5/pagespeedonline-gen.go b/pagespeedonline/v5/pagespeedonline-gen.go index 4cdc97b105f..a383a3945ff 100644 --- a/pagespeedonline/v5/pagespeedonline-gen.go +++ b/pagespeedonline/v5/pagespeedonline-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go index 7ded7c1946f..6b193e41d0e 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/people/v1/people-api.json b/people/v1/people-api.json index c7665b2228d..7956abeddd1 100644 --- a/people/v1/people-api.json +++ b/people/v1/people-api.json @@ -999,7 +999,7 @@ "type": "string" }, "resourceName": { - "description": "The resource name for the person, assigned by the server. An ASCII string with a max length of 27 characters, in the form of `people/{person_id}`.", + "description": "The resource name for the person, assigned by the server. An ASCII string in the form of `people/{person_id}`.", "location": "path", "pattern": "^people/[^/]+$", "required": true, @@ -1172,7 +1172,7 @@ } } }, - "revision": "20220531", + "revision": "20230104", "rootUrl": "https://people.googleapis.com/", "schemas": { "Address": { @@ -2677,7 +2677,7 @@ "type": "array" }, "resourceName": { - "description": "The resource name for the person, assigned by the server. An ASCII string with a max length of 27 characters, in the form of `people/{person_id}`.", + "description": "The resource name for the person, assigned by the server. An ASCII string in the form of `people/{person_id}`.", "type": "string" }, "sipAddresses": { diff --git a/people/v1/people-gen.go b/people/v1/people-gen.go index 8c09954b1ff..e72094b65df 100644 --- a/people/v1/people-gen.go +++ b/people/v1/people-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -2442,8 +2442,7 @@ type Person struct { Residences []*Residence `json:"residences,omitempty"` // ResourceName: The resource name for the person, assigned by the - // server. An ASCII string with a max length of 27 characters, in the - // form of `people/{person_id}`. + // server. An ASCII string in the form of `people/{person_id}`. ResourceName string `json:"resourceName,omitempty"` // SipAddresses: The person's SIP addresses. @@ -7356,8 +7355,7 @@ type PeopleUpdateContactCall struct { // failures. // // - resourceName: The resource name for the person, assigned by the -// server. An ASCII string with a max length of 27 characters, in the -// form of `people/{person_id}`. +// server. An ASCII string in the form of `people/{person_id}`. func (r *PeopleService) UpdateContact(resourceName string, person *Person) *PeopleUpdateContactCall { c := &PeopleUpdateContactCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resourceName = resourceName @@ -7520,7 +7518,7 @@ func (c *PeopleUpdateContactCall) Do(opts ...googleapi.CallOption) (*Person, err // "type": "string" // }, // "resourceName": { - // "description": "The resource name for the person, assigned by the server. An ASCII string with a max length of 27 characters, in the form of `people/{person_id}`.", + // "description": "The resource name for the person, assigned by the server. An ASCII string in the form of `people/{person_id}`.", // "location": "path", // "pattern": "^people/[^/]+$", // "required": true, diff --git a/playcustomapp/v1/playcustomapp-gen.go b/playcustomapp/v1/playcustomapp-gen.go index e79b2d4ccf1..aefc319e5f0 100644 --- a/playcustomapp/v1/playcustomapp-gen.go +++ b/playcustomapp/v1/playcustomapp-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go b/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go index 33a21a78e00..c16d59e6a03 100644 --- a/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go +++ b/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go b/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go index 191b06481e7..18f1eb0eb4a 100644 --- a/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go +++ b/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/playintegrity/v1/playintegrity-gen.go b/playintegrity/v1/playintegrity-gen.go index 9947e3f2650..055419b614e 100644 --- a/playintegrity/v1/playintegrity-gen.go +++ b/playintegrity/v1/playintegrity-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/policyanalyzer/v1/policyanalyzer-gen.go b/policyanalyzer/v1/policyanalyzer-gen.go index f8919231b59..4f7eaccdb0a 100644 --- a/policyanalyzer/v1/policyanalyzer-gen.go +++ b/policyanalyzer/v1/policyanalyzer-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/policyanalyzer/v1beta1/policyanalyzer-gen.go b/policyanalyzer/v1beta1/policyanalyzer-gen.go index 8e27fa6dbbd..18ec72e3888 100644 --- a/policyanalyzer/v1beta1/policyanalyzer-gen.go +++ b/policyanalyzer/v1beta1/policyanalyzer-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/policysimulator/v1/policysimulator-gen.go b/policysimulator/v1/policysimulator-gen.go index 0f143e2569c..19f3b851ce6 100644 --- a/policysimulator/v1/policysimulator-gen.go +++ b/policysimulator/v1/policysimulator-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/policysimulator/v1alpha/policysimulator-gen.go b/policysimulator/v1alpha/policysimulator-gen.go index 58bed4d463f..aa5d3c852ee 100644 --- a/policysimulator/v1alpha/policysimulator-gen.go +++ b/policysimulator/v1alpha/policysimulator-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/policysimulator/v1beta1/policysimulator-gen.go b/policysimulator/v1beta1/policysimulator-gen.go index 80b2d0637ce..c22e954b2cd 100644 --- a/policysimulator/v1beta1/policysimulator-gen.go +++ b/policysimulator/v1beta1/policysimulator-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/policytroubleshooter/v1/policytroubleshooter-gen.go b/policytroubleshooter/v1/policytroubleshooter-gen.go index 70aa33c9441..cd056f06b37 100644 --- a/policytroubleshooter/v1/policytroubleshooter-gen.go +++ b/policytroubleshooter/v1/policytroubleshooter-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/policytroubleshooter/v1beta/policytroubleshooter-gen.go b/policytroubleshooter/v1beta/policytroubleshooter-gen.go index bfdc7ae1783..55088d52ea0 100644 --- a/policytroubleshooter/v1beta/policytroubleshooter-gen.go +++ b/policytroubleshooter/v1beta/policytroubleshooter-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/poly/v1/poly-gen.go b/poly/v1/poly-gen.go index 92d600db75f..37d0c37d074 100644 --- a/poly/v1/poly-gen.go +++ b/poly/v1/poly-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/privateca/v1/privateca-gen.go b/privateca/v1/privateca-gen.go index 00167286bd1..c050d5a6797 100644 --- a/privateca/v1/privateca-gen.go +++ b/privateca/v1/privateca-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/privateca/v1beta1/privateca-gen.go b/privateca/v1beta1/privateca-gen.go index ab246df988a..5cf6a7f40fa 100644 --- a/privateca/v1beta1/privateca-gen.go +++ b/privateca/v1beta1/privateca-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go index 5b9c8f64016..5f35630ea5b 100644 --- a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go +++ b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/pubsub/v1/pubsub-gen.go b/pubsub/v1/pubsub-gen.go index a7b1c753da0..98c17518194 100644 --- a/pubsub/v1/pubsub-gen.go +++ b/pubsub/v1/pubsub-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/pubsub/v1beta1a/pubsub-gen.go b/pubsub/v1beta1a/pubsub-gen.go index 0ccbfa78bd9..0eb0f783fdb 100644 --- a/pubsub/v1beta1a/pubsub-gen.go +++ b/pubsub/v1beta1a/pubsub-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/pubsub/v1beta2/pubsub-gen.go b/pubsub/v1beta2/pubsub-gen.go index 0471c48145d..2db996c3a12 100644 --- a/pubsub/v1beta2/pubsub-gen.go +++ b/pubsub/v1beta2/pubsub-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/pubsublite/v1/pubsublite-gen.go b/pubsublite/v1/pubsublite-gen.go index 36146d5462e..4948078c446 100644 --- a/pubsublite/v1/pubsublite-gen.go +++ b/pubsublite/v1/pubsublite-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/realtimebidding/v1/realtimebidding-gen.go b/realtimebidding/v1/realtimebidding-gen.go index 4350b2f8ca7..4eca5c49759 100644 --- a/realtimebidding/v1/realtimebidding-gen.go +++ b/realtimebidding/v1/realtimebidding-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/realtimebidding/v1alpha/realtimebidding-gen.go b/realtimebidding/v1alpha/realtimebidding-gen.go index e3bb8638f4c..de68838138b 100644 --- a/realtimebidding/v1alpha/realtimebidding-gen.go +++ b/realtimebidding/v1alpha/realtimebidding-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/recaptchaenterprise/v1/recaptchaenterprise-gen.go b/recaptchaenterprise/v1/recaptchaenterprise-gen.go index ba17dc48894..7422af0ae39 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-gen.go +++ b/recaptchaenterprise/v1/recaptchaenterprise-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/recommendationengine/v1beta1/recommendationengine-gen.go b/recommendationengine/v1beta1/recommendationengine-gen.go index f3ff04163ae..dd8b7400bfe 100644 --- a/recommendationengine/v1beta1/recommendationengine-gen.go +++ b/recommendationengine/v1beta1/recommendationengine-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/recommender/v1/recommender-gen.go b/recommender/v1/recommender-gen.go index d27ed39ecd6..c741b76e827 100644 --- a/recommender/v1/recommender-gen.go +++ b/recommender/v1/recommender-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/recommender/v1beta1/recommender-gen.go b/recommender/v1beta1/recommender-gen.go index 0e9a925c489..8b74ead1050 100644 --- a/recommender/v1beta1/recommender-gen.go +++ b/recommender/v1beta1/recommender-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/redis/v1/redis-gen.go b/redis/v1/redis-gen.go index 121f9216657..9c7a5951f05 100644 --- a/redis/v1/redis-gen.go +++ b/redis/v1/redis-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/redis/v1beta1/redis-gen.go b/redis/v1beta1/redis-gen.go index 5ddae8a48d6..1bb48aba6a2 100644 --- a/redis/v1beta1/redis-gen.go +++ b/redis/v1beta1/redis-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/reseller/v1/reseller-gen.go b/reseller/v1/reseller-gen.go index cee39c4e18c..cc2a61ff614 100644 --- a/reseller/v1/reseller-gen.go +++ b/reseller/v1/reseller-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/resourcesettings/v1/resourcesettings-gen.go b/resourcesettings/v1/resourcesettings-gen.go index 35a7b908aef..36e89bf77b3 100644 --- a/resourcesettings/v1/resourcesettings-gen.go +++ b/resourcesettings/v1/resourcesettings-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index 064e54074ba..457c7e7d31b 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -1491,7 +1491,7 @@ "type": "string" }, "prebuiltRule": { - "description": "The prebuilt rule name that can convert a specific type of raw_json. For example: \"default_schema/v1.0\"", + "description": "The prebuilt rule name that can convert a specific type of raw_json. For example: \"ga4_bq\" rule for the GA4 user event schema.", "location": "query", "type": "string" }, @@ -1785,7 +1785,7 @@ } } }, - "revision": "20221214", + "revision": "20230102", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2162,14 +2162,14 @@ "type": "string" }, "exactSearchableOption": { - "description": "If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable. This property only applies to textual custom attributes and requires indexable set to enabled to enable exact-searchable.", + "description": "If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable. This property only applies to textual custom attributes and requires indexable set to enabled to enable exact-searchable. If unset, the server behavior defaults to EXACT_SEARCHABLE_DISABLED.", "enum": [ "EXACT_SEARCHABLE_OPTION_UNSPECIFIED", "EXACT_SEARCHABLE_ENABLED", "EXACT_SEARCHABLE_DISABLED" ], "enumDescriptions": [ - "Value used when unset. Defaults to EXACT_SEARCHABLE_DISABLED.", + "Value used when unset.", "Exact searchable option enabled for an attribute.", "Exact searchable option disabled for an attribute." ], @@ -2195,18 +2195,18 @@ "type": "string" }, "key": { - "description": "Required. Attribute name. For example: `color`, `brands`, `attributes.custom_attribute`, such as `attributes.xyz`. To be indexable, the attribute name can contain only alpha-numeric characters and underscores. For example, an attribute named `attributes.abc_xyz` can be indexed, but an attribute named `attributes.abc-xyz` cannot be indexed.", + "description": "Required. Attribute name. For example: `color`, `brands`, `attributes.custom_attribute`, such as `attributes.xyz`. To be indexable, the attribute name can contain only alpha-numeric characters and underscores. For example, an attribute named `attributes.abc_xyz` can be indexed, but an attribute named `attributes.abc-xyz` cannot be indexed. For attributes whoes key start with `attributes.`, we refer them as custom attributes. Otherwise they are built-in attributes such as `color` and `brands`.", "type": "string" }, "retrievableOption": { - "description": "If RETRIEVABLE_ENABLED, attribute values are retrievable in the search results.", + "description": "If RETRIEVABLE_ENABLED, attribute values are retrievable in the search results. If unset, the server behavior defaults to RETRIEVABLE_DISABLED.", "enum": [ "RETRIEVABLE_OPTION_UNSPECIFIED", "RETRIEVABLE_ENABLED", "RETRIEVABLE_DISABLED" ], "enumDescriptions": [ - "Value used when unset. Defaults to RETRIEVABLE_DISABLED.", + "Value used when unset.", "Retrievable option enabled for an attribute.", "Retrievable option disabled for an attribute." ], @@ -4300,7 +4300,7 @@ "type": "string" }, "diversityType": { - "description": "What kind of diversity to use - data driven or rule based.", + "description": "What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to RULE_BASED_DIVERSITY.", "enum": [ "DIVERSITY_TYPE_UNSPECIFIED", "RULE_BASED_DIVERSITY", @@ -4369,7 +4369,7 @@ "description": "The specification for personalization spec. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set. SearchRequest.personalization_spec will override ServingConfig.personalization_spec." }, "priceRerankingLevel": { - "description": "How much price ranking we want in serving results. Price reranking causes product items with a similar recommendation probability to be ordered by price, with the highest-priced items first. This setting could result in a decrease in click-through and conversion rates. Allowed values are: * `no-price-reranking` * `low-price-raranking` * `medium-price-reranking` * `high-price-reranking` If not specified, we choose default based on model type. Default value: `no-price-reranking`. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.", + "description": "How much price ranking we want in serving results. Price reranking causes product items with a similar recommendation probability to be ordered by price, with the highest-priced items first. This setting could result in a decrease in click-through and conversion rates. Allowed values are: * `no-price-reranking` * `low-price-reranking` * `medium-price-reranking` * `high-price-reranking` If not specified, we choose default based on model type. Default value: `no-price-reranking`. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.", "type": "string" }, "redirectControlIds": { diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index b4732500b3e..82a988ef65a 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -1039,11 +1039,11 @@ type GoogleCloudRetailV2CatalogAttribute struct { // ExactSearchableOption: If EXACT_SEARCHABLE_ENABLED, attribute values // will be exact searchable. This property only applies to textual // custom attributes and requires indexable set to enabled to enable - // exact-searchable. + // exact-searchable. If unset, the server behavior defaults to + // EXACT_SEARCHABLE_DISABLED. // // Possible values: // "EXACT_SEARCHABLE_OPTION_UNSPECIFIED" - Value used when unset. - // Defaults to EXACT_SEARCHABLE_DISABLED. // "EXACT_SEARCHABLE_ENABLED" - Exact searchable option enabled for an // attribute. // "EXACT_SEARCHABLE_DISABLED" - Exact searchable option disabled for @@ -1082,15 +1082,17 @@ type GoogleCloudRetailV2CatalogAttribute struct { // indexable, the attribute name can contain only alpha-numeric // characters and underscores. For example, an attribute named // `attributes.abc_xyz` can be indexed, but an attribute named - // `attributes.abc-xyz` cannot be indexed. + // `attributes.abc-xyz` cannot be indexed. For attributes whoes key + // start with `attributes.`, we refer them as custom attributes. + // Otherwise they are built-in attributes such as `color` and `brands`. Key string `json:"key,omitempty"` // RetrievableOption: If RETRIEVABLE_ENABLED, attribute values are - // retrievable in the search results. + // retrievable in the search results. If unset, the server behavior + // defaults to RETRIEVABLE_DISABLED. // // Possible values: - // "RETRIEVABLE_OPTION_UNSPECIFIED" - Value used when unset. Defaults - // to RETRIEVABLE_DISABLED. + // "RETRIEVABLE_OPTION_UNSPECIFIED" - Value used when unset. // "RETRIEVABLE_ENABLED" - Retrievable option enabled for an // attribute. // "RETRIEVABLE_DISABLED" - Retrievable option disabled for an @@ -5247,7 +5249,8 @@ type GoogleCloudRetailV2ServingConfig struct { DiversityLevel string `json:"diversityLevel,omitempty"` // DiversityType: What kind of diversity to use - data driven or rule - // based. + // based. If unset, the server behavior defaults to + // RULE_BASED_DIVERSITY. // // Possible values: // "DIVERSITY_TYPE_UNSPECIFIED" - Default value. @@ -5332,7 +5335,7 @@ type GoogleCloudRetailV2ServingConfig struct { // recommendation probability to be ordered by price, with the // highest-priced items first. This setting could result in a decrease // in click-through and conversion rates. Allowed values are: * - // `no-price-reranking` * `low-price-raranking` * + // `no-price-reranking` * `low-price-reranking` * // `medium-price-reranking` * `high-price-reranking` If not specified, // we choose default based on model type. Default value: // `no-price-reranking`. Can only be set if solution_types is @@ -15234,7 +15237,7 @@ func (c *ProjectsLocationsCatalogsUserEventsCollectCall) Ets(ets int64) *Project // PrebuiltRule sets the optional parameter "prebuiltRule": The prebuilt // rule name that can convert a specific type of raw_json. For example: -// "default_schema/v1.0" +// "ga4_bq" rule for the GA4 user event schema. func (c *ProjectsLocationsCatalogsUserEventsCollectCall) PrebuiltRule(prebuiltRule string) *ProjectsLocationsCatalogsUserEventsCollectCall { c.urlParams_.Set("prebuiltRule", prebuiltRule) return c @@ -15387,7 +15390,7 @@ func (c *ProjectsLocationsCatalogsUserEventsCollectCall) Do(opts ...googleapi.Ca // "type": "string" // }, // "prebuiltRule": { - // "description": "The prebuilt rule name that can convert a specific type of raw_json. For example: \"default_schema/v1.0\"", + // "description": "The prebuilt rule name that can convert a specific type of raw_json. For example: \"ga4_bq\" rule for the GA4 user event schema.", // "location": "query", // "type": "string" // }, diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index 2d7078e9b86..06b23a2ea86 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -1806,7 +1806,7 @@ "type": "string" }, "prebuiltRule": { - "description": "The prebuilt rule name that can convert a specific type of raw_json. For example: \"default_schema/v1.0\"", + "description": "The prebuilt rule name that can convert a specific type of raw_json. For example: \"ga4_bq\" rule for the GA4 user event schema.", "location": "query", "type": "string" }, @@ -2100,7 +2100,7 @@ } } }, - "revision": "20221214", + "revision": "20230102", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2744,14 +2744,14 @@ "type": "string" }, "exactSearchableOption": { - "description": "If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable. This property only applies to textual custom attributes and requires indexable set to enabled to enable exact-searchable.", + "description": "If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable. This property only applies to textual custom attributes and requires indexable set to enabled to enable exact-searchable. If unset, the server behavior defaults to EXACT_SEARCHABLE_DISABLED.", "enum": [ "EXACT_SEARCHABLE_OPTION_UNSPECIFIED", "EXACT_SEARCHABLE_ENABLED", "EXACT_SEARCHABLE_DISABLED" ], "enumDescriptions": [ - "Value used when unset. Defaults to EXACT_SEARCHABLE_DISABLED.", + "Value used when unset.", "Exact searchable option enabled for an attribute.", "Exact searchable option disabled for an attribute." ], @@ -2777,7 +2777,7 @@ "type": "string" }, "key": { - "description": "Required. Attribute name. For example: `color`, `brands`, `attributes.custom_attribute`, such as `attributes.xyz`. To be indexable, the attribute name can contain only alpha-numeric characters and underscores. For example, an attribute named `attributes.abc_xyz` can be indexed, but an attribute named `attributes.abc-xyz` cannot be indexed.", + "description": "Required. Attribute name. For example: `color`, `brands`, `attributes.custom_attribute`, such as `attributes.xyz`. To be indexable, the attribute name can contain only alpha-numeric characters and underscores. For example, an attribute named `attributes.abc_xyz` can be indexed, but an attribute named `attributes.abc-xyz` cannot be indexed. For attributes whoes key start with `attributes.`, we refer them as custom attributes. Otherwise they are built-in attributes such as `color` and `brands`.", "type": "string" }, "recommendationsFilteringOption": { @@ -2795,14 +2795,14 @@ "type": "string" }, "retrievableOption": { - "description": "If RETRIEVABLE_ENABLED, attribute values are retrievable in the search results.", + "description": "If RETRIEVABLE_ENABLED, attribute values are retrievable in the search results. If unset, the server behavior defaults to RETRIEVABLE_DISABLED.", "enum": [ "RETRIEVABLE_OPTION_UNSPECIFIED", "RETRIEVABLE_ENABLED", "RETRIEVABLE_DISABLED" ], "enumDescriptions": [ - "Value used when unset. Defaults to RETRIEVABLE_DISABLED.", + "Value used when unset.", "Retrievable option enabled for an attribute.", "Retrievable option disabled for an attribute." ], @@ -5443,7 +5443,7 @@ "type": "string" }, "diversityType": { - "description": "What kind of diversity to use - data driven or rule based.", + "description": "What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to RULE_BASED_DIVERSITY.", "enum": [ "DIVERSITY_TYPE_UNSPECIFIED", "RULE_BASED_DIVERSITY", @@ -5512,7 +5512,7 @@ "description": "The specification for personalization spec. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set. SearchRequest.personalization_spec will override ServingConfig.personalization_spec." }, "priceRerankingLevel": { - "description": "How much price ranking we want in serving results. Price reranking causes product items with a similar recommendation probability to be ordered by price, with the highest-priced items first. This setting could result in a decrease in click-through and conversion rates. Allowed values are: * `no-price-reranking` * `low-price-raranking` * `medium-price-reranking` * `high-price-reranking` If not specified, we choose default based on model type. Default value: `no-price-reranking`. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.", + "description": "How much price ranking we want in serving results. Price reranking causes product items with a similar recommendation probability to be ordered by price, with the highest-priced items first. This setting could result in a decrease in click-through and conversion rates. Allowed values are: * `no-price-reranking` * `low-price-reranking` * `medium-price-reranking` * `high-price-reranking` If not specified, we choose default based on model type. Default value: `no-price-reranking`. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.", "type": "string" }, "redirectControlIds": { diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index 0edf2bc782b..51f69582a32 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -1565,11 +1565,11 @@ type GoogleCloudRetailV2alphaCatalogAttribute struct { // ExactSearchableOption: If EXACT_SEARCHABLE_ENABLED, attribute values // will be exact searchable. This property only applies to textual // custom attributes and requires indexable set to enabled to enable - // exact-searchable. + // exact-searchable. If unset, the server behavior defaults to + // EXACT_SEARCHABLE_DISABLED. // // Possible values: // "EXACT_SEARCHABLE_OPTION_UNSPECIFIED" - Value used when unset. - // Defaults to EXACT_SEARCHABLE_DISABLED. // "EXACT_SEARCHABLE_ENABLED" - Exact searchable option enabled for an // attribute. // "EXACT_SEARCHABLE_DISABLED" - Exact searchable option disabled for @@ -1608,7 +1608,9 @@ type GoogleCloudRetailV2alphaCatalogAttribute struct { // indexable, the attribute name can contain only alpha-numeric // characters and underscores. For example, an attribute named // `attributes.abc_xyz` can be indexed, but an attribute named - // `attributes.abc-xyz` cannot be indexed. + // `attributes.abc-xyz` cannot be indexed. For attributes whoes key + // start with `attributes.`, we refer them as custom attributes. + // Otherwise they are built-in attributes such as `color` and `brands`. Key string `json:"key,omitempty"` // RecommendationsFilteringOption: When @@ -1629,11 +1631,11 @@ type GoogleCloudRetailV2alphaCatalogAttribute struct { RecommendationsFilteringOption string `json:"recommendationsFilteringOption,omitempty"` // RetrievableOption: If RETRIEVABLE_ENABLED, attribute values are - // retrievable in the search results. + // retrievable in the search results. If unset, the server behavior + // defaults to RETRIEVABLE_DISABLED. // // Possible values: - // "RETRIEVABLE_OPTION_UNSPECIFIED" - Value used when unset. Defaults - // to RETRIEVABLE_DISABLED. + // "RETRIEVABLE_OPTION_UNSPECIFIED" - Value used when unset. // "RETRIEVABLE_ENABLED" - Retrievable option enabled for an // attribute. // "RETRIEVABLE_DISABLED" - Retrievable option disabled for an @@ -6796,7 +6798,8 @@ type GoogleCloudRetailV2alphaServingConfig struct { DiversityLevel string `json:"diversityLevel,omitempty"` // DiversityType: What kind of diversity to use - data driven or rule - // based. + // based. If unset, the server behavior defaults to + // RULE_BASED_DIVERSITY. // // Possible values: // "DIVERSITY_TYPE_UNSPECIFIED" - Default value. @@ -6881,7 +6884,7 @@ type GoogleCloudRetailV2alphaServingConfig struct { // recommendation probability to be ordered by price, with the // highest-priced items first. This setting could result in a decrease // in click-through and conversion rates. Allowed values are: * - // `no-price-reranking` * `low-price-raranking` * + // `no-price-reranking` * `low-price-reranking` * // `medium-price-reranking` * `high-price-reranking` If not specified, // we choose default based on model type. Default value: // `no-price-reranking`. Can only be set if solution_types is @@ -17259,7 +17262,7 @@ func (c *ProjectsLocationsCatalogsUserEventsCollectCall) Ets(ets int64) *Project // PrebuiltRule sets the optional parameter "prebuiltRule": The prebuilt // rule name that can convert a specific type of raw_json. For example: -// "default_schema/v1.0" +// "ga4_bq" rule for the GA4 user event schema. func (c *ProjectsLocationsCatalogsUserEventsCollectCall) PrebuiltRule(prebuiltRule string) *ProjectsLocationsCatalogsUserEventsCollectCall { c.urlParams_.Set("prebuiltRule", prebuiltRule) return c @@ -17412,7 +17415,7 @@ func (c *ProjectsLocationsCatalogsUserEventsCollectCall) Do(opts ...googleapi.Ca // "type": "string" // }, // "prebuiltRule": { - // "description": "The prebuilt rule name that can convert a specific type of raw_json. For example: \"default_schema/v1.0\"", + // "description": "The prebuilt rule name that can convert a specific type of raw_json. For example: \"ga4_bq\" rule for the GA4 user event schema.", // "location": "query", // "type": "string" // }, diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index c062a3484be..368990ef815 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -1735,7 +1735,7 @@ "type": "string" }, "prebuiltRule": { - "description": "The prebuilt rule name that can convert a specific type of raw_json. For example: \"default_schema/v1.0\"", + "description": "The prebuilt rule name that can convert a specific type of raw_json. For example: \"ga4_bq\" rule for the GA4 user event schema.", "location": "query", "type": "string" }, @@ -2029,7 +2029,7 @@ } } }, - "revision": "20221214", + "revision": "20230102", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -3317,14 +3317,14 @@ "type": "string" }, "exactSearchableOption": { - "description": "If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable. This property only applies to textual custom attributes and requires indexable set to enabled to enable exact-searchable.", + "description": "If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable. This property only applies to textual custom attributes and requires indexable set to enabled to enable exact-searchable. If unset, the server behavior defaults to EXACT_SEARCHABLE_DISABLED.", "enum": [ "EXACT_SEARCHABLE_OPTION_UNSPECIFIED", "EXACT_SEARCHABLE_ENABLED", "EXACT_SEARCHABLE_DISABLED" ], "enumDescriptions": [ - "Value used when unset. Defaults to EXACT_SEARCHABLE_DISABLED.", + "Value used when unset.", "Exact searchable option enabled for an attribute.", "Exact searchable option disabled for an attribute." ], @@ -3350,7 +3350,7 @@ "type": "string" }, "key": { - "description": "Required. Attribute name. For example: `color`, `brands`, `attributes.custom_attribute`, such as `attributes.xyz`. To be indexable, the attribute name can contain only alpha-numeric characters and underscores. For example, an attribute named `attributes.abc_xyz` can be indexed, but an attribute named `attributes.abc-xyz` cannot be indexed.", + "description": "Required. Attribute name. For example: `color`, `brands`, `attributes.custom_attribute`, such as `attributes.xyz`. To be indexable, the attribute name can contain only alpha-numeric characters and underscores. For example, an attribute named `attributes.abc_xyz` can be indexed, but an attribute named `attributes.abc-xyz` cannot be indexed. For attributes whoes key start with `attributes.`, we refer them as custom attributes. Otherwise they are built-in attributes such as `color` and `brands`.", "type": "string" }, "recommendationsFilteringOption": { @@ -3368,14 +3368,14 @@ "type": "string" }, "retrievableOption": { - "description": "If RETRIEVABLE_ENABLED, attribute values are retrievable in the search results.", + "description": "If RETRIEVABLE_ENABLED, attribute values are retrievable in the search results. If unset, the server behavior defaults to RETRIEVABLE_DISABLED.", "enum": [ "RETRIEVABLE_OPTION_UNSPECIFIED", "RETRIEVABLE_ENABLED", "RETRIEVABLE_DISABLED" ], "enumDescriptions": [ - "Value used when unset. Defaults to RETRIEVABLE_DISABLED.", + "Value used when unset.", "Retrievable option enabled for an attribute.", "Retrievable option disabled for an attribute." ], @@ -5830,7 +5830,7 @@ "type": "string" }, "diversityType": { - "description": "What kind of diversity to use - data driven or rule based.", + "description": "What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to RULE_BASED_DIVERSITY.", "enum": [ "DIVERSITY_TYPE_UNSPECIFIED", "RULE_BASED_DIVERSITY", @@ -5899,7 +5899,7 @@ "description": "The specification for personalization spec. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set. SearchRequest.personalization_spec will override ServingConfig.personalization_spec." }, "priceRerankingLevel": { - "description": "How much price ranking we want in serving results. Price reranking causes product items with a similar recommendation probability to be ordered by price, with the highest-priced items first. This setting could result in a decrease in click-through and conversion rates. Allowed values are: * `no-price-reranking` * `low-price-raranking` * `medium-price-reranking` * `high-price-reranking` If not specified, we choose default based on model type. Default value: `no-price-reranking`. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.", + "description": "How much price ranking we want in serving results. Price reranking causes product items with a similar recommendation probability to be ordered by price, with the highest-priced items first. This setting could result in a decrease in click-through and conversion rates. Allowed values are: * `no-price-reranking` * `low-price-reranking` * `medium-price-reranking` * `high-price-reranking` If not specified, we choose default based on model type. Default value: `no-price-reranking`. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.", "type": "string" }, "redirectControlIds": { diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index 6826973e245..d63d3c587dc 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -2719,11 +2719,11 @@ type GoogleCloudRetailV2betaCatalogAttribute struct { // ExactSearchableOption: If EXACT_SEARCHABLE_ENABLED, attribute values // will be exact searchable. This property only applies to textual // custom attributes and requires indexable set to enabled to enable - // exact-searchable. + // exact-searchable. If unset, the server behavior defaults to + // EXACT_SEARCHABLE_DISABLED. // // Possible values: // "EXACT_SEARCHABLE_OPTION_UNSPECIFIED" - Value used when unset. - // Defaults to EXACT_SEARCHABLE_DISABLED. // "EXACT_SEARCHABLE_ENABLED" - Exact searchable option enabled for an // attribute. // "EXACT_SEARCHABLE_DISABLED" - Exact searchable option disabled for @@ -2762,7 +2762,9 @@ type GoogleCloudRetailV2betaCatalogAttribute struct { // indexable, the attribute name can contain only alpha-numeric // characters and underscores. For example, an attribute named // `attributes.abc_xyz` can be indexed, but an attribute named - // `attributes.abc-xyz` cannot be indexed. + // `attributes.abc-xyz` cannot be indexed. For attributes whoes key + // start with `attributes.`, we refer them as custom attributes. + // Otherwise they are built-in attributes such as `color` and `brands`. Key string `json:"key,omitempty"` // RecommendationsFilteringOption: When @@ -2783,11 +2785,11 @@ type GoogleCloudRetailV2betaCatalogAttribute struct { RecommendationsFilteringOption string `json:"recommendationsFilteringOption,omitempty"` // RetrievableOption: If RETRIEVABLE_ENABLED, attribute values are - // retrievable in the search results. + // retrievable in the search results. If unset, the server behavior + // defaults to RETRIEVABLE_DISABLED. // // Possible values: - // "RETRIEVABLE_OPTION_UNSPECIFIED" - Value used when unset. Defaults - // to RETRIEVABLE_DISABLED. + // "RETRIEVABLE_OPTION_UNSPECIFIED" - Value used when unset. // "RETRIEVABLE_ENABLED" - Retrievable option enabled for an // attribute. // "RETRIEVABLE_DISABLED" - Retrievable option disabled for an @@ -7570,7 +7572,8 @@ type GoogleCloudRetailV2betaServingConfig struct { DiversityLevel string `json:"diversityLevel,omitempty"` // DiversityType: What kind of diversity to use - data driven or rule - // based. + // based. If unset, the server behavior defaults to + // RULE_BASED_DIVERSITY. // // Possible values: // "DIVERSITY_TYPE_UNSPECIFIED" - Default value. @@ -7655,7 +7658,7 @@ type GoogleCloudRetailV2betaServingConfig struct { // recommendation probability to be ordered by price, with the // highest-priced items first. This setting could result in a decrease // in click-through and conversion rates. Allowed values are: * - // `no-price-reranking` * `low-price-raranking` * + // `no-price-reranking` * `low-price-reranking` * // `medium-price-reranking` * `high-price-reranking` If not specified, // we choose default based on model type. Default value: // `no-price-reranking`. Can only be set if solution_types is @@ -16785,7 +16788,7 @@ func (c *ProjectsLocationsCatalogsUserEventsCollectCall) Ets(ets int64) *Project // PrebuiltRule sets the optional parameter "prebuiltRule": The prebuilt // rule name that can convert a specific type of raw_json. For example: -// "default_schema/v1.0" +// "ga4_bq" rule for the GA4 user event schema. func (c *ProjectsLocationsCatalogsUserEventsCollectCall) PrebuiltRule(prebuiltRule string) *ProjectsLocationsCatalogsUserEventsCollectCall { c.urlParams_.Set("prebuiltRule", prebuiltRule) return c @@ -16938,7 +16941,7 @@ func (c *ProjectsLocationsCatalogsUserEventsCollectCall) Do(opts ...googleapi.Ca // "type": "string" // }, // "prebuiltRule": { - // "description": "The prebuilt rule name that can convert a specific type of raw_json. For example: \"default_schema/v1.0\"", + // "description": "The prebuilt rule name that can convert a specific type of raw_json. For example: \"ga4_bq\" rule for the GA4 user event schema.", // "location": "query", // "type": "string" // }, diff --git a/run/v1/run-gen.go b/run/v1/run-gen.go index 88387539c0c..7b089d5cc13 100644 --- a/run/v1/run-gen.go +++ b/run/v1/run-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/run/v2/run-api.json b/run/v2/run-api.json index 536b33932ce..bee67e21f72 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -1059,7 +1059,7 @@ } } }, - "revision": "20221213", + "revision": "20230102", "rootUrl": "https://run.googleapis.com/", "schemas": { "GoogleCloudRunV2BinaryAuthorization": { @@ -1356,6 +1356,12 @@ "description": "KRM-style annotations for the resource.", "type": "object" }, + "cancelledCount": { + "description": "Output only. The number of tasks which reached phase Cancelled.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, "completionTime": { "description": "Output only. Represents time when the execution was completed. It is not guaranteed to be set in happens-before order across separate operations.", "format": "google-datetime", @@ -1441,6 +1447,11 @@ ], "type": "string" }, + "logUri": { + "description": "Output only. URI where logs for this execution can be found in Cloud Console.", + "readOnly": true, + "type": "string" + }, "name": { "description": "Output only. The unique name of this Execution.", "readOnly": true, @@ -1463,6 +1474,12 @@ "readOnly": true, "type": "boolean" }, + "retriedCount": { + "description": "Output only. The number of tasks which have retried at least once.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, "runningCount": { "description": "Output only. The number of actively running tasks.", "format": "int32", @@ -2558,6 +2575,11 @@ "description": "Output only. Result of the last attempt of this Task.", "readOnly": true }, + "logUri": { + "description": "Output only. URI where logs for this execution can be found in Cloud Console.", + "readOnly": true, + "type": "string" + }, "maxRetries": { "description": "Number of retries allowed per Task, before marking this Task failed.", "format": "int32", diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index 5d44c7f92fa..4a50bf4abde 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -644,6 +644,10 @@ type GoogleCloudRunV2Execution struct { // Annotations: KRM-style annotations for the resource. Annotations map[string]string `json:"annotations,omitempty"` + // CancelledCount: Output only. The number of tasks which reached phase + // Cancelled. + CancelledCount int64 `json:"cancelledCount,omitempty"` + // CompletionTime: Output only. Represents time when the execution was // completed. It is not guaranteed to be set in happens-before order // across separate operations. @@ -733,6 +737,10 @@ type GoogleCloudRunV2Execution struct { // Policy](https://cloud.google.com/terms/deprecation) documentation. LaunchStage string `json:"launchStage,omitempty"` + // LogUri: Output only. URI where logs for this execution can be found + // in Cloud Console. + LogUri string `json:"logUri,omitempty"` + // Name: Output only. The unique name of this Execution. Name string `json:"name,omitempty"` @@ -756,6 +764,10 @@ type GoogleCloudRunV2Execution struct { // process in Cloud Run. Reconciling bool `json:"reconciling,omitempty"` + // RetriedCount: Output only. The number of tasks which have retried at + // least once. + RetriedCount int64 `json:"retriedCount,omitempty"` + // RunningCount: Output only. The number of actively running tasks. RunningCount int64 `json:"runningCount,omitempty"` @@ -2282,6 +2294,10 @@ type GoogleCloudRunV2Task struct { // Task. LastAttemptResult *GoogleCloudRunV2TaskAttemptResult `json:"lastAttemptResult,omitempty"` + // LogUri: Output only. URI where logs for this execution can be found + // in Cloud Console. + LogUri string `json:"logUri,omitempty"` + // MaxRetries: Number of retries allowed per Task, before marking this // Task failed. MaxRetries int64 `json:"maxRetries,omitempty"` diff --git a/runtimeconfig/v1/runtimeconfig-gen.go b/runtimeconfig/v1/runtimeconfig-gen.go index 3f00ab0fdb8..6e13a6036f5 100644 --- a/runtimeconfig/v1/runtimeconfig-gen.go +++ b/runtimeconfig/v1/runtimeconfig-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/runtimeconfig/v1beta1/runtimeconfig-gen.go b/runtimeconfig/v1beta1/runtimeconfig-gen.go index 38548d94249..eb7dc5692a6 100644 --- a/runtimeconfig/v1beta1/runtimeconfig-gen.go +++ b/runtimeconfig/v1beta1/runtimeconfig-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/safebrowsing/v4/safebrowsing-gen.go b/safebrowsing/v4/safebrowsing-gen.go index 97978d70288..8d57823c846 100644 --- a/safebrowsing/v4/safebrowsing-gen.go +++ b/safebrowsing/v4/safebrowsing-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/sasportal/v1alpha1/sasportal-gen.go b/sasportal/v1alpha1/sasportal-gen.go index 213e727e0ca..78b48765308 100644 --- a/sasportal/v1alpha1/sasportal-gen.go +++ b/sasportal/v1alpha1/sasportal-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/script/v1/script-gen.go b/script/v1/script-gen.go index f56cff2458c..bf5256239ec 100644 --- a/script/v1/script-gen.go +++ b/script/v1/script-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/searchconsole/v1/searchconsole-gen.go b/searchconsole/v1/searchconsole-gen.go index 12745355b8c..cfed0b7a6af 100644 --- a/searchconsole/v1/searchconsole-gen.go +++ b/searchconsole/v1/searchconsole-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/secretmanager/v1/secretmanager-gen.go b/secretmanager/v1/secretmanager-gen.go index 0db88d2bc15..7ffceb5fe64 100644 --- a/secretmanager/v1/secretmanager-gen.go +++ b/secretmanager/v1/secretmanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/secretmanager/v1beta1/secretmanager-gen.go b/secretmanager/v1beta1/secretmanager-gen.go index edabc9fb86a..e8e61693d1c 100644 --- a/secretmanager/v1beta1/secretmanager-gen.go +++ b/secretmanager/v1beta1/secretmanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index 7c694613def..b0554c5e488 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/securitycenter/v1beta1/securitycenter-gen.go b/securitycenter/v1beta1/securitycenter-gen.go index 947044ea8dc..1d57a16f1c7 100644 --- a/securitycenter/v1beta1/securitycenter-gen.go +++ b/securitycenter/v1beta1/securitycenter-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index a807815b88d..39655600b9c 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go b/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go index 49d9a9b971a..8f729ed05f0 100644 --- a/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go +++ b/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go index a74a0b8e835..c664923f91e 100644 --- a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go +++ b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/servicecontrol/v1/servicecontrol-gen.go b/servicecontrol/v1/servicecontrol-gen.go index bcb327b582c..6eda2f4cba4 100644 --- a/servicecontrol/v1/servicecontrol-gen.go +++ b/servicecontrol/v1/servicecontrol-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/servicecontrol/v2/servicecontrol-gen.go b/servicecontrol/v2/servicecontrol-gen.go index 43f10cc4e95..08d3e3529ef 100644 --- a/servicecontrol/v2/servicecontrol-gen.go +++ b/servicecontrol/v2/servicecontrol-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/servicedirectory/v1/servicedirectory-gen.go b/servicedirectory/v1/servicedirectory-gen.go index 2b746724214..68d877310b9 100644 --- a/servicedirectory/v1/servicedirectory-gen.go +++ b/servicedirectory/v1/servicedirectory-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/servicedirectory/v1beta1/servicedirectory-gen.go b/servicedirectory/v1beta1/servicedirectory-gen.go index 34c24a824bf..8bc96d84191 100644 --- a/servicedirectory/v1beta1/servicedirectory-gen.go +++ b/servicedirectory/v1beta1/servicedirectory-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/servicemanagement/v1/servicemanagement-gen.go b/servicemanagement/v1/servicemanagement-gen.go index 313ecf9a4d4..dd7fedef77c 100644 --- a/servicemanagement/v1/servicemanagement-gen.go +++ b/servicemanagement/v1/servicemanagement-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/servicenetworking/v1/servicenetworking-gen.go b/servicenetworking/v1/servicenetworking-gen.go index e89fd909ea1..3e03fbee34f 100644 --- a/servicenetworking/v1/servicenetworking-gen.go +++ b/servicenetworking/v1/servicenetworking-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/servicenetworking/v1beta/servicenetworking-gen.go b/servicenetworking/v1beta/servicenetworking-gen.go index 35b4163193e..ceb8959b066 100644 --- a/servicenetworking/v1beta/servicenetworking-gen.go +++ b/servicenetworking/v1beta/servicenetworking-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/serviceusage/v1/serviceusage-gen.go b/serviceusage/v1/serviceusage-gen.go index 9088a1dd7f6..049ff2739e4 100644 --- a/serviceusage/v1/serviceusage-gen.go +++ b/serviceusage/v1/serviceusage-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/serviceusage/v1beta1/serviceusage-gen.go b/serviceusage/v1beta1/serviceusage-gen.go index bd8a376fe0d..7baf93ad77a 100644 --- a/serviceusage/v1beta1/serviceusage-gen.go +++ b/serviceusage/v1beta1/serviceusage-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/sheets/v4/sheets-gen.go b/sheets/v4/sheets-gen.go index 2c574a18a7d..a3468d64409 100644 --- a/sheets/v4/sheets-gen.go +++ b/sheets/v4/sheets-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/siteverification/v1/siteverification-gen.go b/siteverification/v1/siteverification-gen.go index f1e8a9956f5..06937912b14 100644 --- a/siteverification/v1/siteverification-gen.go +++ b/siteverification/v1/siteverification-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/slides/v1/slides-gen.go b/slides/v1/slides-gen.go index dc11174afa9..d5c0132b063 100644 --- a/slides/v1/slides-gen.go +++ b/slides/v1/slides-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/smartdevicemanagement/v1/smartdevicemanagement-gen.go b/smartdevicemanagement/v1/smartdevicemanagement-gen.go index 512b0a4fc0d..0f2412a9bd7 100644 --- a/smartdevicemanagement/v1/smartdevicemanagement-gen.go +++ b/smartdevicemanagement/v1/smartdevicemanagement-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/sourcerepo/v1/sourcerepo-gen.go b/sourcerepo/v1/sourcerepo-gen.go index 5361e572126..51c65b49f1e 100644 --- a/sourcerepo/v1/sourcerepo-gen.go +++ b/sourcerepo/v1/sourcerepo-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/spanner/v1/spanner-gen.go b/spanner/v1/spanner-gen.go index cd26cc70f6d..6d3ecbd688f 100644 --- a/spanner/v1/spanner-gen.go +++ b/spanner/v1/spanner-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/speech/v1/speech-gen.go b/speech/v1/speech-gen.go index 7d1cbb13409..8a295e33ad1 100644 --- a/speech/v1/speech-gen.go +++ b/speech/v1/speech-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/speech/v1p1beta1/speech-gen.go b/speech/v1p1beta1/speech-gen.go index 1efe64f906d..0d4b73e96d7 100644 --- a/speech/v1p1beta1/speech-gen.go +++ b/speech/v1p1beta1/speech-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/sqladmin/v1/sqladmin-gen.go b/sqladmin/v1/sqladmin-gen.go index 279a5bcafaa..00853ea61b5 100644 --- a/sqladmin/v1/sqladmin-gen.go +++ b/sqladmin/v1/sqladmin-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/sqladmin/v1beta4/sqladmin-gen.go b/sqladmin/v1beta4/sqladmin-gen.go index c85d62922c3..f07e41dfdee 100644 --- a/sqladmin/v1beta4/sqladmin-gen.go +++ b/sqladmin/v1beta4/sqladmin-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/storage/v1/storage-gen.go b/storage/v1/storage-gen.go index 4613ebdfa72..8527d3fb1ac 100644 --- a/storage/v1/storage-gen.go +++ b/storage/v1/storage-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/storagetransfer/v1/storagetransfer-gen.go b/storagetransfer/v1/storagetransfer-gen.go index 8d6b4c6f30f..0250c6c9b26 100644 --- a/storagetransfer/v1/storagetransfer-gen.go +++ b/storagetransfer/v1/storagetransfer-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/streetviewpublish/v1/streetviewpublish-gen.go b/streetviewpublish/v1/streetviewpublish-gen.go index be8a5e10ad9..05f3c06b07d 100644 --- a/streetviewpublish/v1/streetviewpublish-gen.go +++ b/streetviewpublish/v1/streetviewpublish-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/sts/v1/sts-gen.go b/sts/v1/sts-gen.go index 974d4536adb..360e62d119c 100644 --- a/sts/v1/sts-gen.go +++ b/sts/v1/sts-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/sts/v1beta/sts-gen.go b/sts/v1beta/sts-gen.go index b7cfaf9d195..b8b5a204341 100644 --- a/sts/v1beta/sts-gen.go +++ b/sts/v1beta/sts-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/tagmanager/v1/tagmanager-gen.go b/tagmanager/v1/tagmanager-gen.go index 85a03091f59..926a26efaa9 100644 --- a/tagmanager/v1/tagmanager-gen.go +++ b/tagmanager/v1/tagmanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/tagmanager/v2/tagmanager-api.json b/tagmanager/v2/tagmanager-api.json index ae6e847f93a..3cb8882a0e9 100644 --- a/tagmanager/v2/tagmanager-api.json +++ b/tagmanager/v2/tagmanager-api.json @@ -1449,7 +1449,8 @@ "queryString", "serverPageLocationUrl", "serverPageLocationPath", - "serverPageLocationHostname" + "serverPageLocationHostname", + "visitorRegion" ], "enumDescriptions": [ "", @@ -1564,6 +1565,7 @@ "", "", "", + "", "" ], "location": "query", @@ -1710,7 +1712,8 @@ "queryString", "serverPageLocationUrl", "serverPageLocationPath", - "serverPageLocationHostname" + "serverPageLocationHostname", + "visitorRegion" ], "enumDescriptions": [ "", @@ -1825,6 +1828,7 @@ "", "", "", + "", "" ], "location": "query", @@ -1999,7 +2003,8 @@ "queryString", "serverPageLocationUrl", "serverPageLocationPath", - "serverPageLocationHostname" + "serverPageLocationHostname", + "visitorRegion" ], "enumDescriptions": [ "", @@ -2114,6 +2119,7 @@ "", "", "", + "", "" ], "location": "query", @@ -3710,7 +3716,7 @@ } } }, - "revision": "20221108", + "revision": "20230102", "rootUrl": "https://tagmanager.googleapis.com/", "schemas": { "Account": { @@ -3920,7 +3926,8 @@ "queryString", "serverPageLocationUrl", "serverPageLocationPath", - "serverPageLocationHostname" + "serverPageLocationHostname", + "visitorRegion" ], "enumDescriptions": [ "", @@ -4035,6 +4042,7 @@ "", "", "", + "", "" ], "type": "string" diff --git a/tagmanager/v2/tagmanager-gen.go b/tagmanager/v2/tagmanager-gen.go index 3f23b23e81c..9ef033797aa 100644 --- a/tagmanager/v2/tagmanager-gen.go +++ b/tagmanager/v2/tagmanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -633,6 +633,7 @@ type BuiltInVariable struct { // "serverPageLocationUrl" // "serverPageLocationPath" // "serverPageLocationHostname" + // "visitorRegion" Type string `json:"type,omitempty"` // WorkspaceId: GTM Workspace ID. @@ -10069,6 +10070,7 @@ func (r *AccountsContainersWorkspacesBuiltInVariablesService) Create(parent stri // "serverPageLocationUrl" // "serverPageLocationPath" // "serverPageLocationHostname" +// "visitorRegion" func (c *AccountsContainersWorkspacesBuiltInVariablesCreateCall) Type(type_ ...string) *AccountsContainersWorkspacesBuiltInVariablesCreateCall { c.urlParams_.SetMulti("type", append([]string{}, type_...)) return c @@ -10290,7 +10292,8 @@ func (c *AccountsContainersWorkspacesBuiltInVariablesCreateCall) Do(opts ...goog // "queryString", // "serverPageLocationUrl", // "serverPageLocationPath", - // "serverPageLocationHostname" + // "serverPageLocationHostname", + // "visitorRegion" // ], // "enumDescriptions": [ // "", @@ -10405,6 +10408,7 @@ func (c *AccountsContainersWorkspacesBuiltInVariablesCreateCall) Do(opts ...goog // "", // "", // "", + // "", // "" // ], // "location": "query", @@ -10562,6 +10566,7 @@ func (r *AccountsContainersWorkspacesBuiltInVariablesService) Delete(path string // "serverPageLocationUrl" // "serverPageLocationPath" // "serverPageLocationHostname" +// "visitorRegion" func (c *AccountsContainersWorkspacesBuiltInVariablesDeleteCall) Type(type_ ...string) *AccountsContainersWorkspacesBuiltInVariablesDeleteCall { c.urlParams_.SetMulti("type", append([]string{}, type_...)) return c @@ -10758,7 +10763,8 @@ func (c *AccountsContainersWorkspacesBuiltInVariablesDeleteCall) Do(opts ...goog // "queryString", // "serverPageLocationUrl", // "serverPageLocationPath", - // "serverPageLocationHostname" + // "serverPageLocationHostname", + // "visitorRegion" // ], // "enumDescriptions": [ // "", @@ -10873,6 +10879,7 @@ func (c *AccountsContainersWorkspacesBuiltInVariablesDeleteCall) Do(opts ...goog // "", // "", // "", + // "", // "" // ], // "location": "query", @@ -11211,6 +11218,7 @@ func (r *AccountsContainersWorkspacesBuiltInVariablesService) Revert(path string // "serverPageLocationUrl" // "serverPageLocationPath" // "serverPageLocationHostname" +// "visitorRegion" func (c *AccountsContainersWorkspacesBuiltInVariablesRevertCall) Type(type_ string) *AccountsContainersWorkspacesBuiltInVariablesRevertCall { c.urlParams_.Set("type", type_) return c @@ -11432,7 +11440,8 @@ func (c *AccountsContainersWorkspacesBuiltInVariablesRevertCall) Do(opts ...goog // "queryString", // "serverPageLocationUrl", // "serverPageLocationPath", - // "serverPageLocationHostname" + // "serverPageLocationHostname", + // "visitorRegion" // ], // "enumDescriptions": [ // "", @@ -11547,6 +11556,7 @@ func (c *AccountsContainersWorkspacesBuiltInVariablesRevertCall) Do(opts ...goog // "", // "", // "", + // "", // "" // ], // "location": "query", diff --git a/tasks/v1/tasks-gen.go b/tasks/v1/tasks-gen.go index dbe3237c162..5228ea4933d 100644 --- a/tasks/v1/tasks-gen.go +++ b/tasks/v1/tasks-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/testing/v1/testing-api.json b/testing/v1/testing-api.json index 9fccff90eb7..b04a123d358 100644 --- a/testing/v1/testing-api.json +++ b/testing/v1/testing-api.json @@ -282,7 +282,7 @@ } } }, - "revision": "20221209", + "revision": "20230103", "rootUrl": "https://testing.googleapis.com/", "schemas": { "Account": { @@ -1425,7 +1425,7 @@ "id": "ManualSharding", "properties": { "testTargetsForShard": { - "description": "Required. Group of packages, classes, and/or test methods to be run for each manually-created shard. You must specify at least one shard if this field is present. When you select one or more physical devices, the number of repeated test_targets_for_shard must be \u003c= 50. When you select one or more ARM virtual devices, it must be \u003c= 50. When you select only x86 virtual devices, it must be \u003c= 500.", + "description": "Required. Group of packages, classes, and/or test methods to be run for each manually-created shard. You must specify at least one shard if this field is present. When you select one or more physical devices, the number of repeated test_targets_for_shard must be \u003c= 50. When you select one or more ARM virtual devices, it must be \u003c= 100. When you select only x86 virtual devices, it must be \u003c= 500.", "items": { "$ref": "TestTargetsForShard" }, @@ -2201,7 +2201,7 @@ "id": "UniformSharding", "properties": { "numShards": { - "description": "Required. The total number of shards to create. This must always be a positive number that is no greater than the total number of test cases. When you select one or more physical devices, the number of shards must be \u003c= 50. When you select one or more ARM virtual devices, it must be \u003c= 50. When you select only x86 virtual devices, it must be \u003c= 500.", + "description": "Required. The total number of shards to create. This must always be a positive number that is no greater than the total number of test cases. When you select one or more physical devices, the number of shards must be \u003c= 50. When you select one or more ARM virtual devices, it must be \u003c= 100. When you select only x86 virtual devices, it must be \u003c= 500.", "format": "int32", "type": "integer" } diff --git a/testing/v1/testing-gen.go b/testing/v1/testing-gen.go index 84ce1105577..5e7441c4bf0 100644 --- a/testing/v1/testing-gen.go +++ b/testing/v1/testing-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -1982,7 +1982,7 @@ type ManualSharding struct { // specify at least one shard if this field is present. When you select // one or more physical devices, the number of repeated // test_targets_for_shard must be <= 50. When you select one or more ARM - // virtual devices, it must be <= 50. When you select only x86 virtual + // virtual devices, it must be <= 100. When you select only x86 virtual // devices, it must be <= 500. TestTargetsForShard []*TestTargetsForShard `json:"testTargetsForShard,omitempty"` @@ -3253,7 +3253,7 @@ type UniformSharding struct { // always be a positive number that is no greater than the total number // of test cases. When you select one or more physical devices, the // number of shards must be <= 50. When you select one or more ARM - // virtual devices, it must be <= 50. When you select only x86 virtual + // virtual devices, it must be <= 100. When you select only x86 virtual // devices, it must be <= 500. NumShards int64 `json:"numShards,omitempty"` diff --git a/texttospeech/v1/texttospeech-gen.go b/texttospeech/v1/texttospeech-gen.go index 39c526fafe1..2645ac49472 100644 --- a/texttospeech/v1/texttospeech-gen.go +++ b/texttospeech/v1/texttospeech-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/texttospeech/v1beta1/texttospeech-gen.go b/texttospeech/v1beta1/texttospeech-gen.go index 74dd120bf2f..2b8a6834aaa 100644 --- a/texttospeech/v1beta1/texttospeech-gen.go +++ b/texttospeech/v1beta1/texttospeech-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/toolresults/v1beta3/toolresults-gen.go b/toolresults/v1beta3/toolresults-gen.go index c5131bfefd6..1aea467667a 100644 --- a/toolresults/v1beta3/toolresults-gen.go +++ b/toolresults/v1beta3/toolresults-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/tpu/v1/tpu-gen.go b/tpu/v1/tpu-gen.go index db0cbf8f4eb..12b03349403 100644 --- a/tpu/v1/tpu-gen.go +++ b/tpu/v1/tpu-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/tpu/v1alpha1/tpu-gen.go b/tpu/v1alpha1/tpu-gen.go index 454136f0a75..79945380776 100644 --- a/tpu/v1alpha1/tpu-gen.go +++ b/tpu/v1alpha1/tpu-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/tpu/v2/tpu-gen.go b/tpu/v2/tpu-gen.go index 9c8de917dd5..ce63b5b6f86 100644 --- a/tpu/v2/tpu-gen.go +++ b/tpu/v2/tpu-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/tpu/v2alpha1/tpu-gen.go b/tpu/v2alpha1/tpu-gen.go index 3ba3d4bbe60..cffb2aa7f0b 100644 --- a/tpu/v2alpha1/tpu-gen.go +++ b/tpu/v2alpha1/tpu-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/trafficdirector/v2/trafficdirector-gen.go b/trafficdirector/v2/trafficdirector-gen.go index b8edac178e2..8b7b488e0c7 100644 --- a/trafficdirector/v2/trafficdirector-gen.go +++ b/trafficdirector/v2/trafficdirector-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/transcoder/v1/transcoder-gen.go b/transcoder/v1/transcoder-gen.go index 756d96f4a36..49ab0a91285 100644 --- a/transcoder/v1/transcoder-gen.go +++ b/transcoder/v1/transcoder-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/translate/v2/translate-gen.go b/translate/v2/translate-gen.go index a42ba42e5e3..302ea9f8a46 100644 --- a/translate/v2/translate-gen.go +++ b/translate/v2/translate-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/translate/v3/translate-gen.go b/translate/v3/translate-gen.go index 659c6cfdfc7..717790c4b1d 100644 --- a/translate/v3/translate-gen.go +++ b/translate/v3/translate-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/translate/v3beta1/translate-gen.go b/translate/v3beta1/translate-gen.go index 57afab52d37..a176d4f333d 100644 --- a/translate/v3beta1/translate-gen.go +++ b/translate/v3beta1/translate-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/travelimpactmodel/v1/travelimpactmodel-gen.go b/travelimpactmodel/v1/travelimpactmodel-gen.go index 93bd6cff1f7..0ee847c1cbc 100644 --- a/travelimpactmodel/v1/travelimpactmodel-gen.go +++ b/travelimpactmodel/v1/travelimpactmodel-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/vault/v1/vault-gen.go b/vault/v1/vault-gen.go index 7a8f20f83fe..254368da56d 100644 --- a/vault/v1/vault-gen.go +++ b/vault/v1/vault-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/verifiedaccess/v1/verifiedaccess-gen.go b/verifiedaccess/v1/verifiedaccess-gen.go index 923eef1d3a0..caee9aed47d 100644 --- a/verifiedaccess/v1/verifiedaccess-gen.go +++ b/verifiedaccess/v1/verifiedaccess-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/verifiedaccess/v2/verifiedaccess-gen.go b/verifiedaccess/v2/verifiedaccess-gen.go index ddcb4c412a4..876dd88385f 100644 --- a/verifiedaccess/v2/verifiedaccess-gen.go +++ b/verifiedaccess/v2/verifiedaccess-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/versionhistory/v1/versionhistory-gen.go b/versionhistory/v1/versionhistory-gen.go index 8253745e9c2..5df04e7f44d 100644 --- a/versionhistory/v1/versionhistory-gen.go +++ b/versionhistory/v1/versionhistory-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/videointelligence/v1/videointelligence-gen.go b/videointelligence/v1/videointelligence-gen.go index 4f0782e90ef..6148937dd56 100644 --- a/videointelligence/v1/videointelligence-gen.go +++ b/videointelligence/v1/videointelligence-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/videointelligence/v1beta2/videointelligence-gen.go b/videointelligence/v1beta2/videointelligence-gen.go index 8836a5f8bd0..6924b773412 100644 --- a/videointelligence/v1beta2/videointelligence-gen.go +++ b/videointelligence/v1beta2/videointelligence-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/videointelligence/v1p1beta1/videointelligence-gen.go b/videointelligence/v1p1beta1/videointelligence-gen.go index 6dfa50f3be2..c098e38f0f0 100644 --- a/videointelligence/v1p1beta1/videointelligence-gen.go +++ b/videointelligence/v1p1beta1/videointelligence-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/videointelligence/v1p2beta1/videointelligence-gen.go b/videointelligence/v1p2beta1/videointelligence-gen.go index c449dd73132..1da024380f0 100644 --- a/videointelligence/v1p2beta1/videointelligence-gen.go +++ b/videointelligence/v1p2beta1/videointelligence-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/videointelligence/v1p3beta1/videointelligence-gen.go b/videointelligence/v1p3beta1/videointelligence-gen.go index d08828cd531..f97e4a8f28e 100644 --- a/videointelligence/v1p3beta1/videointelligence-gen.go +++ b/videointelligence/v1p3beta1/videointelligence-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/vision/v1/vision-gen.go b/vision/v1/vision-gen.go index ee275397328..747d79fe517 100644 --- a/vision/v1/vision-gen.go +++ b/vision/v1/vision-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/vision/v1p1beta1/vision-gen.go b/vision/v1p1beta1/vision-gen.go index 8ceed3cf301..24d468314a2 100644 --- a/vision/v1p1beta1/vision-gen.go +++ b/vision/v1p1beta1/vision-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/vision/v1p2beta1/vision-gen.go b/vision/v1p2beta1/vision-gen.go index 634992633af..43a43ff2f59 100644 --- a/vision/v1p2beta1/vision-gen.go +++ b/vision/v1p2beta1/vision-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/vmmigration/v1/vmmigration-gen.go b/vmmigration/v1/vmmigration-gen.go index 6c24a582e01..1e9b54ba159 100644 --- a/vmmigration/v1/vmmigration-gen.go +++ b/vmmigration/v1/vmmigration-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/vmmigration/v1alpha1/vmmigration-gen.go b/vmmigration/v1alpha1/vmmigration-gen.go index 66ef2cfba33..97076f92570 100644 --- a/vmmigration/v1alpha1/vmmigration-gen.go +++ b/vmmigration/v1alpha1/vmmigration-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/webfonts/v1/webfonts-gen.go b/webfonts/v1/webfonts-gen.go index 6e835aa0a9d..3937fa25630 100644 --- a/webfonts/v1/webfonts-gen.go +++ b/webfonts/v1/webfonts-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/webrisk/v1/webrisk-gen.go b/webrisk/v1/webrisk-gen.go index 9bf2cd39df1..c37e53cd833 100644 --- a/webrisk/v1/webrisk-gen.go +++ b/webrisk/v1/webrisk-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/websecurityscanner/v1/websecurityscanner-gen.go b/websecurityscanner/v1/websecurityscanner-gen.go index 54198efc7c3..f905cc019f7 100644 --- a/websecurityscanner/v1/websecurityscanner-gen.go +++ b/websecurityscanner/v1/websecurityscanner-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/websecurityscanner/v1alpha/websecurityscanner-gen.go b/websecurityscanner/v1alpha/websecurityscanner-gen.go index efb3f8302dc..848ce8b780d 100644 --- a/websecurityscanner/v1alpha/websecurityscanner-gen.go +++ b/websecurityscanner/v1alpha/websecurityscanner-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/websecurityscanner/v1beta/websecurityscanner-gen.go b/websecurityscanner/v1beta/websecurityscanner-gen.go index f96d6c1f8ac..2a1453f86fc 100644 --- a/websecurityscanner/v1beta/websecurityscanner-gen.go +++ b/websecurityscanner/v1beta/websecurityscanner-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/workflowexecutions/v1/workflowexecutions-gen.go b/workflowexecutions/v1/workflowexecutions-gen.go index 50473a6de70..b23ad53f689 100644 --- a/workflowexecutions/v1/workflowexecutions-gen.go +++ b/workflowexecutions/v1/workflowexecutions-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/workflowexecutions/v1beta/workflowexecutions-gen.go b/workflowexecutions/v1beta/workflowexecutions-gen.go index c91991ce6ae..02907924467 100644 --- a/workflowexecutions/v1beta/workflowexecutions-gen.go +++ b/workflowexecutions/v1beta/workflowexecutions-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/workflows/v1/workflows-gen.go b/workflows/v1/workflows-gen.go index c9ca475d652..4d386ae24d5 100644 --- a/workflows/v1/workflows-gen.go +++ b/workflows/v1/workflows-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/workflows/v1beta/workflows-gen.go b/workflows/v1beta/workflows-gen.go index a2b7b396139..6f179fe4659 100644 --- a/workflows/v1beta/workflows-gen.go +++ b/workflows/v1beta/workflows-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/workloadmanager/v1/workloadmanager-gen.go b/workloadmanager/v1/workloadmanager-gen.go index f2da63ebd74..d0c4fe28176 100644 --- a/workloadmanager/v1/workloadmanager-gen.go +++ b/workloadmanager/v1/workloadmanager-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/workstations/v1beta/workstations-api.json b/workstations/v1beta/workstations-api.json index 494999b8d60..ab2e3b92951 100644 --- a/workstations/v1beta/workstations-api.json +++ b/workstations/v1beta/workstations-api.json @@ -235,7 +235,7 @@ "workstationClusters": { "methods": { "create": { - "description": "Creates a new WorkstationCluster.", + "description": "Creates a new workstation cluster.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters", "httpMethod": "POST", "id": "workstations.projects.locations.workstationClusters.create", @@ -273,7 +273,7 @@ ] }, "delete": { - "description": "Deletes the specified WorkstationCluster.", + "description": "Deletes the specified workstation cluster.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}", "httpMethod": "DELETE", "id": "workstations.projects.locations.workstationClusters.delete", @@ -287,7 +287,7 @@ "type": "string" }, "force": { - "description": "If set, any WorkstationConfigs and Workstations in the cluster will also be deleted. Otherwise, the request will work only if the cluster has no configs or workstations.", + "description": "If set, any workstation configurations and workstations in the cluster will also be deleted. Otherwise, the request will work only if the cluster has no configurations or workstations.", "location": "query", "type": "boolean" }, @@ -313,7 +313,7 @@ ] }, "get": { - "description": "Returns the requested WorkstationCluster.", + "description": "Returns the requested workstation cluster.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}", "httpMethod": "GET", "id": "workstations.projects.locations.workstationClusters.get", @@ -338,7 +338,7 @@ ] }, "list": { - "description": "Returns all WorkstationClusters in the specified location.", + "description": "Returns all workstation clusters in the specified location.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters", "httpMethod": "GET", "id": "workstations.projects.locations.workstationClusters.list", @@ -374,7 +374,7 @@ ] }, "patch": { - "description": "Updates an existing WorkstationCluster.", + "description": "Updates an existing workstation cluster.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}", "httpMethod": "PATCH", "id": "workstations.projects.locations.workstationClusters.patch", @@ -422,7 +422,7 @@ "workstationConfigs": { "methods": { "create": { - "description": "Creates a new WorkstationConfig.", + "description": "Creates a new workstation configuration.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs", "httpMethod": "POST", "id": "workstations.projects.locations.workstationClusters.workstationConfigs.create", @@ -460,7 +460,7 @@ ] }, "delete": { - "description": "Deletes the specified WorkstationConfig.", + "description": "Deletes the specified workstation configuration.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}", "httpMethod": "DELETE", "id": "workstations.projects.locations.workstationClusters.workstationConfigs.delete", @@ -500,7 +500,7 @@ ] }, "get": { - "description": "Returns the requested WorkstationConfig.", + "description": "Returns the requested workstation configuration.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}", "httpMethod": "GET", "id": "workstations.projects.locations.workstationClusters.workstationConfigs.get", @@ -556,7 +556,7 @@ ] }, "list": { - "description": "Returns all WorkstationConfigs in the specified cluster.", + "description": "Returns all workstation configurations in the specified cluster.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs", "httpMethod": "GET", "id": "workstations.projects.locations.workstationClusters.workstationConfigs.list", @@ -592,7 +592,7 @@ ] }, "listUsable": { - "description": "Returns all WorkstationConfigs in the specified cluster on which the caller has the \"workstations.workstation.create\" permission.", + "description": "Returns all workstation configurations in the specified cluster on which the caller has the \"workstations.workstation.create\" permission.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs:listUsable", "httpMethod": "GET", "id": "workstations.projects.locations.workstationClusters.workstationConfigs.listUsable", @@ -628,7 +628,7 @@ ] }, "patch": { - "description": "Updates an existing WorkstationConfig.", + "description": "Updates an existing workstation configuration.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}", "httpMethod": "PATCH", "id": "workstations.projects.locations.workstationClusters.workstationConfigs.patch", @@ -732,7 +732,7 @@ "workstations": { "methods": { "create": { - "description": "Creates a new Workstation.", + "description": "Creates a new workstation.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations", "httpMethod": "POST", "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.create", @@ -770,7 +770,7 @@ ] }, "delete": { - "description": "Deletes the specified Workstation.", + "description": "Deletes the specified workstation.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}", "httpMethod": "DELETE", "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.delete", @@ -833,7 +833,7 @@ ] }, "get": { - "description": "Returns the requested Workstation.", + "description": "Returns the requested workstation.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}", "httpMethod": "GET", "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.get", @@ -961,7 +961,7 @@ ] }, "patch": { - "description": "Updates an existing Workstation.", + "description": "Updates an existing workstation.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}", "httpMethod": "PATCH", "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.patch", @@ -1127,7 +1127,7 @@ } } }, - "revision": "20221206", + "revision": "20221214", "rootUrl": "https://workstations.googleapis.com/", "schemas": { "AuditConfig": { @@ -1277,7 +1277,7 @@ "type": "object" }, "GceConfidentialInstanceConfig": { - "description": "A set of Confidential Google Compute Engine Instance option.", + "description": "A set of Compute Engine Confidential VM instance options.", "id": "GceConfidentialInstanceConfig", "properties": { "enableConfidentialCompute": { @@ -1288,7 +1288,7 @@ "type": "object" }, "GceInstance": { - "description": "A runtime using a Google Compute Engine Instance.", + "description": "A runtime using a Compute Engine instance.", "id": "GceInstance", "properties": { "bootDiskSizeGb": { @@ -1298,18 +1298,18 @@ }, "confidentialInstanceConfig": { "$ref": "GceConfidentialInstanceConfig", - "description": "A set of Confidential Google Compute Engine Instance option." + "description": "A set of Compute Engine Confidential VM instance options." }, "disablePublicIpAddresses": { "description": "Whether instances have no public IP address.", "type": "boolean" }, "machineType": { - "description": "The name of a Google Compute Engine machine type.", + "description": "The name of a Compute Engine machine type.", "type": "string" }, "poolSize": { - "description": "Number of instances to pool for faster Workstation starup.", + "description": "Number of instances to pool for faster workstation starup.", "format": "int32", "type": "integer" }, @@ -1319,10 +1319,10 @@ }, "shieldedInstanceConfig": { "$ref": "GceShieldedInstanceConfig", - "description": "A set of Shielded Google Compute Engine Instance options." + "description": "A set of Compute Engine Shielded instance options." }, "tags": { - "description": "Network tags to add to the Google Compute Engine machines backing the Workstations.", + "description": "Network tags to add to the Compute Engine machines backing the Workstations.", "items": { "type": "string" }, @@ -1340,11 +1340,11 @@ "type": "string" }, "fsType": { - "description": "Type of file system that the disk should be formatted with. The Workstation image must support this file system type. Must be empty if source_snapshot is set.", + "description": "Type of file system that the disk should be formatted with. The workstation image must support this file system type. Must be empty if source_snapshot is set.", "type": "string" }, "reclaimPolicy": { - "description": "What should happen to the disk after the Workstation is deleted. Defaults to DELETE.", + "description": "What should happen to the disk after the workstation is deleted. Defaults to DELETE.", "enum": [ "RECLAIM_POLICY_UNSPECIFIED", "DELETE", @@ -1352,7 +1352,7 @@ ], "enumDescriptions": [ "Do not use.", - "The persistent disk will be deleted with the Workstation.", + "The persistent disk will be deleted with the workstation.", "The persistent disk will be remain after the workstation is deleted, and the administrator must manually delete the disk." ], "type": "string" @@ -1366,7 +1366,7 @@ "type": "object" }, "GceShieldedInstanceConfig": { - "description": "A set of Shielded Google Compute Engine Instance options.", + "description": "A set of Compute Engine Shielded instance options.", "id": "GceShieldedInstanceConfig", "properties": { "enableIntegrityMonitoring": { @@ -1418,12 +1418,12 @@ "type": "object" }, "Host": { - "description": "The system will attempt to keep enough computational resources on standby Runtime host for a Workstation.", + "description": "Runtime host for a workstation.", "id": "Host", "properties": { "gceInstance": { "$ref": "GceInstance", - "description": "Specifies a Google Compute Engine Instance as the host." + "description": "Specifies a Compute Engine instance as the host." } }, "type": "object" @@ -1651,7 +1651,7 @@ "type": "object" }, "PersistentDirectory": { - "description": "A directory persisted across Workstation sessions.", + "description": "A directory to persist across workstation sessions.", "id": "PersistentDirectory", "properties": { "gcePd": { @@ -1659,7 +1659,7 @@ "description": "A PersistentDirectory backed by a Compute Engine persistent disk." }, "mountPath": { - "description": "Location of this directory in the running Workstation.", + "description": "Location of this directory in the running workstation.", "type": "string" } }, @@ -1701,7 +1701,7 @@ "id": "PrivateClusterConfig", "properties": { "clusterHostname": { - "description": "Output only. Hostname for the Workstation Cluster. This field will be populated only when private endpoint is enabled. To access workstations in the cluster, create a new DNS zone mapping this domain name to an internal IP address and a forwarding rule mapping that address to the service attachment.", + "description": "Output only. Hostname for the workstation cluster. This field will be populated only when private endpoint is enabled. To access workstations in the cluster, create a new DNS zone mapping this domain name to an internal IP address and a forwarding rule mapping that address to the service attachment.", "readOnly": true, "type": "string" }, @@ -1710,7 +1710,7 @@ "type": "boolean" }, "serviceAttachmentUri": { - "description": "Output only. Service attachment URI for the Workstation Cluster. The service attachemnt is created when private endpoint is enabled. To access workstations in the cluster, configure access to the managed service using (Private Service Connect)[https://cloud.google.com/vpc/docs/configure-private-service-connect-services].", + "description": "Output only. Service attachment URI for the workstation cluster. The service attachemnt is created when private endpoint is enabled. To access workstations in the cluster, configure access to the managed service using (Private Service Connect)[https://cloud.google.com/vpc/docs/configure-private-service-connect-services].", "readOnly": true, "type": "string" } @@ -1897,7 +1897,7 @@ "type": "object" }, "WorkstationCluster": { - "description": "A grouping of WorkstationConfigs and their associated Workstations in a region.", + "description": "A grouping of workstation configurations and the associated workstations in that region.", "id": "WorkstationCluster", "properties": { "annotations": { @@ -1976,7 +1976,7 @@ "type": "object" }, "WorkstationConfig": { - "description": "A set of configuration options describing how a workstation will be run. WorkstationConfigs are intended to be shared across multiple workstations.", + "description": "A set of configuration options describing how a workstation will be run. Workstation configurations are intended to be shared across multiple workstations.", "id": "WorkstationConfig", "properties": { "annotations": { @@ -1996,7 +1996,7 @@ }, "container": { "$ref": "Container", - "description": "Container that will be run for each Workstation using this config when that Workstation is started." + "description": "Container that will be run for each workstation using this configuration when that workstation is started." }, "createTime": { "description": "Output only. Time when this resource was created.", @@ -2025,7 +2025,7 @@ }, "host": { "$ref": "Host", - "description": "Runtime host for the Workstation." + "description": "Runtime host for the workstation." }, "idleTimeout": { "description": "How long to wait before automatically stopping an instance that hasn't received any user traffic. A value of 0 indicates that this instance should never time out due to idleness. Defaults to 20 minutes.", @@ -2037,7 +2037,7 @@ "type": "string" }, "persistentDirectories": { - "description": "Directories to persist across Workstation sessions.", + "description": "Directories to persist across workstation sessions.", "items": { "$ref": "PersistentDirectory" }, diff --git a/workstations/v1beta/workstations-gen.go b/workstations/v1beta/workstations-gen.go index a245950d88e..faa35cdaa2a 100644 --- a/workstations/v1beta/workstations-gen.go +++ b/workstations/v1beta/workstations-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -503,8 +503,8 @@ func (s *Expr) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GceConfidentialInstanceConfig: A set of Confidential Google Compute -// Engine Instance option. +// GceConfidentialInstanceConfig: A set of Compute Engine Confidential +// VM instance options. type GceConfidentialInstanceConfig struct { // EnableConfidentialCompute: Whether the instance has confidential // compute enabled. @@ -535,23 +535,23 @@ func (s *GceConfidentialInstanceConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GceInstance: A runtime using a Google Compute Engine Instance. +// GceInstance: A runtime using a Compute Engine instance. type GceInstance struct { // BootDiskSizeGb: Size of the boot disk in GB. BootDiskSizeGb int64 `json:"bootDiskSizeGb,omitempty"` - // ConfidentialInstanceConfig: A set of Confidential Google Compute - // Engine Instance option. + // ConfidentialInstanceConfig: A set of Compute Engine Confidential VM + // instance options. ConfidentialInstanceConfig *GceConfidentialInstanceConfig `json:"confidentialInstanceConfig,omitempty"` // DisablePublicIpAddresses: Whether instances have no public IP // address. DisablePublicIpAddresses bool `json:"disablePublicIpAddresses,omitempty"` - // MachineType: The name of a Google Compute Engine machine type. + // MachineType: The name of a Compute Engine machine type. MachineType string `json:"machineType,omitempty"` - // PoolSize: Number of instances to pool for faster Workstation starup. + // PoolSize: Number of instances to pool for faster workstation starup. PoolSize int64 `json:"poolSize,omitempty"` // ServiceAccount: Email address of the service account that will be @@ -561,12 +561,12 @@ type GceInstance struct { // image must be publicly accessible. ServiceAccount string `json:"serviceAccount,omitempty"` - // ShieldedInstanceConfig: A set of Shielded Google Compute Engine - // Instance options. + // ShieldedInstanceConfig: A set of Compute Engine Shielded instance + // options. ShieldedInstanceConfig *GceShieldedInstanceConfig `json:"shieldedInstanceConfig,omitempty"` - // Tags: Network tags to add to the Google Compute Engine machines - // backing the Workstations. + // Tags: Network tags to add to the Compute Engine machines backing the + // Workstations. Tags []string `json:"tags,omitempty"` // ForceSendFields is a list of field names (e.g. "BootDiskSizeGb") to @@ -600,17 +600,17 @@ type GceRegionalPersistentDisk struct { DiskType string `json:"diskType,omitempty"` // FsType: Type of file system that the disk should be formatted with. - // The Workstation image must support this file system type. Must be + // The workstation image must support this file system type. Must be // empty if source_snapshot is set. FsType string `json:"fsType,omitempty"` - // ReclaimPolicy: What should happen to the disk after the Workstation + // ReclaimPolicy: What should happen to the disk after the workstation // is deleted. Defaults to DELETE. // // Possible values: // "RECLAIM_POLICY_UNSPECIFIED" - Do not use. // "DELETE" - The persistent disk will be deleted with the - // Workstation. + // workstation. // "RETAIN" - The persistent disk will be remain after the workstation // is deleted, and the administrator must manually delete the disk. ReclaimPolicy string `json:"reclaimPolicy,omitempty"` @@ -642,8 +642,8 @@ func (s *GceRegionalPersistentDisk) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GceShieldedInstanceConfig: A set of Shielded Google Compute Engine -// Instance options. +// GceShieldedInstanceConfig: A set of Compute Engine Shielded instance +// options. type GceShieldedInstanceConfig struct { // EnableIntegrityMonitoring: Whether the instance has integrity // monitoring enabled. @@ -754,10 +754,9 @@ func (s *GenerateAccessTokenResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Host: The system will attempt to keep enough computational resources -// on standby Runtime host for a Workstation. +// Host: Runtime host for a workstation. type Host struct { - // GceInstance: Specifies a Google Compute Engine Instance as the host. + // GceInstance: Specifies a Compute Engine instance as the host. GceInstance *GceInstance `json:"gceInstance,omitempty"` // ForceSendFields is a list of field names (e.g. "GceInstance") to @@ -1133,14 +1132,14 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PersistentDirectory: A directory persisted across Workstation +// PersistentDirectory: A directory to persist across workstation // sessions. type PersistentDirectory struct { // GcePd: A PersistentDirectory backed by a Compute Engine persistent // disk. GcePd *GceRegionalPersistentDisk `json:"gcePd,omitempty"` - // MountPath: Location of this directory in the running Workstation. + // MountPath: Location of this directory in the running workstation. MountPath string `json:"mountPath,omitempty"` // ForceSendFields is a list of field names (e.g. "GcePd") to @@ -1278,7 +1277,7 @@ func (s *Policy) MarshalJSON() ([]byte, error) { // PrivateClusterConfig: Configuration options for private clusters. type PrivateClusterConfig struct { - // ClusterHostname: Output only. Hostname for the Workstation Cluster. + // ClusterHostname: Output only. Hostname for the workstation cluster. // This field will be populated only when private endpoint is enabled. // To access workstations in the cluster, create a new DNS zone mapping // this domain name to an internal IP address and a forwarding rule @@ -1289,7 +1288,7 @@ type PrivateClusterConfig struct { EnablePrivateEndpoint bool `json:"enablePrivateEndpoint,omitempty"` // ServiceAttachmentUri: Output only. Service attachment URI for the - // Workstation Cluster. The service attachemnt is created when private + // workstation cluster. The service attachemnt is created when private // endpoint is enabled. To access workstations in the cluster, configure // access to the managed service using (Private Service // Connect)[https://cloud.google.com/vpc/docs/configure-private-service-c @@ -1615,8 +1614,8 @@ func (s *Workstation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// WorkstationCluster: A grouping of WorkstationConfigs and their -// associated Workstations in a region. +// WorkstationCluster: A grouping of workstation configurations and the +// associated workstations in that region. type WorkstationCluster struct { // Annotations: Client-specified annotations. Annotations map[string]string `json:"annotations,omitempty"` @@ -1699,8 +1698,8 @@ func (s *WorkstationCluster) MarshalJSON() ([]byte, error) { } // WorkstationConfig: A set of configuration options describing how a -// workstation will be run. WorkstationConfigs are intended to be shared -// across multiple workstations. +// workstation will be run. Workstation configurations are intended to +// be shared across multiple workstations. type WorkstationConfig struct { // Annotations: Client-specified annotations. Annotations map[string]string `json:"annotations,omitempty"` @@ -1709,8 +1708,8 @@ type WorkstationConfig struct { // resource state. Conditions []*Status `json:"conditions,omitempty"` - // Container: Container that will be run for each Workstation using this - // config when that Workstation is started. + // Container: Container that will be run for each workstation using this + // configuration when that workstation is started. Container *Container `json:"container,omitempty"` // CreateTime: Output only. Time when this resource was created. @@ -1732,7 +1731,7 @@ type WorkstationConfig struct { // before proceeding. Etag string `json:"etag,omitempty"` - // Host: Runtime host for the Workstation. + // Host: Runtime host for the workstation. Host *Host `json:"host,omitempty"` // IdleTimeout: How long to wait before automatically stopping an @@ -1744,7 +1743,7 @@ type WorkstationConfig struct { // Name: Full name of this resource. Name string `json:"name,omitempty"` - // PersistentDirectories: Directories to persist across Workstation + // PersistentDirectories: Directories to persist across workstation // sessions. PersistentDirectories []*PersistentDirectory `json:"persistentDirectories,omitempty"` @@ -2452,7 +2451,7 @@ type ProjectsLocationsWorkstationClustersCreateCall struct { header_ http.Header } -// Create: Creates a new WorkstationCluster. +// Create: Creates a new workstation cluster. // // - parent: Parent resource name. func (r *ProjectsLocationsWorkstationClustersService) Create(parent string, workstationcluster *WorkstationCluster) *ProjectsLocationsWorkstationClustersCreateCall { @@ -2568,7 +2567,7 @@ func (c *ProjectsLocationsWorkstationClustersCreateCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Creates a new WorkstationCluster.", + // "description": "Creates a new workstation cluster.", // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters", // "httpMethod": "POST", // "id": "workstations.projects.locations.workstationClusters.create", @@ -2618,7 +2617,7 @@ type ProjectsLocationsWorkstationClustersDeleteCall struct { header_ http.Header } -// Delete: Deletes the specified WorkstationCluster. +// Delete: Deletes the specified workstation cluster. // // - name: Name of the cluster to delete. func (r *ProjectsLocationsWorkstationClustersService) Delete(name string) *ProjectsLocationsWorkstationClustersDeleteCall { @@ -2635,10 +2634,10 @@ func (c *ProjectsLocationsWorkstationClustersDeleteCall) Etag(etag string) *Proj return c } -// Force sets the optional parameter "force": If set, any -// WorkstationConfigs and Workstations in the cluster will also be -// deleted. Otherwise, the request will work only if the cluster has no -// configs or workstations. +// Force sets the optional parameter "force": If set, any workstation +// configurations and workstations in the cluster will also be deleted. +// Otherwise, the request will work only if the cluster has no +// configurations or workstations. func (c *ProjectsLocationsWorkstationClustersDeleteCall) Force(force bool) *ProjectsLocationsWorkstationClustersDeleteCall { c.urlParams_.Set("force", fmt.Sprint(force)) return c @@ -2738,7 +2737,7 @@ func (c *ProjectsLocationsWorkstationClustersDeleteCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Deletes the specified WorkstationCluster.", + // "description": "Deletes the specified workstation cluster.", // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}", // "httpMethod": "DELETE", // "id": "workstations.projects.locations.workstationClusters.delete", @@ -2752,7 +2751,7 @@ func (c *ProjectsLocationsWorkstationClustersDeleteCall) Do(opts ...googleapi.Ca // "type": "string" // }, // "force": { - // "description": "If set, any WorkstationConfigs and Workstations in the cluster will also be deleted. Otherwise, the request will work only if the cluster has no configs or workstations.", + // "description": "If set, any workstation configurations and workstations in the cluster will also be deleted. Otherwise, the request will work only if the cluster has no configurations or workstations.", // "location": "query", // "type": "boolean" // }, @@ -2791,7 +2790,7 @@ type ProjectsLocationsWorkstationClustersGetCall struct { header_ http.Header } -// Get: Returns the requested WorkstationCluster. +// Get: Returns the requested workstation cluster. // // - name: Name of the requested resource. func (r *ProjectsLocationsWorkstationClustersService) Get(name string) *ProjectsLocationsWorkstationClustersGetCall { @@ -2899,7 +2898,7 @@ func (c *ProjectsLocationsWorkstationClustersGetCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Returns the requested WorkstationCluster.", + // "description": "Returns the requested workstation cluster.", // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}", // "httpMethod": "GET", // "id": "workstations.projects.locations.workstationClusters.get", @@ -2937,7 +2936,7 @@ type ProjectsLocationsWorkstationClustersListCall struct { header_ http.Header } -// List: Returns all WorkstationClusters in the specified location. +// List: Returns all workstation clusters in the specified location. // // - parent: Parent resource name. func (r *ProjectsLocationsWorkstationClustersService) List(parent string) *ProjectsLocationsWorkstationClustersListCall { @@ -3059,7 +3058,7 @@ func (c *ProjectsLocationsWorkstationClustersListCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Returns all WorkstationClusters in the specified location.", + // "description": "Returns all workstation clusters in the specified location.", // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters", // "httpMethod": "GET", // "id": "workstations.projects.locations.workstationClusters.list", @@ -3129,7 +3128,7 @@ type ProjectsLocationsWorkstationClustersPatchCall struct { header_ http.Header } -// Patch: Updates an existing WorkstationCluster. +// Patch: Updates an existing workstation cluster. // // - name: Full name of this resource. func (r *ProjectsLocationsWorkstationClustersService) Patch(name string, workstationcluster *WorkstationCluster) *ProjectsLocationsWorkstationClustersPatchCall { @@ -3253,7 +3252,7 @@ func (c *ProjectsLocationsWorkstationClustersPatchCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Updates an existing WorkstationCluster.", + // "description": "Updates an existing workstation cluster.", // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}", // "httpMethod": "PATCH", // "id": "workstations.projects.locations.workstationClusters.patch", @@ -3310,7 +3309,7 @@ type ProjectsLocationsWorkstationClustersWorkstationConfigsCreateCall struct { header_ http.Header } -// Create: Creates a new WorkstationConfig. +// Create: Creates a new workstation configuration. // // - parent: Parent resource name. func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsService) Create(parent string, workstationconfig *WorkstationConfig) *ProjectsLocationsWorkstationClustersWorkstationConfigsCreateCall { @@ -3426,7 +3425,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsCreateCall) Do(op } return ret, nil // { - // "description": "Creates a new WorkstationConfig.", + // "description": "Creates a new workstation configuration.", // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs", // "httpMethod": "POST", // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.create", @@ -3476,7 +3475,7 @@ type ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall struct { header_ http.Header } -// Delete: Deletes the specified WorkstationConfig. +// Delete: Deletes the specified workstation configuration. // // - name: Name of the config to delete. func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsService) Delete(name string) *ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall { @@ -3595,7 +3594,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsDeleteCall) Do(op } return ret, nil // { - // "description": "Deletes the specified WorkstationConfig.", + // "description": "Deletes the specified workstation configuration.", // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}", // "httpMethod": "DELETE", // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.delete", @@ -3648,7 +3647,7 @@ type ProjectsLocationsWorkstationClustersWorkstationConfigsGetCall struct { header_ http.Header } -// Get: Returns the requested WorkstationConfig. +// Get: Returns the requested workstation configuration. // // - name: Name of the requested resource. func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsService) Get(name string) *ProjectsLocationsWorkstationClustersWorkstationConfigsGetCall { @@ -3756,7 +3755,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsGetCall) Do(opts } return ret, nil // { - // "description": "Returns the requested WorkstationConfig.", + // "description": "Returns the requested workstation configuration.", // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}", // "httpMethod": "GET", // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.get", @@ -3969,7 +3968,8 @@ type ProjectsLocationsWorkstationClustersWorkstationConfigsListCall struct { header_ http.Header } -// List: Returns all WorkstationConfigs in the specified cluster. +// List: Returns all workstation configurations in the specified +// cluster. // // - parent: Parent resource name. func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsService) List(parent string) *ProjectsLocationsWorkstationClustersWorkstationConfigsListCall { @@ -4091,7 +4091,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListCall) Do(opts } return ret, nil // { - // "description": "Returns all WorkstationConfigs in the specified cluster.", + // "description": "Returns all workstation configurations in the specified cluster.", // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs", // "httpMethod": "GET", // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.list", @@ -4161,8 +4161,8 @@ type ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall struct header_ http.Header } -// ListUsable: Returns all WorkstationConfigs in the specified cluster -// on which the caller has the "workstations.workstation.create" +// ListUsable: Returns all workstation configurations in the specified +// cluster on which the caller has the "workstations.workstation.create" // permission. // // - parent: Parent resource name. @@ -4286,7 +4286,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsListUsableCall) D } return ret, nil // { - // "description": "Returns all WorkstationConfigs in the specified cluster on which the caller has the \"workstations.workstation.create\" permission.", + // "description": "Returns all workstation configurations in the specified cluster on which the caller has the \"workstations.workstation.create\" permission.", // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs:listUsable", // "httpMethod": "GET", // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.listUsable", @@ -4356,7 +4356,7 @@ type ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall struct { header_ http.Header } -// Patch: Updates an existing WorkstationConfig. +// Patch: Updates an existing workstation configuration. // // - name: Full name of this resource. func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsService) Patch(name string, workstationconfig *WorkstationConfig) *ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall { @@ -4480,7 +4480,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsPatchCall) Do(opt } return ret, nil // { - // "description": "Updates an existing WorkstationConfig.", + // "description": "Updates an existing workstation configuration.", // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}", // "httpMethod": "PATCH", // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.patch", @@ -4834,7 +4834,7 @@ type ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsCreateCal header_ http.Header } -// Create: Creates a new Workstation. +// Create: Creates a new workstation. // // - parent: Parent resource name. func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService) Create(parent string, workstation *Workstation) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsCreateCall { @@ -4950,7 +4950,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsCreat } return ret, nil // { - // "description": "Creates a new Workstation.", + // "description": "Creates a new workstation.", // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations", // "httpMethod": "POST", // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.create", @@ -5000,7 +5000,7 @@ type ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsDeleteCal header_ http.Header } -// Delete: Deletes the specified Workstation. +// Delete: Deletes the specified workstation. // // - name: Name of the workstation to delete. func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService) Delete(name string) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsDeleteCall { @@ -5111,7 +5111,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsDelet } return ret, nil // { - // "description": "Deletes the specified Workstation.", + // "description": "Deletes the specified workstation.", // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}", // "httpMethod": "DELETE", // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.delete", @@ -5303,7 +5303,7 @@ type ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetCall s header_ http.Header } -// Get: Returns the requested Workstation. +// Get: Returns the requested workstation. // // - name: Name of the requested resource. func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService) Get(name string) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetCall { @@ -5411,7 +5411,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsGetCa } return ret, nil // { - // "description": "Returns the requested Workstation.", + // "description": "Returns the requested workstation.", // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}", // "httpMethod": "GET", // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.get", @@ -6009,7 +6009,7 @@ type ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatchCall header_ http.Header } -// Patch: Updates an existing Workstation. +// Patch: Updates an existing workstation. // // - name: Full name of this resource. func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService) Patch(name string, workstation *Workstation) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatchCall { @@ -6133,7 +6133,7 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsPatch } return ret, nil // { - // "description": "Updates an existing Workstation.", + // "description": "Updates an existing workstation.", // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}", // "httpMethod": "PATCH", // "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.patch", diff --git a/youtube/v3/youtube-gen.go b/youtube/v3/youtube-gen.go index 796e1579d4d..6b47e948745 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/youtubeanalytics/v2/youtubeanalytics-gen.go b/youtubeanalytics/v2/youtubeanalytics-gen.go index 5618901208d..2908c47fec6 100644 --- a/youtubeanalytics/v2/youtubeanalytics-gen.go +++ b/youtubeanalytics/v2/youtubeanalytics-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/youtubereporting/v1/youtubereporting-gen.go b/youtubereporting/v1/youtubereporting-gen.go index 9e1f5d1ea9b..a159a2b8f47 100644 --- a/youtubereporting/v1/youtubereporting-gen.go +++ b/youtubereporting/v1/youtubereporting-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file.