From 858fb5799f91dcb4b9d5b6949f3b22a1618c2071 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 4 Jan 2024 00:24:15 -0800 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2331) --- admin/directory/v1/admin-api.json | 20 +- admin/directory/v1/admin-gen.go | 91 +++---- calendar/v3/calendar-gen.go | 2 +- chromeuxreport/v1/chromeuxreport-api.json | 24 +- chromeuxreport/v1/chromeuxreport-gen.go | 56 ++++- cloudidentity/v1beta1/cloudidentity-api.json | 4 +- cloudidentity/v1beta1/cloudidentity-gen.go | 2 +- .../v1/contactcenterinsights-api.json | 112 ++++++++- .../v1/contactcenterinsights-gen.go | 166 +++++++++++++ .../serviceconsumermanagement-api.json | 79 +----- .../v1beta1/serviceconsumermanagement-gen.go | 228 ------------------ spanner/v1/spanner-gen.go | 2 +- 12 files changed, 419 insertions(+), 367 deletions(-) diff --git a/admin/directory/v1/admin-api.json b/admin/directory/v1/admin-api.json index 77696ae5f4c..f106f0346a7 100644 --- a/admin/directory/v1/admin-api.json +++ b/admin/directory/v1/admin-api.json @@ -306,7 +306,7 @@ "methods": { "action": { "deprecated": true, - "description": "DEPRECATED: Use BatchChangeChromeOsDeviceStatus instead. Takes an action that affects a Chrome OS Device. This includes deprovisioning, disabling, and re-enabling devices. *Warning:* * Deprovisioning a device will stop device policy syncing and remove device-level printers. After a device is deprovisioned, it must be wiped before it can be re-enrolled. * Lost or stolen devices should use the disable action. * Re-enabling a disabled device will consume a device license. If you do not have sufficient licenses available when completing the re-enable action, you will receive an error. For more information about deprovisioning and disabling devices, visit the [help center](https://support.google.com/chrome/a/answer/3523633).", + "description": "Use [BatchChangeChromeOsDeviceStatus](/admin-sdk/directory/reference/rest/v1/customer.devices.chromeos/batchChangeStatus) instead. Takes an action that affects a Chrome OS Device. This includes deprovisioning, disabling, and re-enabling devices. *Warning:* * Deprovisioning a device will stop device policy syncing and remove device-level printers. After a device is deprovisioned, it must be wiped before it can be re-enrolled. * Lost or stolen devices should use the disable action. * Re-enabling a disabled device will consume a device license. If you do not have sufficient licenses available when completing the re-enable action, you will receive an error. For more information about deprovisioning and disabling devices, visit the [help center](https://support.google.com/chrome/a/answer/3523633).", "flatPath": "admin/directory/v1/customer/{customerId}/devices/chromeos/{resourceId}/action", "httpMethod": "POST", "id": "directory.chromeosdevices.action", @@ -615,7 +615,7 @@ "chromeos": { "methods": { "batchChangeStatus": { - "description": "Changes the status of a batch of ChromeOS devices.", + "description": "Changes the status of a batch of ChromeOS devices. For more information about changing a ChromeOS device state [Repair, repurpose, or retire ChromeOS devices](https://support.google.com/chrome/a/answer/3523633).", "flatPath": "admin/directory/v1/customer/{customerId}/devices/chromeos:batchChangeStatus", "httpMethod": "POST", "id": "admin.customer.devices.chromeos.batchChangeStatus", @@ -624,7 +624,7 @@ ], "parameters": { "customerId": { - "description": "Required. Immutable ID of the G Suite account.", + "description": "Required. Immutable ID of the Google Workspace account.", "location": "path", "required": true, "type": "string" @@ -4671,7 +4671,7 @@ } } }, - "revision": "20231219", + "revision": "20240102", "rootUrl": "https://admin.googleapis.com/", "schemas": { "Alias": { @@ -4815,7 +4815,7 @@ "id": "BatchChangeChromeOsDeviceStatusRequest", "properties": { "changeChromeOsDeviceStatusAction": { - "description": "Required. The Action to take on the ChromeOS device in order to change its status.", + "description": "Required. The action to take on the ChromeOS device in order to change its status.", "enum": [ "CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_UNSPECIFIED", "CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION", @@ -4824,14 +4824,14 @@ ], "enumDescriptions": [ "Default value. Value is unused.", - "If you have ChromeOS devices that are no longer being used in your organization, you should deprovision them so that you’re no longer managing them. Deprovisioning the device removes all policies that were on the device as well as device-level printers and the ability to use the device as a kiosk. Depending on the upgrade that’s associated with the device this action might release the license back into the license pool; which allows you to use the license on a different device.", - "Use this action if a user loses their device or it’s stolen, this makes it such that the device is still managed, so it will still receive policies, but noone can use it. Depending on the upgrade that’s associated with the device this action might release the license back into the license pool; which allows you to use the license on a different device.", - "Reenable the device once it's no longer lost or it's been recovered. This allows the device to be used again. Depending on the upgrade associated with the device this might consume one license from the license pool, meaning that if there aren't enough licenses available the operation will fail." + "Deprovisions a ChromeOS device. If you have ChromeOS devices that are no longer being used in your organization, you should deprovision them so that you’re no longer managing them. Deprovisioning the device removes all policies that were on the device as well as device-level printers and the ability to use the device as a kiosk. Depending on the upgrade that’s associated with the device this action might release the license back into the license pool; which allows you to use the license on a different device.", + "Disables a ChromeOS device. Use this action if a user loses their device or it’s stolen, this makes it such that the device is still managed, so it will still receive policies, but no one can use it. Depending on the upgrade that’s associated with the device this action might release the license back into the license pool; which allows you to use the license on a different device.", + "Reenables a ChromeOS device to be used after being disabled. Reenables the device once it's no longer lost or it's been recovered. This allows the device to be used again. Depending on the upgrade associated with the device this might consume one license from the license pool, meaning that if there aren't enough licenses available the operation will fail." ], "type": "string" }, "deprovisionReason": { - "description": "Optional. The reason behind a device deprovision, must be provided for all deprovisions, otherwise it must not be provided. It must be one of the non-deprecated deprovision reasons.", + "description": "Optional. The reason behind a device deprovision. Must be provided if 'changeChromeOsDeviceStatusAction' is set to 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION'. Otherwise, omit this field.", "enum": [ "DEPROVISION_REASON_UNSPECIFIED", "DEPROVISION_REASON_SAME_MODEL_REPLACEMENT", @@ -4874,7 +4874,7 @@ "type": "string" }, "deviceIds": { - "description": "Required. List of the IDs of the ChromeOS devices to change.", + "description": "Required. List of the IDs of the ChromeOS devices to change. Maximum 50.", "items": { "type": "string" }, diff --git a/admin/directory/v1/admin-gen.go b/admin/directory/v1/admin-gen.go index c7669ae0f4b..35bfa6ec1ca 100644 --- a/admin/directory/v1/admin-gen.go +++ b/admin/directory/v1/admin-gen.go @@ -870,39 +870,41 @@ func (s *AuxiliaryMessage) MarshalJSON() ([]byte, error) { // BatchChangeChromeOsDeviceStatusRequest: A request for changing the // status of a batch of ChromeOS devices. type BatchChangeChromeOsDeviceStatusRequest struct { - // ChangeChromeOsDeviceStatusAction: Required. The Action to take on the + // ChangeChromeOsDeviceStatusAction: Required. The action to take on the // ChromeOS device in order to change its status. // // Possible values: // "CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_UNSPECIFIED" - Default // value. Value is unused. - // "CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION" - If you have - // ChromeOS devices that are no longer being used in your organization, - // you should deprovision them so that you’re no longer managing them. - // Deprovisioning the device removes all policies that were on the - // device as well as device-level printers and the ability to use the - // device as a kiosk. Depending on the upgrade that’s associated with - // the device this action might release the license back into the - // license pool; which allows you to use the license on a different - // device. - // "CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DISABLE" - Use this action - // if a user loses their device or it’s stolen, this makes it such - // that the device is still managed, so it will still receive policies, - // but noone can use it. Depending on the upgrade that’s associated - // with the device this action might release the license back into the - // license pool; which allows you to use the license on a different - // device. - // "CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_REENABLE" - Reenable the - // device once it's no longer lost or it's been recovered. This allows - // the device to be used again. Depending on the upgrade associated with - // the device this might consume one license from the license pool, - // meaning that if there aren't enough licenses available the operation - // will fail. + // "CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION" - Deprovisions + // a ChromeOS device. If you have ChromeOS devices that are no longer + // being used in your organization, you should deprovision them so that + // you’re no longer managing them. Deprovisioning the device removes + // all policies that were on the device as well as device-level printers + // and the ability to use the device as a kiosk. Depending on the + // upgrade that’s associated with the device this action might release + // the license back into the license pool; which allows you to use the + // license on a different device. + // "CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DISABLE" - Disables a + // ChromeOS device. Use this action if a user loses their device or + // it’s stolen, this makes it such that the device is still managed, + // so it will still receive policies, but no one can use it. Depending + // on the upgrade that’s associated with the device this action might + // release the license back into the license pool; which allows you to + // use the license on a different device. + // "CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_REENABLE" - Reenables a + // ChromeOS device to be used after being disabled. Reenables the device + // once it's no longer lost or it's been recovered. This allows the + // device to be used again. Depending on the upgrade associated with the + // device this might consume one license from the license pool, meaning + // that if there aren't enough licenses available the operation will + // fail. ChangeChromeOsDeviceStatusAction string `json:"changeChromeOsDeviceStatusAction,omitempty"` - // DeprovisionReason: Optional. The reason behind a device deprovision, - // must be provided for all deprovisions, otherwise it must not be - // provided. It must be one of the non-deprecated deprovision reasons. + // DeprovisionReason: Optional. The reason behind a device deprovision. + // Must be provided if 'changeChromeOsDeviceStatusAction' is set to + // 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION'. Otherwise, omit + // this field. // // Possible values: // "DEPROVISION_REASON_UNSPECIFIED" - The deprovision reason is @@ -933,7 +935,7 @@ type BatchChangeChromeOsDeviceStatusRequest struct { DeprovisionReason string `json:"deprovisionReason,omitempty"` // DeviceIds: Required. List of the IDs of the ChromeOS devices to - // change. + // change. Maximum 50. DeviceIds []string `json:"deviceIds,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -7169,17 +7171,19 @@ type ChromeosdevicesActionCall struct { header_ http.Header } -// Action: DEPRECATED: Use BatchChangeChromeOsDeviceStatus instead. -// Takes an action that affects a Chrome OS Device. This includes -// deprovisioning, disabling, and re-enabling devices. *Warning:* * -// Deprovisioning a device will stop device policy syncing and remove -// device-level printers. After a device is deprovisioned, it must be -// wiped before it can be re-enrolled. * Lost or stolen devices should -// use the disable action. * Re-enabling a disabled device will consume -// a device license. If you do not have sufficient licenses available -// when completing the re-enable action, you will receive an error. For -// more information about deprovisioning and disabling devices, visit -// the help center (https://support.google.com/chrome/a/answer/3523633). +// Action: Use BatchChangeChromeOsDeviceStatus +// (/admin-sdk/directory/reference/rest/v1/customer.devices.chromeos/batc +// hChangeStatus) instead. Takes an action that affects a Chrome OS +// Device. This includes deprovisioning, disabling, and re-enabling +// devices. *Warning:* * Deprovisioning a device will stop device policy +// syncing and remove device-level printers. After a device is +// deprovisioned, it must be wiped before it can be re-enrolled. * Lost +// or stolen devices should use the disable action. * Re-enabling a +// disabled device will consume a device license. If you do not have +// sufficient licenses available when completing the re-enable action, +// you will receive an error. For more information about deprovisioning +// and disabling devices, visit the help center +// (https://support.google.com/chrome/a/answer/3523633). // // - customerId: The unique ID for the customer's Google Workspace // account. As an account administrator, you can also use the @@ -7265,7 +7269,7 @@ func (c *ChromeosdevicesActionCall) Do(opts ...googleapi.CallOption) error { return nil // { // "deprecated": true, - // "description": "DEPRECATED: Use BatchChangeChromeOsDeviceStatus instead. Takes an action that affects a Chrome OS Device. This includes deprovisioning, disabling, and re-enabling devices. *Warning:* * Deprovisioning a device will stop device policy syncing and remove device-level printers. After a device is deprovisioned, it must be wiped before it can be re-enrolled. * Lost or stolen devices should use the disable action. * Re-enabling a disabled device will consume a device license. If you do not have sufficient licenses available when completing the re-enable action, you will receive an error. For more information about deprovisioning and disabling devices, visit the [help center](https://support.google.com/chrome/a/answer/3523633).", + // "description": "Use [BatchChangeChromeOsDeviceStatus](/admin-sdk/directory/reference/rest/v1/customer.devices.chromeos/batchChangeStatus) instead. Takes an action that affects a Chrome OS Device. This includes deprovisioning, disabling, and re-enabling devices. *Warning:* * Deprovisioning a device will stop device policy syncing and remove device-level printers. After a device is deprovisioned, it must be wiped before it can be re-enrolled. * Lost or stolen devices should use the disable action. * Re-enabling a disabled device will consume a device license. If you do not have sufficient licenses available when completing the re-enable action, you will receive an error. For more information about deprovisioning and disabling devices, visit the [help center](https://support.google.com/chrome/a/answer/3523633).", // "flatPath": "admin/directory/v1/customer/{customerId}/devices/chromeos/{resourceId}/action", // "httpMethod": "POST", // "id": "directory.chromeosdevices.action", @@ -8345,8 +8349,11 @@ type CustomerDevicesChromeosBatchChangeStatusCall struct { } // BatchChangeStatus: Changes the status of a batch of ChromeOS devices. +// For more information about changing a ChromeOS device state Repair, +// repurpose, or retire ChromeOS devices +// (https://support.google.com/chrome/a/answer/3523633). // -// - customerId: Immutable ID of the G Suite account. +// - customerId: Immutable ID of the Google Workspace account. func (r *CustomerDevicesChromeosService) BatchChangeStatus(customerId string, batchchangechromeosdevicestatusrequest *BatchChangeChromeOsDeviceStatusRequest) *CustomerDevicesChromeosBatchChangeStatusCall { c := &CustomerDevicesChromeosBatchChangeStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.customerId = customerId @@ -8446,7 +8453,7 @@ func (c *CustomerDevicesChromeosBatchChangeStatusCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Changes the status of a batch of ChromeOS devices.", + // "description": "Changes the status of a batch of ChromeOS devices. For more information about changing a ChromeOS device state [Repair, repurpose, or retire ChromeOS devices](https://support.google.com/chrome/a/answer/3523633).", // "flatPath": "admin/directory/v1/customer/{customerId}/devices/chromeos:batchChangeStatus", // "httpMethod": "POST", // "id": "admin.customer.devices.chromeos.batchChangeStatus", @@ -8455,7 +8462,7 @@ func (c *CustomerDevicesChromeosBatchChangeStatusCall) Do(opts ...googleapi.Call // ], // "parameters": { // "customerId": { - // "description": "Required. Immutable ID of the G Suite account.", + // "description": "Required. Immutable ID of the Google Workspace account.", // "location": "path", // "required": true, // "type": "string" diff --git a/calendar/v3/calendar-gen.go b/calendar/v3/calendar-gen.go index 2166395bd4a..6ee56615a20 100644 --- a/calendar/v3/calendar-gen.go +++ b/calendar/v3/calendar-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google 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-api.json b/chromeuxreport/v1/chromeuxreport-api.json index 4cafb96baad..4645cdbd1d1 100644 --- a/chromeuxreport/v1/chromeuxreport-api.json +++ b/chromeuxreport/v1/chromeuxreport-api.json @@ -131,7 +131,7 @@ } } }, - "revision": "20231030", + "revision": "20240102", "rootUrl": "https://chromeuxreport.googleapis.com/", "schemas": { "Bin": { @@ -191,6 +191,21 @@ }, "type": "object" }, + "FractionTimeseries": { + "description": "For enum metrics, provides fraction timeseries which add up to approximately 1.0 per entry (k-th element into the repeated fractions field for any k \u003c= len) across fraction_timeseries.", + "id": "FractionTimeseries", + "properties": { + "fractions": { + "description": "Values between 0.0 and 1.0 (inclusive) and NaN.", + "items": { + "format": "double", + "type": "number" + }, + "type": "array" + } + }, + "type": "object" + }, "HistoryKey": { "description": "Key defines all the dimensions that identify this record as unique.", "id": "HistoryKey", @@ -312,6 +327,13 @@ "description": "A `metric timeseries` is a set of user experience data for a single web performance metric, like \"first contentful paint\". It contains a summary histogram of real world Chrome usage as a series of `bins`, where each bin has density values for a particular time period.", "id": "MetricTimeseries", "properties": { + "fractionTimeseries": { + "additionalProperties": { + "$ref": "FractionTimeseries" + }, + "description": "Mapping from labels to timeseries of fractions attributed to this label.", + "type": "object" + }, "histogramTimeseries": { "description": "The histogram of user experiences for a metric. The histogram will have at least one bin and the densities of all bins will add up to ~1, for each timeseries entry.", "items": { diff --git a/chromeuxreport/v1/chromeuxreport-gen.go b/chromeuxreport/v1/chromeuxreport-gen.go index acf3d24471d..d3e25f5207d 100644 --- a/chromeuxreport/v1/chromeuxreport-gen.go +++ b/chromeuxreport/v1/chromeuxreport-gen.go @@ -284,6 +284,54 @@ func (s *Date) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// FractionTimeseries: For enum metrics, provides fraction timeseries +// which add up to approximately 1.0 per entry (k-th element into the +// repeated fractions field for any k <= len) across +// fraction_timeseries. +type FractionTimeseries struct { + // Fractions: Values between 0.0 and 1.0 (inclusive) and NaN. + Fractions []float64 `json:"fractions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Fractions") 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. "Fractions") 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 *FractionTimeseries) MarshalJSON() ([]byte, error) { + type NoMethod FractionTimeseries + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *FractionTimeseries) UnmarshalJSON(data []byte) error { + type NoMethod FractionTimeseries + var s1 struct { + Fractions []gensupport.JSONFloat64 `json:"fractions"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Fractions = make([]float64, len(s1.Fractions)) + for i := range s1.Fractions { + s.Fractions[i] = float64(s1.Fractions[i]) + } + return nil +} + // HistoryKey: Key defines all the dimensions that identify this record // as unique. type HistoryKey struct { @@ -493,6 +541,10 @@ func (s *Metric) MarshalJSON() ([]byte, error) { // a series of `bins`, where each bin has density values for a // particular time period. type MetricTimeseries struct { + // FractionTimeseries: Mapping from labels to timeseries of fractions + // attributed to this label. + FractionTimeseries map[string]FractionTimeseries `json:"fractionTimeseries,omitempty"` + // HistogramTimeseries: The histogram of user experiences for a metric. // The histogram will have at least one bin and the densities of all // bins will add up to ~1, for each timeseries entry. @@ -503,7 +555,7 @@ type MetricTimeseries struct { // given for the Histogram bins. PercentilesTimeseries *TimeseriesPercentiles `json:"percentilesTimeseries,omitempty"` - // ForceSendFields is a list of field names (e.g. "HistogramTimeseries") + // ForceSendFields is a list of field names (e.g. "FractionTimeseries") // 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 @@ -511,7 +563,7 @@ type MetricTimeseries struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "HistogramTimeseries") to + // NullFields is a list of field names (e.g. "FractionTimeseries") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the diff --git a/cloudidentity/v1beta1/cloudidentity-api.json b/cloudidentity/v1beta1/cloudidentity-api.json index 903cc4945e3..3e04405fd97 100644 --- a/cloudidentity/v1beta1/cloudidentity-api.json +++ b/cloudidentity/v1beta1/cloudidentity-api.json @@ -2015,7 +2015,7 @@ } } }, - "revision": "20231211", + "revision": "20240101", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "AddIdpCredentialOperationMetadata": { @@ -2814,7 +2814,7 @@ "id": "DynamicGroupMetadata", "properties": { "queries": { - "description": "Memberships will be the union of all queries. Only one entry with USER resource is currently supported. Customers can create up to 100 dynamic groups.", + "description": "Memberships will be the union of all queries. Only one entry with USER resource is currently supported. Customers can create up to 500 dynamic groups.", "items": { "$ref": "DynamicGroupQuery" }, diff --git a/cloudidentity/v1beta1/cloudidentity-gen.go b/cloudidentity/v1beta1/cloudidentity-gen.go index 7d735953cc0..e9f17b8fd1c 100644 --- a/cloudidentity/v1beta1/cloudidentity-gen.go +++ b/cloudidentity/v1beta1/cloudidentity-gen.go @@ -1360,7 +1360,7 @@ func (s *DsaPublicKeyInfo) MarshalJSON() ([]byte, error) { type DynamicGroupMetadata struct { // Queries: Memberships will be the union of all queries. Only one entry // with USER resource is currently supported. Customers can create up to - // 100 dynamic groups. + // 500 dynamic groups. Queries []*DynamicGroupQuery `json:"queries,omitempty"` // Status: Output only. Status of the dynamic group. diff --git a/contactcenterinsights/v1/contactcenterinsights-api.json b/contactcenterinsights/v1/contactcenterinsights-api.json index 08e87d43144..40f61e3e725 100644 --- a/contactcenterinsights/v1/contactcenterinsights-api.json +++ b/contactcenterinsights/v1/contactcenterinsights-api.json @@ -1412,7 +1412,7 @@ } } }, - "revision": "20231206", + "revision": "20240102", "rootUrl": "https://contactcenterinsights.googleapis.com/", "schemas": { "GoogleCloudContactcenterinsightsV1Analysis": { @@ -2056,6 +2056,10 @@ "description": "Obfuscated user ID which the customer sent to us.", "type": "string" }, + "qualityMetadata": { + "$ref": "GoogleCloudContactcenterinsightsV1ConversationQualityMetadata", + "description": "Conversation metadata related to quality management." + }, "runtimeAnnotations": { "description": "Output only. The annotations that were generated during the customer and agent interaction.", "items": { @@ -2184,6 +2188,57 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1ConversationQualityMetadata": { + "description": "Conversation metadata related to quality management.", + "id": "GoogleCloudContactcenterinsightsV1ConversationQualityMetadata", + "properties": { + "agentInfo": { + "description": "Information about agents involved in the call.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo" + }, + "type": "array" + }, + "customerSatisfactionRating": { + "description": "An arbitrary integer value indicating the customer's satisfaction rating.", + "format": "int32", + "type": "integer" + }, + "menuPath": { + "description": "An arbitrary string value specifying the menu path the customer took.", + "type": "string" + }, + "waitDuration": { + "description": "The amount of time the customer waited to connect with an agent.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo": { + "description": "Information about an agent involved in the conversation.", + "id": "GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo", + "properties": { + "agentId": { + "description": "A user-specified string representing the agent.", + "type": "string" + }, + "displayName": { + "description": "The agent's name.", + "type": "string" + }, + "dispositionCode": { + "description": "A user-provided string indicating the outcome of the agent's segment of the call.", + "type": "string" + }, + "team": { + "description": "A user-specified string representing the agent's team.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData": { "description": "Conversation summarization suggestion data.", "id": "GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData", @@ -4353,6 +4408,10 @@ "description": "Obfuscated user ID which the customer sent to us.", "type": "string" }, + "qualityMetadata": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata", + "description": "Conversation metadata related to quality management." + }, "runtimeAnnotations": { "description": "Output only. The annotations that were generated during the customer and agent interaction.", "items": { @@ -4481,6 +4540,57 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata": { + "description": "Conversation metadata related to quality management.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata", + "properties": { + "agentInfo": { + "description": "Information about agents involved in the call.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo" + }, + "type": "array" + }, + "customerSatisfactionRating": { + "description": "An arbitrary integer value indicating the customer's satisfaction rating.", + "format": "int32", + "type": "integer" + }, + "menuPath": { + "description": "An arbitrary string value specifying the menu path the customer took.", + "type": "string" + }, + "waitDuration": { + "description": "The amount of time the customer waited to connect with an agent.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo": { + "description": "Information about an agent involved in the conversation.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo", + "properties": { + "agentId": { + "description": "A user-specified string representing the agent.", + "type": "string" + }, + "displayName": { + "description": "The agent's name.", + "type": "string" + }, + "dispositionCode": { + "description": "A user-provided string indicating the outcome of the agent's segment of the call.", + "type": "string" + }, + "team": { + "description": "A user-specified string representing the agent's team.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData": { "description": "Conversation summarization suggestion data.", "id": "GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData", diff --git a/contactcenterinsights/v1/contactcenterinsights-gen.go b/contactcenterinsights/v1/contactcenterinsights-gen.go index 7948fc673ef..750abe15464 100644 --- a/contactcenterinsights/v1/contactcenterinsights-gen.go +++ b/contactcenterinsights/v1/contactcenterinsights-gen.go @@ -1186,6 +1186,9 @@ type GoogleCloudContactcenterinsightsV1Conversation struct { // ObfuscatedUserId: Obfuscated user ID which the customer sent to us. ObfuscatedUserId string `json:"obfuscatedUserId,omitempty"` + // QualityMetadata: Conversation metadata related to quality management. + QualityMetadata *GoogleCloudContactcenterinsightsV1ConversationQualityMetadata `json:"qualityMetadata,omitempty"` + // RuntimeAnnotations: Output only. The annotations that were generated // during the customer and agent interaction. RuntimeAnnotations []*GoogleCloudContactcenterinsightsV1RuntimeAnnotation `json:"runtimeAnnotations,omitempty"` @@ -1390,6 +1393,86 @@ func (s *GoogleCloudContactcenterinsightsV1ConversationParticipant) MarshalJSON( return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContactcenterinsightsV1ConversationQualityMetadata: +// Conversation metadata related to quality management. +type GoogleCloudContactcenterinsightsV1ConversationQualityMetadata struct { + // AgentInfo: Information about agents involved in the call. + AgentInfo []*GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo `json:"agentInfo,omitempty"` + + // CustomerSatisfactionRating: An arbitrary integer value indicating the + // customer's satisfaction rating. + CustomerSatisfactionRating int64 `json:"customerSatisfactionRating,omitempty"` + + // MenuPath: An arbitrary string value specifying the menu path the + // customer took. + MenuPath string `json:"menuPath,omitempty"` + + // WaitDuration: The amount of time the customer waited to connect with + // an agent. + WaitDuration string `json:"waitDuration,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentInfo") 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. "AgentInfo") 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 *GoogleCloudContactcenterinsightsV1ConversationQualityMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1ConversationQualityMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo +// : Information about an agent involved in the conversation. +type GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo struct { + // AgentId: A user-specified string representing the agent. + AgentId string `json:"agentId,omitempty"` + + // DisplayName: The agent's name. + DisplayName string `json:"displayName,omitempty"` + + // DispositionCode: A user-provided string indicating the outcome of the + // agent's segment of the call. + DispositionCode string `json:"dispositionCode,omitempty"` + + // Team: A user-specified string representing the agent's team. + Team string `json:"team,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentId") 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. "AgentId") 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 *GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionD // ata: Conversation summarization suggestion data. type GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData struct { @@ -4961,6 +5044,9 @@ type GoogleCloudContactcenterinsightsV1alpha1Conversation struct { // ObfuscatedUserId: Obfuscated user ID which the customer sent to us. ObfuscatedUserId string `json:"obfuscatedUserId,omitempty"` + // QualityMetadata: Conversation metadata related to quality management. + QualityMetadata *GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata `json:"qualityMetadata,omitempty"` + // RuntimeAnnotations: Output only. The annotations that were generated // during the customer and agent interaction. RuntimeAnnotations []*GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation `json:"runtimeAnnotations,omitempty"` @@ -5161,6 +5247,86 @@ func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant) Marsha return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata: +// Conversation metadata related to quality management. +type GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata struct { + // AgentInfo: Information about agents involved in the call. + AgentInfo []*GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo `json:"agentInfo,omitempty"` + + // CustomerSatisfactionRating: An arbitrary integer value indicating the + // customer's satisfaction rating. + CustomerSatisfactionRating int64 `json:"customerSatisfactionRating,omitempty"` + + // MenuPath: An arbitrary string value specifying the menu path the + // customer took. + MenuPath string `json:"menuPath,omitempty"` + + // WaitDuration: The amount of time the customer waited to connect with + // an agent. + WaitDuration string `json:"waitDuration,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentInfo") 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. "AgentInfo") 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 *GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAge +// ntInfo: Information about an agent involved in the conversation. +type GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo struct { + // AgentId: A user-specified string representing the agent. + AgentId string `json:"agentId,omitempty"` + + // DisplayName: The agent's name. + DisplayName string `json:"displayName,omitempty"` + + // DispositionCode: A user-provided string indicating the outcome of the + // agent's segment of the call. + DispositionCode string `json:"dispositionCode,omitempty"` + + // Team: A user-specified string representing the agent's team. + Team string `json:"team,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentId") 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. "AgentId") 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 *GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSugge // stionData: Conversation summarization suggestion data. type GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData struct { diff --git a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json index d671e9b4029..c3ea5299aaf 100644 --- a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json +++ b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json @@ -496,43 +496,11 @@ } } } - }, - "properties": { - "methods": { - "create": { - "description": "Creates a consumer property. If the property already exists, this method fails with an ALREADY_EXISTS error. For this failure case, the Status details field will contain the existing property's value.", - "flatPath": "v1beta1/services/{servicesId}/{servicesId1}/{servicesId2}/properties", - "httpMethod": "POST", - "id": "serviceconsumermanagement.services.properties.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. Name of the property to create. An example name would be: `services/serviceconsumermanagement.googleapis.com/projects/123`", - "location": "path", - "pattern": "^services/[^/]+/[^/]+/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+parent}/properties", - "request": { - "$ref": "V1Beta1ConsumerProperty" - }, - "response": { - "$ref": "V1Beta1ConsumerProperty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } } } } }, - "revision": "20231217", + "revision": "20240102", "rootUrl": "https://serviceconsumermanagement.googleapis.com/", "schemas": { "Api": { @@ -2626,51 +2594,6 @@ }, "type": "object" }, - "V1Beta1ConsumerProperty": { - "description": "A property assigned to a consumer of a service.", - "id": "V1Beta1ConsumerProperty", - "properties": { - "description": { - "description": "Output only. The description of the property.", - "type": "string" - }, - "name": { - "description": "Output only. The resource name of this property. An example name would be: `services/serviceconsumermanagement.googleapis.com/projects/123/properties/SERVICE_LEVEL` The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.", - "type": "string" - }, - "propagation": { - "$ref": "Operation", - "description": "Output only. A long-running operation which tracks the propagation of recent changes to this resource to all affected backends. If this field is empty, all affected backends have been notified of the change. If this field contains an operation in progress, then the most recent change to this resource has not yet been sent out to all backends. If this field contains an operation that has failed with an error, the caller should retry the change." - }, - "propertyKey": { - "description": "Output only. The name of the property as it appears in the service configuration. An example property name would be: `SERVICE_LEVEL`", - "type": "string" - }, - "type": { - "description": "Output only. The type of this property.", - "enum": [ - "UNSPECIFIED", - "INT64", - "BOOL", - "STRING", - "DOUBLE" - ], - "enumDescriptions": [ - "The type is unspecified, and will result in an error.", - "The type is `int64`.", - "The type is `bool`.", - "The type is `string`.", - "The type is 'double'." - ], - "type": "string" - }, - "value": { - "description": "Value of this property for the consumer. This field may be empty if the consumer has not been assigned a value.", - "type": "any" - } - }, - "type": "object" - }, "V1Beta1ConsumerQuotaLimit": { "description": "Consumer quota settings for a quota limit.", "id": "V1Beta1ConsumerQuotaLimit", diff --git a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go index 1e19c64e638..52b4667d176 100644 --- a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go +++ b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go @@ -166,7 +166,6 @@ type OperationsService struct { func NewServicesService(s *APIService) *ServicesService { rs := &ServicesService{s: s} rs.ConsumerQuotaMetrics = NewServicesConsumerQuotaMetricsService(s) - rs.Properties = NewServicesPropertiesService(s) return rs } @@ -174,8 +173,6 @@ type ServicesService struct { s *APIService ConsumerQuotaMetrics *ServicesConsumerQuotaMetricsService - - Properties *ServicesPropertiesService } func NewServicesConsumerQuotaMetricsService(s *APIService) *ServicesConsumerQuotaMetricsService { @@ -211,15 +208,6 @@ type ServicesConsumerQuotaMetricsLimitsProducerOverridesService struct { s *APIService } -func NewServicesPropertiesService(s *APIService) *ServicesPropertiesService { - rs := &ServicesPropertiesService{s: s} - return rs -} - -type ServicesPropertiesService struct { - s *APIService -} - // Api: Api is a light-weight descriptor for an API Interface. // Interfaces are also described as "protocol buffer services" in some // contexts, such as by the "service" keyword in a .proto file, but they @@ -4079,76 +4067,6 @@ func (s *V1Beta1BatchCreateProducerOverridesResponse) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// V1Beta1ConsumerProperty: A property assigned to a consumer of a -// service. -type V1Beta1ConsumerProperty struct { - // Description: Output only. The description of the property. - Description string `json:"description,omitempty"` - - // Name: Output only. The resource name of this property. An example - // name would be: - // `services/serviceconsumermanagement.googleapis.com/projects/123/proper - // ties/SERVICE_LEVEL` The resource name is intended to be opaque and - // should not be parsed for its component strings, since its - // representation could change in the future. - Name string `json:"name,omitempty"` - - // Propagation: Output only. A long-running operation which tracks the - // propagation of recent changes to this resource to all affected - // backends. If this field is empty, all affected backends have been - // notified of the change. If this field contains an operation in - // progress, then the most recent change to this resource has not yet - // been sent out to all backends. If this field contains an operation - // that has failed with an error, the caller should retry the change. - Propagation *Operation `json:"propagation,omitempty"` - - // PropertyKey: Output only. The name of the property as it appears in - // the service configuration. An example property name would be: - // `SERVICE_LEVEL` - PropertyKey string `json:"propertyKey,omitempty"` - - // Type: Output only. The type of this property. - // - // Possible values: - // "UNSPECIFIED" - The type is unspecified, and will result in an - // error. - // "INT64" - The type is `int64`. - // "BOOL" - The type is `bool`. - // "STRING" - The type is `string`. - // "DOUBLE" - The type is 'double'. - Type string `json:"type,omitempty"` - - // Value: Value of this property for the consumer. This field may be - // empty if the consumer has not been assigned a value. - Value interface{} `json:"value,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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 *V1Beta1ConsumerProperty) MarshalJSON() ([]byte, error) { - type NoMethod V1Beta1ConsumerProperty - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // V1Beta1ConsumerQuotaLimit: Consumer quota settings for a quota limit. type V1Beta1ConsumerQuotaLimit struct { // IsPrecise: Whether this limit is precise or imprecise. @@ -6743,149 +6661,3 @@ func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesPatchCall) Do(opts . // } } - -// method id "serviceconsumermanagement.services.properties.create": - -type ServicesPropertiesCreateCall struct { - s *APIService - parent string - v1beta1consumerproperty *V1Beta1ConsumerProperty - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates a consumer property. If the property already exists, -// this method fails with an ALREADY_EXISTS error. For this failure -// case, the Status details field will contain the existing property's -// value. -// -// - parent: Name of the property to create. An example name would be: -// `services/serviceconsumermanagement.googleapis.com/projects/123`. -func (r *ServicesPropertiesService) Create(parent string, v1beta1consumerproperty *V1Beta1ConsumerProperty) *ServicesPropertiesCreateCall { - c := &ServicesPropertiesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.v1beta1consumerproperty = v1beta1consumerproperty - 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 *ServicesPropertiesCreateCall) Fields(s ...googleapi.Field) *ServicesPropertiesCreateCall { - 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 *ServicesPropertiesCreateCall) Context(ctx context.Context) *ServicesPropertiesCreateCall { - 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 *ServicesPropertiesCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ServicesPropertiesCreateCall) 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.v1beta1consumerproperty) - 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}/properties") - 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 "serviceconsumermanagement.services.properties.create" call. -// Exactly one of *V1Beta1ConsumerProperty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *V1Beta1ConsumerProperty.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 *ServicesPropertiesCreateCall) Do(opts ...googleapi.CallOption) (*V1Beta1ConsumerProperty, 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 := &V1Beta1ConsumerProperty{ - 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 consumer property. If the property already exists, this method fails with an ALREADY_EXISTS error. For this failure case, the Status details field will contain the existing property's value.", - // "flatPath": "v1beta1/services/{servicesId}/{servicesId1}/{servicesId2}/properties", - // "httpMethod": "POST", - // "id": "serviceconsumermanagement.services.properties.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. Name of the property to create. An example name would be: `services/serviceconsumermanagement.googleapis.com/projects/123`", - // "location": "path", - // "pattern": "^services/[^/]+/[^/]+/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/properties", - // "request": { - // "$ref": "V1Beta1ConsumerProperty" - // }, - // "response": { - // "$ref": "V1Beta1ConsumerProperty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} diff --git a/spanner/v1/spanner-gen.go b/spanner/v1/spanner-gen.go index ab4dc7a73b6..fdcbef21ce2 100644 --- a/spanner/v1/spanner-gen.go +++ b/spanner/v1/spanner-gen.go @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC. +// Copyright 2024 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file.