From c47166e5b067663d99a4440b878cde456a8af597 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 8 Nov 2024 08:17:06 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- .../v1/addressvalidation-api.json | 6 +- addressvalidation/v1/addressvalidation-gen.go | 12 +- container/v1beta1/container-api.json | 103 +- container/v1beta1/container-gen.go | 103 +- css/v1/css-api.json | 4 +- css/v1/css-gen.go | 2 +- .../accounts_v1beta/merchantapi-api.json | 742 +------- .../accounts_v1beta/merchantapi-gen.go | 1678 +---------------- .../v1/networkconnectivity-api.json | 182 +- .../v1/networkconnectivity-gen.go | 315 +++- .../v1alpha1/networkconnectivity-api.json | 6 +- .../v1alpha1/networkconnectivity-gen.go | 3 + .../v1/paymentsresellersubscription-api.json | 119 +- .../v1/paymentsresellersubscription-gen.go | 291 +++ places/v1/places-api.json | 66 +- places/v1/places-gen.go | 113 +- .../v1/servicenetworking-api.json | 6 +- servicenetworking/v1/servicenetworking-gen.go | 21 +- .../v1beta/servicenetworking-api.json | 6 +- .../v1beta/servicenetworking-gen.go | 21 +- 20 files changed, 1304 insertions(+), 2495 deletions(-) diff --git a/addressvalidation/v1/addressvalidation-api.json b/addressvalidation/v1/addressvalidation-api.json index 2def16f9fb6..b9273dea29e 100644 --- a/addressvalidation/v1/addressvalidation-api.json +++ b/addressvalidation/v1/addressvalidation-api.json @@ -151,7 +151,7 @@ } } }, - "revision": "20240702", + "revision": "20241106", "rootUrl": "https://addressvalidation.googleapis.com/", "schemas": { "GoogleGeoTypeViewport": { @@ -181,7 +181,7 @@ "type": "array" }, "formattedAddress": { - "description": "The post-processed address, formatted as a single-line address following the address formatting rules of the region where the address is located.", + "description": "The post-processed address, formatted as a single-line address following the address formatting rules of the region where the address is located. Note: the format of this address may not match the format of the address in the `postal_address` field. For example, the `postal_address` will always represent the country as a 2 letter `region_code` (ex. \"US\" or \"CA\"), whereas this field will use a longer form of the country name (ex. \"USA or \"Canada\").", "type": "string" }, "missingComponentTypes": { @@ -203,7 +203,7 @@ "type": "array" }, "unresolvedTokens": { - "description": "Any tokens in the input that could not be resolved. This might be an input that was not recognized as a valid part of an address (for example in an input like \"123235253253 Main St, San Francisco, CA, 94105\", the unresolved tokens may look like `[\"123235253253\"]` since that does not look like a valid street number.", + "description": "Any tokens in the input that could not be resolved. This might be an input that was not recognized as a valid part of an address (for example in an input like \"Parcel 0000123123 \u0026 0000456456 Str # Guthrie Center IA 50115 US\", the unresolved tokens may look like `[\"Parcel\", \"0000123123\", \"\u0026\", \"0000456456\"]`.", "items": { "type": "string" }, diff --git a/addressvalidation/v1/addressvalidation-gen.go b/addressvalidation/v1/addressvalidation-gen.go index 7aaa7949d80..df43fc256ce 100644 --- a/addressvalidation/v1/addressvalidation-gen.go +++ b/addressvalidation/v1/addressvalidation-gen.go @@ -224,7 +224,11 @@ type GoogleMapsAddressvalidationV1Address struct { AddressComponents []*GoogleMapsAddressvalidationV1AddressComponent `json:"addressComponents,omitempty"` // FormattedAddress: The post-processed address, formatted as a single-line // address following the address formatting rules of the region where the - // address is located. + // address is located. Note: the format of this address may not match the + // format of the address in the `postal_address` field. For example, the + // `postal_address` will always represent the country as a 2 letter + // `region_code` (ex. "US" or "CA"), whereas this field will use a longer form + // of the country name (ex. "USA or "Canada"). FormattedAddress string `json:"formattedAddress,omitempty"` // MissingComponentTypes: The types of components that were expected to be // present in a correctly formatted mailing address but were not found in the @@ -246,9 +250,9 @@ type GoogleMapsAddressvalidationV1Address struct { UnconfirmedComponentTypes []string `json:"unconfirmedComponentTypes,omitempty"` // UnresolvedTokens: Any tokens in the input that could not be resolved. This // might be an input that was not recognized as a valid part of an address (for - // example in an input like "123235253253 Main St, San Francisco, CA, 94105", - // the unresolved tokens may look like `["123235253253"]` since that does not - // look like a valid street number. + // example in an input like "Parcel 0000123123 & 0000456456 Str # Guthrie + // Center IA 50115 US", the unresolved tokens may look like `["Parcel", + // "0000123123", "&", "0000456456"]`. UnresolvedTokens []string `json:"unresolvedTokens,omitempty"` // ForceSendFields is a list of field names (e.g. "AddressComponents") to // unconditionally include in API requests. By default, fields with empty or diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index 9471dc7a530..120deec767a 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2685,7 +2685,7 @@ } } }, - "revision": "20241017", + "revision": "20241022", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -4071,6 +4071,10 @@ "$ref": "NodeKubeletConfig", "description": "The desired node kubelet config for all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters." }, + "desiredNodePoolAutoConfigLinuxNodeConfig": { + "$ref": "LinuxNodeConfig", + "description": "The desired Linux node config for all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters. Currently only `cgroup_mode` can be set here." + }, "desiredNodePoolAutoConfigNetworkTags": { "$ref": "NetworkTags", "description": "The desired network tags that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters." @@ -6255,6 +6259,20 @@ "format": "int32", "type": "integer" }, + "localSsdEncryptionMode": { + "description": "Specifies which method should be used for encrypting the Local SSDs attahced to the node.", + "enum": [ + "LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED", + "STANDARD_ENCRYPTION", + "EPHEMERAL_KEY_ENCRYPTION" + ], + "enumDescriptions": [ + "The given node will be encrypted using keys managed by Google infrastructure and the keys will be deleted when the node is deleted.", + "The given node will be encrypted using keys managed by Google infrastructure and the keys will be deleted when the node is deleted.", + "The given node will opt-in for using ephemeral key for encryption of Local SSDs. The Local SSDs will not be able to recover data in case of node crash." + ], + "type": "string" + }, "loggingConfig": { "$ref": "NodePoolLoggingConfig", "description": "Logging configuration." @@ -6637,6 +6655,11 @@ "description": "node pool configs that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters", "id": "NodePoolAutoConfig", "properties": { + "linuxNodeConfig": { + "$ref": "LinuxNodeConfig", + "description": "Output only. Configuration options for Linux nodes.", + "readOnly": true + }, "networkTags": { "$ref": "NetworkTags", "description": "The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster creation. Each tag within the list must comply with RFC1035." @@ -6679,22 +6702,22 @@ "type": "string" }, "maxNodeCount": { - "description": "Maximum number of nodes for one location in the NodePool. Must be \u003e= min_node_count. There has to be enough quota to scale up the cluster.", + "description": "Maximum number of nodes for one location in the node pool. Must be \u003e= min_node_count. There has to be enough quota to scale up the cluster.", "format": "int32", "type": "integer" }, "minNodeCount": { - "description": "Minimum number of nodes for one location in the NodePool. Must be \u003e= 1 and \u003c= max_node_count.", + "description": "Minimum number of nodes for one location in the node pool. Must be greater than or equal to 0 and less than or equal to max_node_count.", "format": "int32", "type": "integer" }, "totalMaxNodeCount": { - "description": "Maximum number of nodes in the node pool. Must be greater than total_min_node_count. There has to be enough quota to scale up the cluster. The total_*_node_count fields are mutually exclusive with the *_node_count fields.", + "description": "Maximum number of nodes in the node pool. Must be greater than or equal to total_min_node_count. There has to be enough quota to scale up the cluster. The total_*_node_count fields are mutually exclusive with the *_node_count fields.", "format": "int32", "type": "integer" }, "totalMinNodeCount": { - "description": "Minimum number of nodes in the node pool. Must be greater than 1 less than total_max_node_count. The total_*_node_count fields are mutually exclusive with the *_node_count fields.", + "description": "Minimum number of nodes in the node pool. Must be greater than or equal to 0 and less than or equal to total_max_node_count. The total_*_node_count fields are mutually exclusive with the *_node_count fields.", "format": "int32", "type": "integer" } @@ -8847,6 +8870,76 @@ }, "type": "object" }, + "UpgradeInfoEvent": { + "description": "UpgradeInfoEvent is a notification sent to customers about the upgrade information of a resource.", + "id": "UpgradeInfoEvent", + "properties": { + "currentVersion": { + "description": "The current version before the upgrade.", + "type": "string" + }, + "description": { + "description": "A brief description of the event.", + "type": "string" + }, + "endTime": { + "description": "The time when the operation ended.", + "format": "google-datetime", + "type": "string" + }, + "operation": { + "description": "The operation associated with this upgrade.", + "type": "string" + }, + "resource": { + "description": "Optional relative path to the resource. For example in node pool upgrades, the relative path of the node pool.", + "type": "string" + }, + "resourceType": { + "description": "The resource type associated with the upgrade.", + "enum": [ + "UPGRADE_RESOURCE_TYPE_UNSPECIFIED", + "MASTER", + "NODE_POOL" + ], + "enumDescriptions": [ + "Default value. This shouldn't be used.", + "Master / control plane", + "Node pool" + ], + "type": "string" + }, + "startTime": { + "description": "The time when the operation was started.", + "format": "google-datetime", + "type": "string" + }, + "state": { + "description": "Output only. The state of the upgrade.", + "enum": [ + "STATE_UNSPECIFIED", + "STARTED", + "SUCCEEDED", + "FAILED", + "CANCELED" + ], + "enumDescriptions": [ + "STATE_UNSPECIFIED indicates the state is unspecified.", + "STARTED indicates the upgrade has started.", + "SUCCEEDED indicates the upgrade has completed successfully.", + "FAILED indicates the upgrade has failed.", + "CANCELED indicates the upgrade has canceled." + ], + "readOnly": true, + "type": "string" + }, + "targetVersion": { + "description": "The target version for the upgrade.", + "type": "string" + } + }, + "type": "object" + }, "UpgradeSettings": { "description": "These upgrade settings control the level of parallelism and the level of disruption caused by an upgrade. maxUnavailable controls the number of nodes that can be simultaneously unavailable. maxSurge controls the number of additional nodes that can be added to the node pool temporarily for the time of the upgrade to increase the number of available nodes. (maxUnavailable + maxSurge) determines the level of parallelism (how many nodes are being upgraded at the same time). Note: upgrades inevitably introduce some disruption since workloads need to be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, this holds true. (Disruption stays within the limits of PodDisruptionBudget, if it is configured.) Consider a hypothetical node pool with 5 nodes having maxSurge=2, maxUnavailable=1. This means the upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the same time. This ensures that there are always at least 4 nodes available. These upgrade settings configure the upgrade strategy for the node pool. Use strategy to switch between the strategies applied to the node pool. If the strategy is SURGE, use max_surge and max_unavailable to control the level of parallelism and the level of disruption caused by upgrade. 1. maxSurge controls the number of additional nodes that can be added to the node pool temporarily for the time of the upgrade to increase the number of available nodes. 2. maxUnavailable controls the number of nodes that can be simultaneously unavailable. 3. (maxUnavailable + maxSurge) determines the level of parallelism (how many nodes are being upgraded at the same time). If the strategy is BLUE_GREEN, use blue_green_settings to configure the blue-green upgrade related settings. 1. standard_rollout_policy is the default policy. The policy is used to control the way blue pool gets drained. The draining is executed in the batch mode. The batch size could be specified as either percentage of the node pool size or the number of nodes. batch_soak_duration is the soak time after each batch gets drained. 2. node_pool_soak_duration is the soak time after all blue nodes are drained. After this period, the blue pool nodes will be deleted.", "id": "UpgradeSettings", diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index 9c54283a1e3..9896030f899 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -1782,6 +1782,11 @@ type ClusterUpdate struct { // all auto-provisioned node pools in autopilot clusters and node // auto-provisioning enabled clusters. DesiredNodePoolAutoConfigKubeletConfig *NodeKubeletConfig `json:"desiredNodePoolAutoConfigKubeletConfig,omitempty"` + // DesiredNodePoolAutoConfigLinuxNodeConfig: The desired Linux node config for + // all auto-provisioned node pools in autopilot clusters and node + // auto-provisioning enabled clusters. Currently only `cgroup_mode` can be set + // here. + DesiredNodePoolAutoConfigLinuxNodeConfig *LinuxNodeConfig `json:"desiredNodePoolAutoConfigLinuxNodeConfig,omitempty"` // DesiredNodePoolAutoConfigNetworkTags: The desired network tags that apply to // all auto-provisioned node pools in autopilot clusters and node // auto-provisioning enabled clusters. @@ -4687,6 +4692,20 @@ type NodeConfig struct { // on a machine per zone. See: // https://cloud.google.com/compute/docs/disks/local-ssd for more information. LocalSsdCount int64 `json:"localSsdCount,omitempty"` + // LocalSsdEncryptionMode: Specifies which method should be used for encrypting + // the Local SSDs attahced to the node. + // + // Possible values: + // "LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED" - The given node will be encrypted + // using keys managed by Google infrastructure and the keys will be deleted + // when the node is deleted. + // "STANDARD_ENCRYPTION" - The given node will be encrypted using keys + // managed by Google infrastructure and the keys will be deleted when the node + // is deleted. + // "EPHEMERAL_KEY_ENCRYPTION" - The given node will opt-in for using + // ephemeral key for encryption of Local SSDs. The Local SSDs will not be able + // to recover data in case of node crash. + LocalSsdEncryptionMode string `json:"localSsdEncryptionMode,omitempty"` // LoggingConfig: Logging configuration. LoggingConfig *NodePoolLoggingConfig `json:"loggingConfig,omitempty"` // MachineType: The name of a Google Compute Engine machine type @@ -5129,6 +5148,8 @@ func (s NodePool) MarshalJSON() ([]byte, error) { // NodePoolAutoConfig: node pool configs that apply to all auto-provisioned // node pools in autopilot clusters and node auto-provisioning enabled clusters type NodePoolAutoConfig struct { + // LinuxNodeConfig: Output only. Configuration options for Linux nodes. + LinuxNodeConfig *LinuxNodeConfig `json:"linuxNodeConfig,omitempty"` // NetworkTags: The list of instance tags applied to all nodes. Tags are used // to identify valid sources or targets for network firewalls and are specified // by the client during cluster creation. Each tag within the list must comply @@ -5142,15 +5163,15 @@ type NodePoolAutoConfig struct { // the nodes for managing Compute Engine firewalls using Network Firewall // Policies. ResourceManagerTags *ResourceManagerTags `json:"resourceManagerTags,omitempty"` - // ForceSendFields is a list of field names (e.g. "NetworkTags") to + // ForceSendFields is a list of field names (e.g. "LinuxNodeConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NetworkTags") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "LinuxNodeConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -5176,20 +5197,22 @@ type NodePoolAutoscaling struct { // sizes of different zones. // "ANY" - ANY policy picks zones that have the highest capacity available. LocationPolicy string `json:"locationPolicy,omitempty"` - // MaxNodeCount: Maximum number of nodes for one location in the NodePool. Must - // be >= min_node_count. There has to be enough quota to scale up the cluster. + // MaxNodeCount: Maximum number of nodes for one location in the node pool. + // Must be >= min_node_count. There has to be enough quota to scale up the + // cluster. MaxNodeCount int64 `json:"maxNodeCount,omitempty"` - // MinNodeCount: Minimum number of nodes for one location in the NodePool. Must - // be >= 1 and <= max_node_count. + // MinNodeCount: Minimum number of nodes for one location in the node pool. + // Must be greater than or equal to 0 and less than or equal to max_node_count. MinNodeCount int64 `json:"minNodeCount,omitempty"` // TotalMaxNodeCount: Maximum number of nodes in the node pool. Must be greater - // than total_min_node_count. There has to be enough quota to scale up the - // cluster. The total_*_node_count fields are mutually exclusive with the - // *_node_count fields. + // than or equal to total_min_node_count. There has to be enough quota to scale + // up the cluster. The total_*_node_count fields are mutually exclusive with + // the *_node_count fields. TotalMaxNodeCount int64 `json:"totalMaxNodeCount,omitempty"` // TotalMinNodeCount: Minimum number of nodes in the node pool. Must be greater - // than 1 less than total_max_node_count. The total_*_node_count fields are - // mutually exclusive with the *_node_count fields. + // than or equal to 0 and less than or equal to total_max_node_count. The + // total_*_node_count fields are mutually exclusive with the *_node_count + // fields. TotalMinNodeCount int64 `json:"totalMinNodeCount,omitempty"` // ForceSendFields is a list of field names (e.g. "Autoprovisioned") to // unconditionally include in API requests. By default, fields with empty or @@ -8002,6 +8025,60 @@ func (s UpgradeEvent) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// UpgradeInfoEvent: UpgradeInfoEvent is a notification sent to customers about +// the upgrade information of a resource. +type UpgradeInfoEvent struct { + // CurrentVersion: The current version before the upgrade. + CurrentVersion string `json:"currentVersion,omitempty"` + // Description: A brief description of the event. + Description string `json:"description,omitempty"` + // EndTime: The time when the operation ended. + EndTime string `json:"endTime,omitempty"` + // Operation: The operation associated with this upgrade. + Operation string `json:"operation,omitempty"` + // Resource: Optional relative path to the resource. For example in node pool + // upgrades, the relative path of the node pool. + Resource string `json:"resource,omitempty"` + // ResourceType: The resource type associated with the upgrade. + // + // Possible values: + // "UPGRADE_RESOURCE_TYPE_UNSPECIFIED" - Default value. This shouldn't be + // used. + // "MASTER" - Master / control plane + // "NODE_POOL" - Node pool + ResourceType string `json:"resourceType,omitempty"` + // StartTime: The time when the operation was started. + StartTime string `json:"startTime,omitempty"` + // State: Output only. The state of the upgrade. + // + // Possible values: + // "STATE_UNSPECIFIED" - STATE_UNSPECIFIED indicates the state is + // unspecified. + // "STARTED" - STARTED indicates the upgrade has started. + // "SUCCEEDED" - SUCCEEDED indicates the upgrade has completed successfully. + // "FAILED" - FAILED indicates the upgrade has failed. + // "CANCELED" - CANCELED indicates the upgrade has canceled. + State string `json:"state,omitempty"` + // TargetVersion: The target version for the upgrade. + TargetVersion string `json:"targetVersion,omitempty"` + // ForceSendFields is a list of field names (e.g. "CurrentVersion") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CurrentVersion") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s UpgradeInfoEvent) MarshalJSON() ([]byte, error) { + type NoMethod UpgradeInfoEvent + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // UpgradeSettings: These upgrade settings control the level of parallelism and // the level of disruption caused by an upgrade. maxUnavailable controls the // number of nodes that can be simultaneously unavailable. maxSurge controls diff --git a/css/v1/css-api.json b/css/v1/css-api.json index 73db2c3792e..108b8187c31 100644 --- a/css/v1/css-api.json +++ b/css/v1/css-api.json @@ -404,7 +404,7 @@ ] }, "list": { - "description": "Lists the labels assigned to an account.", + "description": "Lists the labels owned by an account.", "flatPath": "v1/accounts/{accountsId}/labels", "httpMethod": "GET", "id": "css.accounts.labels.list", @@ -472,7 +472,7 @@ } } }, - "revision": "20240909", + "revision": "20241104", "rootUrl": "https://css.googleapis.com/", "schemas": { "Account": { diff --git a/css/v1/css-gen.go b/css/v1/css-gen.go index 8f5882c6fb7..7b70ab4b022 100644 --- a/css/v1/css-gen.go +++ b/css/v1/css-gen.go @@ -2118,7 +2118,7 @@ type AccountsLabelsListCall struct { header_ http.Header } -// List: Lists the labels assigned to an account. +// List: Lists the labels owned by an account. // // - parent: The parent account. Format: accounts/{account}. func (r *AccountsLabelsService) List(parent string) *AccountsLabelsListCall { diff --git a/merchantapi/accounts_v1beta/merchantapi-api.json b/merchantapi/accounts_v1beta/merchantapi-api.json index a7dccff6329..22607d5f9ec 100644 --- a/merchantapi/accounts_v1beta/merchantapi-api.json +++ b/merchantapi/accounts_v1beta/merchantapi-api.json @@ -705,299 +705,6 @@ } } }, - "omnichannelSettings": { - "methods": { - "create": { - "description": "Create the omnichannel settings for a given merchant.", - "flatPath": "accounts/v1beta/accounts/{accountsId}/omnichannelSettings", - "httpMethod": "POST", - "id": "merchantapi.accounts.omnichannelSettings.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The parent resource where this omnichannel setting will be created. Format: `accounts/{account}`", - "location": "path", - "pattern": "^accounts/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "accounts/v1beta/{+parent}/omnichannelSettings", - "request": { - "$ref": "OmnichannelSetting" - }, - "response": { - "$ref": "OmnichannelSetting" - }, - "scopes": [ - "https://www.googleapis.com/auth/content" - ] - }, - "get": { - "description": "Get the omnichannel settings for a given merchant.", - "flatPath": "accounts/v1beta/accounts/{accountsId}/omnichannelSettings/{omnichannelSettingsId}", - "httpMethod": "GET", - "id": "merchantapi.accounts.omnichannelSettings.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the omnichannel setting to retrieve. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}`", - "location": "path", - "pattern": "^accounts/[^/]+/omnichannelSettings/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "accounts/v1beta/{+name}", - "response": { - "$ref": "OmnichannelSetting" - }, - "scopes": [ - "https://www.googleapis.com/auth/content" - ] - }, - "list": { - "description": "List all the omnichannel settings for a given merchant.", - "flatPath": "accounts/v1beta/accounts/{accountsId}/omnichannelSettings", - "httpMethod": "GET", - "id": "merchantapi.accounts.omnichannelSettings.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "pageSize": { - "description": "Optional. The maximum number of omnichannel settings to return. The service may return fewer than this value. If unspecified, at most 50 omnichannel settings will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. A page token, received from a previous `ListOmnichannelSettings` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListOmnichannelSettings` must match the call that provided the page token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent, which owns this collection of omnichannel settings. Format: `accounts/{account}`", - "location": "path", - "pattern": "^accounts/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "accounts/v1beta/{+parent}/omnichannelSettings", - "response": { - "$ref": "ListOmnichannelSettingsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/content" - ] - }, - "patch": { - "description": "Update the omnichannel setting for a given merchant in a given country.", - "flatPath": "accounts/v1beta/accounts/{accountsId}/omnichannelSettings/{omnichannelSettingsId}", - "httpMethod": "PATCH", - "id": "merchantapi.accounts.omnichannelSettings.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Identifier. The resource name of the omnichannel setting. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}`", - "location": "path", - "pattern": "^accounts/[^/]+/omnichannelSettings/[^/]+$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "Optional. The list of fields to be updated.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "accounts/v1beta/{+name}", - "request": { - "$ref": "OmnichannelSetting" - }, - "response": { - "$ref": "OmnichannelSetting" - }, - "scopes": [ - "https://www.googleapis.com/auth/content" - ] - }, - "requestInventoryVerification": { - "description": "Requests inventory verification for a given merchant in a given country.", - "flatPath": "accounts/v1beta/accounts/{accountsId}/omnichannelSettings/{omnichannelSettingsId}:requestInventoryVerification", - "httpMethod": "POST", - "id": "merchantapi.accounts.omnichannelSettings.requestInventoryVerification", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the omnichannel setting to request inventory verification. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}`", - "location": "path", - "pattern": "^accounts/[^/]+/omnichannelSettings/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "accounts/v1beta/{+name}:requestInventoryVerification", - "request": { - "$ref": "RequestInventoryVerificationRequest" - }, - "response": { - "$ref": "RequestInventoryVerificationResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/content" - ] - } - }, - "resources": { - "gbpAccounts": { - "methods": { - "linkGbpAccount": { - "description": "Link the specified merchant to a GBP account for all countries.", - "flatPath": "accounts/v1beta/accounts/{accountsId}/omnichannelSettings/{omnichannelSettingsId}/gbpAccounts:linkGbpAccount", - "httpMethod": "POST", - "id": "merchantapi.accounts.omnichannelSettings.gbpAccounts.linkGbpAccount", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The name of the parent resource under which the GBP accounts are listed. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}`.", - "location": "path", - "pattern": "^accounts/[^/]+/omnichannelSettings/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "accounts/v1beta/{+parent}/gbpAccounts:linkGbpAccount", - "request": { - "$ref": "LinkGbpAccountRequest" - }, - "response": { - "$ref": "LinkGbpAccountResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/content" - ] - }, - "list": { - "description": "List the GBP accounts for a given merchant.", - "flatPath": "accounts/v1beta/accounts/{accountsId}/omnichannelSettings/{omnichannelSettingsId}/gbpAccounts", - "httpMethod": "GET", - "id": "merchantapi.accounts.omnichannelSettings.gbpAccounts.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "pageSize": { - "description": "Optional. The maximum number of `GbpAccount` resources to return. The service returns fewer than this value if the number of gbp accounts is less that than the `pageSize`. The default value is 50. The maximum value is 1000; If a value higher than the maximum is specified, then the `pageSize` will default to the maximum.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. A page token, received from a previous `ListGbpAccounts` call. Provide the page token to retrieve the subsequent page. When paginating, all other parameters provided to `ListGbpAccounts` must match the call that provided the page token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The name of the parent resource under which the GBP accounts are listed. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}`.", - "location": "path", - "pattern": "^accounts/[^/]+/omnichannelSettings/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "accounts/v1beta/{+parent}/gbpAccounts", - "response": { - "$ref": "ListGbpAccountsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/content" - ] - } - } - }, - "lfpProviders": { - "methods": { - "linkLfpProvider": { - "description": "Link the specified merchant to a LFP provider for the specified country.", - "flatPath": "accounts/v1beta/accounts/{accountsId}/omnichannelSettings/{omnichannelSettingsId}/lfpProviders:linkLfpProvider", - "httpMethod": "POST", - "id": "merchantapi.accounts.omnichannelSettings.lfpProviders.linkLfpProvider", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The name of the parent resource under which the LFP provider is linked. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}`.", - "location": "path", - "pattern": "^accounts/[^/]+/omnichannelSettings/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "accounts/v1beta/{+parent}/lfpProviders:linkLfpProvider", - "request": { - "$ref": "LinkLfpProviderRequest" - }, - "response": { - "$ref": "LinkLfpProviderResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/content" - ] - }, - "list": { - "description": "List the LFP provider settings for a given merchant in a given country.", - "flatPath": "accounts/v1beta/accounts/{accountsId}/omnichannelSettings/{omnichannelSettingsId}/lfpProviders", - "httpMethod": "GET", - "id": "merchantapi.accounts.omnichannelSettings.lfpProviders.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "pageSize": { - "description": "Optional. The maximum number of `LfpProvider` resources to return. The service returns fewer than this value if the number of lfp providers is less that than the `pageSize`. The default value is 50. The maximum value is 1000; If a value higher than the maximum is specified, then the `pageSize` will default to the maximum.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. A page token, received from a previous `ListLfpProviders` call. Provide the page token to retrieve the subsequent page. When paginating, all other parameters provided to `ListLfpProviders` must match the call that provided the page token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The name of the parent resource under which the LFP providers are listed. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}`.", - "location": "path", - "pattern": "^accounts/[^/]+/omnichannelSettings/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "accounts/v1beta/{+parent}/lfpProviders", - "response": { - "$ref": "ListLfpProvidersResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/content" - ] - } - } - } - } - }, "onlineReturnPolicies": { "methods": { "get": { @@ -1710,37 +1417,9 @@ } } }, - "revision": "20241101", + "revision": "20241104", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { - "About": { - "description": "Collection of information related to the about page ([impressum](https://support.google.com/merchants/answer/14675634?hl=en\u0026ref_topic=15145634\u0026sjid=6892280366904591178-NC)).", - "id": "About", - "properties": { - "state": { - "description": "Output only. The state of the URI.", - "enum": [ - "STATE_UNSPECIFIED", - "ACTIVE", - "FAILED", - "RUNNING" - ], - "enumDescriptions": [ - "Default value. This value is unused.", - "The review process is active.", - "The review process failed.", - "The review process is running." - ], - "readOnly": true, - "type": "string" - }, - "uri": { - "description": "Required. The about page URI.", - "type": "string" - } - }, - "type": "object" - }, "Accepted": { "description": "Describes the accepted terms of service.", "id": "Accepted", @@ -1963,7 +1642,7 @@ "type": "string" }, "promotionsConsent": { - "description": "Optional. Whether the identity attributes may be used for promotions.", + "description": "Required. Whether the identity attributes may be used for promotions.", "enum": [ "PROMOTIONS_CONSENT_UNSPECIFIED", "PROMOTIONS_CONSENT_GIVEN", @@ -2323,48 +2002,6 @@ "properties": {}, "type": "object" }, - "GbpAccount": { - "description": "Collection of information related to a Google Business Profile (GBP) account.", - "id": "GbpAccount", - "properties": { - "email": { - "description": "The email which identifies the Business Profile.", - "type": "string" - }, - "gbpAccountId": { - "description": "The id of the GBP account.", - "type": "string" - }, - "gbpAccountName": { - "description": "The name of the Business Profile. For personal accounts: Email id of the owner. For Business accounts: Name of the Business Account.", - "type": "string" - }, - "listingCount": { - "description": "Number of listings under this account.", - "format": "int64", - "type": "string" - }, - "name": { - "description": "Identifier. The resource name of the GBP account. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}/gbpAccount/{gbp_account}`", - "type": "string" - }, - "type": { - "description": "The type of the Business Profile.", - "enum": [ - "TYPE_UNSPECIFIED", - "USER", - "BUSINESS_ACCOUNT" - ], - "enumDescriptions": [ - "Default value. This value is unused.", - "The GBP account is a user account.", - "The GBP account is a business account." - ], - "type": "string" - } - }, - "type": "object" - }, "GeoTargetArea": { "description": "A list of geotargets that defines the region area.", "id": "GeoTargetArea", @@ -2568,144 +2205,6 @@ }, "type": "object" }, - "InventoryVerification": { - "description": "Collection of information related to [inventory verification](https://support.google.com/merchants/answer/14684499?hl=en\u0026ref_topic=15145634\u0026sjid=6892280366904591178-NC).", - "id": "InventoryVerification", - "properties": { - "contact": { - "description": "Required. The name of the contact for the inventory verification process.", - "type": "string" - }, - "contactEmail": { - "description": "Required. The email address of the contact for the inventory verification process.", - "type": "string" - }, - "contactState": { - "description": "Output only. The state of the contact verification.", - "enum": [ - "STATE_UNSPECIFIED", - "ACTIVE", - "FAILED", - "RUNNING" - ], - "enumDescriptions": [ - "Default value. This value is unused.", - "The review process is active.", - "The review process failed.", - "The review process is running." - ], - "readOnly": true, - "type": "string" - }, - "state": { - "description": "Output only. The state of the inventory verification process.", - "enum": [ - "STATE_UNSPECIFIED", - "ACTION_REQUIRED", - "RUNNING", - "SUCCEEDED", - "SUSPENDED" - ], - "enumDescriptions": [ - "Default value. This value is unused.", - "When merchant fails the inventory verification process, but still have remaining attempts.", - "The inventory verification process is running.", - "The inventory verification process succeeded.", - "When merchant fails the inventory verification process and all attempts are exhausted." - ], - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "LfpLink": { - "description": "Collection of information related to the LFP link.", - "id": "LfpLink", - "properties": { - "externalAccountId": { - "description": "Required. The account ID by which this merchant is known to the LFP provider.", - "type": "string" - }, - "providerId": { - "description": "Required. The ID of the LFP provider.", - "type": "string" - } - }, - "type": "object" - }, - "LfpProvider": { - "description": "Collection of information related to a Local Feed Partnership (LFP) provider.", - "id": "LfpProvider", - "properties": { - "displayName": { - "description": "The display name of the LFP provider.", - "type": "string" - }, - "lfpProviderId": { - "description": "The ID of the LFP provider.", - "type": "string" - }, - "name": { - "description": "Identifier. The resource name of the LFP provider. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}/lfpProviders/{lfp_provider}`", - "type": "string" - }, - "regionCode": { - "description": "Output only. Region code defined by [CLDR](https://cldr.unicode.org/).", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "LinkGbpAccountRequest": { - "description": "Request message for the LinkGbpAccount method.", - "id": "LinkGbpAccountRequest", - "properties": { - "gbpEmail": { - "description": "Required. The email address of the Business Profile account.", - "type": "string" - } - }, - "type": "object" - }, - "LinkGbpAccountResponse": { - "description": "Response message for the LinkGbpAccount method.", - "id": "LinkGbpAccountResponse", - "properties": { - "response": { - "$ref": "Empty", - "description": "Empty response." - } - }, - "type": "object" - }, - "LinkLfpProviderRequest": { - "description": "Request message for the LinkLfpProvider method.", - "id": "LinkLfpProviderRequest", - "properties": { - "externalAccountId": { - "description": "Required. The external account ID by which this merchant is known to the LFP provider.", - "type": "string" - }, - "lfpProviderId": { - "description": "Required. The id of the LFP provider to link.", - "type": "string" - } - }, - "type": "object" - }, - "LinkLfpProviderResponse": { - "description": "Response message for the LinkLfpProvider method.", - "id": "LinkLfpProviderResponse", - "properties": { - "response": { - "$ref": "Empty", - "description": "Empty response." - } - }, - "type": "object" - }, "ListAccountIssuesResponse": { "description": "Response message for the `ListAccountIssues` method.", "id": "ListAccountIssuesResponse", @@ -2742,60 +2241,6 @@ }, "type": "object" }, - "ListGbpAccountsResponse": { - "description": "Response message for the ListGbpAccounts method.", - "id": "ListGbpAccountsResponse", - "properties": { - "gbpAccounts": { - "description": "The GBP accounts from the specified merchant in the specified country.", - "items": { - "$ref": "GbpAccount" - }, - "type": "array" - }, - "nextPageToken": { - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", - "type": "string" - } - }, - "type": "object" - }, - "ListLfpProvidersResponse": { - "description": "Response message for the ListLfpProviders method.", - "id": "ListLfpProvidersResponse", - "properties": { - "lfpProviders": { - "description": "The LFP providers from the specified merchant in the specified country.", - "items": { - "$ref": "LfpProvider" - }, - "type": "array" - }, - "nextPageToken": { - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", - "type": "string" - } - }, - "type": "object" - }, - "ListOmnichannelSettingsResponse": { - "description": "Response message for the ListOmnichannelSettings method.", - "id": "ListOmnichannelSettingsResponse", - "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" - }, - "omnichannelSettings": { - "description": "The omnichannel settings from the specified merchant.", - "items": { - "$ref": "OmnichannelSetting" - }, - "type": "array" - } - }, - "type": "object" - }, "ListOnlineReturnPoliciesResponse": { "description": "Response message for the `ListOnlineReturnPolicies` method.", "id": "ListOnlineReturnPoliciesResponse", @@ -2946,46 +2391,6 @@ }, "type": "object" }, - "LsfType": { - "description": "Collection of information related to the Local Store Front (LSF) type.", - "id": "LsfType", - "properties": { - "lsfType": { - "description": "Required. The Local Store Front (LSF) type.", - "enum": [ - "TYPE_UNSPECIFIED", - "GHLSF", - "MHLSF_BASIC", - "MHLSF_FULL" - ], - "enumDescriptions": [ - "Default value. This value is unused.", - "Google-Hosted Local Store Front.", - "Merchant-Hosted Local Store Front Basic.", - "Merchant-Hosted Local Store Front Full." - ], - "type": "string" - }, - "state": { - "description": "Output only. The state of the LSF.", - "enum": [ - "STATE_UNSPECIFIED", - "ACTIVE", - "FAILED", - "RUNNING" - ], - "enumDescriptions": [ - "Default value. This value is unused.", - "The review process is active.", - "The review process failed.", - "The review process is running." - ], - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "MinimumOrderValueTable": { "description": "Table of per store minimum order values for the pickup fulfillment type.", "id": "MinimumOrderValueTable", @@ -3000,94 +2405,6 @@ }, "type": "object" }, - "OmnichannelSetting": { - "description": "Collection of information related to the omnichannel settings of a merchant.", - "id": "OmnichannelSetting", - "properties": { - "about": { - "$ref": "About", - "description": "Optional. The about page URI and state for this country." - }, - "inventoryVerification": { - "$ref": "InventoryVerification", - "description": "Optional. The inventory verification process state for this country." - }, - "lfpLink": { - "$ref": "LfpLink", - "description": "Output only. The established link to a LFP provider.", - "readOnly": true - }, - "lsfType": { - "$ref": "LsfType", - "description": "Optional. The Local Store Front ([LSF](https://support.google.com/merchants/answer/7178526)) type and state for this country." - }, - "name": { - "description": "Identifier. The resource name of the omnichannel setting. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}`", - "type": "string" - }, - "odo": { - "$ref": "OnDisplayToOrder", - "description": "Optional. The on display to order (ODO) policy URI and state for this country." - }, - "pickupTypes": { - "description": "Optional. The Pickup types asnd state for this country.", - "items": { - "$ref": "PickupType" - }, - "type": "array" - }, - "regionCode": { - "description": "Immutable. Region code defined by [CLDR](https://cldr.unicode.org/).", - "type": "string" - }, - "state": { - "description": "Output only. The state of the omnichannel setting.", - "enum": [ - "STATE_UNSPECIFIED", - "ACTIVE", - "ACTION_REQUIRED", - "RUNNING" - ], - "enumDescriptions": [ - "Default value. This value is unused.", - "The merchant's omnichannel setting is active.", - "The merchant's omnichannel setting requires action.", - "The merchant's omnichannel setting is running." - ], - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "OnDisplayToOrder": { - "description": "Collection of information related to the on display to order ([ODO](https://support.google.com/merchants/answer/14615056?hl=en\u0026ref_topic=15145747\u0026sjid=6892280366904591178-NC)).", - "id": "OnDisplayToOrder", - "properties": { - "state": { - "description": "Output only. The state of the URI.", - "enum": [ - "STATE_UNSPECIFIED", - "ACTIVE", - "FAILED", - "RUNNING" - ], - "enumDescriptions": [ - "Default value. This value is unused.", - "The review process is active.", - "The review process failed.", - "The review process is running." - ], - "readOnly": true, - "type": "string" - }, - "uri": { - "description": "Required. The on display to order (ODO) policy URI.", - "type": "string" - } - }, - "type": "object" - }, "OnlineReturnPolicy": { "description": "[Online return policy](https://support.google.com/merchants/answer/10220642) object. This is currently used to represent return policies for ads and free listings programs.", "id": "OnlineReturnPolicy", @@ -3199,44 +2516,6 @@ }, "type": "object" }, - "PickupType": { - "description": "Collection of information related to the pickup type.", - "id": "PickupType", - "properties": { - "pickupType": { - "description": "Required. The type of the pickup.", - "enum": [ - "TYPE_UNSPECIFIED", - "PICKUP_TODAY", - "PICKUP_LATER" - ], - "enumDescriptions": [ - "Default value. This value is unused.", - "[Pickup today](https://support.google.com/merchants/answer/14634281?hl=en\u0026ref_topic=15145747\u0026sjid=6892280366904591178-NC#).", - "[Pickup later](https://support.google.com/merchants/answer/14634020?hl=en\u0026ref_topic=15145747\u0026sjid=6892280366904591178-NC#)." - ], - "type": "string" - }, - "state": { - "description": "Output only. The state of the PickupType.", - "enum": [ - "STATE_UNSPECIFIED", - "ACTIVE", - "FAILED", - "RUNNING" - ], - "enumDescriptions": [ - "Default value. This value is unused.", - "The review process is active.", - "The review process failed.", - "The review process is running." - ], - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "Policy": { "description": "The available policies.", "id": "Policy", @@ -3636,23 +2915,6 @@ }, "type": "object" }, - "RequestInventoryVerificationRequest": { - "description": "Request message for the RequestInventoryVerification method.", - "id": "RequestInventoryVerificationRequest", - "properties": {}, - "type": "object" - }, - "RequestInventoryVerificationResponse": { - "description": "Response message for the RequestInventoryVerification method.", - "id": "RequestInventoryVerificationResponse", - "properties": { - "omnichannelSetting": { - "$ref": "OmnichannelSetting", - "description": "The omnichannel setting that was updated." - } - }, - "type": "object" - }, "Required": { "description": "Describes the terms of service which are required to be accepted.", "id": "Required", diff --git a/merchantapi/accounts_v1beta/merchantapi-gen.go b/merchantapi/accounts_v1beta/merchantapi-gen.go index cb85ee207b2..0f5c6b91ebe 100644 --- a/merchantapi/accounts_v1beta/merchantapi-gen.go +++ b/merchantapi/accounts_v1beta/merchantapi-gen.go @@ -164,7 +164,6 @@ func NewAccountsService(s *APIService) *AccountsService { rs.EmailPreferences = NewAccountsEmailPreferencesService(s) rs.Homepage = NewAccountsHomepageService(s) rs.Issues = NewAccountsIssuesService(s) - rs.OmnichannelSettings = NewAccountsOmnichannelSettingsService(s) rs.OnlineReturnPolicies = NewAccountsOnlineReturnPoliciesService(s) rs.Programs = NewAccountsProgramsService(s) rs.Regions = NewAccountsRegionsService(s) @@ -189,8 +188,6 @@ type AccountsService struct { Issues *AccountsIssuesService - OmnichannelSettings *AccountsOmnichannelSettingsService - OnlineReturnPolicies *AccountsOnlineReturnPoliciesService Programs *AccountsProgramsService @@ -258,39 +255,6 @@ type AccountsIssuesService struct { s *APIService } -func NewAccountsOmnichannelSettingsService(s *APIService) *AccountsOmnichannelSettingsService { - rs := &AccountsOmnichannelSettingsService{s: s} - rs.GbpAccounts = NewAccountsOmnichannelSettingsGbpAccountsService(s) - rs.LfpProviders = NewAccountsOmnichannelSettingsLfpProvidersService(s) - return rs -} - -type AccountsOmnichannelSettingsService struct { - s *APIService - - GbpAccounts *AccountsOmnichannelSettingsGbpAccountsService - - LfpProviders *AccountsOmnichannelSettingsLfpProvidersService -} - -func NewAccountsOmnichannelSettingsGbpAccountsService(s *APIService) *AccountsOmnichannelSettingsGbpAccountsService { - rs := &AccountsOmnichannelSettingsGbpAccountsService{s: s} - return rs -} - -type AccountsOmnichannelSettingsGbpAccountsService struct { - s *APIService -} - -func NewAccountsOmnichannelSettingsLfpProvidersService(s *APIService) *AccountsOmnichannelSettingsLfpProvidersService { - rs := &AccountsOmnichannelSettingsLfpProvidersService{s: s} - return rs -} - -type AccountsOmnichannelSettingsLfpProvidersService struct { - s *APIService -} - func NewAccountsOnlineReturnPoliciesService(s *APIService) *AccountsOnlineReturnPoliciesService { rs := &AccountsOnlineReturnPoliciesService{s: s} return rs @@ -354,37 +318,6 @@ type TermsOfServiceService struct { s *APIService } -// About: Collection of information related to the about page (impressum -// (https://support.google.com/merchants/answer/14675634?hl=en&ref_topic=15145634&sjid=6892280366904591178-NC)). -type About struct { - // State: Output only. The state of the URI. - // - // Possible values: - // "STATE_UNSPECIFIED" - Default value. This value is unused. - // "ACTIVE" - The review process is active. - // "FAILED" - The review process failed. - // "RUNNING" - The review process is running. - State string `json:"state,omitempty"` - // Uri: Required. The about page URI. - Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "State") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "State") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s About) MarshalJSON() ([]byte, error) { - type NoMethod About - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Accepted: Describes the accepted terms of service. type Accepted struct { // AcceptedBy: The account where the acceptance was recorded. This can be the @@ -667,7 +600,7 @@ type BusinessIdentity struct { // Name: Identifier. The resource name of the business identity. Format: // `accounts/{account}/businessIdentity` Name string `json:"name,omitempty"` - // PromotionsConsent: Optional. Whether the identity attributes may be used for + // PromotionsConsent: Required. Whether the identity attributes may be used for // promotions. // // Possible values: @@ -1156,47 +1089,6 @@ type Empty struct { type EnableProgramRequest struct { } -// GbpAccount: Collection of information related to a Google Business Profile -// (GBP) account. -type GbpAccount struct { - // Email: The email which identifies the Business Profile. - Email string `json:"email,omitempty"` - // GbpAccountId: The id of the GBP account. - GbpAccountId string `json:"gbpAccountId,omitempty"` - // GbpAccountName: The name of the Business Profile. For personal accounts: - // Email id of the owner. For Business accounts: Name of the Business Account. - GbpAccountName string `json:"gbpAccountName,omitempty"` - // ListingCount: Number of listings under this account. - ListingCount int64 `json:"listingCount,omitempty,string"` - // Name: Identifier. The resource name of the GBP account. Format: - // `accounts/{account}/omnichannelSettings/{omnichannel_setting}/gbpAccount/{gbp - // _account}` - Name string `json:"name,omitempty"` - // Type: The type of the Business Profile. - // - // Possible values: - // "TYPE_UNSPECIFIED" - Default value. This value is unused. - // "USER" - The GBP account is a user account. - // "BUSINESS_ACCOUNT" - The GBP account is a business account. - Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Email") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Email") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GbpAccount) MarshalJSON() ([]byte, error) { - type NoMethod GbpAccount - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // GeoTargetArea: A list of geotargets that defines the region area. type GeoTargetArea struct { // GeotargetCriteriaIds: Required. A non-empty list of location IDs @@ -1428,207 +1320,6 @@ func (s ImpactedDestination) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InventoryVerification: Collection of information related to inventory -// verification -// (https://support.google.com/merchants/answer/14684499?hl=en&ref_topic=15145634&sjid=6892280366904591178-NC). -type InventoryVerification struct { - // Contact: Required. The name of the contact for the inventory verification - // process. - Contact string `json:"contact,omitempty"` - // ContactEmail: Required. The email address of the contact for the inventory - // verification process. - ContactEmail string `json:"contactEmail,omitempty"` - // ContactState: Output only. The state of the contact verification. - // - // Possible values: - // "STATE_UNSPECIFIED" - Default value. This value is unused. - // "ACTIVE" - The review process is active. - // "FAILED" - The review process failed. - // "RUNNING" - The review process is running. - ContactState string `json:"contactState,omitempty"` - // State: Output only. The state of the inventory verification process. - // - // Possible values: - // "STATE_UNSPECIFIED" - Default value. This value is unused. - // "ACTION_REQUIRED" - When merchant fails the inventory verification - // process, but still have remaining attempts. - // "RUNNING" - The inventory verification process is running. - // "SUCCEEDED" - The inventory verification process succeeded. - // "SUSPENDED" - When merchant fails the inventory verification process and - // all attempts are exhausted. - State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contact") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Contact") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s InventoryVerification) MarshalJSON() ([]byte, error) { - type NoMethod InventoryVerification - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// LfpLink: Collection of information related to the LFP link. -type LfpLink struct { - // ExternalAccountId: Required. The account ID by which this merchant is known - // to the LFP provider. - ExternalAccountId string `json:"externalAccountId,omitempty"` - // ProviderId: Required. The ID of the LFP provider. - ProviderId string `json:"providerId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExternalAccountId") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ExternalAccountId") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s LfpLink) MarshalJSON() ([]byte, error) { - type NoMethod LfpLink - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// LfpProvider: Collection of information related to a Local Feed Partnership -// (LFP) provider. -type LfpProvider struct { - // DisplayName: The display name of the LFP provider. - DisplayName string `json:"displayName,omitempty"` - // LfpProviderId: The ID of the LFP provider. - LfpProviderId string `json:"lfpProviderId,omitempty"` - // Name: Identifier. The resource name of the LFP provider. Format: - // `accounts/{account}/omnichannelSettings/{omnichannel_setting}/lfpProviders/{l - // fp_provider}` - Name string `json:"name,omitempty"` - // RegionCode: Output only. Region code defined by CLDR - // (https://cldr.unicode.org/). - RegionCode string `json:"regionCode,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DisplayName") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s LfpProvider) MarshalJSON() ([]byte, error) { - type NoMethod LfpProvider - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// LinkGbpAccountRequest: Request message for the LinkGbpAccount method. -type LinkGbpAccountRequest struct { - // GbpEmail: Required. The email address of the Business Profile account. - GbpEmail string `json:"gbpEmail,omitempty"` - // ForceSendFields is a list of field names (e.g. "GbpEmail") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GbpEmail") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s LinkGbpAccountRequest) MarshalJSON() ([]byte, error) { - type NoMethod LinkGbpAccountRequest - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// LinkGbpAccountResponse: Response message for the LinkGbpAccount method. -type LinkGbpAccountResponse struct { - // Response: Empty response. - Response *Empty `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. "Response") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Response") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s LinkGbpAccountResponse) MarshalJSON() ([]byte, error) { - type NoMethod LinkGbpAccountResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// LinkLfpProviderRequest: Request message for the LinkLfpProvider method. -type LinkLfpProviderRequest struct { - // ExternalAccountId: Required. The external account ID by which this merchant - // is known to the LFP provider. - ExternalAccountId string `json:"externalAccountId,omitempty"` - // LfpProviderId: Required. The id of the LFP provider to link. - LfpProviderId string `json:"lfpProviderId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExternalAccountId") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ExternalAccountId") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s LinkLfpProviderRequest) MarshalJSON() ([]byte, error) { - type NoMethod LinkLfpProviderRequest - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// LinkLfpProviderResponse: Response message for the LinkLfpProvider method. -type LinkLfpProviderResponse struct { - // Response: Empty response. - Response *Empty `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. "Response") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Response") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s LinkLfpProviderResponse) MarshalJSON() ([]byte, error) { - type NoMethod LinkLfpProviderResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // ListAccountIssuesResponse: Response message for the `ListAccountIssues` // method. type ListAccountIssuesResponse struct { @@ -1686,93 +1377,6 @@ func (s ListAccountsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListGbpAccountsResponse: Response message for the ListGbpAccounts method. -type ListGbpAccountsResponse struct { - // GbpAccounts: The GBP accounts from the specified merchant in the specified - // country. - GbpAccounts []*GbpAccount `json:"gbpAccounts,omitempty"` - // NextPageToken: A token, which can be sent as `page_token` to retrieve the - // next page. If this field is omitted, there are no subsequent pages. - NextPageToken string `json:"nextPageToken,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "GbpAccounts") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GbpAccounts") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ListGbpAccountsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListGbpAccountsResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// ListLfpProvidersResponse: Response message for the ListLfpProviders method. -type ListLfpProvidersResponse struct { - // LfpProviders: The LFP providers from the specified merchant in the specified - // country. - LfpProviders []*LfpProvider `json:"lfpProviders,omitempty"` - // NextPageToken: A token, which can be sent as `page_token` to retrieve the - // next page. If this field is omitted, there are no subsequent pages. - NextPageToken string `json:"nextPageToken,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "LfpProviders") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "LfpProviders") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ListLfpProvidersResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListLfpProvidersResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// ListOmnichannelSettingsResponse: Response message for the -// ListOmnichannelSettings method. -type ListOmnichannelSettingsResponse 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"` - // OmnichannelSettings: The omnichannel settings from the specified merchant. - OmnichannelSettings []*OmnichannelSetting `json:"omnichannelSettings,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. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextPageToken") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ListOmnichannelSettingsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListOmnichannelSettingsResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // ListOnlineReturnPoliciesResponse: Response message for the // `ListOnlineReturnPolicies` method. type ListOnlineReturnPoliciesResponse struct { @@ -2018,43 +1622,6 @@ func (s LoyaltyProgramTiers) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LsfType: Collection of information related to the Local Store Front (LSF) -// type. -type LsfType struct { - // LsfType: Required. The Local Store Front (LSF) type. - // - // Possible values: - // "TYPE_UNSPECIFIED" - Default value. This value is unused. - // "GHLSF" - Google-Hosted Local Store Front. - // "MHLSF_BASIC" - Merchant-Hosted Local Store Front Basic. - // "MHLSF_FULL" - Merchant-Hosted Local Store Front Full. - LsfType string `json:"lsfType,omitempty"` - // State: Output only. The state of the LSF. - // - // Possible values: - // "STATE_UNSPECIFIED" - Default value. This value is unused. - // "ACTIVE" - The review process is active. - // "FAILED" - The review process failed. - // "RUNNING" - The review process is running. - State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "LsfType") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "LsfType") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s LsfType) MarshalJSON() ([]byte, error) { - type NoMethod LsfType - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // MinimumOrderValueTable: Table of per store minimum order values for the // pickup fulfillment type. type MinimumOrderValueTable struct { @@ -2082,92 +1649,6 @@ func (s MinimumOrderValueTable) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OmnichannelSetting: Collection of information related to the omnichannel -// settings of a merchant. -type OmnichannelSetting struct { - // About: Optional. The about page URI and state for this country. - About *About `json:"about,omitempty"` - // InventoryVerification: Optional. The inventory verification process state - // for this country. - InventoryVerification *InventoryVerification `json:"inventoryVerification,omitempty"` - // LfpLink: Output only. The established link to a LFP provider. - LfpLink *LfpLink `json:"lfpLink,omitempty"` - // LsfType: Optional. The Local Store Front (LSF - // (https://support.google.com/merchants/answer/7178526)) type and state for - // this country. - LsfType *LsfType `json:"lsfType,omitempty"` - // Name: Identifier. The resource name of the omnichannel setting. Format: - // `accounts/{account}/omnichannelSettings/{omnichannel_setting}` - Name string `json:"name,omitempty"` - // Odo: Optional. The on display to order (ODO) policy URI and state for this - // country. - Odo *OnDisplayToOrder `json:"odo,omitempty"` - // PickupTypes: Optional. The Pickup types asnd state for this country. - PickupTypes []*PickupType `json:"pickupTypes,omitempty"` - // RegionCode: Immutable. Region code defined by CLDR - // (https://cldr.unicode.org/). - RegionCode string `json:"regionCode,omitempty"` - // State: Output only. The state of the omnichannel setting. - // - // Possible values: - // "STATE_UNSPECIFIED" - Default value. This value is unused. - // "ACTIVE" - The merchant's omnichannel setting is active. - // "ACTION_REQUIRED" - The merchant's omnichannel setting requires action. - // "RUNNING" - The merchant's omnichannel setting is running. - State string `json:"state,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "About") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "About") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s OmnichannelSetting) MarshalJSON() ([]byte, error) { - type NoMethod OmnichannelSetting - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// OnDisplayToOrder: Collection of information related to the on display to -// order (ODO -// (https://support.google.com/merchants/answer/14615056?hl=en&ref_topic=15145747&sjid=6892280366904591178-NC)). -type OnDisplayToOrder struct { - // State: Output only. The state of the URI. - // - // Possible values: - // "STATE_UNSPECIFIED" - Default value. This value is unused. - // "ACTIVE" - The review process is active. - // "FAILED" - The review process failed. - // "RUNNING" - The review process is running. - State string `json:"state,omitempty"` - // Uri: Required. The on display to order (ODO) policy URI. - Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "State") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "State") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s OnDisplayToOrder) MarshalJSON() ([]byte, error) { - type NoMethod OnDisplayToOrder - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // OnlineReturnPolicy: Online return policy // (https://support.google.com/merchants/answer/10220642) object. This is // currently used to represent return policies for ads and free listings @@ -2306,45 +1787,6 @@ func (s PhoneNumber) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PickupType: Collection of information related to the pickup type. -type PickupType struct { - // PickupType: Required. The type of the pickup. - // - // Possible values: - // "TYPE_UNSPECIFIED" - Default value. This value is unused. - // "PICKUP_TODAY" - [Pickup - // today](https://support.google.com/merchants/answer/14634281?hl=en&ref_topic=1 - // 5145747&sjid=6892280366904591178-NC#). - // "PICKUP_LATER" - [Pickup - // later](https://support.google.com/merchants/answer/14634020?hl=en&ref_topic=1 - // 5145747&sjid=6892280366904591178-NC#). - PickupType string `json:"pickupType,omitempty"` - // State: Output only. The state of the PickupType. - // - // Possible values: - // "STATE_UNSPECIFIED" - Default value. This value is unused. - // "ACTIVE" - The review process is active. - // "FAILED" - The review process failed. - // "RUNNING" - The review process is running. - State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "PickupType") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PickupType") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s PickupType) MarshalJSON() ([]byte, error) { - type NoMethod PickupType - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Policy: The available policies. type Policy struct { // Days: The number of days items can be returned after delivery, where one day @@ -2820,37 +2262,6 @@ func (s Region) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RequestInventoryVerificationRequest: Request message for the -// RequestInventoryVerification method. -type RequestInventoryVerificationRequest struct { -} - -// RequestInventoryVerificationResponse: Response message for the -// RequestInventoryVerification method. -type RequestInventoryVerificationResponse struct { - // OmnichannelSetting: The omnichannel setting that was updated. - OmnichannelSetting *OmnichannelSetting `json:"omnichannelSetting,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "OmnichannelSetting") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "OmnichannelSetting") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s RequestInventoryVerificationResponse) MarshalJSON() ([]byte, error) { - type NoMethod RequestInventoryVerificationResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Required: Describes the terms of service which are required to be accepted. type Required struct { // TermsOfService: The termsOfService @@ -5899,1093 +5310,6 @@ func (c *AccountsIssuesListCall) Pages(ctx context.Context, f func(*ListAccountI } } -type AccountsOmnichannelSettingsCreateCall struct { - s *APIService - parent string - omnichannelsetting *OmnichannelSetting - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Create the omnichannel settings for a given merchant. -// -// - parent: The parent resource where this omnichannel setting will be -// created. Format: `accounts/{account}`. -func (r *AccountsOmnichannelSettingsService) Create(parent string, omnichannelsetting *OmnichannelSetting) *AccountsOmnichannelSettingsCreateCall { - c := &AccountsOmnichannelSettingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.omnichannelsetting = omnichannelsetting - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *AccountsOmnichannelSettingsCreateCall) Fields(s ...googleapi.Field) *AccountsOmnichannelSettingsCreateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *AccountsOmnichannelSettingsCreateCall) Context(ctx context.Context) *AccountsOmnichannelSettingsCreateCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *AccountsOmnichannelSettingsCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsOmnichannelSettingsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.omnichannelsetting) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+parent}/omnichannelSettings") - 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 "merchantapi.accounts.omnichannelSettings.create" call. -// Any non-2xx status code is an error. Response headers are in either -// *OmnichannelSetting.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 *AccountsOmnichannelSettingsCreateCall) Do(opts ...googleapi.CallOption) (*OmnichannelSetting, 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 := &OmnichannelSetting{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type AccountsOmnichannelSettingsGetCall struct { - s *APIService - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Get the omnichannel settings for a given merchant. -// -// - name: The name of the omnichannel setting to retrieve. Format: -// `accounts/{account}/omnichannelSettings/{omnichannel_setting}`. -func (r *AccountsOmnichannelSettingsService) Get(name string) *AccountsOmnichannelSettingsGetCall { - c := &AccountsOmnichannelSettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *AccountsOmnichannelSettingsGetCall) Fields(s ...googleapi.Field) *AccountsOmnichannelSettingsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *AccountsOmnichannelSettingsGetCall) IfNoneMatch(entityTag string) *AccountsOmnichannelSettingsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *AccountsOmnichannelSettingsGetCall) Context(ctx context.Context) *AccountsOmnichannelSettingsGetCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *AccountsOmnichannelSettingsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsOmnichannelSettingsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "merchantapi.accounts.omnichannelSettings.get" call. -// Any non-2xx status code is an error. Response headers are in either -// *OmnichannelSetting.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 *AccountsOmnichannelSettingsGetCall) Do(opts ...googleapi.CallOption) (*OmnichannelSetting, 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 := &OmnichannelSetting{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type AccountsOmnichannelSettingsListCall struct { - s *APIService - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: List all the omnichannel settings for a given merchant. -// -// - parent: The parent, which owns this collection of omnichannel settings. -// Format: `accounts/{account}`. -func (r *AccountsOmnichannelSettingsService) List(parent string) *AccountsOmnichannelSettingsListCall { - c := &AccountsOmnichannelSettingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// omnichannel settings to return. The service may return fewer than this -// value. If unspecified, at most 50 omnichannel settings will be returned. The -// maximum value is 1000; values above 1000 will be coerced to 1000. -func (c *AccountsOmnichannelSettingsListCall) PageSize(pageSize int64) *AccountsOmnichannelSettingsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, received -// from a previous `ListOmnichannelSettings` call. Provide this to retrieve the -// subsequent page. When paginating, all other parameters provided to -// `ListOmnichannelSettings` must match the call that provided the page token. -func (c *AccountsOmnichannelSettingsListCall) PageToken(pageToken string) *AccountsOmnichannelSettingsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *AccountsOmnichannelSettingsListCall) Fields(s ...googleapi.Field) *AccountsOmnichannelSettingsListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *AccountsOmnichannelSettingsListCall) IfNoneMatch(entityTag string) *AccountsOmnichannelSettingsListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *AccountsOmnichannelSettingsListCall) Context(ctx context.Context) *AccountsOmnichannelSettingsListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *AccountsOmnichannelSettingsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsOmnichannelSettingsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+parent}/omnichannelSettings") - 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 "merchantapi.accounts.omnichannelSettings.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *ListOmnichannelSettingsResponse.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 *AccountsOmnichannelSettingsListCall) Do(opts ...googleapi.CallOption) (*ListOmnichannelSettingsResponse, 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 := &ListOmnichannelSettingsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *AccountsOmnichannelSettingsListCall) Pages(ctx context.Context, f func(*ListOmnichannelSettingsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type AccountsOmnichannelSettingsPatchCall struct { - s *APIService - name string - omnichannelsetting *OmnichannelSetting - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Update the omnichannel setting for a given merchant in a given -// country. -// -// - name: Identifier. The resource name of the omnichannel setting. Format: -// `accounts/{account}/omnichannelSettings/{omnichannel_setting}`. -func (r *AccountsOmnichannelSettingsService) Patch(name string, omnichannelsetting *OmnichannelSetting) *AccountsOmnichannelSettingsPatchCall { - c := &AccountsOmnichannelSettingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.omnichannelsetting = omnichannelsetting - return c -} - -// UpdateMask sets the optional parameter "updateMask": The list of fields to -// be updated. -func (c *AccountsOmnichannelSettingsPatchCall) UpdateMask(updateMask string) *AccountsOmnichannelSettingsPatchCall { - c.urlParams_.Set("updateMask", updateMask) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *AccountsOmnichannelSettingsPatchCall) Fields(s ...googleapi.Field) *AccountsOmnichannelSettingsPatchCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *AccountsOmnichannelSettingsPatchCall) Context(ctx context.Context) *AccountsOmnichannelSettingsPatchCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *AccountsOmnichannelSettingsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsOmnichannelSettingsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.omnichannelsetting) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "merchantapi.accounts.omnichannelSettings.patch" call. -// Any non-2xx status code is an error. Response headers are in either -// *OmnichannelSetting.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 *AccountsOmnichannelSettingsPatchCall) Do(opts ...googleapi.CallOption) (*OmnichannelSetting, 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 := &OmnichannelSetting{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type AccountsOmnichannelSettingsRequestInventoryVerificationCall struct { - s *APIService - name string - requestinventoryverificationrequest *RequestInventoryVerificationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// RequestInventoryVerification: Requests inventory verification for a given -// merchant in a given country. -// -// - name: The name of the omnichannel setting to request inventory -// verification. Format: -// `accounts/{account}/omnichannelSettings/{omnichannel_setting}`. -func (r *AccountsOmnichannelSettingsService) RequestInventoryVerification(name string, requestinventoryverificationrequest *RequestInventoryVerificationRequest) *AccountsOmnichannelSettingsRequestInventoryVerificationCall { - c := &AccountsOmnichannelSettingsRequestInventoryVerificationCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.requestinventoryverificationrequest = requestinventoryverificationrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *AccountsOmnichannelSettingsRequestInventoryVerificationCall) Fields(s ...googleapi.Field) *AccountsOmnichannelSettingsRequestInventoryVerificationCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *AccountsOmnichannelSettingsRequestInventoryVerificationCall) Context(ctx context.Context) *AccountsOmnichannelSettingsRequestInventoryVerificationCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *AccountsOmnichannelSettingsRequestInventoryVerificationCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsOmnichannelSettingsRequestInventoryVerificationCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.requestinventoryverificationrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+name}:requestInventoryVerification") - 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 "merchantapi.accounts.omnichannelSettings.requestInventoryVerification" call. -// Any non-2xx status code is an error. Response headers are in either -// *RequestInventoryVerificationResponse.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 *AccountsOmnichannelSettingsRequestInventoryVerificationCall) Do(opts ...googleapi.CallOption) (*RequestInventoryVerificationResponse, 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 := &RequestInventoryVerificationResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall struct { - s *APIService - parent string - linkgbpaccountrequest *LinkGbpAccountRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// LinkGbpAccount: Link the specified merchant to a GBP account for all -// countries. -// -// - parent: The name of the parent resource under which the GBP accounts are -// listed. Format: -// `accounts/{account}/omnichannelSettings/{omnichannel_setting}`. -func (r *AccountsOmnichannelSettingsGbpAccountsService) LinkGbpAccount(parent string, linkgbpaccountrequest *LinkGbpAccountRequest) *AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall { - c := &AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.linkgbpaccountrequest = linkgbpaccountrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall) Fields(s ...googleapi.Field) *AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall) Context(ctx context.Context) *AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.linkgbpaccountrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+parent}/gbpAccounts:linkGbpAccount") - 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 "merchantapi.accounts.omnichannelSettings.gbpAccounts.linkGbpAccount" call. -// Any non-2xx status code is an error. Response headers are in either -// *LinkGbpAccountResponse.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 *AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall) Do(opts ...googleapi.CallOption) (*LinkGbpAccountResponse, 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 := &LinkGbpAccountResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type AccountsOmnichannelSettingsGbpAccountsListCall struct { - s *APIService - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: List the GBP accounts for a given merchant. -// -// - parent: The name of the parent resource under which the GBP accounts are -// listed. Format: -// `accounts/{account}/omnichannelSettings/{omnichannel_setting}`. -func (r *AccountsOmnichannelSettingsGbpAccountsService) List(parent string) *AccountsOmnichannelSettingsGbpAccountsListCall { - c := &AccountsOmnichannelSettingsGbpAccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// `GbpAccount` resources to return. The service returns fewer than this value -// if the number of gbp accounts is less that than the `pageSize`. The default -// value is 50. The maximum value is 1000; If a value higher than the maximum -// is specified, then the `pageSize` will default to the maximum. -func (c *AccountsOmnichannelSettingsGbpAccountsListCall) PageSize(pageSize int64) *AccountsOmnichannelSettingsGbpAccountsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, received -// from a previous `ListGbpAccounts` call. Provide the page token to retrieve -// the subsequent page. When paginating, all other parameters provided to -// `ListGbpAccounts` must match the call that provided the page token. -func (c *AccountsOmnichannelSettingsGbpAccountsListCall) PageToken(pageToken string) *AccountsOmnichannelSettingsGbpAccountsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *AccountsOmnichannelSettingsGbpAccountsListCall) Fields(s ...googleapi.Field) *AccountsOmnichannelSettingsGbpAccountsListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *AccountsOmnichannelSettingsGbpAccountsListCall) IfNoneMatch(entityTag string) *AccountsOmnichannelSettingsGbpAccountsListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *AccountsOmnichannelSettingsGbpAccountsListCall) Context(ctx context.Context) *AccountsOmnichannelSettingsGbpAccountsListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *AccountsOmnichannelSettingsGbpAccountsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsOmnichannelSettingsGbpAccountsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+parent}/gbpAccounts") - 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 "merchantapi.accounts.omnichannelSettings.gbpAccounts.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *ListGbpAccountsResponse.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 *AccountsOmnichannelSettingsGbpAccountsListCall) Do(opts ...googleapi.CallOption) (*ListGbpAccountsResponse, 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 := &ListGbpAccountsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *AccountsOmnichannelSettingsGbpAccountsListCall) Pages(ctx context.Context, f func(*ListGbpAccountsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall struct { - s *APIService - parent string - linklfpproviderrequest *LinkLfpProviderRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// LinkLfpProvider: Link the specified merchant to a LFP provider for the -// specified country. -// -// - parent: The name of the parent resource under which the LFP provider is -// linked. Format: -// `accounts/{account}/omnichannelSettings/{omnichannel_setting}`. -func (r *AccountsOmnichannelSettingsLfpProvidersService) LinkLfpProvider(parent string, linklfpproviderrequest *LinkLfpProviderRequest) *AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall { - c := &AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.linklfpproviderrequest = linklfpproviderrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall) Fields(s ...googleapi.Field) *AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall) Context(ctx context.Context) *AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.linklfpproviderrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+parent}/lfpProviders:linkLfpProvider") - 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 "merchantapi.accounts.omnichannelSettings.lfpProviders.linkLfpProvider" call. -// Any non-2xx status code is an error. Response headers are in either -// *LinkLfpProviderResponse.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 *AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall) Do(opts ...googleapi.CallOption) (*LinkLfpProviderResponse, 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 := &LinkLfpProviderResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type AccountsOmnichannelSettingsLfpProvidersListCall struct { - s *APIService - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: List the LFP provider settings for a given merchant in a given -// country. -// -// - parent: The name of the parent resource under which the LFP providers are -// listed. Format: -// `accounts/{account}/omnichannelSettings/{omnichannel_setting}`. -func (r *AccountsOmnichannelSettingsLfpProvidersService) List(parent string) *AccountsOmnichannelSettingsLfpProvidersListCall { - c := &AccountsOmnichannelSettingsLfpProvidersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// `LfpProvider` resources to return. The service returns fewer than this value -// if the number of lfp providers is less that than the `pageSize`. The default -// value is 50. The maximum value is 1000; If a value higher than the maximum -// is specified, then the `pageSize` will default to the maximum. -func (c *AccountsOmnichannelSettingsLfpProvidersListCall) PageSize(pageSize int64) *AccountsOmnichannelSettingsLfpProvidersListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, received -// from a previous `ListLfpProviders` call. Provide the page token to retrieve -// the subsequent page. When paginating, all other parameters provided to -// `ListLfpProviders` must match the call that provided the page token. -func (c *AccountsOmnichannelSettingsLfpProvidersListCall) PageToken(pageToken string) *AccountsOmnichannelSettingsLfpProvidersListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *AccountsOmnichannelSettingsLfpProvidersListCall) Fields(s ...googleapi.Field) *AccountsOmnichannelSettingsLfpProvidersListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *AccountsOmnichannelSettingsLfpProvidersListCall) IfNoneMatch(entityTag string) *AccountsOmnichannelSettingsLfpProvidersListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *AccountsOmnichannelSettingsLfpProvidersListCall) Context(ctx context.Context) *AccountsOmnichannelSettingsLfpProvidersListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *AccountsOmnichannelSettingsLfpProvidersListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsOmnichannelSettingsLfpProvidersListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+parent}/lfpProviders") - 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 "merchantapi.accounts.omnichannelSettings.lfpProviders.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *ListLfpProvidersResponse.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 *AccountsOmnichannelSettingsLfpProvidersListCall) Do(opts ...googleapi.CallOption) (*ListLfpProvidersResponse, 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 := &ListLfpProvidersResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *AccountsOmnichannelSettingsLfpProvidersListCall) Pages(ctx context.Context, f func(*ListLfpProvidersResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - type AccountsOnlineReturnPoliciesGetCall struct { s *APIService name string diff --git a/networkconnectivity/v1/networkconnectivity-api.json b/networkconnectivity/v1/networkconnectivity-api.json index e8a93e98ca6..39ca13e28b7 100644 --- a/networkconnectivity/v1/networkconnectivity-api.json +++ b/networkconnectivity/v1/networkconnectivity-api.json @@ -485,6 +485,57 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "queryStatus": { + "description": "Query PSC propagation status the status of a Network Connectivity Center hub.", + "flatPath": "v1/projects/{projectsId}/locations/global/hubs/{hubsId}:queryStatus", + "httpMethod": "GET", + "id": "networkconnectivity.projects.locations.global.hubs.queryStatus", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "Optional. An expression that filters the list of results. The filter can be used to filter the results by the following fields: * psc_propagation_status.source_spoke * psc_propagation_status.source_group * psc_propagation_status.source_forwarding_rule * psc_propagation_status.target_spoke * psc_propagation_status.target_group * psc_propagation_status.code * psc_propagation_status.message", + "location": "query", + "type": "string" + }, + "groupBy": { + "description": "Optional. A field that counts are grouped by. A comma-separated list of any of these fields: * psc_propagation_status.source_spoke * psc_propagation_status.source_group * psc_propagation_status.source_forwarding_rule * psc_propagation_status.target_spoke * psc_propagation_status.target_group * psc_propagation_status.code", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The name of the hub.", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/hubs/[^/]+$", + "required": true, + "type": "string" + }, + "orderBy": { + "description": "Optional. Sort the results in the ascending order by specific fields returned in the response. A comma-separated list of any of these fields: * psc_propagation_status.source_spoke * psc_propagation_status.source_group * psc_propagation_status.source_forwarding_rule * psc_propagation_status.target_spoke * psc_propagation_status.target_group * psc_propagation_status.code If `group_by` is set, the value of the `order_by` field must be the same as or a subset of the `group_by` field.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of results to return per page.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:queryStatus", + "response": { + "$ref": "QueryHubStatusResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "rejectSpoke": { "description": "Rejects a Network Connectivity Center spoke from being attached to a hub. If the spoke was previously in the `ACTIVE` state, it transitions to the `INACTIVE` state and is no longer able to connect to other spokes that are attached to the hub.", "flatPath": "v1/projects/{projectsId}/locations/global/hubs/{hubsId}:rejectSpoke", @@ -2812,7 +2863,7 @@ } } }, - "revision": "20241009", + "revision": "20241030", "rootUrl": "https://networkconnectivity.googleapis.com/", "schemas": { "AcceptHubSpokeRequest": { @@ -3475,6 +3526,26 @@ }, "type": "object" }, + "HubStatusEntry": { + "description": "The hub status entry.", + "id": "HubStatusEntry", + "properties": { + "count": { + "description": "The number of status. If group_by is not set in the request, the default is 1.", + "format": "int32", + "type": "integer" + }, + "groupBy": { + "description": "The same group_by field from the request.", + "type": "string" + }, + "pscPropagationStatus": { + "$ref": "PscPropagationStatus", + "description": "The PSC propagation status." + } + }, + "type": "object" + }, "InterconnectAttachment": { "description": "InterconnectAttachment that this route applies to.", "id": "InterconnectAttachment", @@ -3630,7 +3701,6 @@ "type": "object" }, "LinkedProducerVpcNetwork": { - "description": "Next ID: 7", "id": "LinkedProducerVpcNetwork", "properties": { "excludeExportRanges": { @@ -3640,6 +3710,13 @@ }, "type": "array" }, + "includeExportRanges": { + "description": "Optional. IP ranges allowed to be included from peering.", + "items": { + "type": "string" + }, + "type": "array" + }, "network": { "description": "Immutable. The URI of the Service Consumer VPC that the Producer VPC is peered with.", "type": "string" @@ -4562,6 +4639,77 @@ }, "type": "object" }, + "PscPropagationStatus": { + "description": "The PSC propagation status in a hub.", + "id": "PscPropagationStatus", + "properties": { + "code": { + "description": "The propagation status.", + "enum": [ + "CODE_UNSPECIFIED", + "READY", + "PROPAGATING", + "ERROR_PRODUCER_PROPAGATED_CONNECTION_LIMIT_EXCEEDED", + "ERROR_PRODUCER_NAT_IP_SPACE_EXHAUSTED", + "ERROR_PRODUCER_QUOTA_EXCEEDED", + "ERROR_CONSUMER_QUOTA_EXCEEDED" + ], + "enumDescriptions": [ + "The code is unspecified.", + "The propagated PSC connection is ready.", + "PSC connection is propagating. This is a transient state.", + "The PSC connection propagation failed because the VPC network or the project of the target spoke has exceeded the connection limit set by the producer.", + "The PSC connection propagation failed because the NAT IP subnet space has been exhausted. It is equivalent to the `Needs attention` status of the PSC connection. See https://cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints#connection-statuses.", + "PSC connection propagation failed because the `PSC_ILB_CONSUMER_FORWARDING_RULES_PER_PRODUCER_NETWORK` quota in the producer VPC network has been exceeded.", + "The PSC connection propagation failed because the `PSC_PROPAGATED_CONNECTIONS_PER_VPC_NETWORK` quota in the consumer VPC network has been exceeded." + ], + "type": "string" + }, + "message": { + "description": "The human-readable summary of the PSC connection propagation status.", + "type": "string" + }, + "sourceForwardingRule": { + "description": "The name of the forwarding rule exported to the hub.", + "type": "string" + }, + "sourceGroup": { + "description": "The name of the group that the source spoke belongs to.", + "type": "string" + }, + "sourceSpoke": { + "description": "The name of the spoke that the source forwarding rule belongs to.", + "type": "string" + }, + "targetGroup": { + "description": "The name of the group that the target spoke belongs to.", + "type": "string" + }, + "targetSpoke": { + "description": "The name of the spoke that the source forwarding rule propagates to.", + "type": "string" + } + }, + "type": "object" + }, + "QueryHubStatusResponse": { + "description": "The response for HubService.QueryHubStatus.", + "id": "QueryHubStatusResponse", + "properties": { + "hubStatusEntries": { + "description": "The list of hub status.", + "items": { + "$ref": "HubStatusEntry" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.", + "type": "string" + } + }, + "type": "object" + }, "RegionalEndpoint": { "description": "The RegionalEndpoint resource.", "id": "RegionalEndpoint", @@ -4883,7 +5031,7 @@ "type": "object" }, "ServiceClass": { - "description": "The ServiceClass resource. Next id: 9", + "description": "The ServiceClass resource.", "id": "ServiceClass", "properties": { "createTime": { @@ -4926,7 +5074,7 @@ "type": "object" }, "ServiceConnectionMap": { - "description": "The ServiceConnectionMap resource. Next id: 15", + "description": "The ServiceConnectionMap resource.", "id": "ServiceConnectionMap", "properties": { "consumerPscConfigs": { @@ -5012,7 +5160,7 @@ "type": "object" }, "ServiceConnectionPolicy": { - "description": "The ServiceConnectionPolicy resource. Next id: 12", + "description": "The ServiceConnectionPolicy resource.", "id": "ServiceConnectionPolicy", "properties": { "createTime": { @@ -5083,7 +5231,7 @@ "type": "object" }, "ServiceConnectionToken": { - "description": "The ServiceConnectionToken resource. Next id: 10", + "description": "The ServiceConnectionToken resource.", "id": "ServiceConnectionToken", "properties": { "createTime": { @@ -5205,7 +5353,7 @@ "type": "string" }, "reasons": { - "description": "Output only. The reasons for current state of the spoke. Only present when the spoke is in the `INACTIVE` state.", + "description": "Output only. The reasons for current state of the spoke.", "items": { "$ref": "StateReason" }, @@ -5331,14 +5479,20 @@ "PENDING_REVIEW", "REJECTED", "PAUSED", - "FAILED" + "FAILED", + "UPDATE_PENDING_REVIEW", + "UPDATE_REJECTED", + "UPDATE_FAILED" ], "enumDescriptions": [ "No information available.", "The proposed spoke is pending review.", "The proposed spoke has been rejected by the hub administrator.", "The spoke has been deactivated internally.", - "Network Connectivity Center encountered errors while accepting the spoke." + "Network Connectivity Center encountered errors while accepting the spoke.", + "The proposed spoke update is pending review.", + "The proposed spoke update has been rejected by the hub administrator.", + "Network Connectivity Center encountered errors while accepting the spoke update." ], "readOnly": true, "type": "string" @@ -5422,14 +5576,20 @@ "PENDING_REVIEW", "REJECTED", "PAUSED", - "FAILED" + "FAILED", + "UPDATE_PENDING_REVIEW", + "UPDATE_REJECTED", + "UPDATE_FAILED" ], "enumDescriptions": [ "No information available.", "The proposed spoke is pending review.", "The proposed spoke has been rejected by the hub administrator.", "The spoke has been deactivated internally.", - "Network Connectivity Center encountered errors while accepting the spoke." + "Network Connectivity Center encountered errors while accepting the spoke.", + "The proposed spoke update is pending review.", + "The proposed spoke update has been rejected by the hub administrator.", + "Network Connectivity Center encountered errors while accepting the spoke update." ], "type": "string" }, diff --git a/networkconnectivity/v1/networkconnectivity-gen.go b/networkconnectivity/v1/networkconnectivity-gen.go index 7199dbd5c16..97f699f2dd4 100644 --- a/networkconnectivity/v1/networkconnectivity-gen.go +++ b/networkconnectivity/v1/networkconnectivity-gen.go @@ -1190,6 +1190,33 @@ func (s Hub) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// HubStatusEntry: The hub status entry. +type HubStatusEntry struct { + // Count: The number of status. If group_by is not set in the request, the + // default is 1. + Count int64 `json:"count,omitempty"` + // GroupBy: The same group_by field from the request. + GroupBy string `json:"groupBy,omitempty"` + // PscPropagationStatus: The PSC propagation status. + PscPropagationStatus *PscPropagationStatus `json:"pscPropagationStatus,omitempty"` + // ForceSendFields is a list of field names (e.g. "Count") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Count") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s HubStatusEntry) MarshalJSON() ([]byte, error) { + type NoMethod HubStatusEntry + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // InterconnectAttachment: InterconnectAttachment that this route applies to. type InterconnectAttachment struct { // Region: Optional. Cloud region to install this policy-based route on @@ -1375,11 +1402,13 @@ func (s LinkedInterconnectAttachments) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LinkedProducerVpcNetwork: Next ID: 7 type LinkedProducerVpcNetwork struct { // ExcludeExportRanges: Optional. IP ranges encompassing the subnets to be // excluded from peering. ExcludeExportRanges []string `json:"excludeExportRanges,omitempty"` + // IncludeExportRanges: Optional. IP ranges allowed to be included from + // peering. + IncludeExportRanges []string `json:"includeExportRanges,omitempty"` // Network: Immutable. The URI of the Service Consumer VPC that the Producer // VPC is peered with. Network string `json:"network,omitempty"` @@ -2531,6 +2560,90 @@ func (s PscConnection) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// PscPropagationStatus: The PSC propagation status in a hub. +type PscPropagationStatus struct { + // Code: The propagation status. + // + // Possible values: + // "CODE_UNSPECIFIED" - The code is unspecified. + // "READY" - The propagated PSC connection is ready. + // "PROPAGATING" - PSC connection is propagating. This is a transient state. + // "ERROR_PRODUCER_PROPAGATED_CONNECTION_LIMIT_EXCEEDED" - The PSC connection + // propagation failed because the VPC network or the project of the target + // spoke has exceeded the connection limit set by the producer. + // "ERROR_PRODUCER_NAT_IP_SPACE_EXHAUSTED" - The PSC connection propagation + // failed because the NAT IP subnet space has been exhausted. It is equivalent + // to the `Needs attention` status of the PSC connection. See + // https://cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints#connection-statuses. + // "ERROR_PRODUCER_QUOTA_EXCEEDED" - PSC connection propagation failed + // because the `PSC_ILB_CONSUMER_FORWARDING_RULES_PER_PRODUCER_NETWORK` quota + // in the producer VPC network has been exceeded. + // "ERROR_CONSUMER_QUOTA_EXCEEDED" - The PSC connection propagation failed + // because the `PSC_PROPAGATED_CONNECTIONS_PER_VPC_NETWORK` quota in the + // consumer VPC network has been exceeded. + Code string `json:"code,omitempty"` + // Message: The human-readable summary of the PSC connection propagation + // status. + Message string `json:"message,omitempty"` + // SourceForwardingRule: The name of the forwarding rule exported to the hub. + SourceForwardingRule string `json:"sourceForwardingRule,omitempty"` + // SourceGroup: The name of the group that the source spoke belongs to. + SourceGroup string `json:"sourceGroup,omitempty"` + // SourceSpoke: The name of the spoke that the source forwarding rule belongs + // to. + SourceSpoke string `json:"sourceSpoke,omitempty"` + // TargetGroup: The name of the group that the target spoke belongs to. + TargetGroup string `json:"targetGroup,omitempty"` + // TargetSpoke: The name of the spoke that the source forwarding rule + // propagates to. + TargetSpoke string `json:"targetSpoke,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s PscPropagationStatus) MarshalJSON() ([]byte, error) { + type NoMethod PscPropagationStatus + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// QueryHubStatusResponse: The response for HubService.QueryHubStatus. +type QueryHubStatusResponse struct { + // HubStatusEntries: The list of hub status. + HubStatusEntries []*HubStatusEntry `json:"hubStatusEntries,omitempty"` + // NextPageToken: The token for the next page of the response. To see more + // results, use this value as the page_token for your next request. If this + // value is empty, there are no more results. + 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. "HubStatusEntries") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "HubStatusEntries") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s QueryHubStatusResponse) MarshalJSON() ([]byte, error) { + type NoMethod QueryHubStatusResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // RegionalEndpoint: The RegionalEndpoint resource. type RegionalEndpoint struct { // AccessType: Required. The access type of this regional endpoint. This field @@ -2870,7 +2983,7 @@ func (s RoutingVPC) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ServiceClass: The ServiceClass resource. Next id: 9 +// ServiceClass: The ServiceClass resource. type ServiceClass struct { // CreateTime: Output only. Time when the ServiceClass was created. CreateTime string `json:"createTime,omitempty"` @@ -2913,7 +3026,7 @@ func (s ServiceClass) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ServiceConnectionMap: The ServiceConnectionMap resource. Next id: 15 +// ServiceConnectionMap: The ServiceConnectionMap resource. type ServiceConnectionMap struct { // ConsumerPscConfigs: The PSC configurations on consumer side. ConsumerPscConfigs []*ConsumerPscConfig `json:"consumerPscConfigs,omitempty"` @@ -2977,7 +3090,7 @@ func (s ServiceConnectionMap) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ServiceConnectionPolicy: The ServiceConnectionPolicy resource. Next id: 12 +// ServiceConnectionPolicy: The ServiceConnectionPolicy resource. type ServiceConnectionPolicy struct { // CreateTime: Output only. Time when the ServiceConnectionPolicy was created. CreateTime string `json:"createTime,omitempty"` @@ -3041,7 +3154,7 @@ func (s ServiceConnectionPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ServiceConnectionToken: The ServiceConnectionToken resource. Next id: 10 +// ServiceConnectionToken: The ServiceConnectionToken resource. type ServiceConnectionToken struct { // CreateTime: Output only. Time when the ServiceConnectionToken was created. CreateTime string `json:"createTime,omitempty"` @@ -3152,8 +3265,7 @@ type Spoke struct { // the following form: // `projects/{project_number}/locations/{region}/spokes/{spoke_id}` Name string `json:"name,omitempty"` - // Reasons: Output only. The reasons for current state of the spoke. Only - // present when the spoke is in the `INACTIVE` state. + // Reasons: Output only. The reasons for current state of the spoke. Reasons []*StateReason `json:"reasons,omitempty"` // SpokeType: Output only. The type of resource associated with the spoke. // @@ -3260,6 +3372,11 @@ type SpokeStateReasonCount struct { // "PAUSED" - The spoke has been deactivated internally. // "FAILED" - Network Connectivity Center encountered errors while accepting // the spoke. + // "UPDATE_PENDING_REVIEW" - The proposed spoke update is pending review. + // "UPDATE_REJECTED" - The proposed spoke update has been rejected by the hub + // administrator. + // "UPDATE_FAILED" - Network Connectivity Center encountered errors while + // accepting the spoke update. StateReasonCode string `json:"stateReasonCode,omitempty"` // ForceSendFields is a list of field names (e.g. "Count") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -3358,6 +3475,11 @@ type StateReason struct { // "PAUSED" - The spoke has been deactivated internally. // "FAILED" - Network Connectivity Center encountered errors while accepting // the spoke. + // "UPDATE_PENDING_REVIEW" - The proposed spoke update is pending review. + // "UPDATE_REJECTED" - The proposed spoke update has been rejected by the hub + // administrator. + // "UPDATE_FAILED" - Network Connectivity Center encountered errors while + // accepting the spoke update. Code string `json:"code,omitempty"` // Message: Human-readable details about this reason. Message string `json:"message,omitempty"` @@ -4816,6 +4938,185 @@ func (c *ProjectsLocationsGlobalHubsPatchCall) Do(opts ...googleapi.CallOption) return ret, nil } +type ProjectsLocationsGlobalHubsQueryStatusCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// QueryStatus: Query PSC propagation status the status of a Network +// Connectivity Center hub. +// +// - name: The name of the hub. +func (r *ProjectsLocationsGlobalHubsService) QueryStatus(name string) *ProjectsLocationsGlobalHubsQueryStatusCall { + c := &ProjectsLocationsGlobalHubsQueryStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": An expression that filters the +// list of results. The filter can be used to filter the results by the +// following fields: * psc_propagation_status.source_spoke * +// psc_propagation_status.source_group * +// psc_propagation_status.source_forwarding_rule * +// psc_propagation_status.target_spoke * psc_propagation_status.target_group * +// psc_propagation_status.code * psc_propagation_status.message +func (c *ProjectsLocationsGlobalHubsQueryStatusCall) Filter(filter string) *ProjectsLocationsGlobalHubsQueryStatusCall { + c.urlParams_.Set("filter", filter) + return c +} + +// GroupBy sets the optional parameter "groupBy": A field that counts are +// grouped by. A comma-separated list of any of these fields: * +// psc_propagation_status.source_spoke * psc_propagation_status.source_group * +// psc_propagation_status.source_forwarding_rule * +// psc_propagation_status.target_spoke * psc_propagation_status.target_group * +// psc_propagation_status.code +func (c *ProjectsLocationsGlobalHubsQueryStatusCall) GroupBy(groupBy string) *ProjectsLocationsGlobalHubsQueryStatusCall { + c.urlParams_.Set("groupBy", groupBy) + return c +} + +// OrderBy sets the optional parameter "orderBy": Sort the results in the +// ascending order by specific fields returned in the response. A +// comma-separated list of any of these fields: * +// psc_propagation_status.source_spoke * psc_propagation_status.source_group * +// psc_propagation_status.source_forwarding_rule * +// psc_propagation_status.target_spoke * psc_propagation_status.target_group * +// psc_propagation_status.code If `group_by` is set, the value of the +// `order_by` field must be the same as or a subset of the `group_by` field. +func (c *ProjectsLocationsGlobalHubsQueryStatusCall) OrderBy(orderBy string) *ProjectsLocationsGlobalHubsQueryStatusCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return per page. +func (c *ProjectsLocationsGlobalHubsQueryStatusCall) PageSize(pageSize int64) *ProjectsLocationsGlobalHubsQueryStatusCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The page token. +func (c *ProjectsLocationsGlobalHubsQueryStatusCall) PageToken(pageToken string) *ProjectsLocationsGlobalHubsQueryStatusCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsGlobalHubsQueryStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalHubsQueryStatusCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsGlobalHubsQueryStatusCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalHubsQueryStatusCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGlobalHubsQueryStatusCall) Context(ctx context.Context) *ProjectsLocationsGlobalHubsQueryStatusCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsGlobalHubsQueryStatusCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGlobalHubsQueryStatusCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:queryStatus") + 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 "networkconnectivity.projects.locations.global.hubs.queryStatus" call. +// Any non-2xx status code is an error. Response headers are in either +// *QueryHubStatusResponse.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 *ProjectsLocationsGlobalHubsQueryStatusCall) Do(opts ...googleapi.CallOption) (*QueryHubStatusResponse, 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 := &QueryHubStatusResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsGlobalHubsQueryStatusCall) Pages(ctx context.Context, f func(*QueryHubStatusResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + type ProjectsLocationsGlobalHubsRejectSpokeCall struct { s *Service name string diff --git a/networkconnectivity/v1alpha1/networkconnectivity-api.json b/networkconnectivity/v1alpha1/networkconnectivity-api.json index c8e896d4d63..ea8787a5549 100644 --- a/networkconnectivity/v1alpha1/networkconnectivity-api.json +++ b/networkconnectivity/v1alpha1/networkconnectivity-api.json @@ -1116,7 +1116,7 @@ } } }, - "revision": "20241009", + "revision": "20241030", "rootUrl": "https://networkconnectivity.googleapis.com/", "schemas": { "AuditConfig": { @@ -1382,6 +1382,10 @@ "description": "A description of this resource.", "type": "string" }, + "immutable": { + "description": "Optional. Immutable ranges cannot have their fields modified, except for labels and description.", + "type": "boolean" + }, "ipCidrRange": { "description": "IP range that this internal range defines. NOTE: IPv6 ranges are limited to usage=EXTERNAL_TO_VPC and peering=FOR_SELF. NOTE: For IPv6 Ranges this field is compulsory, i.e. the address range must be specified explicitly.", "type": "string" diff --git a/networkconnectivity/v1alpha1/networkconnectivity-gen.go b/networkconnectivity/v1alpha1/networkconnectivity-gen.go index 520faad1dfa..14207277294 100644 --- a/networkconnectivity/v1alpha1/networkconnectivity-gen.go +++ b/networkconnectivity/v1alpha1/networkconnectivity-gen.go @@ -644,6 +644,9 @@ type InternalRange struct { CreateTime string `json:"createTime,omitempty"` // Description: A description of this resource. Description string `json:"description,omitempty"` + // Immutable: Optional. Immutable ranges cannot have their fields modified, + // except for labels and description. + Immutable bool `json:"immutable,omitempty"` // IpCidrRange: IP range that this internal range defines. NOTE: IPv6 ranges // are limited to usage=EXTERNAL_TO_VPC and peering=FOR_SELF. NOTE: For IPv6 // Ranges this field is compulsory, i.e. the address range must be specified diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json index b9f17ad94e5..70f1a84f7ed 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json @@ -431,11 +431,43 @@ ] } } + }, + "userSessions": { + "methods": { + "generate": { + "description": "This API replaces user authorized OAuth consnet based APIs (Create, Entitle). Generates a short-lived token for a user session based on the user intent. You can use the session token to redirect the user to Google to finish the signup flow. You can re-generate new session token repeatedly for same request if necessary, regardless of the previous tokens being expired or not.", + "flatPath": "v1/partners/{partnersId}/userSessions:generate", + "httpMethod": "POST", + "id": "paymentsresellersubscription.partners.userSessions.generate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent, the partner that can resell. Format: partners/{partner}", + "location": "path", + "pattern": "^partners/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/userSessions:generate", + "request": { + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest" + }, + "response": { + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse" + }, + "scopes": [ + "openid" + ] + } + } } } } }, - "revision": "20240922", + "revision": "20241105", "rootUrl": "https://paymentsresellersubscription.googleapis.com/", "schemas": { "GoogleCloudPaymentsResellerSubscriptionV1Amount": { @@ -506,6 +538,25 @@ }, "type": "object" }, + "GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent": { + "description": "Intent message for creating a Subscription resource.", + "id": "GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent", + "properties": { + "parent": { + "description": "Required. The parent resource name, which is the identifier of the partner.", + "type": "string" + }, + "subscription": { + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription", + "description": "Required. The Subscription to be created." + }, + "subscriptionId": { + "description": "Required. Identifies the subscription resource on the Partner side. The value is restricted to 63 ASCII characters at the maximum. If a subscription was previously created with the same subscription_id, we will directly return that one.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudPaymentsResellerSubscriptionV1Duration": { "description": "Describes the length of a period of a time.", "id": "GoogleCloudPaymentsResellerSubscriptionV1Duration", @@ -534,6 +585,17 @@ }, "type": "object" }, + "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent": { + "description": "Intent for entitling the previously provisioned subscription to an end user.", + "id": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent", + "properties": { + "name": { + "description": "Required. The name of the subscription resource that is entitled to the current end user.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest": { "description": "LINT.IfChange Partner request for entitling the previously provisioned subscription to an end user. The end user identity is inferred from the request OAuth context.", "id": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest", @@ -681,6 +743,28 @@ }, "type": "object" }, + "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest": { + "description": "[Preview only] Request to generate a user session.", + "id": "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest", + "properties": { + "intentPayload": { + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1IntentPayload", + "description": "The user intent to generate the user session." + } + }, + "type": "object" + }, + "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse": { + "description": "[Preview only] Response that contains the details for generated user session.", + "id": "GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse", + "properties": { + "userSession": { + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1UserSession", + "description": "The generated user session. The token size of proportional to the size of the intent payload. Therefore, please be mindful of keeping the request intent payload reasonably small." + } + }, + "type": "object" + }, "GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload": { "description": "Payload specific to Google One products.", "id": "GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload", @@ -735,6 +819,21 @@ }, "type": "object" }, + "GoogleCloudPaymentsResellerSubscriptionV1IntentPayload": { + "description": "The payload that describes the user intent.", + "id": "GoogleCloudPaymentsResellerSubscriptionV1IntentPayload", + "properties": { + "createIntent": { + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent", + "description": "The request to create a subscription." + }, + "entitleIntent": { + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent", + "description": "The request to entitle a subscription." + } + }, + "type": "object" + }, "GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse": { "description": "Response that contains the products.", "id": "GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse", @@ -1406,6 +1505,24 @@ }, "type": "object" }, + "GoogleCloudPaymentsResellerSubscriptionV1UserSession": { + "description": "A user session contains a short-lived token that includes information required to interact with Google Payments Reseller Platform using the following web endpoints. - A user session token should be generated dynamically for an authenticated user. You should refrain from sharing a token directly with a user in an unauthenticated context, such as SMS, or email. - You can re-generate new session tokens repeatedly for same `generate` request if necessary, regardless of the previous tokens being expired or not. You don't need to worry about multiple sessions resulting in duplicate fulfillments as guaranteed by the same subscription id. Please refer to the [Google Managed Signup](/payments/reseller/subscription/reference/index/User.Signup.Integration/Google.Managed.Signup.\\(In.Preview\\)) documentation for additional integration details.", + "id": "GoogleCloudPaymentsResellerSubscriptionV1UserSession", + "properties": { + "expireTime": { + "description": "Output only. The time at which the user session expires.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "token": { + "description": "Output only. The encrypted token of the user session, including the information of the user's intent and request. This token should be provided when redirecting the user to Google.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload": { "description": "Payload specific to Youtube products.", "id": "GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload", diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go index 6aaa21d4dae..1fda41f758b 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go @@ -158,6 +158,7 @@ func NewPartnersService(s *Service) *PartnersService { rs.Products = NewPartnersProductsService(s) rs.Promotions = NewPartnersPromotionsService(s) rs.Subscriptions = NewPartnersSubscriptionsService(s) + rs.UserSessions = NewPartnersUserSessionsService(s) return rs } @@ -169,6 +170,8 @@ type PartnersService struct { Promotions *PartnersPromotionsService Subscriptions *PartnersSubscriptionsService + + UserSessions *PartnersUserSessionsService } func NewPartnersProductsService(s *Service) *PartnersProductsService { @@ -198,6 +201,15 @@ type PartnersSubscriptionsService struct { s *Service } +func NewPartnersUserSessionsService(s *Service) *PartnersUserSessionsService { + rs := &PartnersUserSessionsService{s: s} + return rs +} + +type PartnersUserSessionsService struct { + s *Service +} + // GoogleCloudPaymentsResellerSubscriptionV1Amount: Describes the amount unit // including the currency code. type GoogleCloudPaymentsResellerSubscriptionV1Amount struct { @@ -301,6 +313,37 @@ func (s GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse) Mar return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent: Intent +// message for creating a Subscription resource. +type GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent struct { + // Parent: Required. The parent resource name, which is the identifier of the + // partner. + Parent string `json:"parent,omitempty"` + // Subscription: Required. The Subscription to be created. + Subscription *GoogleCloudPaymentsResellerSubscriptionV1Subscription `json:"subscription,omitempty"` + // SubscriptionId: Required. Identifies the subscription resource on the + // Partner side. The value is restricted to 63 ASCII characters at the maximum. + // If a subscription was previously created with the same subscription_id, we + // will directly return that one. + SubscriptionId string `json:"subscriptionId,omitempty"` + // ForceSendFields is a list of field names (e.g. "Parent") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Parent") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudPaymentsResellerSubscriptionV1Duration: Describes the length of a // period of a time. type GoogleCloudPaymentsResellerSubscriptionV1Duration struct { @@ -333,6 +376,30 @@ func (s GoogleCloudPaymentsResellerSubscriptionV1Duration) MarshalJSON() ([]byte return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent: Intent +// for entitling the previously provisioned subscription to an end user. +type GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent struct { + // Name: Required. The name of the subscription resource that is entitled to + // the current end user. + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest: // LINT.IfChange Partner request for entitling the previously provisioned // subscription to an end user. The end user identity is inferred from the @@ -608,6 +675,58 @@ func (s GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails) Mars return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest: +// [Preview only] Request to generate a user session. +type GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest struct { + // IntentPayload: The user intent to generate the user session. + IntentPayload *GoogleCloudPaymentsResellerSubscriptionV1IntentPayload `json:"intentPayload,omitempty"` + // ForceSendFields is a list of field names (e.g. "IntentPayload") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "IntentPayload") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse: +// [Preview only] Response that contains the details for generated user +// session. +type GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse struct { + // UserSession: The generated user session. The token size of proportional to + // the size of the intent payload. Therefore, please be mindful of keeping the + // request intent payload reasonably small. + UserSession *GoogleCloudPaymentsResellerSubscriptionV1UserSession `json:"userSession,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "UserSession") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "UserSession") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload: Payload specific // to Google One products. type GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload struct { @@ -661,6 +780,31 @@ func (s GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload) MarshalJSON() return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudPaymentsResellerSubscriptionV1IntentPayload: The payload that +// describes the user intent. +type GoogleCloudPaymentsResellerSubscriptionV1IntentPayload struct { + // CreateIntent: The request to create a subscription. + CreateIntent *GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent `json:"createIntent,omitempty"` + // EntitleIntent: The request to entitle a subscription. + EntitleIntent *GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent `json:"entitleIntent,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateIntent") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CreateIntent") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudPaymentsResellerSubscriptionV1IntentPayload) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudPaymentsResellerSubscriptionV1IntentPayload + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse: Response that // contains the products. type GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse struct { @@ -1428,6 +1572,45 @@ func (s GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse) return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudPaymentsResellerSubscriptionV1UserSession: A user session +// contains a short-lived token that includes information required to interact +// with Google Payments Reseller Platform using the following web endpoints. - +// A user session token should be generated dynamically for an authenticated +// user. You should refrain from sharing a token directly with a user in an +// unauthenticated context, such as SMS, or email. - You can re-generate new +// session tokens repeatedly for same `generate` request if necessary, +// regardless of the previous tokens being expired or not. You don't need to +// worry about multiple sessions resulting in duplicate fulfillments as +// guaranteed by the same subscription id. Please refer to the Google Managed +// Signup +// (/payments/reseller/subscription/reference/index/User.Signup.Integration/Goog +// le.Managed.Signup.\(In.Preview\)) documentation for additional integration +// details. +type GoogleCloudPaymentsResellerSubscriptionV1UserSession struct { + // ExpireTime: Output only. The time at which the user session expires. + ExpireTime string `json:"expireTime,omitempty"` + // Token: Output only. The encrypted token of the user session, including the + // information of the user's intent and request. This token should be provided + // when redirecting the user to Google. + Token string `json:"token,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExpireTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ExpireTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudPaymentsResellerSubscriptionV1UserSession) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudPaymentsResellerSubscriptionV1UserSession + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload: Payload specific to // Youtube products. type GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload struct { @@ -2777,3 +2960,111 @@ func (c *PartnersSubscriptionsUndoCancelCall) Do(opts ...googleapi.CallOption) ( } return ret, nil } + +type PartnersUserSessionsGenerateCall struct { + s *Service + parent string + googlecloudpaymentsresellersubscriptionv1generateusersessionrequest *GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Generate: This API replaces user authorized OAuth consnet based APIs +// (Create, Entitle). Generates a short-lived token for a user session based on +// the user intent. You can use the session token to redirect the user to +// Google to finish the signup flow. You can re-generate new session token +// repeatedly for same request if necessary, regardless of the previous tokens +// being expired or not. +// +// - parent: The parent, the partner that can resell. Format: +// partners/{partner}. +func (r *PartnersUserSessionsService) Generate(parent string, googlecloudpaymentsresellersubscriptionv1generateusersessionrequest *GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest) *PartnersUserSessionsGenerateCall { + c := &PartnersUserSessionsGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudpaymentsresellersubscriptionv1generateusersessionrequest = googlecloudpaymentsresellersubscriptionv1generateusersessionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *PartnersUserSessionsGenerateCall) Fields(s ...googleapi.Field) *PartnersUserSessionsGenerateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *PartnersUserSessionsGenerateCall) Context(ctx context.Context) *PartnersUserSessionsGenerateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *PartnersUserSessionsGenerateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PartnersUserSessionsGenerateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudpaymentsresellersubscriptionv1generateusersessionrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/userSessions:generate") + 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 "paymentsresellersubscription.partners.userSessions.generate" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse.ServerR +// esponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *PartnersUserSessionsGenerateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse, 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 := &GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse{ + 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 +} diff --git a/places/v1/places-api.json b/places/v1/places-api.json index 0a4477c3f41..56216204465 100644 --- a/places/v1/places-api.json +++ b/places/v1/places-api.json @@ -280,7 +280,7 @@ } } }, - "revision": "20241029", + "revision": "20241106", "rootUrl": "https://places.googleapis.com/", "schemas": { "GoogleGeoTypeViewport": { @@ -435,6 +435,10 @@ "description": "Request proto for AutocompletePlaces.", "id": "GoogleMapsPlacesV1AutocompletePlacesRequest", "properties": { + "includePureServiceAreaBusinesses": { + "description": "Optional. Include pure service area businesses if the field is set to true. Pure service area business is a business that visits or delivers to customers directly but does not serve customers at their business address. For example, businesses like cleaning services or plumbers. Those businesses do not have a physical address or location on Google Maps. Places will not return fields including `location`, `plus_code`, and other location related fields for these businesses.", + "type": "boolean" + }, "includeQueryPredictions": { "description": "Optional. If true, the response will include both Place and query predictions. Otherwise the response will only return Place predictions.", "type": "boolean" @@ -1036,6 +1040,7 @@ "type": "array" }, "businessStatus": { + "description": "The business status for the place.", "enum": [ "BUSINESS_STATUS_UNSPECIFIED", "OPERATIONAL", @@ -1050,6 +1055,13 @@ ], "type": "string" }, + "containingPlaces": { + "description": "List of places in which the current place is located.", + "items": { + "$ref": "GoogleMapsPlacesV1PlaceContainingPlace" + }, + "type": "array" + }, "curbsidePickup": { "description": "Specifies if the business supports curbside pickup.", "type": "boolean" @@ -1196,6 +1208,10 @@ ], "type": "string" }, + "priceRange": { + "$ref": "GoogleMapsPlacesV1PriceRange", + "description": "The price range associated with a Place." + }, "primaryType": { "description": "The primary type of the given result. This type must one of the Places API supported types. For example, \"restaurant\", \"cafe\", \"airport\", etc. A place can only have a single primary type. For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types", "type": "string" @@ -1204,6 +1220,10 @@ "$ref": "GoogleTypeLocalizedText", "description": "The display name of the primary type, localized to the request language if applicable. For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types" }, + "pureServiceAreaBusiness": { + "description": "Indicates whether the place is a pure service area business. Pure service area business is a business that visits or delivers to customers directly but does not serve customers at their business address. For example, businesses like cleaning services or plumbers. Those businesses may not have a physical address or location on Google Maps.", + "type": "boolean" + }, "rating": { "description": "A rating between 1.0 and 5.0, based on user reviews of this place.", "format": "double", @@ -1400,6 +1420,21 @@ }, "type": "object" }, + "GoogleMapsPlacesV1PlaceContainingPlace": { + "description": "Info about the place in which this place is located.", + "id": "GoogleMapsPlacesV1PlaceContainingPlace", + "properties": { + "id": { + "description": "The place id of the place in which this place is located.", + "type": "string" + }, + "name": { + "description": "The resource name of the place in which this place is located.", + "type": "string" + } + }, + "type": "object" + }, "GoogleMapsPlacesV1PlaceGenerativeSummary": { "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. AI-generated summary of the place.", "id": "GoogleMapsPlacesV1PlaceGenerativeSummary", @@ -1458,6 +1493,16 @@ "description": "Information about business hour of the place.", "id": "GoogleMapsPlacesV1PlaceOpeningHours", "properties": { + "nextCloseTime": { + "description": "The next time the current opening hours period ends up to 7 days in the future. This field is only populated if the opening hours period is active at the time of serving the request.", + "format": "google-datetime", + "type": "string" + }, + "nextOpenTime": { + "description": "The next time the current opening hours period starts up to 7 days in the future. This field is only populated if the opening hours period is not active at the time of serving the request.", + "format": "google-datetime", + "type": "string" + }, "openNow": { "description": "Whether the opening hours period is currently active. For regular opening hours and current opening hours, this field means whether the place is open. For secondary opening hours and current secondary opening hours, this field means whether the secondary hours of this place is active.", "type": "boolean" @@ -1677,6 +1722,21 @@ }, "type": "object" }, + "GoogleMapsPlacesV1PriceRange": { + "description": "The price range associated with a Place. `end_price` could be unset, which indicates a range without upper bound (e.g. \"More than $100\").", + "id": "GoogleMapsPlacesV1PriceRange", + "properties": { + "endPrice": { + "$ref": "GoogleTypeMoney", + "description": "The high end of the price range (exclusive). Price should be lower than this amount." + }, + "startPrice": { + "$ref": "GoogleTypeMoney", + "description": "The low end of the price range (inclusive). Price should be at or above this amount." + } + }, + "type": "object" + }, "GoogleMapsPlacesV1References": { "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. Reference that the generative content is related to.", "id": "GoogleMapsPlacesV1References", @@ -1960,6 +2020,10 @@ "$ref": "GoogleMapsPlacesV1SearchTextRequestEVOptions", "description": "Optional. Set the searchable EV options of a place search request." }, + "includePureServiceAreaBusinesses": { + "description": "Optional. Include pure service area businesses if the field is set to true. Pure service area business is a business that visits or delivers to customers directly but does not serve customers at their business address. For example, businesses like cleaning services or plumbers. Those businesses do not have a physical address or location on Google Maps. Places will not return fields including `location`, `plus_code`, and other location related fields for these businesses.", + "type": "boolean" + }, "includedType": { "description": "The requested place type. Full list of types supported: https://developers.google.com/maps/documentation/places/web-service/place-types. Only support one included type.", "type": "string" diff --git a/places/v1/places-gen.go b/places/v1/places-gen.go index b7d14392b2d..d3003303623 100644 --- a/places/v1/places-gen.go +++ b/places/v1/places-gen.go @@ -420,6 +420,14 @@ func (s GoogleMapsPlacesV1AuthorAttribution) MarshalJSON() ([]byte, error) { // GoogleMapsPlacesV1AutocompletePlacesRequest: Request proto for // AutocompletePlaces. type GoogleMapsPlacesV1AutocompletePlacesRequest struct { + // IncludePureServiceAreaBusinesses: Optional. Include pure service area + // businesses if the field is set to true. Pure service area business is a + // business that visits or delivers to customers directly but does not serve + // customers at their business address. For example, businesses like cleaning + // services or plumbers. Those businesses do not have a physical address or + // location on Google Maps. Places will not return fields including `location`, + // `plus_code`, and other location related fields for these businesses. + IncludePureServiceAreaBusinesses bool `json:"includePureServiceAreaBusinesses,omitempty"` // IncludeQueryPredictions: Optional. If true, the response will include both // Place and query predictions. Otherwise the response will only return Place // predictions. @@ -489,16 +497,18 @@ type GoogleMapsPlacesV1AutocompletePlacesRequest struct { // a unique session token for each new session. Using the same token for more // than one session will result in each request being billed individually. SessionToken string `json:"sessionToken,omitempty"` - // ForceSendFields is a list of field names (e.g. "IncludeQueryPredictions") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See + // ForceSendFields is a list of field names (e.g. + // "IncludePureServiceAreaBusinesses") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "IncludeQueryPredictions") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + // NullFields is a list of field names (e.g. + // "IncludePureServiceAreaBusinesses") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for + // more details. NullFields []string `json:"-"` } @@ -1309,6 +1319,8 @@ type GoogleMapsPlacesV1Place struct { AreaSummary *GoogleMapsPlacesV1PlaceAreaSummary `json:"areaSummary,omitempty"` // Attributions: A set of data provider that must be shown with this result. Attributions []*GoogleMapsPlacesV1PlaceAttribution `json:"attributions,omitempty"` + // BusinessStatus: The business status for the place. + // // Possible values: // "BUSINESS_STATUS_UNSPECIFIED" - Default value. This value is unused. // "OPERATIONAL" - The establishment is operational, not necessarily open @@ -1316,6 +1328,8 @@ type GoogleMapsPlacesV1Place struct { // "CLOSED_TEMPORARILY" - The establishment is temporarily closed. // "CLOSED_PERMANENTLY" - The establishment is permanently closed. BusinessStatus string `json:"businessStatus,omitempty"` + // ContainingPlaces: List of places in which the current place is located. + ContainingPlaces []*GoogleMapsPlacesV1PlaceContainingPlace `json:"containingPlaces,omitempty"` // CurbsidePickup: Specifies if the business supports curbside pickup. CurbsidePickup bool `json:"curbsidePickup,omitempty"` // CurrentOpeningHours: The hours of operation for the next seven days @@ -1414,6 +1428,8 @@ type GoogleMapsPlacesV1Place struct { // "PRICE_LEVEL_EXPENSIVE" - Place provides expensive services. // "PRICE_LEVEL_VERY_EXPENSIVE" - Place provides very expensive services. PriceLevel string `json:"priceLevel,omitempty"` + // PriceRange: The price range associated with a Place. + PriceRange *GoogleMapsPlacesV1PriceRange `json:"priceRange,omitempty"` // PrimaryType: The primary type of the given result. This type must one of the // Places API supported types. For example, "restaurant", "cafe", "airport", // etc. A place can only have a single primary type. For the complete list of @@ -1425,6 +1441,12 @@ type GoogleMapsPlacesV1Place struct { // values, see Table A and Table B at // https://developers.google.com/maps/documentation/places/web-service/place-types PrimaryTypeDisplayName *GoogleTypeLocalizedText `json:"primaryTypeDisplayName,omitempty"` + // PureServiceAreaBusiness: Indicates whether the place is a pure service area + // business. Pure service area business is a business that visits or delivers + // to customers directly but does not serve customers at their business + // address. For example, businesses like cleaning services or plumbers. Those + // businesses may not have a physical address or location on Google Maps. + PureServiceAreaBusiness bool `json:"pureServiceAreaBusiness,omitempty"` // Rating: A rating between 1.0 and 5.0, based on user reviews of this place. Rating float64 `json:"rating,omitempty"` // RegularOpeningHours: The regular hours of operation. @@ -1639,6 +1661,31 @@ func (s GoogleMapsPlacesV1PlaceAttribution) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleMapsPlacesV1PlaceContainingPlace: Info about the place in which this +// place is located. +type GoogleMapsPlacesV1PlaceContainingPlace struct { + // Id: The place id of the place in which this place is located. + Id string `json:"id,omitempty"` + // Name: The resource name of the place in which this place is located. + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1PlaceContainingPlace) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1PlaceContainingPlace + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleMapsPlacesV1PlaceGenerativeSummary: Experimental: See // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative // for more details. AI-generated summary of the place. @@ -1714,6 +1761,14 @@ func (s GoogleMapsPlacesV1PlaceGoogleMapsLinks) MarshalJSON() ([]byte, error) { // GoogleMapsPlacesV1PlaceOpeningHours: Information about business hour of the // place. type GoogleMapsPlacesV1PlaceOpeningHours struct { + // NextCloseTime: The next time the current opening hours period ends up to 7 + // days in the future. This field is only populated if the opening hours period + // is active at the time of serving the request. + NextCloseTime string `json:"nextCloseTime,omitempty"` + // NextOpenTime: The next time the current opening hours period starts up to 7 + // days in the future. This field is only populated if the opening hours period + // is not active at the time of serving the request. + NextOpenTime string `json:"nextOpenTime,omitempty"` // OpenNow: Whether the opening hours period is currently active. For regular // opening hours and current opening hours, this field means whether the place // is open. For secondary opening hours and current secondary opening hours, @@ -1756,13 +1811,13 @@ type GoogleMapsPlacesV1PlaceOpeningHours struct { // unknown or could not be converted to localized text. Example: "Sun: // 18:00–06:00" WeekdayDescriptions []string `json:"weekdayDescriptions,omitempty"` - // ForceSendFields is a list of field names (e.g. "OpenNow") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "NextCloseTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "OpenNow") to include in API + // NullFields is a list of field names (e.g. "NextCloseTime") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -2014,6 +2069,34 @@ func (s GoogleMapsPlacesV1Polyline) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleMapsPlacesV1PriceRange: The price range associated with a Place. +// `end_price` could be unset, which indicates a range without upper bound +// (e.g. "More than $100"). +type GoogleMapsPlacesV1PriceRange struct { + // EndPrice: The high end of the price range (exclusive). Price should be lower + // than this amount. + EndPrice *GoogleTypeMoney `json:"endPrice,omitempty"` + // StartPrice: The low end of the price range (inclusive). Price should be at + // or above this amount. + StartPrice *GoogleTypeMoney `json:"startPrice,omitempty"` + // ForceSendFields is a list of field names (e.g. "EndPrice") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EndPrice") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1PriceRange) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1PriceRange + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleMapsPlacesV1References: Experimental: See // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative // for more details. Reference that the generative content is related to. @@ -2432,6 +2515,14 @@ type GoogleMapsPlacesV1SearchTextRequest struct { // EvOptions: Optional. Set the searchable EV options of a place search // request. EvOptions *GoogleMapsPlacesV1SearchTextRequestEVOptions `json:"evOptions,omitempty"` + // IncludePureServiceAreaBusinesses: Optional. Include pure service area + // businesses if the field is set to true. Pure service area business is a + // business that visits or delivers to customers directly but does not serve + // customers at their business address. For example, businesses like cleaning + // services or plumbers. Those businesses do not have a physical address or + // location on Google Maps. Places will not return fields including `location`, + // `plus_code`, and other location related fields for these businesses. + IncludePureServiceAreaBusinesses bool `json:"includePureServiceAreaBusinesses,omitempty"` // IncludedType: The requested place type. Full list of types supported: // https://developers.google.com/maps/documentation/places/web-service/place-types. // Only support one included type. diff --git a/servicenetworking/v1/servicenetworking-api.json b/servicenetworking/v1/servicenetworking-api.json index 35d679b8fc2..b72752a9d93 100644 --- a/servicenetworking/v1/servicenetworking-api.json +++ b/servicenetworking/v1/servicenetworking-api.json @@ -1029,7 +1029,7 @@ } } }, - "revision": "20241103", + "revision": "20241105", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -2194,6 +2194,10 @@ "description": "Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default.", "id": "ExperimentalFeatures", "properties": { + "protobufPythonicTypesEnabled": { + "description": "Enables generation of protobuf code using new types that are more Pythonic which are included in `protobuf\u003e=5.29.x`. This feature will be enabled by default 1 month after launching the feature in preview packages.", + "type": "boolean" + }, "restAsyncIoEnabled": { "description": "Enables generation of asynchronous REST clients if `rest` transport is enabled. By default, asynchronous REST clients will not be generated. This feature will be enabled by default 1 month after launching the feature in preview packages.", "type": "boolean" diff --git a/servicenetworking/v1/servicenetworking-gen.go b/servicenetworking/v1/servicenetworking-gen.go index 0af44d6b730..b053012fc7c 100644 --- a/servicenetworking/v1/servicenetworking-gen.go +++ b/servicenetworking/v1/servicenetworking-gen.go @@ -1956,20 +1956,25 @@ func (s EnumValue) MarshalJSON() ([]byte, error) { // library generation. These fields will be deprecated once the feature // graduates and is enabled by default. type ExperimentalFeatures struct { + // ProtobufPythonicTypesEnabled: Enables generation of protobuf code using new + // types that are more Pythonic which are included in `protobuf>=5.29.x`. This + // feature will be enabled by default 1 month after launching the feature in + // preview packages. + ProtobufPythonicTypesEnabled bool `json:"protobufPythonicTypesEnabled,omitempty"` // RestAsyncIoEnabled: Enables generation of asynchronous REST clients if // `rest` transport is enabled. By default, asynchronous REST clients will not // be generated. This feature will be enabled by default 1 month after // launching the feature in preview packages. RestAsyncIoEnabled bool `json:"restAsyncIoEnabled,omitempty"` - // ForceSendFields is a list of field names (e.g. "RestAsyncIoEnabled") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. + // ForceSendFields is a list of field names (e.g. + // "ProtobufPythonicTypesEnabled") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RestAsyncIoEnabled") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "ProtobufPythonicTypesEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } diff --git a/servicenetworking/v1beta/servicenetworking-api.json b/servicenetworking/v1beta/servicenetworking-api.json index 87f1982b684..9db1d476aab 100644 --- a/servicenetworking/v1beta/servicenetworking-api.json +++ b/servicenetworking/v1beta/servicenetworking-api.json @@ -307,7 +307,7 @@ } } }, - "revision": "20241103", + "revision": "20241105", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -1289,6 +1289,10 @@ "description": "Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default.", "id": "ExperimentalFeatures", "properties": { + "protobufPythonicTypesEnabled": { + "description": "Enables generation of protobuf code using new types that are more Pythonic which are included in `protobuf\u003e=5.29.x`. This feature will be enabled by default 1 month after launching the feature in preview packages.", + "type": "boolean" + }, "restAsyncIoEnabled": { "description": "Enables generation of asynchronous REST clients if `rest` transport is enabled. By default, asynchronous REST clients will not be generated. This feature will be enabled by default 1 month after launching the feature in preview packages.", "type": "boolean" diff --git a/servicenetworking/v1beta/servicenetworking-gen.go b/servicenetworking/v1beta/servicenetworking-gen.go index 668142d12b3..bc2586bfb09 100644 --- a/servicenetworking/v1beta/servicenetworking-gen.go +++ b/servicenetworking/v1beta/servicenetworking-gen.go @@ -1544,20 +1544,25 @@ func (s EnumValue) MarshalJSON() ([]byte, error) { // library generation. These fields will be deprecated once the feature // graduates and is enabled by default. type ExperimentalFeatures struct { + // ProtobufPythonicTypesEnabled: Enables generation of protobuf code using new + // types that are more Pythonic which are included in `protobuf>=5.29.x`. This + // feature will be enabled by default 1 month after launching the feature in + // preview packages. + ProtobufPythonicTypesEnabled bool `json:"protobufPythonicTypesEnabled,omitempty"` // RestAsyncIoEnabled: Enables generation of asynchronous REST clients if // `rest` transport is enabled. By default, asynchronous REST clients will not // be generated. This feature will be enabled by default 1 month after // launching the feature in preview packages. RestAsyncIoEnabled bool `json:"restAsyncIoEnabled,omitempty"` - // ForceSendFields is a list of field names (e.g. "RestAsyncIoEnabled") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. + // ForceSendFields is a list of field names (e.g. + // "ProtobufPythonicTypesEnabled") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RestAsyncIoEnabled") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "ProtobufPythonicTypesEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }