diff --git a/api_names_out.yaml b/api_names_out.yaml index b610f55d4..fd7538823 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -288,6 +288,11 @@ "/accesscontextmanager:v1/Expr/expression": expression "/accesscontextmanager:v1/Expr/location": location "/accesscontextmanager:v1/Expr/title": title +"/accesscontextmanager:v1/GcpUserAccessBinding": gcp_user_access_binding +"/accesscontextmanager:v1/GcpUserAccessBinding/accessLevels": access_levels +"/accesscontextmanager:v1/GcpUserAccessBinding/accessLevels/access_level": access_level +"/accesscontextmanager:v1/GcpUserAccessBinding/groupKey": group_key +"/accesscontextmanager:v1/GcpUserAccessBinding/name": name "/accesscontextmanager:v1/ListAccessLevelsResponse": list_access_levels_response "/accesscontextmanager:v1/ListAccessLevelsResponse/accessLevels": access_levels "/accesscontextmanager:v1/ListAccessLevelsResponse/accessLevels/access_level": access_level @@ -296,6 +301,10 @@ "/accesscontextmanager:v1/ListAccessPoliciesResponse/accessPolicies": access_policies "/accesscontextmanager:v1/ListAccessPoliciesResponse/accessPolicies/access_policy": access_policy "/accesscontextmanager:v1/ListAccessPoliciesResponse/nextPageToken": next_page_token +"/accesscontextmanager:v1/ListGcpUserAccessBindingsResponse": list_gcp_user_access_bindings_response +"/accesscontextmanager:v1/ListGcpUserAccessBindingsResponse/gcpUserAccessBindings": gcp_user_access_bindings +"/accesscontextmanager:v1/ListGcpUserAccessBindingsResponse/gcpUserAccessBindings/gcp_user_access_binding": gcp_user_access_binding +"/accesscontextmanager:v1/ListGcpUserAccessBindingsResponse/nextPageToken": next_page_token "/accesscontextmanager:v1/ListOperationsResponse": list_operations_response "/accesscontextmanager:v1/ListOperationsResponse/nextPageToken": next_page_token "/accesscontextmanager:v1/ListOperationsResponse/operations": operations @@ -415,6 +424,19 @@ "/accesscontextmanager:v1/accesscontextmanager.operations.list/name": name "/accesscontextmanager:v1/accesscontextmanager.operations.list/pageSize": page_size "/accesscontextmanager:v1/accesscontextmanager.operations.list/pageToken": page_token +"/accesscontextmanager:v1/accesscontextmanager.organizations.gcpUserAccessBindings.create": create_organization_gcp_user_access_binding +"/accesscontextmanager:v1/accesscontextmanager.organizations.gcpUserAccessBindings.create/parent": parent +"/accesscontextmanager:v1/accesscontextmanager.organizations.gcpUserAccessBindings.delete": delete_organization_gcp_user_access_binding +"/accesscontextmanager:v1/accesscontextmanager.organizations.gcpUserAccessBindings.delete/name": name +"/accesscontextmanager:v1/accesscontextmanager.organizations.gcpUserAccessBindings.get": get_organization_gcp_user_access_binding +"/accesscontextmanager:v1/accesscontextmanager.organizations.gcpUserAccessBindings.get/name": name +"/accesscontextmanager:v1/accesscontextmanager.organizations.gcpUserAccessBindings.list": list_organization_gcp_user_access_bindings +"/accesscontextmanager:v1/accesscontextmanager.organizations.gcpUserAccessBindings.list/pageSize": page_size +"/accesscontextmanager:v1/accesscontextmanager.organizations.gcpUserAccessBindings.list/pageToken": page_token +"/accesscontextmanager:v1/accesscontextmanager.organizations.gcpUserAccessBindings.list/parent": parent +"/accesscontextmanager:v1/accesscontextmanager.organizations.gcpUserAccessBindings.patch": patch_organization_gcp_user_access_binding +"/accesscontextmanager:v1/accesscontextmanager.organizations.gcpUserAccessBindings.patch/name": name +"/accesscontextmanager:v1/accesscontextmanager.organizations.gcpUserAccessBindings.patch/updateMask": update_mask "/accesscontextmanager:v1/fields": fields "/accesscontextmanager:v1/key": key "/accesscontextmanager:v1/quotaUser": quota_user @@ -84098,6 +84120,9 @@ "/dialogflow:v2/GoogleCloudDialogflowV2ImportAgentRequest": google_cloud_dialogflow_v2_import_agent_request "/dialogflow:v2/GoogleCloudDialogflowV2ImportAgentRequest/agentContent": agent_content "/dialogflow:v2/GoogleCloudDialogflowV2ImportAgentRequest/agentUri": agent_uri +"/dialogflow:v2/GoogleCloudDialogflowV2ImportDocumentsResponse": google_cloud_dialogflow_v2_import_documents_response +"/dialogflow:v2/GoogleCloudDialogflowV2ImportDocumentsResponse/warnings": warnings +"/dialogflow:v2/GoogleCloudDialogflowV2ImportDocumentsResponse/warnings/warning": warning "/dialogflow:v2/GoogleCloudDialogflowV2InputAudioConfig": google_cloud_dialogflow_v2_input_audio_config "/dialogflow:v2/GoogleCloudDialogflowV2InputAudioConfig/audioEncoding": audio_encoding "/dialogflow:v2/GoogleCloudDialogflowV2InputAudioConfig/enableWordInfo": enable_word_info @@ -84483,6 +84508,9 @@ "/dialogflow:v2/GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent": google_cloud_dialogflow_v2beta1_human_agent_assistant_event "/dialogflow:v2/GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent/conversation": conversation "/dialogflow:v2/GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent/type": type +"/dialogflow:v2/GoogleCloudDialogflowV2beta1ImportDocumentsResponse": google_cloud_dialogflow_v2beta1_import_documents_response +"/dialogflow:v2/GoogleCloudDialogflowV2beta1ImportDocumentsResponse/warnings": warnings +"/dialogflow:v2/GoogleCloudDialogflowV2beta1ImportDocumentsResponse/warnings/warning": warning "/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent": google_cloud_dialogflow_v2beta1_intent "/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/action": action "/dialogflow:v2/GoogleCloudDialogflowV2beta1Intent/defaultResponsePlatforms": default_response_platforms @@ -85243,6 +85271,9 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2ExportAgentResponse": google_cloud_dialogflow_v2_export_agent_response "/dialogflow:v2beta1/GoogleCloudDialogflowV2ExportAgentResponse/agentContent": agent_content "/dialogflow:v2beta1/GoogleCloudDialogflowV2ExportAgentResponse/agentUri": agent_uri +"/dialogflow:v2beta1/GoogleCloudDialogflowV2ImportDocumentsResponse": google_cloud_dialogflow_v2_import_documents_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV2ImportDocumentsResponse/warnings": warnings +"/dialogflow:v2beta1/GoogleCloudDialogflowV2ImportDocumentsResponse/warnings/warning": warning "/dialogflow:v2beta1/GoogleCloudDialogflowV2Intent": google_cloud_dialogflow_v2_intent "/dialogflow:v2beta1/GoogleCloudDialogflowV2Intent/action": action "/dialogflow:v2beta1/GoogleCloudDialogflowV2Intent/defaultResponsePlatforms": default_response_platforms @@ -85694,6 +85725,9 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ImportAgentRequest": google_cloud_dialogflow_v2beta1_import_agent_request "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ImportAgentRequest/agentContent": agent_content "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ImportAgentRequest/agentUri": agent_uri +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ImportDocumentsResponse": google_cloud_dialogflow_v2beta1_import_documents_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ImportDocumentsResponse/warnings": warnings +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ImportDocumentsResponse/warnings/warning": warning "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudio": google_cloud_dialogflow_v2beta1_input_audio "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudio/audio": audio "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1InputAudio/config": config @@ -87240,6 +87274,7 @@ "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1MatchIntentResponse/matches/match": match "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1MatchIntentResponse/text": text "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1MatchIntentResponse/transcript": transcript +"/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1MatchIntentResponse/triggerEvent": trigger_event "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1MatchIntentResponse/triggerIntent": trigger_intent "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1NluSettings": google_cloud_dialogflow_cx_v3beta1_nlu_settings "/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1NluSettings/classificationThreshold": classification_threshold @@ -87482,6 +87517,9 @@ "/dialogflow:v3beta1/GoogleCloudDialogflowV2ExportAgentResponse": google_cloud_dialogflow_v2_export_agent_response "/dialogflow:v3beta1/GoogleCloudDialogflowV2ExportAgentResponse/agentContent": agent_content "/dialogflow:v3beta1/GoogleCloudDialogflowV2ExportAgentResponse/agentUri": agent_uri +"/dialogflow:v3beta1/GoogleCloudDialogflowV2ImportDocumentsResponse": google_cloud_dialogflow_v2_import_documents_response +"/dialogflow:v3beta1/GoogleCloudDialogflowV2ImportDocumentsResponse/warnings": warnings +"/dialogflow:v3beta1/GoogleCloudDialogflowV2ImportDocumentsResponse/warnings/warning": warning "/dialogflow:v3beta1/GoogleCloudDialogflowV2Intent": google_cloud_dialogflow_v2_intent "/dialogflow:v3beta1/GoogleCloudDialogflowV2Intent/action": action "/dialogflow:v3beta1/GoogleCloudDialogflowV2Intent/defaultResponsePlatforms": default_response_platforms @@ -87772,6 +87810,9 @@ "/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1ExportAgentResponse": google_cloud_dialogflow_v2beta1_export_agent_response "/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1ExportAgentResponse/agentContent": agent_content "/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1ExportAgentResponse/agentUri": agent_uri +"/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1ImportDocumentsResponse": google_cloud_dialogflow_v2beta1_import_documents_response +"/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1ImportDocumentsResponse/warnings": warnings +"/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1ImportDocumentsResponse/warnings/warning": warning "/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1Intent": google_cloud_dialogflow_v2beta1_intent "/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1Intent/action": action "/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1Intent/defaultResponsePlatforms": default_response_platforms diff --git a/generated/google/apis/accesscontextmanager_v1.rb b/generated/google/apis/accesscontextmanager_v1.rb index fb1f16e0c..2c9a646af 100644 --- a/generated/google/apis/accesscontextmanager_v1.rb +++ b/generated/google/apis/accesscontextmanager_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/access-context-manager/docs/reference/rest/ module AccesscontextmanagerV1 VERSION = 'V1' - REVISION = '20200825' + REVISION = '20200927' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/accesscontextmanager_v1/classes.rb b/generated/google/apis/accesscontextmanager_v1/classes.rb index bd3a56a07..fdb4e18fc 100644 --- a/generated/google/apis/accesscontextmanager_v1/classes.rb +++ b/generated/google/apis/accesscontextmanager_v1/classes.rb @@ -446,6 +446,49 @@ module Google end end + # Restricts access to Cloud Console and Google Cloud APIs for a set of users + # using Context-Aware Access. + class GcpUserAccessBinding + include Google::Apis::Core::Hashable + + # Required. Access level that a user must have to be granted access. Only one + # access level is supported, not multiple. This repeated field must have exactly + # one element. Example: "accessPolicies/9522/accessLevels/device_trusted" + # Corresponds to the JSON property `accessLevels` + # @return [Array] + attr_accessor :access_levels + + # Required. Immutable. Google Group id whose members are subject to this binding' + # s restrictions. See "id" in the [G Suite Directory API's Groups resource] ( + # https://developers.google.com/admin-sdk/directory/v1/reference/groups#resource) + # . If a group's email address/alias is changed, this resource will continue to + # point at the changed group. This field does not accept group email addresses + # or aliases. Example: "01d520gv4vjcrht" + # Corresponds to the JSON property `groupKey` + # @return [String] + attr_accessor :group_key + + # Immutable. Assigned by the server during creation. The last segment has an + # arbitrary length and has only URI unreserved characters (as defined by [RFC + # 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should + # not be specified by the client during creation. Example: "organizations/256/ + # gcpUserAccessBindings/b3-BhcX_Ud5N" + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @access_levels = args[:access_levels] if args.key?(:access_levels) + @group_key = args[:group_key] if args.key?(:group_key) + @name = args[:name] if args.key?(:name) + end + end + # A response to `ListAccessLevelsRequest`. class ListAccessLevelsResponse include Google::Apis::Core::Hashable @@ -498,6 +541,31 @@ module Google end end + # Response of ListGcpUserAccessBindings. + class ListGcpUserAccessBindingsResponse + include Google::Apis::Core::Hashable + + # GcpUserAccessBinding + # Corresponds to the JSON property `gcpUserAccessBindings` + # @return [Array] + attr_accessor :gcp_user_access_bindings + + # Token to get the next page of items. If blank, there are no more items. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcp_user_access_bindings = args[:gcp_user_access_bindings] if args.key?(:gcp_user_access_bindings) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # The response message for Operations.ListOperations. class ListOperationsResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/accesscontextmanager_v1/representations.rb b/generated/google/apis/accesscontextmanager_v1/representations.rb index b42ac38c8..73c7efd19 100644 --- a/generated/google/apis/accesscontextmanager_v1/representations.rb +++ b/generated/google/apis/accesscontextmanager_v1/representations.rb @@ -88,6 +88,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GcpUserAccessBinding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListAccessLevelsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -100,6 +106,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListGcpUserAccessBindingsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListOperationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -275,6 +287,15 @@ module Google end end + class GcpUserAccessBinding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :access_levels, as: 'accessLevels' + property :group_key, as: 'groupKey' + property :name, as: 'name' + end + end + class ListAccessLevelsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -293,6 +314,15 @@ module Google end end + class ListGcpUserAccessBindingsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :gcp_user_access_bindings, as: 'gcpUserAccessBindings', class: Google::Apis::AccesscontextmanagerV1::GcpUserAccessBinding, decorator: Google::Apis::AccesscontextmanagerV1::GcpUserAccessBinding::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class ListOperationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/accesscontextmanager_v1/service.rb b/generated/google/apis/accesscontextmanager_v1/service.rb index 42e4dccec..d920b26bb 100644 --- a/generated/google/apis/accesscontextmanager_v1/service.rb +++ b/generated/google/apis/accesscontextmanager_v1/service.rb @@ -870,6 +870,186 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Creates a GcpUserAccessBinding. If the client specifies a name, the server + # will ignore it. Fails if a resource already exists with the same group_key. + # Completion of this long-running operation does not necessarily signify that + # the new binding is deployed onto all affected users, which may take more time. + # @param [String] parent + # Required. Example: "organizations/256" + # @param [Google::Apis::AccesscontextmanagerV1::GcpUserAccessBinding] gcp_user_access_binding_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AccesscontextmanagerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AccesscontextmanagerV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_organization_gcp_user_access_binding(parent, gcp_user_access_binding_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/gcpUserAccessBindings', options) + command.request_representation = Google::Apis::AccesscontextmanagerV1::GcpUserAccessBinding::Representation + command.request_object = gcp_user_access_binding_object + command.response_representation = Google::Apis::AccesscontextmanagerV1::Operation::Representation + command.response_class = Google::Apis::AccesscontextmanagerV1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a GcpUserAccessBinding. Completion of this long-running operation does + # not necessarily signify that the binding deletion is deployed onto all + # affected users, which may take more time. + # @param [String] name + # Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AccesscontextmanagerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AccesscontextmanagerV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_organization_gcp_user_access_binding(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::AccesscontextmanagerV1::Operation::Representation + command.response_class = Google::Apis::AccesscontextmanagerV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the GcpUserAccessBinding with the given name. + # @param [String] name + # Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AccesscontextmanagerV1::GcpUserAccessBinding] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AccesscontextmanagerV1::GcpUserAccessBinding] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_organization_gcp_user_access_binding(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::AccesscontextmanagerV1::GcpUserAccessBinding::Representation + command.response_class = Google::Apis::AccesscontextmanagerV1::GcpUserAccessBinding + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists all GcpUserAccessBindings for a Google Cloud organization. + # @param [String] parent + # Required. Example: "organizations/256" + # @param [Fixnum] page_size + # Optional. Maximum number of items to return. The server may return fewer items. + # If left blank, the server may return any number of items. + # @param [String] page_token + # Optional. If left blank, returns the first page. To enumerate all items, use + # the next_page_token from your previous list operation. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AccesscontextmanagerV1::ListGcpUserAccessBindingsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AccesscontextmanagerV1::ListGcpUserAccessBindingsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_organization_gcp_user_access_bindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/gcpUserAccessBindings', options) + command.response_representation = Google::Apis::AccesscontextmanagerV1::ListGcpUserAccessBindingsResponse::Representation + command.response_class = Google::Apis::AccesscontextmanagerV1::ListGcpUserAccessBindingsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a GcpUserAccessBinding. Completion of this long-running operation does + # not necessarily signify that the changed binding is deployed onto all affected + # users, which may take more time. + # @param [String] name + # Immutable. Assigned by the server during creation. The last segment has an + # arbitrary length and has only URI unreserved characters (as defined by [RFC + # 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should + # not be specified by the client during creation. Example: "organizations/256/ + # gcpUserAccessBindings/b3-BhcX_Ud5N" + # @param [Google::Apis::AccesscontextmanagerV1::GcpUserAccessBinding] gcp_user_access_binding_object + # @param [String] update_mask + # Required. Only the fields specified in this mask are updated. Because name and + # group_key cannot be changed, update_mask is required and must always be: + # update_mask ` paths: "access_levels" ` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AccesscontextmanagerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AccesscontextmanagerV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_organization_gcp_user_access_binding(name, gcp_user_access_binding_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::AccesscontextmanagerV1::GcpUserAccessBinding::Representation + command.request_object = gcp_user_access_binding_object + command.response_representation = Google::Apis::AccesscontextmanagerV1::Operation::Representation + command.response_class = Google::Apis::AccesscontextmanagerV1::Operation + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index a446c6c0a..152e5b91a 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -20,13 +20,12 @@ module Google module Apis # Content API for Shopping # - # Manages product items, inventory, and Merchant Center accounts for Google - # Shopping. + # Manage your product listings and accounts for Google Shopping # - # @see https://developers.google.com/shopping-content + # @see https://developers.google.com/shopping-content/v2/ module ContentV2 VERSION = 'V2' - REVISION = '20200922' + REVISION = '20200930' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2/classes.rb b/generated/google/apis/content_v2/classes.rb index dd420130d..f4f78d540 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -37,8 +37,8 @@ module Google # List of linked AdWords accounts that are active or pending approval. To create # a new link request, add a new link with status `active` to the list. It will # remain in a `pending` state until approved or rejected either in the AdWords - # interface or through the AdWords API. To delete an active link, or to cancel - # a link request, remove it from the list. + # interface or through the AdWords API. To delete an active link, or to cancel a + # link request, remove it from the list. # Corresponds to the JSON property `adwordsLinks` # @return [Array] attr_accessor :adwords_links @@ -179,15 +179,13 @@ module Google # Status of the link between this Merchant Center account and the AdWords # account. Upon retrieval, it represents the actual status of the link and can # be either `active` if it was approved in Google AdWords or `pending` if it's - # pending approval. Upon insertion, it represents the intended status of the + # pending approval. Upon insertion, it represents the *intended* status of the # link. Re-uploading a link with status `active` when it's still pending or with # status `pending` when it's already active will have no effect: the status will # remain unchanged. Re-uploading a link with deprecated status `inactive` is # equivalent to not submitting the link at all and will delete the link if it - # was active or cancel the link request if it was pending. - # Acceptable values are: - # - "`active`" - # - "`pending`" + # was active or cancel the link request if it was pending. Acceptable values are: + # - "`active`" - "`pending`" # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -277,9 +275,7 @@ module Google attr_accessor :gmb_email # Status of the link between this Merchant Center account and the GMB account. - # Acceptable values are: - # - "`active`" - # - "`pending`" + # Acceptable values are: - "`active`" - "`pending`" # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -404,11 +400,8 @@ module Google # @return [String] attr_accessor :id - # Severity of the issue. - # Acceptable values are: - # - "`critical`" - # - "`error`" - # - "`suggestion`" + # Severity of the issue. Acceptable values are: - "`critical`" - "`error`" - "` + # suggestion`" # Corresponds to the JSON property `severity` # @return [String] attr_accessor :severity @@ -483,10 +476,7 @@ module Google # @return [Fixnum] attr_accessor :num_items - # Acceptable values are: - # - "`critical`" - # - "`error`" - # - "`suggestion`" + # Acceptable values are: - "`critical`" - "`error`" - "`suggestion`" # Corresponds to the JSON property `severity` # @return [String] attr_accessor :severity @@ -624,10 +614,8 @@ module Google class AccountStatusProducts include Google::Apis::Core::Hashable - # The channel the data applies to. - # Acceptable values are: - # - "`local`" - # - "`online`" + # The channel the data applies to. Acceptable values are: - "`local`" - "`online` + # " # Corresponds to the JSON property `channel` # @return [String] attr_accessor :channel @@ -842,7 +830,7 @@ module Google # Status of the link between this Merchant Center account and the YouTube # channel. Upon retrieval, it represents the actual status of the link and can # be either `active` if it was approved in YT Creator Studio or `pending` if it' - # s pending approval. Upon insertion, it represents the intended status of the + # s pending approval. Upon insertion, it represents the *intended* status of the # link. Re-uploading a link with status `active` when it's still pending or with # status `pending` when it's already active will have no effect: the status will # remain unchanged. Re-uploading a link with deprecated status `inactive` is @@ -867,11 +855,10 @@ module Google class AccountsAuthInfoResponse include Google::Apis::Core::Hashable - # The account identifiers corresponding to the authenticated user. - # - For an individual account: only the merchant ID is defined - # - For an aggregator: only the aggregator ID is defined - # - For a subaccount of an MCA: both the merchant ID and the aggregator ID are - # defined. + # The account identifiers corresponding to the authenticated user. - For an + # individual account: only the merchant ID is defined - For an aggregator: only + # the aggregator ID is defined - For a subaccount of an MCA: both the merchant + # ID and the aggregator ID are defined. # Corresponds to the JSON property `accountIdentifiers` # @return [Array] attr_accessor :account_identifiers @@ -975,14 +962,8 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`claimWebsite`" - # - "`delete`" - # - "`get`" - # - "`insert`" - # - "`link`" - # - "`update`" + # The method of the batch entry. Acceptable values are: - "`claimWebsite`" - "` + # delete`" - "`get`" - "`insert`" - "`link`" - "`update`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :request_method @@ -1017,19 +998,14 @@ module Google include Google::Apis::Core::Hashable # Action to perform for this link. The `"request"` action is only available to - # select merchants. - # Acceptable values are: - # - "`approve`" - # - "`remove`" - # - "`request`" + # select merchants. Acceptable values are: - "`approve`" - "`remove`" - "` + # request`" # Corresponds to the JSON property `action` # @return [String] attr_accessor :action - # Type of the link between the two accounts. - # Acceptable values are: - # - "`channelPartner`" - # - "`eCommercePlatform`" + # Type of the link between the two accounts. Acceptable values are: - "` + # channelPartner`" - "`eCommercePlatform`" # Corresponds to the JSON property `linkType` # @return [String] attr_accessor :link_type @@ -1104,11 +1080,8 @@ module Google # @return [String] attr_accessor :kind - # Deprecated. This field is never set. - # Acceptable values are: - # - "`active`" - # - "`inactive`" - # - "`pending`" + # Deprecated. This field is never set. Acceptable values are: - "`active`" - "` + # inactive`" - "`pending`" # Corresponds to the JSON property `linkStatus` # @return [String] attr_accessor :link_status @@ -1132,19 +1105,14 @@ module Google include Google::Apis::Core::Hashable # Action to perform for this link. The `"request"` action is only available to - # select merchants. - # Acceptable values are: - # - "`approve`" - # - "`remove`" - # - "`request`" + # select merchants. Acceptable values are: - "`approve`" - "`remove`" - "` + # request`" # Corresponds to the JSON property `action` # @return [String] attr_accessor :action - # Type of the link between the two accounts. - # Acceptable values are: - # - "`channelPartner`" - # - "`eCommercePlatform`" + # Type of the link between the two accounts. Acceptable values are: - "` + # channelPartner`" - "`eCommercePlatform`" # Corresponds to the JSON property `linkType` # @return [String] attr_accessor :link_type @@ -1262,9 +1230,7 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`get`" + # The method of the batch entry. Acceptable values are: - "`get`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :request_method @@ -1416,10 +1382,7 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`get`" - # - "`update`" + # The method of the batch entry. Acceptable values are: - "`get`" - "`update`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :request_method @@ -1676,17 +1639,9 @@ module Google # @return [String] attr_accessor :name - # The type of the attribute. - # Acceptable values are: - # - "`boolean`" - # - "`datetimerange`" - # - "`float`" - # - "`group`" - # - "`int`" - # - "`price`" - # - "`text`" - # - "`time`" - # - "`url`" + # The type of the attribute. Acceptable values are: - "`boolean`" - "` + # datetimerange`" - "`float`" - "`group`" - "`int`" - "`price`" - "`text`" - "` + # time`" - "`url`" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -1749,22 +1704,11 @@ module Google # @return [String] attr_accessor :description - # Code of the return reason. - # Acceptable values are: - # - "`betterPriceFound`" - # - "`changedMind`" - # - "`damagedOrDefectiveItem`" - # - "`didNotMatchDescription`" - # - "`doesNotFit`" - # - "`expiredItem`" - # - "`incorrectItemReceived`" - # - "`noLongerNeeded`" - # - "`notSpecified`" - # - "`orderedWrongItem`" - # - "`other`" - # - "`qualityNotExpected`" - # - "`receivedTooLate`" - # - "`undeliverable`" + # Code of the return reason. Acceptable values are: - "`betterPriceFound`" - "` + # changedMind`" - "`damagedOrDefectiveItem`" - "`didNotMatchDescription`" - "` + # doesNotFit`" - "`expiredItem`" - "`incorrectItemReceived`" - "`noLongerNeeded`" + # - "`notSpecified`" - "`orderedWrongItem`" - "`other`" - "`qualityNotExpected`" + # - "`receivedTooLate`" - "`undeliverable`" # Corresponds to the JSON property `reasonCode` # @return [String] attr_accessor :reason_code @@ -1832,11 +1776,8 @@ module Google attr_accessor :content_language # Required. The type of data feed. For product inventory feeds, only feeds for - # local stores, not online stores, are supported. - # Acceptable values are: - # - "`local products`" - # - "`product inventory`" - # - "`products`" + # local stores, not online stores, are supported. Acceptable values are: - "` + # local products`" - "`product inventory`" - "`products`" # Corresponds to the JSON property `contentType` # @return [String] attr_accessor :content_type @@ -1864,7 +1805,7 @@ module Google # @return [Fixnum] attr_accessor :id - # [DEPRECATED] Please use targets[].includedDestinations instead. The list of + # [DEPRECATED] Please use targets[].includedDestinations instead. The list of # intended destinations (corresponds to checked check boxes in Merchant Center). # Corresponds to the JSON property `intendedDestinations` # @return [Array] @@ -1965,15 +1906,9 @@ module Google # @return [String] attr_accessor :username - # The day of the week the feed file should be fetched. - # Acceptable values are: - # - "`monday`" - # - "`tuesday`" - # - "`wednesday`" - # - "`thursday`" - # - "`friday`" - # - "`saturday`" - # - "`sunday`" + # The day of the week the feed file should be fetched. Acceptable values are: - " + # `monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "` + # saturday`" - "`sunday`" # Corresponds to the JSON property `weekday` # @return [String] attr_accessor :weekday @@ -2002,32 +1937,21 @@ module Google # Delimiter for the separation of values in a delimiter-separated values feed. # If not specified, the delimiter will be auto-detected. Ignored for non-DSV - # data feeds. - # Acceptable values are: - # - "`pipe`" - # - "`tab`" - # - "`tilde`" + # data feeds. Acceptable values are: - "`pipe`" - "`tab`" - "`tilde`" # Corresponds to the JSON property `columnDelimiter` # @return [String] attr_accessor :column_delimiter # Character encoding scheme of the data feed. If not specified, the encoding - # will be auto-detected. - # Acceptable values are: - # - "`latin-1`" - # - "`utf-16be`" - # - "`utf-16le`" - # - "`utf-8`" - # - "`windows-1252`" + # will be auto-detected. Acceptable values are: - "`latin-1`" - "`utf-16be`" - "` + # utf-16le`" - "`utf-8`" - "`windows-1252`" # Corresponds to the JSON property `fileEncoding` # @return [String] attr_accessor :file_encoding # Specifies how double quotes are interpreted. If not specified, the mode will - # be auto-detected. Ignored for non-DSV data feeds. - # Acceptable values are: - # - "`normal character`" - # - "`value quoting`" + # be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - "` + # normal character`" - "`value quoting`" # Corresponds to the JSON property `quotingMode` # @return [String] attr_accessor :quoting_mode @@ -2049,7 +1973,7 @@ module Google class DatafeedStatus include Google::Apis::Core::Hashable - # The country for which the status is reported, represented as a CLDR territory + # The country for which the status is reported, represented as a CLDR territory # code. # Corresponds to the JSON property `country` # @return [String] @@ -2091,12 +2015,10 @@ module Google # @return [String] attr_accessor :last_upload_date - # The processing status of the feed. - # Acceptable values are: - # - "`"`failure`": The feed could not be processed or all items had errors.`" - # - "`in progress`": The feed is being processed. - # - "`none`": The feed has not yet been processed. For example, a feed that has - # never been uploaded will have this processing status. + # The processing status of the feed. Acceptable values are: - "`"`failure`": The + # feed could not be processed or all items had errors.`" - "`in progress`": The + # feed is being processed. - "`none`": The feed has not yet been processed. For + # example, a feed that has never been uploaded will have this processing status. # - "`success`": The feed was processed successfully, though some items might # have had errors. # Corresponds to the JSON property `processingStatus` @@ -2200,7 +2122,7 @@ module Google include Google::Apis::Core::Hashable # The country where the items in the feed will be included in the search index, - # represented as a CLDR territory code. + # represented as a CLDR territory code. # Corresponds to the JSON property `country` # @return [String] attr_accessor :country @@ -2213,12 +2135,9 @@ module Google # The list of destinations to include for this target (corresponds to checked # check boxes in Merchant Center). Default destinations are always included - # unless provided in `excludedDestinations`. - # List of supported destinations (if available to the account): - # - DisplayAds - # - Shopping - # - ShoppingActions - # - SurfacesAcrossGoogle + # unless provided in `excludedDestinations`. List of supported destinations (if + # available to the account): - DisplayAds - Shopping - ShoppingActions - + # SurfacesAcrossGoogle # Corresponds to the JSON property `includedDestinations` # @return [Array] attr_accessor :included_destinations @@ -2285,13 +2204,8 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`delete`" - # - "`fetchNow`" - # - "`get`" - # - "`insert`" - # - "`update`" + # The method of the batch entry. Acceptable values are: - "`delete`" - "` + # fetchNow`" - "`get`" - "`insert`" - "`update`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :request_method @@ -2471,9 +2385,7 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`get`" + # The method of the batch entry. Acceptable values are: - "`get`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :request_method @@ -2800,8 +2712,8 @@ module Google # A list of inclusive number of items upper bounds. The last value can be `" # infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= - # 10 items", " 50 items". Must be non-empty. Can only be set if all other fields - # are not set. + # 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set + # if all other fields are not set. # Corresponds to the JSON property `numberOfItems` # @return [Array] attr_accessor :number_of_items @@ -2817,8 +2729,9 @@ module Google # A list of inclusive order price upper bounds. The last price's value can be `" # infinity"`. For example `[`"value": "10", "currency": "USD"`, `"value": "500", # "currency": "USD"`, `"value": "infinity", "currency": "USD"`]` represents the - # headers "<= $10", " $500". All prices within a service must have the same - # currency. Must be non-empty. Can only be set if all other fields are not set. + # headers "<= $10", "<= $500", and "> $500". All prices within a service must + # have the same currency. Must be non-empty. Can only be set if all other fields + # are not set. # Corresponds to the JSON property `prices` # @return [Array] attr_accessor :prices @@ -2826,8 +2739,8 @@ module Google # A list of inclusive order weight upper bounds. The last weight's value can be ` # "infinity"`. For example `[`"value": "10", "unit": "kg"`, `"value": "50", " # unit": "kg"`, `"value": "infinity", "unit": "kg"`]` represents the headers "<= - # 10kg", " 50kg". All weights within a service must have the same unit. Must be - # non-empty. Can only be set if all other fields are not set. + # 10kg", "<= 50kg", and "> 50kg". All weights within a service must have the + # same unit. Must be non-empty. Can only be set if all other fields are not set. # Corresponds to the JSON property `weights` # @return [Array] attr_accessor :weights @@ -2864,7 +2777,7 @@ module Google attr_accessor :deadline_hour # Timezone identifier for the deadline hour. A list of identifiers can be found - # in the AdWords API documentation. E.g. "Europe/Zurich". Required. + # in the AdWords API documentation. E.g. "Europe/Zurich". Required. # Corresponds to the JSON property `deadlineTimezone` # @return [String] attr_accessor :deadline_timezone @@ -2930,16 +2843,9 @@ module Google # @return [String] attr_accessor :id - # The holiday type. Always present. - # Acceptable values are: - # - "`Christmas`" - # - "`Easter`" - # - "`Father's Day`" - # - "`Halloween`" - # - "`Independence Day (USA)`" - # - "`Mother's Day`" - # - "`Thanksgiving`" - # - "`Valentine's Day`" + # The holiday type. Always present. Acceptable values are: - "`Christmas`" - "` + # Easter`" - "`Father's Day`" - "`Halloween`" - "`Independence Day (USA)`" - "` + # Mother's Day`" - "`Thanksgiving`" - "`Valentine's Day`" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -2984,15 +2890,12 @@ module Google end end - # (== resource_for v2.inventory ==) + # class Inventory include Google::Apis::Core::Hashable - # The availability of the product. - # Acceptable values are: - # - "`in stock`" - # - "`out of stock`" - # - "`preorder`" + # The availability of the product. Acceptable values are: - "`in stock`" - "`out + # of stock`" - "`preorder`" # Corresponds to the JSON property `availability` # @return [String] attr_accessor :availability @@ -3138,7 +3041,7 @@ module Google # @return [Fixnum] attr_accessor :batch_id - # (== resource_for v2.inventory ==) + # Price and availability of the product. # Corresponds to the JSON property `inventory` # @return [Google::Apis::ContentV2::Inventory] attr_accessor :inventory @@ -3238,30 +3141,17 @@ module Google # Whether store pickup is available for this offer and whether the pickup option # should be shown as buy, reserve, or not supported. Only supported for local # inventory. Unless the value is "not supported", must be submitted together - # with `pickupSla`. - # Acceptable values are: - # - "`buy`" - # - "`not supported`" - # - "`reserve`" - # - "`ship to store`" + # with `pickupSla`. Acceptable values are: - "`buy`" - "`not supported`" - "` + # reserve`" - "`ship to store`" # Corresponds to the JSON property `pickupMethod` # @return [String] attr_accessor :pickup_method # The expected date that an order will be ready for pickup, relative to when the # order is placed. Only supported for local inventory. Must be submitted - # together with `pickupMethod`. - # Acceptable values are: - # - "`five day`" - # - "`four day`" - # - "`multi day`" - # - "`multi week`" - # - "`next day`" - # - "`same day`" - # - "`seven day`" - # - "`six day`" - # - "`three day`" - # - "`two day`" + # together with `pickupMethod`. Acceptable values are: - "`five day`" - "`four + # day`" - "`multi day`" - "`multi week`" - "`next day`" - "`same day`" - "`seven + # day`" - "`six day`" - "`three day`" - "`two day`" # Corresponds to the JSON property `pickupSla` # @return [String] attr_accessor :pickup_sla @@ -3281,11 +3171,8 @@ module Google class SetInventoryRequest include Google::Apis::Core::Hashable - # The availability of the product. - # Acceptable values are: - # - "`in stock`" - # - "`out of stock`" - # - "`preorder`" + # The availability of the product. Acceptable values are: - "`in stock`" - "`out + # of stock`" - "`preorder`" # Corresponds to the JSON property `availability` # @return [String] attr_accessor :availability @@ -3474,9 +3361,8 @@ module Google # @return [Google::Apis::ContentV2::Amount] attr_accessor :total_amount - # [required] Type of the additional charge. - # Acceptable values are: - # - "`shipping`" + # [required] Type of the additional charge. Acceptable values are: - "`shipping`" + # # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -3496,11 +3382,8 @@ module Google class LiaAboutPageSettings include Google::Apis::Core::Hashable - # The status of the verification process for the About page. - # Acceptable values are: - # - "`active`" - # - "`inactive`" - # - "`pending`" + # The status of the verification process for the About page. Acceptable values + # are: - "`active`" - "`inactive`" - "`pending`" # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -3592,20 +3475,14 @@ module Google # @return [String] attr_accessor :inventory_verification_contact_name - # The status of the verification contact. - # Acceptable values are: - # - "`active`" - # - "`inactive`" - # - "`pending`" + # The status of the verification contact. Acceptable values are: - "`active`" - " + # `inactive`" - "`pending`" # Corresponds to the JSON property `inventoryVerificationContactStatus` # @return [String] attr_accessor :inventory_verification_contact_status - # The status of the inventory verification process. - # Acceptable values are: - # - "`active`" - # - "`inactive`" - # - "`pending`" + # The status of the inventory verification process. Acceptable values are: - "` + # active`" - "`inactive`" - "`pending`" # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -3632,11 +3509,8 @@ module Google # @return [String] attr_accessor :shipping_cost_policy_url - # The status of the ?On display to order? feature. - # Acceptable values are: - # - "`active`" - # - "`inactive`" - # - "`pending`" + # The status of the ?On display to order? feature. Acceptable values are: - "` + # active`" - "`inactive`" - "`pending`" # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -3777,14 +3651,10 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`get`" - # - "`getAccessibleGmbAccounts`" - # - "`requestGmbAccess`" - # - "`requestInventoryVerification`" - # - "`setInventoryVerificationContact`" - # - "`update`" + # The method of the batch entry. Acceptable values are: - "`get`" - "` + # getAccessibleGmbAccounts`" - "`requestGmbAccess`" - "` + # requestInventoryVerification`" - "`setInventoryVerificationContact`" - "` + # update`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :method_prop @@ -4199,13 +4069,8 @@ module Google # @return [Array] attr_accessor :return_shipment_ids - # State of the item. - # Acceptable values are: - # - "`canceled`" - # - "`new`" - # - "`received`" - # - "`refunded`" - # - "`rejected`" + # State of the item. Acceptable values are: - "`canceled`" - "`new`" - "` + # received`" - "`refunded`" - "`rejected`" # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -4273,8 +4138,7 @@ module Google end # Order. Production access (all methods) requires the order manager role. - # Sandbox access does not. (== resource_for v2.orders ==) (== resource_for v2.1. - # orders ==) + # Sandbox access does not. class Order include Google::Apis::Core::Hashable @@ -4284,10 +4148,7 @@ module Google attr_accessor :acknowledged alias_method :acknowledged?, :acknowledged - # Deprecated. - # Acceptable values are: - # - "`googleExpress`" - # - "`purchasesOnGoogle`" + # Deprecated. Acceptable values are: - "`googleExpress`" - "`purchasesOnGoogle`" # Corresponds to the JSON property `channelType` # @return [String] attr_accessor :channel_type @@ -4340,12 +4201,8 @@ module Google # @return [Google::Apis::ContentV2::OrderPaymentMethod] attr_accessor :payment_method - # The status of the payment. - # Acceptable values are: - # - "`paymentCaptured`" - # - "`paymentRejected`" - # - "`paymentSecured`" - # - "`pendingAuthorization`" + # The status of the payment. Acceptable values are: - "`paymentCaptured`" - "` + # paymentRejected`" - "`paymentSecured`" - "`pendingAuthorization`" # Corresponds to the JSON property `paymentStatus` # @return [String] attr_accessor :payment_status @@ -4360,24 +4217,22 @@ module Google # @return [String] attr_accessor :placed_date - # The details of the merchant provided promotions applied to the order. - # To determine which promotions apply to which products, check the `Promotions[]. + # The details of the merchant provided promotions applied to the order. To + # determine which promotions apply to which products, check the `Promotions[]. # Benefits[].OfferIds` field against the `LineItems[].Product.OfferId` field for # each promotion. If a promotion is applied to more than 1 `offerId`, divide the # discount value by the number of affected offers to determine how much discount - # to apply to each `offerId`. - # Examples: - # - To calculate the line item level discount for a single specific item: For - # each promotion, subtract the `Promotions[].Benefits[].Discount.value` amount - # from the `LineItems[].Price.value`. - # - To calculate the line item level discount for multiple quantity of a - # specific item: For each promotion, divide the `Promotions[].Benefits[]. + # to apply to each `offerId`. Examples: 1. To calculate the line item level + # discount for a single specific item: For each promotion, subtract the ` + # Promotions[].Benefits[].Discount.value` amount from the `LineItems[].Price. + # value`. 2. To calculate the line item level discount for multiple quantity of + # a specific item: For each promotion, divide the `Promotions[].Benefits[]. # Discount.value` by the quantity of products and substract it from `LineItems[]. - # Product.Price.value` for each quantity item. - # Only 1 promotion can be applied to an offerId in a given order. To refund an - # item which had a promotion applied to it, make sure to refund the amount after - # first subtracting the promotion discount from the item price. - # More details about the program are here. + # Product.Price.value` for each quantity item. Only 1 promotion can be applied + # to an offerId in a given order. To refund an item which had a promotion + # applied to it, make sure to refund the amount after first subtracting the + # promotion discount from the item price. More details about the program are + # here. # Corresponds to the JSON property `promotions` # @return [Array] attr_accessor :promotions @@ -4402,37 +4257,22 @@ module Google # @return [Google::Apis::ContentV2::Price] attr_accessor :shipping_cost_tax - # Deprecated. Shipping details are provided with line items instead. - # Acceptable values are: - # - "`economy`" - # - "`expedited`" - # - "`oneDay`" - # - "`sameDay`" - # - "`standard`" - # - "`twoDay`" + # Deprecated. Shipping details are provided with line items instead. Acceptable + # values are: - "`economy`" - "`expedited`" - "`oneDay`" - "`sameDay`" - "` + # standard`" - "`twoDay`" # Corresponds to the JSON property `shippingOption` # @return [String] attr_accessor :shipping_option - # The status of the order. - # Acceptable values are: - # - "`canceled`" - # - "`delivered`" - # - "`inProgress`" - # - "`partiallyDelivered`" - # - "`partiallyReturned`" - # - "`partiallyShipped`" - # - "`pendingShipment`" - # - "`returned`" - # - "`shipped`" + # The status of the order. Acceptable values are: - "`canceled`" - "`delivered`" + # - "`inProgress`" - "`partiallyDelivered`" - "`partiallyReturned`" - "` + # partiallyShipped`" - "`pendingShipment`" - "`returned`" - "`shipped`" # Corresponds to the JSON property `status` # @return [String] attr_accessor :status - # The party responsible for collecting and remitting taxes. - # Acceptable values are: - # - "`marketplaceFacilitator`" - # - "`merchant`" + # The party responsible for collecting and remitting taxes. Acceptable values + # are: - "`marketplaceFacilitator`" - "`merchant`" # Corresponds to the JSON property `taxCollector` # @return [String] attr_accessor :tax_collector @@ -4478,11 +4318,8 @@ module Google attr_accessor :country # Strings representing the lines of the printed label for mailing the order, for - # example: - # John Smith - # 1600 Amphitheatre Parkway - # Mountain View, CA, 94043 - # United States + # example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United + # States # Corresponds to the JSON property `fullAddress` # @return [Array] attr_accessor :full_address @@ -4541,14 +4378,9 @@ module Google class OrderCancellation include Google::Apis::Core::Hashable - # The actor that created the cancellation. - # Acceptable values are: - # - "`customer`" - # - "`googleBot`" - # - "`googleCustomerService`" - # - "`googlePayments`" - # - "`googleSabre`" - # - "`merchant`" + # The actor that created the cancellation. Acceptable values are: - "`customer`" + # - "`googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "` + # googleSabre`" - "`merchant`" # Corresponds to the JSON property `actor` # @return [String] attr_accessor :actor @@ -4566,35 +4398,18 @@ module Google # The reason for the cancellation. Orders that are canceled with a noInventory # reason will lead to the removal of the product from Shopping Actions until you # make an update to that product. This will not affect your Shopping ads. - # Acceptable values are: - # - "`autoPostInternal`" - # - "`autoPostInvalidBillingAddress`" - # - "`autoPostNoInventory`" - # - "`autoPostPriceError`" - # - "`autoPostUndeliverableShippingAddress`" - # - "`couponAbuse`" - # - "`customerCanceled`" - # - "`customerInitiatedCancel`" - # - "`customerSupportRequested`" - # - "`failToPushOrderGoogleError`" - # - "`failToPushOrderMerchantError`" - # - "`failToPushOrderMerchantFulfillmentError`" - # - "`failToPushOrderToMerchant`" - # - "`failToPushOrderToMerchantOutOfStock`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`merchantDidNotShipOnTime`" - # - "`noInventory`" - # - "`orderTimeout`" - # - "`other`" - # - "`paymentAbuse`" - # - "`paymentDeclined`" - # - "`priceError`" - # - "`returnRefundAbuse`" - # - "`shippingPriceError`" - # - "`taxError`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" + # Acceptable values are: - "`autoPostInternal`" - "` + # autoPostInvalidBillingAddress`" - "`autoPostNoInventory`" - "` + # autoPostPriceError`" - "`autoPostUndeliverableShippingAddress`" - "` + # couponAbuse`" - "`customerCanceled`" - "`customerInitiatedCancel`" - "` + # customerSupportRequested`" - "`failToPushOrderGoogleError`" - "` + # failToPushOrderMerchantError`" - "`failToPushOrderMerchantFulfillmentError`" - + # "`failToPushOrderToMerchant`" - "`failToPushOrderToMerchantOutOfStock`" - "` + # invalidCoupon`" - "`malformedShippingAddress`" - "`merchantDidNotShipOnTime`" - + # "`noInventory`" - "`orderTimeout`" - "`other`" - "`paymentAbuse`" - "` + # paymentDeclined`" - "`priceError`" - "`returnRefundAbuse`" - "` + # shippingPriceError`" - "`taxError`" - "`undeliverableShippingAddress`" - "` + # unsupportedPoBoxAddress`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -4640,7 +4455,7 @@ module Google # Email address for the merchant to send value-added tax or invoice # documentation of the order. Only the last document sent is made available to - # the customer. For more information, see About automated VAT invoicing for + # the customer. For more information, see About automated VAT invoicing for # Shopping Actions. # Corresponds to the JSON property `invoiceReceivingEmail` # @return [String] @@ -4676,10 +4491,8 @@ module Google # cases this selection might not be known, so this field would be empty. If a # customer selected `granted` in their most recent order, they can be subscribed # to marketing emails. Customers who have chosen `denied` must not be subscribed, - # or must be unsubscribed if already opted-in. - # Acceptable values are: - # - "`denied`" - # - "`granted`" + # or must be unsubscribed if already opted-in. Acceptable values are: - "` + # denied`" - "`granted`" # Corresponds to the JSON property `explicitMarketingPreference` # @return [String] attr_accessor :explicit_marketing_preference @@ -4745,11 +4558,11 @@ module Google # The date and time frame when the promotion is active and ready for validation # review. Note that the promotion live time may be delayed for a few hours due - # to the validation review. - # Start date and end date are separated by a forward slash (/). The start date - # is specified by the format (YYYY-MM-DD), followed by the letter ?T?, the time - # of the day when the sale starts (in Greenwich Mean Time, GMT), followed by an - # expression of the time zone for the sale. The end date is in the same format. + # to the validation review. Start date and end date are separated by a forward + # slash (/). The start date is specified by the format (YYYY-MM-DD), followed by + # the letter ?T?, the time of the day when the sale starts (in Greenwich Mean + # Time, GMT), followed by an expression of the time zone for the sale. The end + # date is in the same format. # Corresponds to the JSON property `effectiveDates` # @return [String] attr_accessor :effective_dates @@ -4771,16 +4584,13 @@ module Google attr_accessor :long_title # Whether the promotion is applicable to all products or only specific products. - # Acceptable values are: - # - "`allProducts`" - # - "`specificProducts`" + # Acceptable values are: - "`allProducts`" - "`specificProducts`" # Corresponds to the JSON property `productApplicability` # @return [String] attr_accessor :product_applicability - # Indicates that the promotion is valid online. - # Acceptable values are: - # - "`online`" + # Indicates that the promotion is valid online. Acceptable values are: - "` + # online`" # Corresponds to the JSON property `redemptionChannel` # @return [String] attr_accessor :redemption_channel @@ -4817,22 +4627,12 @@ module Google attr_accessor :offer_ids # Further describes the benefit of the promotion. Note that we will expand on - # this enumeration as we support new promotion sub-types. - # Acceptable values are: - # - "`buyMGetMoneyOff`" - # - "`buyMGetNMoneyOff`" - # - "`buyMGetNPercentOff`" - # - "`buyMGetPercentOff`" - # - "`freeGift`" - # - "`freeGiftWithItemId`" - # - "`freeGiftWithValue`" - # - "`freeOvernightShipping`" - # - "`freeShipping`" - # - "`freeTwoDayShipping`" - # - "`moneyOff`" - # - "`percentageOff`" - # - "`rewardPoints`" - # - "`salePrice`" + # this enumeration as we support new promotion sub-types. Acceptable values are: + # - "`buyMGetMoneyOff`" - "`buyMGetNMoneyOff`" - "`buyMGetNPercentOff`" - "` + # buyMGetPercentOff`" - "`freeGift`" - "`freeGiftWithItemId`" - "` + # freeGiftWithValue`" - "`freeOvernightShipping`" - "`freeShipping`" - "` + # freeTwoDayShipping`" - "`moneyOff`" - "`percentageOff`" - "`rewardPoints`" - "` + # salePrice`" # Corresponds to the JSON property `subType` # @return [String] attr_accessor :sub_type @@ -4843,10 +4643,8 @@ module Google attr_accessor :tax_impact # Describes whether the promotion applies to products (e.g. 20% off) or to - # shipping (e.g. Free Shipping). - # Acceptable values are: - # - "`product`" - # - "`shipping`" + # shipping (e.g. Free Shipping). Acceptable values are: - "`product`" - "` + # shipping`" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -4987,19 +4785,14 @@ module Google # @return [String] attr_accessor :brand - # The item's channel (online or local). - # Acceptable values are: - # - "`local`" - # - "`online`" + # The item's channel (online or local). Acceptable values are: - "`local`" - "` + # online`" # Corresponds to the JSON property `channel` # @return [String] attr_accessor :channel - # Condition or state of the item. - # Acceptable values are: - # - "`new`" - # - "`refurbished`" - # - "`used`" + # Condition or state of the item. Acceptable values are: - "`new`" - "` + # refurbished`" - "`used`" # Corresponds to the JSON property `condition` # @return [String] attr_accessor :condition @@ -5054,7 +4847,7 @@ module Google # @return [String] attr_accessor :shown_image - # The CLDR territory code of the target country of the product. + # The CLDR territory // code of the target country of the product. # Corresponds to the JSON property `targetCountry` # @return [String] attr_accessor :target_country @@ -5198,10 +4991,8 @@ module Google attr_accessor :ship_by_date # Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is - # applicable for this shipment. - # Acceptable values are: - # - "`delivery`" - # - "`pickup`" + # applicable for this shipment. Acceptable values are: - "`delivery`" - "`pickup` + # " # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -5313,15 +5104,8 @@ module Google # @return [String] attr_accessor :phone_number - # The type of instrument. - # Acceptable values are: - # - "`AMEX`" - # - "`DISCOVER`" - # - "`JCB`" - # - "`MASTERCARD`" - # - "`UNIONPAY`" - # - "`VISA`" - # - "``" + # The type of instrument. Acceptable values are: - "`AMEX`" - "`DISCOVER`" - "` + # JCB`" - "`MASTERCARD`" - "`UNIONPAY`" - "`VISA`" - "``" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -5403,13 +5187,8 @@ module Google class OrderRefund include Google::Apis::Core::Hashable - # The actor that created the refund. - # Acceptable values are: - # - "`customer`" - # - "`googleBot`" - # - "`googleCustomerService`" - # - "`googlePayments`" - # - "`googleSabre`" + # The actor that created the refund. Acceptable values are: - "`customer`" - "` + # googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "`googleSabre`" # - "`merchant`" # Corresponds to the JSON property `actor` # @return [String] @@ -5425,52 +5204,23 @@ module Google # @return [String] attr_accessor :creation_date - # The reason for the refund. - # Acceptable values are: - # - "`adjustment`" - # - "`autoPostInternal`" - # - "`autoPostInvalidBillingAddress`" - # - "`autoPostNoInventory`" - # - "`autoPostPriceError`" - # - "`autoPostUndeliverableShippingAddress`" - # - "`couponAbuse`" - # - "`courtesyAdjustment`" - # - "`customerCanceled`" - # - "`customerDiscretionaryReturn`" - # - "`customerInitiatedMerchantCancel`" - # - "`customerSupportRequested`" - # - "`deliveredLateByCarrier`" - # - "`deliveredTooLate`" - # - "`expiredItem`" - # - "`failToPushOrderGoogleError`" - # - "`failToPushOrderMerchantError`" - # - "`failToPushOrderMerchantFulfillmentError`" - # - "`failToPushOrderToMerchant`" - # - "`failToPushOrderToMerchantOutOfStock`" - # - "`feeAdjustment`" - # - "`invalidCoupon`" - # - "`lateShipmentCredit`" - # - "`malformedShippingAddress`" - # - "`merchantDidNotShipOnTime`" - # - "`noInventory`" - # - "`orderTimeout`" - # - "`other`" - # - "`paymentAbuse`" - # - "`paymentDeclined`" - # - "`priceAdjustment`" - # - "`priceError`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`promoReallocation`" - # - "`qualityNotAsExpected`" - # - "`returnRefundAbuse`" - # - "`shippingCostAdjustment`" - # - "`shippingPriceError`" - # - "`taxAdjustment`" - # - "`taxError`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" - # - "`wrongProductShipped`" + # The reason for the refund. Acceptable values are: - "`adjustment`" - "` + # autoPostInternal`" - "`autoPostInvalidBillingAddress`" - "`autoPostNoInventory` + # " - "`autoPostPriceError`" - "`autoPostUndeliverableShippingAddress`" - "` + # couponAbuse`" - "`courtesyAdjustment`" - "`customerCanceled`" - "` + # customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "` + # customerSupportRequested`" - "`deliveredLateByCarrier`" - "`deliveredTooLate`" + # - "`expiredItem`" - "`failToPushOrderGoogleError`" - "` + # failToPushOrderMerchantError`" - "`failToPushOrderMerchantFulfillmentError`" - + # "`failToPushOrderToMerchant`" - "`failToPushOrderToMerchantOutOfStock`" - "` + # feeAdjustment`" - "`invalidCoupon`" - "`lateShipmentCredit`" - "` + # malformedShippingAddress`" - "`merchantDidNotShipOnTime`" - "`noInventory`" - " + # `orderTimeout`" - "`other`" - "`paymentAbuse`" - "`paymentDeclined`" - "` + # priceAdjustment`" - "`priceError`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`promoReallocation`" - "`qualityNotAsExpected`" - "` + # returnRefundAbuse`" - "`shippingCostAdjustment`" - "`shippingPriceError`" - "` + # taxAdjustment`" - "`taxError`" - "`undeliverableShippingAddress`" - "` + # unsupportedPoBoxAddress`" - "`wrongProductShipped`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -5494,8 +5244,7 @@ module Google end end - # Order disbursement. All methods require the payment analyst role. (== - # resource_for v2.orderreports ==) (== resource_for v2.1.orderreports ==) + # Order disbursement. All methods require the payment analyst role. class OrderReportDisbursement include Google::Apis::Core::Hashable @@ -5615,13 +5364,8 @@ module Google class OrderReturn include Google::Apis::Core::Hashable - # The actor that created the refund. - # Acceptable values are: - # - "`customer`" - # - "`googleBot`" - # - "`googleCustomerService`" - # - "`googlePayments`" - # - "`googleSabre`" + # The actor that created the refund. Acceptable values are: - "`customer`" - "` + # googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "`googleSabre`" # - "`merchant`" # Corresponds to the JSON property `actor` # @return [String] @@ -5637,21 +5381,13 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The reason for the return. - # Acceptable values are: - # - "`customerDiscretionaryReturn`" - # - "`customerInitiatedMerchantCancel`" - # - "`deliveredTooLate`" - # - "`expiredItem`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`other`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`qualityNotAsExpected`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" - # - "`wrongProductShipped`" + # The reason for the return. Acceptable values are: - "` + # customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "` + # deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "` + # malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`qualityNotAsExpected`" - "` + # undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "` + # wrongProductShipped`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -5679,59 +5415,33 @@ module Google class OrderShipment include Google::Apis::Core::Hashable - # The carrier handling the shipment. - # For supported carriers, Google includes the carrier name and tracking URL in - # emails to customers. For select supported carriers, Google also automatically - # updates the shipment status based on the provided shipment ID. Note: You can - # also use unsupported carriers, but emails to customers will not include the - # carrier name or tracking URL, and there will be no automatic order status - # updates. - # Supported carriers for US are: - # - "`ups`" (United Parcel Service) automatic status updates - # - "`usps`" (United States Postal Service) automatic status updates - # - "`fedex`" (FedEx) automatic status updates - # - "`dhl`" (DHL eCommerce) automatic status updates (US only) - # - "`ontrac`" (OnTrac) automatic status updates - # - "`dhl express`" (DHL Express) - # - "`deliv`" (Deliv) - # - "`dynamex`" (TForce) - # - "`lasership`" (LaserShip) - # - "`mpx`" (Military Parcel Xpress) - # - "`uds`" (United Delivery Service) - # - "`efw`" (Estes Forwarding Worldwide) - # - "`jd logistics`" (JD Logistics) - # - "`yunexpress`" (YunExpress) - # - "`china post`" (China Post) - # - "`china ems`" (China Post Express Mail Service) - # - "`singapore post`" (Singapore Post) - # - "`pos malaysia`" (Pos Malaysia) - # - "`postnl`" (PostNL) - # - "`ptt`" (PTT Turkish Post) - # - "`eub`" (ePacket) - # - "`chukou1`" (Chukou1 Logistics) - # - "`bestex`" (Best Express) - # - "`canada post`" (Canada Post) - # - "`purolator`" (Purolator) - # - "`canpar`" (Canpar) - # - "`india post`" (India Post) - # - "`blue dart`" (Blue Dart) - # - "`delhivery`" (Delhivery) - # - "`dtdc`" (DTDC) - # - "`tpc india`" (TPC India) - # Supported carriers for FR are: - # - "`la poste`" (La Poste) automatic status updates - # - "`colissimo`" (Colissimo by La Poste) automatic status updates - # - "`ups`" (United Parcel Service) automatic status updates - # - "`chronopost`" (Chronopost by La Poste) - # - "`gls`" (General Logistics Systems France) - # - "`dpd`" (DPD Group by GeoPost) - # - "`bpost`" (Belgian Post Group) - # - "`colis prive`" (Colis Privé) - # - "`boxtal`" (Boxtal) - # - "`geodis`" (GEODIS) - # - "`tnt`" (TNT) - # - "`db schenker`" (DB Schenker) - # - "`aramex`" (Aramex) + # The carrier handling the shipment. For supported carriers, Google includes the + # carrier name and tracking URL in emails to customers. For select supported + # carriers, Google also automatically updates the shipment status based on the + # provided shipment ID. *Note:* You can also use unsupported carriers, but + # emails to customers will not include the carrier name or tracking URL, and + # there will be no automatic order status updates. Supported carriers for US are: + # - "`ups`" (United Parcel Service) *automatic status updates* - "`usps`" ( + # United States Postal Service) *automatic status updates* - "`fedex`" (FedEx) * + # automatic status updates * - "`dhl`" (DHL eCommerce) *automatic status updates* + # (US only) - "`ontrac`" (OnTrac) *automatic status updates * - "`dhl express`" + # (DHL Express) - "`deliv`" (Deliv) - "`dynamex`" (TForce) - "`lasership`" ( + # LaserShip) - "`mpx`" (Military Parcel Xpress) - "`uds`" (United Delivery + # Service) - "`efw`" (Estes Forwarding Worldwide) - "`jd logistics`" (JD + # Logistics) - "`yunexpress`" (YunExpress) - "`china post`" (China Post) - "` + # china ems`" (China Post Express Mail Service) - "`singapore post`" (Singapore + # Post) - "`pos malaysia`" (Pos Malaysia) - "`postnl`" (PostNL) - "`ptt`" (PTT + # Turkish Post) - "`eub`" (ePacket) - "`chukou1`" (Chukou1 Logistics) - "`bestex` + # " (Best Express) - "`canada post`" (Canada Post) - "`purolator`" (Purolator) - + # "`canpar`" (Canpar) - "`india post`" (India Post) - "`blue dart`" (Blue Dart) - + # "`delhivery`" (Delhivery) - "`dtdc`" (DTDC) - "`tpc india`" (TPC India) + # Supported carriers for FR are: - "`la poste`" (La Poste) *automatic status + # updates * - "`colissimo`" (Colissimo by La Poste) *automatic status updates* - + # "`ups`" (United Parcel Service) *automatic status updates * - "`chronopost`" ( + # Chronopost by La Poste) - "`gls`" (General Logistics Systems France) - "`dpd`" + # (DPD Group by GeoPost) - "`bpost`" (Belgian Post Group) - "`colis prive`" ( + # Colis Privé) - "`boxtal`" (Boxtal) - "`geodis`" (GEODIS) - "`tnt`" (TNT) - "` + # db schenker`" (DB Schenker) - "`aramex`" (Aramex) # Corresponds to the JSON property `carrier` # @return [String] attr_accessor :carrier @@ -5762,12 +5472,8 @@ module Google # @return [Google::Apis::ContentV2::OrderShipmentScheduledDeliveryDetails] attr_accessor :scheduled_delivery_details - # The status of the shipment. - # Acceptable values are: - # - "`delivered`" - # - "`readyForPickup`" - # - "`shipped`" - # - "`undeliverable`" + # The status of the shipment. Acceptable values are: - "`delivered`" - "` + # readyForPickup`" - "`shipped`" - "`undeliverable`" # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -5904,10 +5610,8 @@ module Google class OrderinvoicesCreateChargeInvoiceResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -5980,10 +5684,8 @@ module Google class OrderinvoicesCreateRefundInvoiceResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -6014,52 +5716,23 @@ module Google # @return [String] attr_accessor :description - # [required] Reason for the refund. - # Acceptable values are: - # - "`adjustment`" - # - "`autoPostInternal`" - # - "`autoPostInvalidBillingAddress`" - # - "`autoPostNoInventory`" - # - "`autoPostPriceError`" - # - "`autoPostUndeliverableShippingAddress`" - # - "`couponAbuse`" - # - "`courtesyAdjustment`" - # - "`customerCanceled`" - # - "`customerDiscretionaryReturn`" - # - "`customerInitiatedMerchantCancel`" - # - "`customerSupportRequested`" - # - "`deliveredLateByCarrier`" - # - "`deliveredTooLate`" - # - "`expiredItem`" - # - "`failToPushOrderGoogleError`" - # - "`failToPushOrderMerchantError`" - # - "`failToPushOrderMerchantFulfillmentError`" - # - "`failToPushOrderToMerchant`" - # - "`failToPushOrderToMerchantOutOfStock`" - # - "`feeAdjustment`" - # - "`invalidCoupon`" - # - "`lateShipmentCredit`" - # - "`malformedShippingAddress`" - # - "`merchantDidNotShipOnTime`" - # - "`noInventory`" - # - "`orderTimeout`" - # - "`other`" - # - "`paymentAbuse`" - # - "`paymentDeclined`" - # - "`priceAdjustment`" - # - "`priceError`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`promoReallocation`" - # - "`qualityNotAsExpected`" - # - "`returnRefundAbuse`" - # - "`shippingCostAdjustment`" - # - "`shippingPriceError`" - # - "`taxAdjustment`" - # - "`taxError`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" - # - "`wrongProductShipped`" + # [required] Reason for the refund. Acceptable values are: - "`adjustment`" - "` + # autoPostInternal`" - "`autoPostInvalidBillingAddress`" - "`autoPostNoInventory` + # " - "`autoPostPriceError`" - "`autoPostUndeliverableShippingAddress`" - "` + # couponAbuse`" - "`courtesyAdjustment`" - "`customerCanceled`" - "` + # customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "` + # customerSupportRequested`" - "`deliveredLateByCarrier`" - "`deliveredTooLate`" + # - "`expiredItem`" - "`failToPushOrderGoogleError`" - "` + # failToPushOrderMerchantError`" - "`failToPushOrderMerchantFulfillmentError`" - + # "`failToPushOrderToMerchant`" - "`failToPushOrderToMerchantOutOfStock`" - "` + # feeAdjustment`" - "`invalidCoupon`" - "`lateShipmentCredit`" - "` + # malformedShippingAddress`" - "`merchantDidNotShipOnTime`" - "`noInventory`" - " + # `orderTimeout`" - "`other`" - "`paymentAbuse`" - "`paymentDeclined`" - "` + # priceAdjustment`" - "`priceError`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`promoReallocation`" - "`qualityNotAsExpected`" - "` + # returnRefundAbuse`" - "`shippingCostAdjustment`" - "`shippingPriceError`" - "` + # taxAdjustment`" - "`taxError`" - "`undeliverableShippingAddress`" - "` + # unsupportedPoBoxAddress`" - "`wrongProductShipped`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -6084,21 +5757,13 @@ module Google # @return [String] attr_accessor :description - # [required] Reason for the return. - # Acceptable values are: - # - "`customerDiscretionaryReturn`" - # - "`customerInitiatedMerchantCancel`" - # - "`deliveredTooLate`" - # - "`expiredItem`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`other`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`qualityNotAsExpected`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" - # - "`wrongProductShipped`" + # [required] Reason for the return. Acceptable values are: - "` + # customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "` + # deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "` + # malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`qualityNotAsExpected`" - "` + # undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "` + # wrongProductShipped`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -6233,10 +5898,8 @@ module Google class OrdersAcknowledgeResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -6322,18 +5985,10 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The reason for the cancellation. - # Acceptable values are: - # - "`customerInitiatedCancel`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`noInventory`" - # - "`other`" - # - "`priceError`" - # - "`shippingPriceError`" - # - "`taxError`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" + # The reason for the cancellation. Acceptable values are: - "` + # customerInitiatedCancel`" - "`invalidCoupon`" - "`malformedShippingAddress`" - + # "`noInventory`" - "`other`" - "`priceError`" - "`shippingPriceError`" - "` + # taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -6365,10 +6020,8 @@ module Google class OrdersCancelLineItemResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -6399,18 +6052,10 @@ module Google # @return [String] attr_accessor :operation_id - # The reason for the cancellation. - # Acceptable values are: - # - "`customerInitiatedCancel`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`noInventory`" - # - "`other`" - # - "`priceError`" - # - "`shippingPriceError`" - # - "`taxError`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" + # The reason for the cancellation. Acceptable values are: - "` + # customerInitiatedCancel`" - "`invalidCoupon`" - "`malformedShippingAddress`" - + # "`noInventory`" - "`other`" - "`priceError`" - "`shippingPriceError`" - "` + # taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -6436,10 +6081,8 @@ module Google class OrdersCancelResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -6465,11 +6108,8 @@ module Google class OrdersCancelTestOrderByCustomerRequest include Google::Apis::Core::Hashable - # The reason for the cancellation. - # Acceptable values are: - # - "`changedMind`" - # - "`orderedWrongItem`" - # - "`other`" + # The reason for the cancellation. Acceptable values are: - "`changedMind`" - "` + # orderedWrongItem`" - "`other`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -6508,25 +6148,18 @@ module Google class OrdersCreateTestOrderRequest include Google::Apis::Core::Hashable - # The CLDR territory code of the country of the test order to create. Affects + # The CLDR territory code of the country of the test order to create. Affects # the currency and addresses of orders created via `template_name`, or the - # addresses of orders created via `test_order`. - # Acceptable values are: - # - "`US`" - # - "`FR`" Defaults to `US`. + # addresses of orders created via `test_order`. Acceptable values are: - "`US`" - + # "`FR`" Defaults to `US`. # Corresponds to the JSON property `country` # @return [String] attr_accessor :country # The test order template to use. Specify as an alternative to `testOrder` as a # shortcut for retrieving a template and then creating an order using that - # template. - # Acceptable values are: - # - "`template1`" - # - "`template1a`" - # - "`template1b`" - # - "`template2`" - # - "`template3`" + # template. Acceptable values are: - "`template1`" - "`template1a`" - "` + # template1b`" - "`template2`" - "`template3`" # Corresponds to the JSON property `templateName` # @return [String] attr_accessor :template_name @@ -6673,22 +6306,11 @@ module Google # @return [String] attr_accessor :merchant_order_id - # The method of the batch entry. - # Acceptable values are: - # - "`acknowledge`" - # - "`cancel`" - # - "`cancelLineItem`" - # - "`get`" - # - "`getByMerchantOrderId`" - # - "`inStoreRefundLineItem`" - # - "`refund`" - # - "`rejectReturnLineItem`" - # - "`returnLineItem`" - # - "`returnRefundLineItem`" - # - "`setLineItemMetadata`" - # - "`shipLineItems`" - # - "`updateLineItemShippingDetails`" - # - "`updateMerchantOrderId`" + # The method of the batch entry. Acceptable values are: - "`acknowledge`" - "` + # cancel`" - "`cancelLineItem`" - "`get`" - "`getByMerchantOrderId`" - "` + # inStoreRefundLineItem`" - "`refund`" - "`rejectReturnLineItem`" - "` + # returnLineItem`" - "`returnRefundLineItem`" - "`setLineItemMetadata`" - "` + # shipLineItems`" - "`updateLineItemShippingDetails`" - "`updateMerchantOrderId`" # - "`updateShipment`" # Corresponds to the JSON property `method` # @return [String] @@ -6775,18 +6397,10 @@ module Google class OrdersCustomBatchRequestEntryCancel include Google::Apis::Core::Hashable - # The reason for the cancellation. - # Acceptable values are: - # - "`customerInitiatedCancel`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`noInventory`" - # - "`other`" - # - "`priceError`" - # - "`shippingPriceError`" - # - "`taxError`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" + # The reason for the cancellation. Acceptable values are: - "` + # customerInitiatedCancel`" - "`invalidCoupon`" - "`malformedShippingAddress`" - + # "`noInventory`" - "`other`" - "`priceError`" - "`shippingPriceError`" - "` + # taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -6846,18 +6460,10 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The reason for the cancellation. - # Acceptable values are: - # - "`customerInitiatedCancel`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`noInventory`" - # - "`other`" - # - "`priceError`" - # - "`shippingPriceError`" - # - "`taxError`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" + # The reason for the cancellation. Acceptable values are: - "` + # customerInitiatedCancel`" - "`invalidCoupon`" - "`malformedShippingAddress`" - + # "`noInventory`" - "`other`" - "`priceError`" - "`shippingPriceError`" - "` + # taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -6939,21 +6545,13 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The reason for the return. - # Acceptable values are: - # - "`customerDiscretionaryReturn`" - # - "`customerInitiatedMerchantCancel`" - # - "`deliveredTooLate`" - # - "`expiredItem`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`other`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`qualityNotAsExpected`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" - # - "`wrongProductShipped`" + # The reason for the return. Acceptable values are: - "` + # customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "` + # deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "` + # malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`qualityNotAsExpected`" - "` + # undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "` + # wrongProductShipped`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -6999,24 +6597,12 @@ module Google # @return [Google::Apis::ContentV2::Price] attr_accessor :amount_tax - # The reason for the refund. - # Acceptable values are: - # - "`adjustment`" - # - "`courtesyAdjustment`" - # - "`customerCanceled`" - # - "`customerDiscretionaryReturn`" - # - "`deliveredLateByCarrier`" - # - "`feeAdjustment`" - # - "`lateShipmentCredit`" - # - "`noInventory`" - # - "`other`" - # - "`priceError`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`shippingCostAdjustment`" - # - "`taxAdjustment`" - # - "`undeliverableShippingAddress`" - # - "`wrongProductShipped`" + # The reason for the refund. Acceptable values are: - "`adjustment`" - "` + # courtesyAdjustment`" - "`customerCanceled`" - "`customerDiscretionaryReturn`" - + # "`deliveredLateByCarrier`" - "`feeAdjustment`" - "`lateShipmentCredit`" - "` + # noInventory`" - "`other`" - "`priceError`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`shippingCostAdjustment`" - "`taxAdjustment`" - "` + # undeliverableShippingAddress`" - "`wrongProductShipped`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -7060,13 +6646,8 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The reason for the return. - # Acceptable values are: - # - "`damagedOrUsed`" - # - "`missingComponent`" - # - "`notEligible`" - # - "`other`" - # - "`outOfReturnWindow`" + # The reason for the return. Acceptable values are: - "`damagedOrUsed`" - "` + # missingComponent`" - "`notEligible`" - "`other`" - "`outOfReturnWindow`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -7110,21 +6691,13 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The reason for the return. - # Acceptable values are: - # - "`customerDiscretionaryReturn`" - # - "`customerInitiatedMerchantCancel`" - # - "`deliveredTooLate`" - # - "`expiredItem`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`other`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`qualityNotAsExpected`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" - # - "`wrongProductShipped`" + # The reason for the return. Acceptable values are: - "` + # customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "` + # deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "` + # malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`qualityNotAsExpected`" - "` + # undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "` + # wrongProductShipped`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -7181,21 +6754,13 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The reason for the return. - # Acceptable values are: - # - "`customerDiscretionaryReturn`" - # - "`customerInitiatedMerchantCancel`" - # - "`deliveredTooLate`" - # - "`expiredItem`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`other`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`qualityNotAsExpected`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" - # - "`wrongProductShipped`" + # The reason for the return. Acceptable values are: - "` + # customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "` + # deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "` + # malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`qualityNotAsExpected`" - "` + # undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "` + # wrongProductShipped`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -7259,8 +6824,8 @@ module Google include Google::Apis::Core::Hashable # Deprecated. Please use shipmentInfo instead. The carrier handling the shipment. - # See `shipments[].carrier` in the Orders resource representation for a list - # of acceptable values. + # See `shipments[].carrier` in the Orders resource representation for a list of + # acceptable values. # Corresponds to the JSON property `carrier` # @return [String] attr_accessor :carrier @@ -7311,7 +6876,7 @@ module Google class OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo include Google::Apis::Core::Hashable - # The carrier handling the shipment. See `shipments[].carrier` in the Orders + # The carrier handling the shipment. See `shipments[].carrier` in the Orders # resource representation for a list of acceptable values. # Corresponds to the JSON property `carrier` # @return [String] @@ -7345,9 +6910,8 @@ module Google include Google::Apis::Core::Hashable # Updated delivery by date, in ISO 8601 format. If not specified only ship by - # date is updated. - # Provided date should be within 1 year timeframe and can not be a date in the - # past. + # date is updated. Provided date should be within 1 year timeframe and can not + # be a date in the past. # Corresponds to the JSON property `deliverByDate` # @return [String] attr_accessor :deliver_by_date @@ -7365,9 +6929,8 @@ module Google attr_accessor :product_id # Updated ship by date, in ISO 8601 format. If not specified only deliver by - # date is updated. - # Provided date should be within 1 year timeframe and can not be a date in the - # past. + # date is updated. Provided date should be within 1 year timeframe and can not + # be a date in the past. # Corresponds to the JSON property `shipByDate` # @return [String] attr_accessor :ship_by_date @@ -7390,8 +6953,7 @@ module Google include Google::Apis::Core::Hashable # The carrier handling the shipment. Not updated if missing. See `shipments[]. - # carrier` in the Orders resource representation for a list of acceptable - # values. + # carrier` in the Orders resource representation for a list of acceptable values. # Corresponds to the JSON property `carrier` # @return [String] attr_accessor :carrier @@ -7407,11 +6969,8 @@ module Google # @return [String] attr_accessor :shipment_id - # New status for the shipment. Not updated if missing. - # Acceptable values are: - # - "`delivered`" - # - "`undeliverable`" - # - "`readyForPickup`" + # New status for the shipment. Not updated if missing. Acceptable values are: - " + # `delivered`" - "`undeliverable`" - "`readyForPickup`" # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -7475,13 +7034,9 @@ module Google # @return [Google::Apis::ContentV2::Errors] attr_accessor :errors - # The status of the execution. Only defined if - # - the request was successful; and - # - the method is not `get`, `getByMerchantOrderId`, or one of the test methods. - # - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Only defined if 1. the request was successful; + # and 2. the method is not `get`, `getByMerchantOrderId`, or one of the test + # methods. Acceptable values are: - "`duplicate`" - "`executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -7493,8 +7048,7 @@ module Google attr_accessor :kind # Order. Production access (all methods) requires the order manager role. - # Sandbox access does not. (== resource_for v2.orders ==) (== resource_for v2.1. - # orders ==) + # Sandbox access does not. # Corresponds to the JSON property `order` # @return [Google::Apis::ContentV2::Order] attr_accessor :order @@ -7524,8 +7078,7 @@ module Google attr_accessor :kind # Order. Production access (all methods) requires the order manager role. - # Sandbox access does not. (== resource_for v2.orders ==) (== resource_for v2.1. - # orders ==) + # Sandbox access does not. # Corresponds to the JSON property `order` # @return [Google::Apis::ContentV2::Order] attr_accessor :order @@ -7602,21 +7155,13 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The reason for the return. - # Acceptable values are: - # - "`customerDiscretionaryReturn`" - # - "`customerInitiatedMerchantCancel`" - # - "`deliveredTooLate`" - # - "`expiredItem`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`other`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`qualityNotAsExpected`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" - # - "`wrongProductShipped`" + # The reason for the return. Acceptable values are: - "` + # customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "` + # deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "` + # malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`qualityNotAsExpected`" - "` + # undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "` + # wrongProductShipped`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -7647,10 +7192,8 @@ module Google class OrdersInStoreRefundLineItemResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -7729,24 +7272,12 @@ module Google # @return [String] attr_accessor :operation_id - # The reason for the refund. - # Acceptable values are: - # - "`adjustment`" - # - "`courtesyAdjustment`" - # - "`customerCanceled`" - # - "`customerDiscretionaryReturn`" - # - "`deliveredLateByCarrier`" - # - "`feeAdjustment`" - # - "`lateShipmentCredit`" - # - "`noInventory`" - # - "`other`" - # - "`priceError`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`shippingCostAdjustment`" - # - "`taxAdjustment`" - # - "`undeliverableShippingAddress`" - # - "`wrongProductShipped`" + # The reason for the refund. Acceptable values are: - "`adjustment`" - "` + # courtesyAdjustment`" - "`customerCanceled`" - "`customerDiscretionaryReturn`" - + # "`deliveredLateByCarrier`" - "`feeAdjustment`" - "`lateShipmentCredit`" - "` + # noInventory`" - "`other`" - "`priceError`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`shippingCostAdjustment`" - "`taxAdjustment`" - "` + # undeliverableShippingAddress`" - "`wrongProductShipped`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -7775,10 +7306,8 @@ module Google class OrdersRefundResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -7825,13 +7354,8 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The reason for the return. - # Acceptable values are: - # - "`damagedOrUsed`" - # - "`missingComponent`" - # - "`notEligible`" - # - "`other`" - # - "`outOfReturnWindow`" + # The reason for the return. Acceptable values are: - "`damagedOrUsed`" - "` + # missingComponent`" - "`notEligible`" - "`other`" - "`outOfReturnWindow`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -7860,10 +7384,8 @@ module Google class OrdersRejectReturnLineItemResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -7910,21 +7432,13 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The reason for the return. - # Acceptable values are: - # - "`customerDiscretionaryReturn`" - # - "`customerInitiatedMerchantCancel`" - # - "`deliveredTooLate`" - # - "`expiredItem`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`other`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`qualityNotAsExpected`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" - # - "`wrongProductShipped`" + # The reason for the return. Acceptable values are: - "` + # customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "` + # deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "` + # malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`qualityNotAsExpected`" - "` + # undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "` + # wrongProductShipped`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -7953,10 +7467,8 @@ module Google class OrdersReturnLineItemResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -8016,21 +7528,13 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The reason for the return. - # Acceptable values are: - # - "`customerDiscretionaryReturn`" - # - "`customerInitiatedMerchantCancel`" - # - "`deliveredTooLate`" - # - "`expiredItem`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`other`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`qualityNotAsExpected`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" - # - "`wrongProductShipped`" + # The reason for the return. Acceptable values are: - "` + # customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "` + # deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "` + # malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`qualityNotAsExpected`" - "` + # undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "` + # wrongProductShipped`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -8061,10 +7565,8 @@ module Google class OrdersReturnRefundLineItemResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -8129,10 +7631,8 @@ module Google class OrdersSetLineItemMetadataResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -8159,8 +7659,8 @@ module Google include Google::Apis::Core::Hashable # Deprecated. Please use shipmentInfo instead. The carrier handling the shipment. - # See `shipments[].carrier` in the Orders resource representation for a list - # of acceptable values. + # See `shipments[].carrier` in the Orders resource representation for a list of + # acceptable values. # Corresponds to the JSON property `carrier` # @return [String] attr_accessor :carrier @@ -8217,10 +7717,8 @@ module Google class OrdersShipLineItemsResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -8247,9 +7745,8 @@ module Google include Google::Apis::Core::Hashable # Updated delivery by date, in ISO 8601 format. If not specified only ship by - # date is updated. - # Provided date should be within 1 year timeframe and can not be a date in the - # past. + # date is updated. Provided date should be within 1 year timeframe and can not + # be a date in the past. # Corresponds to the JSON property `deliverByDate` # @return [String] attr_accessor :deliver_by_date @@ -8272,9 +7769,8 @@ module Google attr_accessor :product_id # Updated ship by date, in ISO 8601 format. If not specified only deliver by - # date is updated. - # Provided date should be within 1 year timeframe and can not be a date in the - # past. + # date is updated. Provided date should be within 1 year timeframe and can not + # be a date in the past. # Corresponds to the JSON property `shipByDate` # @return [String] attr_accessor :ship_by_date @@ -8297,10 +7793,8 @@ module Google class OrdersUpdateLineItemShippingDetailsResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -8351,10 +7845,8 @@ module Google class OrdersUpdateMerchantOrderIdResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -8381,8 +7873,7 @@ module Google include Google::Apis::Core::Hashable # The carrier handling the shipment. Not updated if missing. See `shipments[]. - # carrier` in the Orders resource representation for a list of acceptable - # values. + # carrier` in the Orders resource representation for a list of acceptable values. # Corresponds to the JSON property `carrier` # @return [String] attr_accessor :carrier @@ -8403,11 +7894,8 @@ module Google # @return [String] attr_accessor :shipment_id - # New status for the shipment. Not updated if missing. - # Acceptable values are: - # - "`delivered`" - # - "`undeliverable`" - # - "`readyForPickup`" + # New status for the shipment. Not updated if missing. Acceptable values are: - " + # `delivered`" - "`undeliverable`" - "`readyForPickup`" # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -8436,10 +7924,8 @@ module Google class OrdersUpdateShipmentResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -8555,13 +8041,8 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`delete`" - # - "`get`" - # - "`insert`" - # - "`inventory`" - # - "`sale`" + # The method of the batch entry. Acceptable values are: - "`delete`" - "`get`" - + # "`insert`" - "`inventory`" - "`sale`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :method_prop @@ -9305,12 +8786,11 @@ module Google end # Required product attributes are primarily defined by the products data - # specification. See the Products Data Specification Help Center article for - # information. - # Some attributes are country-specific, so make sure you select the appropriate - # country in the drop-down selector at the top of the page. - # Product data. After inserting, updating, or deleting a product, it may take - # several minutes before changes take effect. + # specification. See the Products Data Specification Help Center article for + # information. Some attributes are country-specific, so make sure you select the + # appropriate country in the drop-down selector at the top of the page. Product + # data. After inserting, updating, or deleting a product, it may take several + # minutes before changes take effect. class Product include Google::Apis::Core::Hashable @@ -9347,14 +8827,8 @@ module Google # @return [String] attr_accessor :adwords_redirect - # Target age group of the item. - # Acceptable values are: - # - "`adult`" - # - "`infant`" - # - "`kids`" - # - "`newborn`" - # - "`toddler`" - # - "`youngAdult`" + # Target age group of the item. Acceptable values are: - "`adult`" - "`infant`" - + # "`kids`" - "`newborn`" - "`toddler`" - "`youngAdult`" # Corresponds to the JSON property `ageGroup` # @return [String] attr_accessor :age_group @@ -9364,11 +8838,8 @@ module Google # @return [Array] attr_accessor :aspects - # Availability status of the item. - # Acceptable values are: - # - "`in stock`" - # - "`out of stock`" - # - "`preorder`" + # Availability status of the item. Acceptable values are: - "`in stock`" - "`out + # of stock`" - "`preorder`" # Corresponds to the JSON property `availability` # @return [String] attr_accessor :availability @@ -9389,10 +8860,8 @@ module Google # @return [String] attr_accessor :canonical_link - # Required. The item's channel (online or local). - # Acceptable values are: - # - "`local`" - # - "`online`" + # Required. The item's channel (online or local). Acceptable values are: - "` + # local`" - "`online`" # Corresponds to the JSON property `channel` # @return [String] attr_accessor :channel @@ -9402,10 +8871,8 @@ module Google # @return [String] attr_accessor :color - # Condition or state of the item. - # Acceptable values are: - # - "`local`" - # - "`online`" + # Condition or state of the item. Acceptable values are: - "`local`" - "`online`" + # # Corresponds to the JSON property `condition` # @return [String] attr_accessor :condition @@ -9494,18 +8961,9 @@ module Google # @return [Float] attr_accessor :display_ads_value - # The energy efficiency class as defined in EU directive 2010/30/EU. - # Acceptable values are: - # - "`A`" - # - "`A+`" - # - "`A++`" - # - "`A+++`" - # - "`B`" - # - "`C`" - # - "`D`" - # - "`E`" - # - "`F`" - # - "`G`" + # The energy efficiency class as defined in EU directive 2010/30/EU. Acceptable + # values are: - "`A`" - "`A+`" - "`A++`" - "`A+++`" - "`B`" - "`C`" - "`D`" - "` + # E`" - "`F`" - "`G`" # Corresponds to the JSON property `energyEfficiencyClass` # @return [String] attr_accessor :energy_efficiency_class @@ -9518,11 +8976,8 @@ module Google # @return [String] attr_accessor :expiration_date - # Target gender of the item. - # Acceptable values are: - # - "`female`" - # - "`male`" - # - "`unisex`" + # Target gender of the item. Acceptable values are: - "`female`" - "`male`" - "` + # unisex`" # Corresponds to the JSON property `gender` # @return [String] attr_accessor :gender @@ -9538,9 +8993,8 @@ module Google attr_accessor :gtin # The REST ID of the product. Content API methods that operate on products take - # this as their `productId` parameter. - # The REST ID for a product is of the form channel:contentLanguage:targetCountry: - # offerId. + # this as their `productId` parameter. The REST ID for a product is of the form + # channel:contentLanguage: targetCountry: offerId. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -9596,18 +9050,9 @@ module Google # @return [String] attr_accessor :material - # The energy efficiency class as defined in EU directive 2010/30/EU. - # Acceptable values are: - # - "`A`" - # - "`A+`" - # - "`A++`" - # - "`A+++`" - # - "`B`" - # - "`C`" - # - "`D`" - # - "`E`" - # - "`F`" - # - "`G`" + # The energy efficiency class as defined in EU directive 2010/30/EU. Acceptable + # values are: - "`A`" - "`A+`" - "`A++`" - "`A+++`" - "`B`" - "`C`" - "`D`" - "` + # E`" - "`F`" - "`G`" # Corresponds to the JSON property `maxEnergyEfficiencyClass` # @return [String] attr_accessor :max_energy_efficiency_class @@ -9617,18 +9062,9 @@ module Google # @return [Fixnum] attr_accessor :max_handling_time - # The energy efficiency class as defined in EU directive 2010/30/EU. - # Acceptable values are: - # - "`A`" - # - "`A+`" - # - "`A++`" - # - "`A+++`" - # - "`B`" - # - "`C`" - # - "`D`" - # - "`E`" - # - "`F`" - # - "`G`" + # The energy efficiency class as defined in EU directive 2010/30/EU. Acceptable + # values are: - "`A`" - "`A+`" - "`A++`" - "`A+++`" - "`B`" - "`C`" - "`D`" - "` + # E`" - "`F`" - "`G`" # Corresponds to the JSON property `minEnergyEfficiencyClass` # @return [String] attr_accessor :min_energy_efficiency_class @@ -9656,9 +9092,8 @@ module Google # Required. A unique identifier for the item. Leading and trailing whitespaces # are stripped and multiple whitespaces are replaced by a single whitespace upon # submission. Only valid unicode characters are accepted. See the products feed - # specification for details. - # Note: Content API methods that operate on products take the REST ID of the - # product, not this identifier. + # specification for details. *Note:* Content API methods that operate on + # products take the REST ID of the product, *not* this identifier. # Corresponds to the JSON property `offerId` # @return [String] attr_accessor :offer_id @@ -9694,7 +9129,7 @@ module Google # @return [Google::Apis::ContentV2::Price] attr_accessor :sale_price - # Date range during which the item is on sale (see products data specification). + # Date range during which the item is on sale (see products data specification ). # Corresponds to the JSON property `salePriceEffectiveDate` # @return [String] attr_accessor :sale_price_effective_date @@ -9737,30 +9172,15 @@ module Google attr_accessor :shipping_width # System in which the size is specified. Recommended for apparel items. - # Acceptable values are: - # - "`AU`" - # - "`BR`" - # - "`CN`" - # - "`DE`" - # - "`EU`" - # - "`FR`" - # - "`IT`" - # - "`JP`" - # - "`MEX`" - # - "`UK`" - # - "`US`" + # Acceptable values are: - "`AU`" - "`BR`" - "`CN`" - "`DE`" - "`EU`" - "`FR`" - + # "`IT`" - "`JP`" - "`MEX`" - "`UK`" - "`US`" # Corresponds to the JSON property `sizeSystem` # @return [String] attr_accessor :size_system - # The cut of the item. Recommended for apparel items. - # Acceptable values are: - # - "`big and tall`" - # - "`maternity`" - # - "`oversize`" - # - "`petite`" - # - "`plus`" - # - "`regular`" + # The cut of the item. Recommended for apparel items. Acceptable values are: - "` + # big and tall`" - "`maternity`" - "`oversize`" - "`petite`" - "`plus`" - "` + # regular`" # Corresponds to the JSON property `sizeType` # @return [String] attr_accessor :size_type @@ -9772,11 +9192,8 @@ module Google # @return [Array] attr_accessor :sizes - # The source of the offer, i.e., how the offer was created. - # Acceptable values are: - # - "`api`" - # - "`crawl`" - # - "`feed`" + # The source of the offer, i.e., how the offer was created. Acceptable values + # are: - "`api`" - "`crawl`" - "`feed`" # Corresponds to the JSON property `source` # @return [String] attr_accessor :source @@ -9977,11 +9394,8 @@ module Google attr_accessor :destination_name # Whether the destination is required, excluded or should be validated. - # Acceptable values are: - # - "`default`" - # - "`excluded`" - # - "`optional`" - # - "`required`" + # Acceptable values are: - "`default`" - "`excluded`" - "`optional`" - "` + # required`" # Corresponds to the JSON property `intention` # @return [String] attr_accessor :intention @@ -10153,12 +9567,11 @@ module Google attr_accessor :link # Required product attributes are primarily defined by the products data - # specification. See the Products Data Specification Help Center article for - # information. - # Some attributes are country-specific, so make sure you select the appropriate - # country in the drop-down selector at the top of the page. - # Product data. After inserting, updating, or deleting a product, it may take - # several minutes before changes take effect. + # specification. See the Products Data Specification Help Center article for + # information. Some attributes are country-specific, so make sure you select the + # appropriate country in the drop-down selector at the top of the page. Product + # data. After inserting, updating, or deleting a product, it may take several + # minutes before changes take effect. # Corresponds to the JSON property `product` # @return [Google::Apis::ContentV2::Product] attr_accessor :product @@ -10270,10 +9683,8 @@ module Google attr_accessor :approval_pending alias_method :approval_pending?, :approval_pending - # The destination's approval status. - # Acceptable values are: - # - "`approved`" - # - "`disapproved`" + # The destination's approval status. Acceptable values are: - "`approved`" - "` + # disapproved`" # Corresponds to the JSON property `approvalStatus` # @return [String] attr_accessor :approval_status @@ -10283,12 +9694,8 @@ module Google # @return [String] attr_accessor :destination - # Provided for backward compatibility only. Always set to "required". - # Acceptable values are: - # - "`default`" - # - "`excluded`" - # - "`optional`" - # - "`required`" + # Provided for backward compatibility only. Always set to "required". Acceptable + # values are: - "`default`" - "`excluded`" - "`optional`" - "`required`" # Corresponds to the JSON property `intention` # @return [String] attr_accessor :intention @@ -10503,22 +9910,18 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`delete`" - # - "`get`" - # - "`insert`" + # The method of the batch entry. Acceptable values are: - "`delete`" - "`get`" - + # "`insert`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :request_method # Required product attributes are primarily defined by the products data - # specification. See the Products Data Specification Help Center article for - # information. - # Some attributes are country-specific, so make sure you select the appropriate - # country in the drop-down selector at the top of the page. - # Product data. After inserting, updating, or deleting a product, it may take - # several minutes before changes take effect. + # specification. See the Products Data Specification Help Center article for + # information. Some attributes are country-specific, so make sure you select the + # appropriate country in the drop-down selector at the top of the page. Product + # data. After inserting, updating, or deleting a product, it may take several + # minutes before changes take effect. # Corresponds to the JSON property `product` # @return [Google::Apis::ContentV2::Product] attr_accessor :product @@ -10590,12 +9993,11 @@ module Google attr_accessor :kind # Required product attributes are primarily defined by the products data - # specification. See the Products Data Specification Help Center article for - # information. - # Some attributes are country-specific, so make sure you select the appropriate - # country in the drop-down selector at the top of the page. - # Product data. After inserting, updating, or deleting a product, it may take - # several minutes before changes take effect. + # specification. See the Products Data Specification Help Center article for + # information. Some attributes are country-specific, so make sure you select the + # appropriate country in the drop-down selector at the top of the page. Product + # data. After inserting, updating, or deleting a product, it may take several + # minutes before changes take effect. # Corresponds to the JSON property `product` # @return [Google::Apis::ContentV2::Product] attr_accessor :product @@ -10690,9 +10092,7 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`get`" + # The method of the batch entry. Acceptable values are: - "`get`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :request_method @@ -10907,52 +10307,23 @@ module Google # @return [String] attr_accessor :description - # Code of the refund reason. - # Acceptable values are: - # - "`adjustment`" - # - "`autoPostInternal`" - # - "`autoPostInvalidBillingAddress`" - # - "`autoPostNoInventory`" - # - "`autoPostPriceError`" - # - "`autoPostUndeliverableShippingAddress`" - # - "`couponAbuse`" - # - "`courtesyAdjustment`" - # - "`customerCanceled`" - # - "`customerDiscretionaryReturn`" - # - "`customerInitiatedMerchantCancel`" - # - "`customerSupportRequested`" - # - "`deliveredLateByCarrier`" - # - "`deliveredTooLate`" - # - "`expiredItem`" - # - "`failToPushOrderGoogleError`" - # - "`failToPushOrderMerchantError`" - # - "`failToPushOrderMerchantFulfillmentError`" - # - "`failToPushOrderToMerchant`" - # - "`failToPushOrderToMerchantOutOfStock`" - # - "`feeAdjustment`" - # - "`invalidCoupon`" - # - "`lateShipmentCredit`" - # - "`malformedShippingAddress`" - # - "`merchantDidNotShipOnTime`" - # - "`noInventory`" - # - "`orderTimeout`" - # - "`other`" - # - "`paymentAbuse`" - # - "`paymentDeclined`" - # - "`priceAdjustment`" - # - "`priceError`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`promoReallocation`" - # - "`qualityNotAsExpected`" - # - "`returnRefundAbuse`" - # - "`shippingCostAdjustment`" - # - "`shippingPriceError`" - # - "`taxAdjustment`" - # - "`taxError`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" - # - "`wrongProductShipped`" + # Code of the refund reason. Acceptable values are: - "`adjustment`" - "` + # autoPostInternal`" - "`autoPostInvalidBillingAddress`" - "`autoPostNoInventory` + # " - "`autoPostPriceError`" - "`autoPostUndeliverableShippingAddress`" - "` + # couponAbuse`" - "`courtesyAdjustment`" - "`customerCanceled`" - "` + # customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "` + # customerSupportRequested`" - "`deliveredLateByCarrier`" - "`deliveredTooLate`" + # - "`expiredItem`" - "`failToPushOrderGoogleError`" - "` + # failToPushOrderMerchantError`" - "`failToPushOrderMerchantFulfillmentError`" - + # "`failToPushOrderToMerchant`" - "`failToPushOrderToMerchantOutOfStock`" - "` + # feeAdjustment`" - "`invalidCoupon`" - "`lateShipmentCredit`" - "` + # malformedShippingAddress`" - "`merchantDidNotShipOnTime`" - "`noInventory`" - " + # `orderTimeout`" - "`other`" - "`paymentAbuse`" - "`paymentDeclined`" - "` + # priceAdjustment`" - "`priceError`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`promoReallocation`" - "`qualityNotAsExpected`" - "` + # returnRefundAbuse`" - "`shippingCostAdjustment`" - "`shippingPriceError`" - "` + # taxAdjustment`" - "`taxError`" - "`undeliverableShippingAddress`" - "` + # unsupportedPoBoxAddress`" - "`wrongProductShipped`" # Corresponds to the JSON property `reasonCode` # @return [String] attr_accessor :reason_code @@ -10982,11 +10353,8 @@ module Google # @return [String] attr_accessor :delivery_date - # Type of the return method. - # Acceptable values are: - # - "`byMail`" - # - "`contactCustomerSupport`" - # - "`returnless`" + # Type of the return method. Acceptable values are: - "`byMail`" - "` + # contactCustomerSupport`" - "`returnless`" # Corresponds to the JSON property `returnMethodType` # @return [String] attr_accessor :return_method_type @@ -11007,13 +10375,8 @@ module Google # @return [String] attr_accessor :shipping_date - # State of the shipment. - # Acceptable values are: - # - "`completed`" - # - "`new`" - # - "`shipped`" - # - "`undeliverable`" - # - "`pending`" + # State of the shipment. Acceptable values are: - "`completed`" - "`new`" - "` + # shipped`" - "`undeliverable`" - "`pending`" # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -11082,11 +10445,8 @@ module Google # @return [Google::Apis::ContentV2::DeliveryTime] attr_accessor :delivery_time - # Eligibility for this service. - # Acceptable values are: - # - "`All scenarios`" - # - "`All scenarios except Shopping Actions`" - # - "`Shopping Actions`" + # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "` + # All scenarios except Shopping Actions`" - "`Shopping Actions`" # Corresponds to the JSON property `eligibility` # @return [String] attr_accessor :eligibility @@ -11123,10 +10483,8 @@ module Google # @return [Array] attr_accessor :rate_groups - # Type of locations this service ships orders to. - # Acceptable values are: - # - "`delivery`" - # - "`pickup`" + # Type of locations this service ships orders to. Acceptable values are: - "` + # delivery`" - "`pickup`" # Corresponds to the JSON property `shipmentType` # @return [String] attr_accessor :shipment_type @@ -11229,38 +10587,13 @@ module Google class ShipmentTrackingInfo include Google::Apis::Core::Hashable - # The shipping carrier that handles the package. - # Acceptable values are: - # - "`boxtal`" - # - "`bpost`" - # - "`chronopost`" - # - "`colisPrive`" - # - "`colissimo`" - # - "`cxt`" - # - "`deliv`" - # - "`dhl`" - # - "`dpd`" - # - "`dynamex`" - # - "`eCourier`" - # - "`easypost`" - # - "`efw`" - # - "`fedex`" - # - "`fedexSmartpost`" - # - "`geodis`" - # - "`gls`" - # - "`googleCourier`" - # - "`gsx`" - # - "`jdLogistics`" - # - "`laPoste`" - # - "`lasership`" - # - "`manual`" - # - "`mpx`" - # - "`onTrac`" - # - "`other`" - # - "`tnt`" - # - "`uds`" - # - "`ups`" - # - "`usps`" + # The shipping carrier that handles the package. Acceptable values are: - "` + # boxtal`" - "`bpost`" - "`chronopost`" - "`colisPrive`" - "`colissimo`" - "`cxt` + # " - "`deliv`" - "`dhl`" - "`dpd`" - "`dynamex`" - "`eCourier`" - "`easypost`" - + # "`efw`" - "`fedex`" - "`fedexSmartpost`" - "`geodis`" - "`gls`" - "` + # googleCourier`" - "`gsx`" - "`jdLogistics`" - "`laPoste`" - "`lasership`" - "` + # manual`" - "`mpx`" - "`onTrac`" - "`other`" - "`tnt`" - "`uds`" - "`ups`" - "` + # usps`" # Corresponds to the JSON property `carrier` # @return [String] attr_accessor :carrier @@ -11352,10 +10685,7 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`get`" - # - "`update`" + # The method of the batch entry. Acceptable values are: - "`get`" - "`update`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :method_prop @@ -11632,21 +10962,14 @@ module Google attr_accessor :payment_method # Required. Identifier of one of the predefined delivery addresses for the - # delivery. - # Acceptable values are: - # - "`dwight`" - # - "`jim`" - # - "`pam`" + # delivery. Acceptable values are: - "`dwight`" - "`jim`" - "`pam`" # Corresponds to the JSON property `predefinedDeliveryAddress` # @return [String] attr_accessor :predefined_delivery_address # Identifier of one of the predefined pickup details. Required for orders - # containing line items with shipping type `pickup`. - # Acceptable values are: - # - "`dwight`" - # - "`jim`" - # - "`pam`" + # containing line items with shipping type `pickup`. Acceptable values are: - "` + # dwight`" - "`jim`" - "`pam`" # Corresponds to the JSON property `predefinedPickupDetails` # @return [String] attr_accessor :predefined_pickup_details @@ -11669,14 +10992,8 @@ module Google # @return [Google::Apis::ContentV2::Price] attr_accessor :shipping_cost_tax - # Required. The requested shipping option. - # Acceptable values are: - # - "`economy`" - # - "`expedited`" - # - "`oneDay`" - # - "`sameDay`" - # - "`standard`" - # - "`twoDay`" + # Required. The requested shipping option. Acceptable values are: - "`economy`" - + # "`expedited`" - "`oneDay`" - "`sameDay`" - "`standard`" - "`twoDay`" # Corresponds to the JSON property `shippingOption` # @return [String] attr_accessor :shipping_option @@ -11706,11 +11023,9 @@ module Google class TestOrderCustomer include Google::Apis::Core::Hashable - # Required. Email address of the customer. - # Acceptable values are: - # - "`pog.dwight.schrute@gmail.com`" - # - "`pog.jim.halpert@gmail.com`" - # - "`penpog.pam.beesly@gmail.comding`" + # Required. Email address of the customer. Acceptable values are: - "`pog.dwight. + # schrute@gmail.com`" - "`pog.jim.halpert@gmail.com`" - "`penpog.pam.beesly@ + # gmail.comding`" # Corresponds to the JSON property `email` # @return [String] attr_accessor :email @@ -11749,10 +11064,8 @@ module Google include Google::Apis::Core::Hashable # Last know user use selection regards marketing preferences. In certain cases - # selection might not be known, so this field would be empty. - # Acceptable values are: - # - "`denied`" - # - "`granted`" + # selection might not be known, so this field would be empty. Acceptable values + # are: - "`denied`" - "`granted`" # Corresponds to the JSON property `explicitMarketingPreference` # @return [String] attr_accessor :explicit_marketing_preference @@ -11826,24 +11139,18 @@ module Google # @return [String] attr_accessor :brand - # Deprecated. - # Acceptable values are: - # - "`online`" + # Deprecated. Acceptable values are: - "`online`" # Corresponds to the JSON property `channel` # @return [String] attr_accessor :channel - # Required. Condition or state of the item. - # Acceptable values are: - # - "`new`" + # Required. Condition or state of the item. Acceptable values are: - "`new`" # Corresponds to the JSON property `condition` # @return [String] attr_accessor :condition - # Required. The two-letter ISO 639-1 language code for the item. - # Acceptable values are: - # - "`en`" - # - "`fr`" + # Required. The two-letter ISO 639-1 language code for the item. Acceptable + # values are: - "`en`" - "`fr`" # Corresponds to the JSON property `contentLanguage` # @return [String] attr_accessor :content_language @@ -11885,7 +11192,7 @@ module Google # @return [Google::Apis::ContentV2::Price] attr_accessor :price - # Required. The CLDR territory code of the target country of the product. + # Required. The CLDR territory // code of the target country of the product. # Corresponds to the JSON property `targetCountry` # @return [String] attr_accessor :target_country @@ -11942,22 +11249,14 @@ module Google # @return [String] attr_accessor :last_four_digits - # The billing address. - # Acceptable values are: - # - "`dwight`" - # - "`jim`" - # - "`pam`" + # The billing address. Acceptable values are: - "`dwight`" - "`jim`" - "`pam`" # Corresponds to the JSON property `predefinedBillingAddress` # @return [String] attr_accessor :predefined_billing_address # The type of instrument. Note that real orders might have different values than - # the four values accepted by `createTestOrder`. - # Acceptable values are: - # - "`AMEX`" - # - "`DISCOVER`" - # - "`MASTERCARD`" - # - "`VISA`" + # the four values accepted by `createTestOrder`. Acceptable values are: - "`AMEX` + # " - "`DISCOVER`" - "`MASTERCARD`" - "`VISA`" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -12106,9 +11405,8 @@ module Google # @return [Array] attr_accessor :additional_charge_promotions - # [required] Type of the additional charge. - # Acceptable values are: - # - "`shipping`" + # [required] Type of the additional charge. Acceptable values are: - "`shipping`" + # # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -12140,11 +11438,8 @@ module Google # @return [String] attr_accessor :tax_name - # [required] Type of the tax. - # Acceptable values are: - # - "`otherFee`" - # - "`otherFeeTax`" - # - "`sales`" + # [required] Type of the tax. Acceptable values are: - "`otherFee`" - "` + # otherFeeTax`" - "`sales`" # Corresponds to the JSON property `taxType` # @return [String] attr_accessor :tax_type @@ -12215,10 +11510,7 @@ module Google class Weight include Google::Apis::Core::Hashable - # Required. The weight unit. - # Acceptable values are: - # - "`kg`" - # - "`lb`" + # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" # Corresponds to the JSON property `unit` # @return [String] attr_accessor :unit diff --git a/generated/google/apis/content_v2/service.rb b/generated/google/apis/content_v2/service.rb index d5534d318..d0564e601 100644 --- a/generated/google/apis/content_v2/service.rb +++ b/generated/google/apis/content_v2/service.rb @@ -22,8 +22,7 @@ module Google module ContentV2 # Content API for Shopping # - # Manages product items, inventory, and Merchant Center accounts for Google - # Shopping. + # Manage your product listings and accounts for Google Shopping # # @example # require 'google/apis/content_v2' @@ -31,7 +30,7 @@ module Google # Content = Google::Apis::ContentV2 # Alias the module # service = Content::ShoppingContentService.new # - # @see https://developers.google.com/shopping-content + # @see https://developers.google.com/shopping-content/v2/ class ShoppingContentService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access, @@ -39,27 +38,21 @@ module Google attr_accessor :key # @return [String] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. attr_accessor :quota_user - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - def initialize - super('https://www.googleapis.com/', 'content/v2/') - @batch_path = 'batch/content/v2' + super('https://shoppingcontent.googleapis.com/', '') + @batch_path = 'batch' end # Returns information about the authenticated user. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -72,13 +65,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account_authinfo(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/authinfo', options) + def get_account_authinfo(fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/accounts/authinfo', options) command.response_representation = Google::Apis::ContentV2::AccountsAuthInfoResponse::Representation command.response_class = Google::Apis::ContentV2::AccountsAuthInfoResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -96,10 +88,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -112,8 +102,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def claimwebsite_account(merchant_id, account_id, overwrite: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/claimwebsite', options) + def claimwebsite_account(merchant_id, account_id, overwrite: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/accounts/{accountId}/claimwebsite', options) command.response_representation = Google::Apis::ContentV2::AccountsClaimWebsiteResponse::Representation command.response_class = Google::Apis::ContentV2::AccountsClaimWebsiteResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -121,7 +111,6 @@ module Google command.query['overwrite'] = overwrite unless overwrite.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -134,10 +123,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -150,8 +137,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def batch_account(batch_accounts_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'accounts/batch', options) + def batch_account(batch_accounts_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/accounts/batch', options) command.request_representation = Google::Apis::ContentV2::BatchAccountsRequest::Representation command.request_object = batch_accounts_request_object command.response_representation = Google::Apis::ContentV2::BatchAccountsResponse::Representation @@ -159,7 +146,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -177,10 +163,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -193,15 +177,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_account(merchant_id, account_id, dry_run: nil, force: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{merchantId}/accounts/{accountId}', options) + def delete_account(merchant_id, account_id, dry_run: nil, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'content/v2/{merchantId}/accounts/{accountId}', options) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['dryRun'] = dry_run unless dry_run.nil? command.query['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -215,10 +198,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -231,15 +212,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/accounts/{accountId}', options) + def get_account(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/accounts/{accountId}', options) command.response_representation = Google::Apis::ContentV2::Account::Representation command.response_class = Google::Apis::ContentV2::Account command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -253,10 +233,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -269,8 +247,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_account(merchant_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/accounts', options) + def insert_account(merchant_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/accounts', options) command.request_representation = Google::Apis::ContentV2::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::ContentV2::Account::Representation @@ -279,7 +257,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -295,10 +272,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -311,8 +286,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def link_account(merchant_id, account_id, accounts_link_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/link', options) + def link_account(merchant_id, account_id, accounts_link_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/accounts/{accountId}/link', options) command.request_representation = Google::Apis::ContentV2::AccountsLinkRequest::Representation command.request_object = accounts_link_request_object command.response_representation = Google::Apis::ContentV2::AccountsLinkResponse::Representation @@ -321,7 +296,6 @@ module Google command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -335,10 +309,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -351,8 +323,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_accounts(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/accounts', options) + def list_accounts(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/accounts', options) command.response_representation = Google::Apis::ContentV2::ListAccountsResponse::Representation command.response_class = Google::Apis::ContentV2::ListAccountsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -360,7 +332,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -379,10 +350,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -395,8 +364,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_account(merchant_id, account_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{merchantId}/accounts/{accountId}', options) + def update_account(merchant_id, account_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'content/v2/{merchantId}/accounts/{accountId}', options) command.request_representation = Google::Apis::ContentV2::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::ContentV2::Account::Representation @@ -406,7 +375,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -415,10 +383,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -431,15 +397,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def batch_account_status(batch_account_statuses_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'accountstatuses/batch', options) + def batch_account_status(batch_account_statuses_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/accountstatuses/batch', options) command.request_representation = Google::Apis::ContentV2::BatchAccountStatusesRequest::Representation command.request_object = batch_account_statuses_request_object command.response_representation = Google::Apis::ContentV2::BatchAccountStatusesResponse::Representation command.response_class = Google::Apis::ContentV2::BatchAccountStatusesResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -457,10 +422,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -473,8 +436,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account_status(merchant_id, account_id, destinations: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/accountstatuses/{accountId}', options) + def get_account_status(merchant_id, account_id, destinations: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/accountstatuses/{accountId}', options) command.response_representation = Google::Apis::ContentV2::AccountStatus::Representation command.response_class = Google::Apis::ContentV2::AccountStatus command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -482,7 +445,6 @@ module Google command.query['destinations'] = destinations unless destinations.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -500,10 +462,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -516,8 +476,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_account_statuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/accountstatuses', options) + def list_account_statuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/accountstatuses', options) command.response_representation = Google::Apis::ContentV2::ListAccountStatusesResponse::Representation command.response_class = Google::Apis::ContentV2::ListAccountStatusesResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -526,7 +486,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -538,10 +497,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -554,8 +511,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def batch_account_tax(batch_account_tax_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'accounttax/batch', options) + def batch_account_tax(batch_account_tax_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/accounttax/batch', options) command.request_representation = Google::Apis::ContentV2::BatchAccountTaxRequest::Representation command.request_object = batch_account_tax_request_object command.response_representation = Google::Apis::ContentV2::BatchAccountTaxResponse::Representation @@ -563,7 +520,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -577,10 +533,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -593,15 +547,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account_tax(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/accounttax/{accountId}', options) + def get_account_tax(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/accounttax/{accountId}', options) command.response_representation = Google::Apis::ContentV2::AccountTax::Representation command.response_class = Google::Apis::ContentV2::AccountTax command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -615,10 +568,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -631,8 +582,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_account_taxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/accounttax', options) + def list_account_taxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/accounttax', options) command.response_representation = Google::Apis::ContentV2::ListAccountTaxResponse::Representation command.response_class = Google::Apis::ContentV2::ListAccountTaxResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -640,7 +591,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -659,10 +609,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -675,8 +623,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_account_tax(merchant_id, account_id, account_tax_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{merchantId}/accounttax/{accountId}', options) + def update_account_tax(merchant_id, account_id, account_tax_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'content/v2/{merchantId}/accounttax/{accountId}', options) command.request_representation = Google::Apis::ContentV2::AccountTax::Representation command.request_object = account_tax_object command.response_representation = Google::Apis::ContentV2::AccountTax::Representation @@ -686,7 +634,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -699,10 +646,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -715,8 +660,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def batch_datafeed(batch_datafeeds_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'datafeeds/batch', options) + def batch_datafeed(batch_datafeeds_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/datafeeds/batch', options) command.request_representation = Google::Apis::ContentV2::BatchDatafeedsRequest::Representation command.request_object = batch_datafeeds_request_object command.response_representation = Google::Apis::ContentV2::BatchDatafeedsResponse::Representation @@ -724,7 +669,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -740,10 +684,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -756,14 +698,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_datafeed(merchant_id, datafeed_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{merchantId}/datafeeds/{datafeedId}', options) + def delete_datafeed(merchant_id, datafeed_id, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'content/v2/{merchantId}/datafeeds/{datafeedId}', options) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['datafeedId'] = datafeed_id unless datafeed_id.nil? command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -779,10 +720,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -795,8 +734,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def fetchnow_datafeed(merchant_id, datafeed_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/datafeeds/{datafeedId}/fetchNow', options) + def fetchnow_datafeed(merchant_id, datafeed_id, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/datafeeds/{datafeedId}/fetchNow', options) command.response_representation = Google::Apis::ContentV2::DatafeedsFetchNowResponse::Representation command.response_class = Google::Apis::ContentV2::DatafeedsFetchNowResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -804,7 +743,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -817,10 +755,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -833,15 +769,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/datafeeds/{datafeedId}', options) + def get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/datafeeds/{datafeedId}', options) command.response_representation = Google::Apis::ContentV2::Datafeed::Representation command.response_class = Google::Apis::ContentV2::Datafeed command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['datafeedId'] = datafeed_id unless datafeed_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -856,10 +791,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -872,8 +805,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_datafeed(merchant_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/datafeeds', options) + def insert_datafeed(merchant_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/datafeeds', options) command.request_representation = Google::Apis::ContentV2::Datafeed::Representation command.request_object = datafeed_object command.response_representation = Google::Apis::ContentV2::Datafeed::Representation @@ -882,7 +815,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -897,10 +829,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -913,8 +843,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/datafeeds', options) + def list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/datafeeds', options) command.response_representation = Google::Apis::ContentV2::ListDatafeedsResponse::Representation command.response_class = Google::Apis::ContentV2::ListDatafeedsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -922,7 +852,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -940,10 +869,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -956,8 +883,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{merchantId}/datafeeds/{datafeedId}', options) + def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'content/v2/{merchantId}/datafeeds/{datafeedId}', options) command.request_representation = Google::Apis::ContentV2::Datafeed::Representation command.request_object = datafeed_object command.response_representation = Google::Apis::ContentV2::Datafeed::Representation @@ -967,7 +894,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -976,10 +902,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -992,15 +916,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def batch_datafeed_status(batch_datafeed_statuses_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'datafeedstatuses/batch', options) + def batch_datafeed_status(batch_datafeed_statuses_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/datafeedstatuses/batch', options) command.request_representation = Google::Apis::ContentV2::BatchDatafeedStatusesRequest::Representation command.request_object = batch_datafeed_statuses_request_object command.response_representation = Google::Apis::ContentV2::BatchDatafeedStatusesResponse::Representation command.response_class = Google::Apis::ContentV2::BatchDatafeedStatusesResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1023,10 +946,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1039,8 +960,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_datafeed_status(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/datafeedstatuses/{datafeedId}', options) + def get_datafeed_status(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/datafeedstatuses/{datafeedId}', options) command.response_representation = Google::Apis::ContentV2::DatafeedStatus::Representation command.response_class = Google::Apis::ContentV2::DatafeedStatus command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1049,7 +970,6 @@ module Google command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1064,10 +984,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1080,8 +998,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_datafeed_statuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/datafeedstatuses', options) + def list_datafeed_statuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/datafeedstatuses', options) command.response_representation = Google::Apis::ContentV2::ListDatafeedStatusesResponse::Representation command.response_class = Google::Apis::ContentV2::ListDatafeedStatusesResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1089,7 +1007,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1102,10 +1019,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1118,8 +1033,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def batch_inventory(batch_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'inventory/batch', options) + def batch_inventory(batch_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/inventory/batch', options) command.request_representation = Google::Apis::ContentV2::BatchInventoryRequest::Representation command.request_object = batch_inventory_request_object command.response_representation = Google::Apis::ContentV2::BatchInventoryResponse::Representation @@ -1127,7 +1042,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1147,10 +1061,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1163,8 +1075,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_inventory(merchant_id, store_code, product_id, set_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/inventory/{storeCode}/products/{productId}', options) + def set_inventory(merchant_id, store_code, product_id, set_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/inventory/{storeCode}/products/{productId}', options) command.request_representation = Google::Apis::ContentV2::SetInventoryRequest::Representation command.request_object = set_inventory_request_object command.response_representation = Google::Apis::ContentV2::SetInventoryResponse::Representation @@ -1175,7 +1087,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1188,10 +1099,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1204,8 +1113,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def custombatch_liasetting(liasettings_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'liasettings/batch', options) + def custombatch_liasetting(liasettings_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/liasettings/batch', options) command.request_representation = Google::Apis::ContentV2::LiasettingsCustomBatchRequest::Representation command.request_object = liasettings_custom_batch_request_object command.response_representation = Google::Apis::ContentV2::LiasettingsCustomBatchResponse::Representation @@ -1213,7 +1122,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1227,10 +1135,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1243,15 +1149,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/liasettings/{accountId}', options) + def get_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/liasettings/{accountId}', options) command.response_representation = Google::Apis::ContentV2::LiaSettings::Representation command.response_class = Google::Apis::ContentV2::LiaSettings command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1266,10 +1171,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1282,15 +1185,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def getaccessiblegmbaccounts_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/liasettings/{accountId}/accessiblegmbaccounts', options) + def getaccessiblegmbaccounts_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts', options) command.response_representation = Google::Apis::ContentV2::LiasettingsGetAccessibleGmbAccountsResponse::Representation command.response_class = Google::Apis::ContentV2::LiasettingsGetAccessibleGmbAccountsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1304,10 +1206,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1320,8 +1220,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_liasettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/liasettings', options) + def list_liasettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/liasettings', options) command.response_representation = Google::Apis::ContentV2::LiasettingsListResponse::Representation command.response_class = Google::Apis::ContentV2::LiasettingsListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1329,7 +1229,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1338,10 +1237,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1354,13 +1251,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def listposdataproviders_liasetting(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'liasettings/posdataproviders', options) + def listposdataproviders_liasetting(fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/liasettings/posdataproviders', options) command.response_representation = Google::Apis::ContentV2::LiasettingsListPosDataProvidersResponse::Representation command.response_class = Google::Apis::ContentV2::LiasettingsListPosDataProvidersResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1376,10 +1272,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1392,8 +1286,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def requestgmbaccess_liasetting(merchant_id, account_id, gmb_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestgmbaccess', options) + def requestgmbaccess_liasetting(merchant_id, account_id, gmb_email: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/liasettings/{accountId}/requestgmbaccess', options) command.response_representation = Google::Apis::ContentV2::LiasettingsRequestGmbAccessResponse::Representation command.response_class = Google::Apis::ContentV2::LiasettingsRequestGmbAccessResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1401,7 +1295,6 @@ module Google command.query['gmbEmail'] = gmb_email unless gmb_email.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1418,10 +1311,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1434,8 +1325,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def requestinventoryverification_liasetting(merchant_id, account_id, country, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}', options) + def requestinventoryverification_liasetting(merchant_id, account_id, country, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}', options) command.response_representation = Google::Apis::ContentV2::LiasettingsRequestInventoryVerificationResponse::Representation command.response_class = Google::Apis::ContentV2::LiasettingsRequestInventoryVerificationResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1443,7 +1334,6 @@ module Google command.params['country'] = country unless country.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1466,10 +1356,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1482,8 +1370,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def setinventoryverificationcontact_liasetting(merchant_id, account_id, contact_email, contact_name, country, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setinventoryverificationcontact', options) + def setinventoryverificationcontact_liasetting(merchant_id, account_id, contact_email: nil, contact_name: nil, country: nil, language: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact', options) command.response_representation = Google::Apis::ContentV2::LiasettingsSetInventoryVerificationContactResponse::Representation command.response_class = Google::Apis::ContentV2::LiasettingsSetInventoryVerificationContactResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1494,7 +1382,6 @@ module Google command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1515,10 +1402,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1531,8 +1416,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def setposdataprovider_liasetting(merchant_id, account_id, country, pos_data_provider_id: nil, pos_external_account_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setposdataprovider', options) + def setposdataprovider_liasetting(merchant_id, account_id, country: nil, pos_data_provider_id: nil, pos_external_account_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/liasettings/{accountId}/setposdataprovider', options) command.response_representation = Google::Apis::ContentV2::LiasettingsSetPosDataProviderResponse::Representation command.response_class = Google::Apis::ContentV2::LiasettingsSetPosDataProviderResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1542,7 +1427,6 @@ module Google command.query['posExternalAccountId'] = pos_external_account_id unless pos_external_account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1561,10 +1445,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1577,8 +1459,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_liasetting(merchant_id, account_id, lia_settings_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{merchantId}/liasettings/{accountId}', options) + def update_liasetting(merchant_id, account_id, lia_settings_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'content/v2/{merchantId}/liasettings/{accountId}', options) command.request_representation = Google::Apis::ContentV2::LiaSettings::Representation command.request_object = lia_settings_object command.response_representation = Google::Apis::ContentV2::LiaSettings::Representation @@ -1588,7 +1470,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1603,10 +1484,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1619,8 +1498,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def createchargeinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_charge_invoice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createChargeInvoice', options) + def createchargeinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_charge_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/orderinvoices/{orderId}/createChargeInvoice', options) command.request_representation = Google::Apis::ContentV2::OrderinvoicesCreateChargeInvoiceRequest::Representation command.request_object = orderinvoices_create_charge_invoice_request_object command.response_representation = Google::Apis::ContentV2::OrderinvoicesCreateChargeInvoiceResponse::Representation @@ -1629,7 +1508,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1646,10 +1524,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1662,8 +1538,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def createrefundinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_refund_invoice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createRefundInvoice', options) + def createrefundinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_refund_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/orderinvoices/{orderId}/createRefundInvoice', options) command.request_representation = Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceRequest::Representation command.request_object = orderinvoices_create_refund_invoice_request_object command.response_representation = Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceResponse::Representation @@ -1672,7 +1548,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1680,11 +1555,11 @@ module Google # @param [Fixnum] merchant_id # The ID of the account that manages the order. This cannot be a multi-client # account. - # @param [String] disbursement_start_date - # The first date which disbursements occurred. In ISO 8601 format. # @param [String] disbursement_end_date # The last date which disbursements occurred. In ISO 8601 format. Default: # current date. + # @param [String] disbursement_start_date + # The first date which disbursements occurred. In ISO 8601 format. # @param [Fixnum] max_results # The maximum number of disbursements to return in the response, used for paging. # @param [String] page_token @@ -1692,10 +1567,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1708,8 +1581,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def listdisbursements_orderreport(merchant_id, disbursement_start_date, disbursement_end_date: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/orderreports/disbursements', options) + def listdisbursements_orderreport(merchant_id, disbursement_end_date: nil, disbursement_start_date: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/orderreports/disbursements', options) command.response_representation = Google::Apis::ContentV2::OrderreportsListDisbursementsResponse::Representation command.response_class = Google::Apis::ContentV2::OrderreportsListDisbursementsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1719,7 +1592,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1730,8 +1602,6 @@ module Google # account. # @param [String] disbursement_id # The Google-provided ID of the disbursement (found in Wallet). - # @param [String] transaction_start_date - # The first date in which transaction occurred. In ISO 8601 format. # @param [Fixnum] max_results # The maximum number of disbursements to return in the response, used for paging. # @param [String] page_token @@ -1739,13 +1609,13 @@ module Google # @param [String] transaction_end_date # The last date in which transaction occurred. In ISO 8601 format. Default: # current date. + # @param [String] transaction_start_date + # The first date in which transaction occurred. In ISO 8601 format. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1758,8 +1628,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def listtransactions_orderreport(merchant_id, disbursement_id, transaction_start_date, max_results: nil, page_token: nil, transaction_end_date: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/orderreports/disbursements/{disbursementId}/transactions', options) + def listtransactions_orderreport(merchant_id, disbursement_id, max_results: nil, page_token: nil, transaction_end_date: nil, transaction_start_date: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/orderreports/disbursements/{disbursementId}/transactions', options) command.response_representation = Google::Apis::ContentV2::OrderreportsListTransactionsResponse::Representation command.response_class = Google::Apis::ContentV2::OrderreportsListTransactionsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1770,7 +1640,6 @@ module Google command.query['transactionStartDate'] = transaction_start_date unless transaction_start_date.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1783,10 +1652,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1799,15 +1666,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_orderreturn(merchant_id, return_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/orderreturns/{returnId}', options) + def get_orderreturn(merchant_id, return_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/orderreturns/{returnId}', options) command.response_representation = Google::Apis::ContentV2::MerchantOrderReturn::Representation command.response_class = Google::Apis::ContentV2::MerchantOrderReturn command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['returnId'] = return_id unless return_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1832,10 +1698,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1848,8 +1712,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_orderreturns(merchant_id, created_end_date: nil, created_start_date: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/orderreturns', options) + def list_orderreturns(merchant_id, created_end_date: nil, created_start_date: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/orderreturns', options) command.response_representation = Google::Apis::ContentV2::OrderreturnsListResponse::Representation command.response_class = Google::Apis::ContentV2::OrderreturnsListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1860,7 +1724,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1874,10 +1737,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1890,8 +1751,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/acknowledge', options) + def acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/orders/{orderId}/acknowledge', options) command.request_representation = Google::Apis::ContentV2::OrdersAcknowledgeRequest::Representation command.request_object = orders_acknowledge_request_object command.response_representation = Google::Apis::ContentV2::OrdersAcknowledgeResponse::Representation @@ -1900,7 +1761,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1914,10 +1774,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1930,15 +1788,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def advance_test_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/advance', options) + def advance_test_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/testorders/{orderId}/advance', options) command.response_representation = Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1952,10 +1809,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1968,8 +1823,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancel', options) + def cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/orders/{orderId}/cancel', options) command.request_representation = Google::Apis::ContentV2::OrdersCancelRequest::Representation command.request_object = orders_cancel_request_object command.response_representation = Google::Apis::ContentV2::OrdersCancelResponse::Representation @@ -1978,7 +1833,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1992,10 +1846,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2008,8 +1860,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def cancel_order_line_item(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancelLineItem', options) + def cancel_order_line_item(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/orders/{orderId}/cancelLineItem', options) command.request_representation = Google::Apis::ContentV2::OrdersCancelLineItemRequest::Representation command.request_object = orders_cancel_line_item_request_object command.response_representation = Google::Apis::ContentV2::OrdersCancelLineItemResponse::Representation @@ -2018,7 +1870,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2032,10 +1883,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2048,8 +1897,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def canceltestorderbycustomer_order(merchant_id, order_id, orders_cancel_test_order_by_customer_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/cancelByCustomer', options) + def canceltestorderbycustomer_order(merchant_id, order_id, orders_cancel_test_order_by_customer_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/testorders/{orderId}/cancelByCustomer', options) command.request_representation = Google::Apis::ContentV2::OrdersCancelTestOrderByCustomerRequest::Representation command.request_object = orders_cancel_test_order_by_customer_request_object command.response_representation = Google::Apis::ContentV2::OrdersCancelTestOrderByCustomerResponse::Representation @@ -2058,7 +1907,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2070,10 +1918,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2086,8 +1932,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_test_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/testorders', options) + def create_test_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/testorders', options) command.request_representation = Google::Apis::ContentV2::OrdersCreateTestOrderRequest::Representation command.request_object = orders_create_test_order_request_object command.response_representation = Google::Apis::ContentV2::OrdersCreateTestOrderResponse::Representation @@ -2095,7 +1941,6 @@ module Google command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2109,10 +1954,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2125,8 +1968,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def createtestreturn_order(merchant_id, order_id, orders_create_test_return_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/testreturn', options) + def createtestreturn_order(merchant_id, order_id, orders_create_test_return_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/orders/{orderId}/testreturn', options) command.request_representation = Google::Apis::ContentV2::OrdersCreateTestReturnRequest::Representation command.request_object = orders_create_test_return_request_object command.response_representation = Google::Apis::ContentV2::OrdersCreateTestReturnResponse::Representation @@ -2135,7 +1978,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2144,10 +1986,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2160,15 +2000,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def custom_order_batch(orders_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'orders/batch', options) + def custom_order_batch(orders_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/orders/batch', options) command.request_representation = Google::Apis::ContentV2::OrdersCustomBatchRequest::Representation command.request_object = orders_custom_batch_request_object command.response_representation = Google::Apis::ContentV2::OrdersCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersCustomBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2181,10 +2020,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2197,15 +2034,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/orders/{orderId}', options) + def get_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/orders/{orderId}', options) command.response_representation = Google::Apis::ContentV2::Order::Representation command.response_class = Google::Apis::ContentV2::Order command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2218,10 +2054,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2234,15 +2068,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_order_by_merchant_order_id(merchant_id, merchant_order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/ordersbymerchantid/{merchantOrderId}', options) + def get_order_by_merchant_order_id(merchant_id, merchant_order_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/ordersbymerchantid/{merchantOrderId}', options) command.response_representation = Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['merchantOrderId'] = merchant_order_id unless merchant_order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2258,10 +2091,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2274,8 +2105,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_test_order_template(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/testordertemplates/{templateName}', options) + def get_test_order_template(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/testordertemplates/{templateName}', options) command.response_representation = Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -2283,19 +2114,17 @@ module Google command.query['country'] = country unless country.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Deprecated. Notifies that item return and refund was handled directly by # merchant outside of Google payments processing (e.g. cash refund done in store) - # . - # Note: We recommend calling the returnrefundlineitem method to refund in-store - # returns. We will issue the refund directly to the customer. This helps to - # prevent possible differences arising between merchant and Google transaction - # records. We also recommend having the point of sale system communicate with - # Google to ensure that customers do not receive a double refund by first - # refunding via Google then via an in-store return. + # . Note: We recommend calling the returnrefundlineitem method to refund in- + # store returns. We will issue the refund directly to the customer. This helps + # to prevent possible differences arising between merchant and Google + # transaction records. We also recommend having the point of sale system + # communicate with Google to ensure that customers do not receive a double + # refund by first refunding via Google then via an in-store return. # @param [Fixnum] merchant_id # The ID of the account that manages the order. This cannot be a multi-client # account. @@ -2305,10 +2134,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2321,8 +2148,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/inStoreRefundLineItem', options) + def instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/orders/{orderId}/inStoreRefundLineItem', options) command.request_representation = Google::Apis::ContentV2::OrdersInStoreRefundLineItemRequest::Representation command.request_object = orders_in_store_refund_line_item_request_object command.response_representation = Google::Apis::ContentV2::OrdersInStoreRefundLineItemResponse::Representation @@ -2331,7 +2158,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2342,18 +2168,16 @@ module Google # @param [Boolean] acknowledged # Obtains orders that match the acknowledgement status. When set to true, # obtains orders that have been acknowledged. When false, obtains orders that - # have not been acknowledged. - # We recommend using this filter set to `false`, in conjunction with the ` - # acknowledge` call, such that only un-acknowledged orders are returned. + # have not been acknowledged. We recommend using this filter set to `false`, in + # conjunction with the `acknowledge` call, such that only un-acknowledged orders + # are returned. # @param [Fixnum] max_results # The maximum number of orders to return in the response, used for paging. The # default value is 25 orders per page, and the maximum allowed value is 250 # orders per page. # @param [String] order_by - # Order results by placement date in descending or ascending order. - # Acceptable values are: - # - placedDateAsc - # - placedDateDesc + # Order results by placement date in descending or ascending order. Acceptable + # values are: - placedDateAsc - placedDateDesc # @param [String] page_token # The token returned by the previous request. # @param [String] placed_date_end @@ -2368,10 +2192,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2384,8 +2206,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_orders(merchant_id, acknowledged: nil, max_results: nil, order_by: nil, page_token: nil, placed_date_end: nil, placed_date_start: nil, statuses: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/orders', options) + def list_orders(merchant_id, acknowledged: nil, max_results: nil, order_by: nil, page_token: nil, placed_date_end: nil, placed_date_start: nil, statuses: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/orders', options) command.response_representation = Google::Apis::ContentV2::OrdersListResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -2398,7 +2220,6 @@ module Google command.query['statuses'] = statuses unless statuses.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2412,10 +2233,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2428,8 +2247,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def refund_order(merchant_id, order_id, orders_refund_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refund', options) + def refund_order(merchant_id, order_id, orders_refund_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/orders/{orderId}/refund', options) command.request_representation = Google::Apis::ContentV2::OrdersRefundRequest::Representation command.request_object = orders_refund_request_object command.response_representation = Google::Apis::ContentV2::OrdersRefundResponse::Representation @@ -2438,7 +2257,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2452,10 +2270,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2468,8 +2284,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/rejectReturnLineItem', options) + def rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/orders/{orderId}/rejectReturnLineItem', options) command.request_representation = Google::Apis::ContentV2::OrdersRejectReturnLineItemRequest::Representation command.request_object = orders_reject_return_line_item_request_object command.response_representation = Google::Apis::ContentV2::OrdersRejectReturnLineItemResponse::Representation @@ -2478,7 +2294,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2492,10 +2307,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2508,8 +2321,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def return_order_line_item(merchant_id, order_id, orders_return_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnLineItem', options) + def return_order_line_item(merchant_id, order_id, orders_return_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/orders/{orderId}/returnLineItem', options) command.request_representation = Google::Apis::ContentV2::OrdersReturnLineItemRequest::Representation command.request_object = orders_return_line_item_request_object command.response_representation = Google::Apis::ContentV2::OrdersReturnLineItemResponse::Representation @@ -2518,7 +2331,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2537,10 +2349,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2553,8 +2363,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnRefundLineItem', options) + def returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/orders/{orderId}/returnRefundLineItem', options) command.request_representation = Google::Apis::ContentV2::OrdersReturnRefundLineItemRequest::Representation command.request_object = orders_return_refund_line_item_request_object command.response_representation = Google::Apis::ContentV2::OrdersReturnRefundLineItemResponse::Representation @@ -2563,7 +2373,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2581,10 +2390,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2597,8 +2404,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def setlineitemmetadata_order(merchant_id, order_id, orders_set_line_item_metadata_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/setLineItemMetadata', options) + def setlineitemmetadata_order(merchant_id, order_id, orders_set_line_item_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/orders/{orderId}/setLineItemMetadata', options) command.request_representation = Google::Apis::ContentV2::OrdersSetLineItemMetadataRequest::Representation command.request_object = orders_set_line_item_metadata_request_object command.response_representation = Google::Apis::ContentV2::OrdersSetLineItemMetadataResponse::Representation @@ -2607,7 +2414,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2621,10 +2427,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2637,8 +2441,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def shiplineitems_order(merchant_id, order_id, orders_ship_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/shipLineItems', options) + def shiplineitems_order(merchant_id, order_id, orders_ship_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/orders/{orderId}/shipLineItems', options) command.request_representation = Google::Apis::ContentV2::OrdersShipLineItemsRequest::Representation command.request_object = orders_ship_line_items_request_object command.response_representation = Google::Apis::ContentV2::OrdersShipLineItemsResponse::Representation @@ -2647,7 +2451,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2661,10 +2464,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2677,8 +2478,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateLineItemShippingDetails', options) + def updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/orders/{orderId}/updateLineItemShippingDetails', options) command.request_representation = Google::Apis::ContentV2::OrdersUpdateLineItemShippingDetailsRequest::Representation command.request_object = orders_update_line_item_shipping_details_request_object command.response_representation = Google::Apis::ContentV2::OrdersUpdateLineItemShippingDetailsResponse::Representation @@ -2687,7 +2488,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2701,10 +2501,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2717,8 +2515,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_merchant_order_id(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateMerchantOrderId', options) + def update_merchant_order_id(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/orders/{orderId}/updateMerchantOrderId', options) command.request_representation = Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdRequest::Representation command.request_object = orders_update_merchant_order_id_request_object command.response_representation = Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdResponse::Representation @@ -2727,7 +2525,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2741,10 +2538,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2757,8 +2552,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_order_shipment(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateShipment', options) + def update_order_shipment(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/orders/{orderId}/updateShipment', options) command.request_representation = Google::Apis::ContentV2::OrdersUpdateShipmentRequest::Representation command.request_object = orders_update_shipment_request_object command.response_representation = Google::Apis::ContentV2::OrdersUpdateShipmentResponse::Representation @@ -2767,7 +2562,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2779,10 +2573,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2795,8 +2587,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def custombatch_po(pos_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'pos/batch', options) + def custombatch_po(pos_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/pos/batch', options) command.request_representation = Google::Apis::ContentV2::PosCustomBatchRequest::Representation command.request_object = pos_custom_batch_request_object command.response_representation = Google::Apis::ContentV2::PosCustomBatchResponse::Representation @@ -2804,7 +2596,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2821,10 +2612,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2837,15 +2626,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_po(merchant_id, target_merchant_id, store_code, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options) + def delete_po(merchant_id, target_merchant_id, store_code, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil? command.params['storeCode'] = store_code unless store_code.nil? command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2859,10 +2647,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2875,8 +2661,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options) + def get_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options) command.response_representation = Google::Apis::ContentV2::PosStore::Representation command.response_class = Google::Apis::ContentV2::PosStore command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -2884,7 +2670,6 @@ module Google command.params['storeCode'] = store_code unless store_code.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2900,10 +2685,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2916,8 +2699,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_po(merchant_id, target_merchant_id, pos_store_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/store', options) + def insert_po(merchant_id, target_merchant_id, pos_store_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/pos/{targetMerchantId}/store', options) command.request_representation = Google::Apis::ContentV2::PosStore::Representation command.request_object = pos_store_object command.response_representation = Google::Apis::ContentV2::PosStore::Representation @@ -2927,7 +2710,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2943,10 +2725,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2959,8 +2739,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def inventory_po(merchant_id, target_merchant_id, pos_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/inventory', options) + def inventory_po(merchant_id, target_merchant_id, pos_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/pos/{targetMerchantId}/inventory', options) command.request_representation = Google::Apis::ContentV2::PosInventoryRequest::Representation command.request_object = pos_inventory_request_object command.response_representation = Google::Apis::ContentV2::PosInventoryResponse::Representation @@ -2970,7 +2750,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2982,10 +2761,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2998,15 +2775,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_pos(merchant_id, target_merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store', options) + def list_pos(merchant_id, target_merchant_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/pos/{targetMerchantId}/store', options) command.response_representation = Google::Apis::ContentV2::PosListResponse::Representation command.response_class = Google::Apis::ContentV2::PosListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3022,10 +2798,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3038,8 +2812,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def sale_po(merchant_id, target_merchant_id, pos_sale_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/sale', options) + def sale_po(merchant_id, target_merchant_id, pos_sale_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/pos/{targetMerchantId}/sale', options) command.request_representation = Google::Apis::ContentV2::PosSaleRequest::Representation command.request_object = pos_sale_request_object command.response_representation = Google::Apis::ContentV2::PosSaleResponse::Representation @@ -3049,7 +2823,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3061,10 +2834,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3077,8 +2848,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def batch_product(batch_products_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'products/batch', options) + def batch_product(batch_products_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/products/batch', options) command.request_representation = Google::Apis::ContentV2::BatchProductsRequest::Representation command.request_object = batch_products_request_object command.response_representation = Google::Apis::ContentV2::BatchProductsResponse::Representation @@ -3086,7 +2857,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3102,10 +2872,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3118,14 +2886,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_product(merchant_id, product_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{merchantId}/products/{productId}', options) + def delete_product(merchant_id, product_id, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'content/v2/{merchantId}/products/{productId}', options) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['productId'] = product_id unless product_id.nil? command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3138,10 +2905,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3154,15 +2919,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_product(merchant_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/products/{productId}', options) + def get_product(merchant_id, product_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/products/{productId}', options) command.response_representation = Google::Apis::ContentV2::Product::Representation command.response_class = Google::Apis::ContentV2::Product command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['productId'] = product_id unless product_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3179,10 +2943,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3195,8 +2957,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_product(merchant_id, product_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/products', options) + def insert_product(merchant_id, product_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/{merchantId}/products', options) command.request_representation = Google::Apis::ContentV2::Product::Representation command.request_object = product_object command.response_representation = Google::Apis::ContentV2::Product::Representation @@ -3205,7 +2967,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3225,10 +2986,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3241,8 +3000,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_products(merchant_id, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/products', options) + def list_products(merchant_id, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/products', options) command.response_representation = Google::Apis::ContentV2::ListProductsResponse::Representation command.response_class = Google::Apis::ContentV2::ListProductsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -3251,7 +3010,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3263,10 +3021,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3279,8 +3035,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def batch_product_status(batch_product_statuses_request_object = nil, include_attributes: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'productstatuses/batch', options) + def batch_product_status(batch_product_statuses_request_object = nil, include_attributes: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/productstatuses/batch', options) command.request_representation = Google::Apis::ContentV2::BatchProductStatusesRequest::Representation command.request_object = batch_product_statuses_request_object command.response_representation = Google::Apis::ContentV2::BatchProductStatusesResponse::Representation @@ -3288,7 +3044,6 @@ module Google command.query['includeAttributes'] = include_attributes unless include_attributes.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3307,10 +3062,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3323,8 +3076,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_product_status(merchant_id, product_id, destinations: nil, include_attributes: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/productstatuses/{productId}', options) + def get_product_status(merchant_id, product_id, destinations: nil, include_attributes: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/productstatuses/{productId}', options) command.response_representation = Google::Apis::ContentV2::ProductStatus::Representation command.response_class = Google::Apis::ContentV2::ProductStatus command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -3333,7 +3086,6 @@ module Google command.query['includeAttributes'] = include_attributes unless include_attributes.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3358,10 +3110,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3374,8 +3124,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_product_statuses(merchant_id, destinations: nil, include_attributes: nil, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/productstatuses', options) + def list_product_statuses(merchant_id, destinations: nil, include_attributes: nil, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/productstatuses', options) command.response_representation = Google::Apis::ContentV2::ListProductStatusesResponse::Representation command.response_class = Google::Apis::ContentV2::ListProductStatusesResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -3386,7 +3136,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3399,10 +3148,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3415,8 +3162,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'shippingsettings/batch', options) + def custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2/shippingsettings/batch', options) command.request_representation = Google::Apis::ContentV2::ShippingsettingsCustomBatchRequest::Representation command.request_object = shippingsettings_custom_batch_request_object command.response_representation = Google::Apis::ContentV2::ShippingsettingsCustomBatchResponse::Representation @@ -3424,7 +3171,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3438,10 +3184,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3454,15 +3198,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/shippingsettings/{accountId}', options) + def get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/shippingsettings/{accountId}', options) command.response_representation = Google::Apis::ContentV2::ShippingSettings::Representation command.response_class = Google::Apis::ContentV2::ShippingSettings command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3472,10 +3215,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3488,14 +3229,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/supportedCarriers', options) + def getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/supportedCarriers', options) command.response_representation = Google::Apis::ContentV2::ShippingsettingsGetSupportedCarriersResponse::Representation command.response_class = Google::Apis::ContentV2::ShippingsettingsGetSupportedCarriersResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3505,10 +3245,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3521,14 +3259,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def getsupportedholidays_shippingsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/supportedHolidays', options) + def getsupportedholidays_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/supportedHolidays', options) command.response_representation = Google::Apis::ContentV2::ShippingsettingsGetSupportedHolidaysResponse::Representation command.response_class = Google::Apis::ContentV2::ShippingsettingsGetSupportedHolidaysResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3538,10 +3275,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3554,14 +3289,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def getsupportedpickupservices_shippingsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/supportedPickupServices', options) + def getsupportedpickupservices_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/supportedPickupServices', options) command.response_representation = Google::Apis::ContentV2::ShippingsettingsGetSupportedPickupServicesResponse::Representation command.response_class = Google::Apis::ContentV2::ShippingsettingsGetSupportedPickupServicesResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3577,10 +3311,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3593,8 +3325,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/shippingsettings', options) + def list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2/{merchantId}/shippingsettings', options) command.response_representation = Google::Apis::ContentV2::ShippingsettingsListResponse::Representation command.response_class = Google::Apis::ContentV2::ShippingsettingsListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -3602,7 +3334,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3621,10 +3352,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3637,8 +3366,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{merchantId}/shippingsettings/{accountId}', options) + def update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'content/v2/{merchantId}/shippingsettings/{accountId}', options) command.request_representation = Google::Apis::ContentV2::ShippingSettings::Representation command.request_object = shipping_settings_object command.response_representation = Google::Apis::ContentV2::ShippingSettings::Representation @@ -3648,7 +3377,6 @@ module Google command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3657,7 +3385,6 @@ module Google def apply_command_defaults(command) command.query['key'] = key unless key.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? end end end diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index 86918639b..a76f42b8b 100644 --- a/generated/google/apis/dialogflow_v2.rb +++ b/generated/google/apis/dialogflow_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2 VERSION = 'V2' - REVISION = '20200928' + REVISION = '20201005' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v2/classes.rb b/generated/google/apis/dialogflow_v2/classes.rb index 149c488f4..795ed0d8d 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -1769,6 +1769,25 @@ module Google end end + # Response message for Documents.ImportDocuments. + class GoogleCloudDialogflowV2ImportDocumentsResponse + include Google::Apis::Core::Hashable + + # Includes details about skipped documents or any other warnings. + # Corresponds to the JSON property `warnings` + # @return [Array] + attr_accessor :warnings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @warnings = args[:warnings] if args.key?(:warnings) + end + end + # Instructs the speech recognizer how to process the audio content. class GoogleCloudDialogflowV2InputAudioConfig include Google::Apis::Core::Hashable @@ -3616,9 +3635,9 @@ module Google # The result of sentiment analysis. Sentiment analysis inspects user input and # identifies the prevailing subjective opinion, especially to determine a user's - # attitude as positive, negative, or neutral. For Participants.AnalyzeContent, - # it needs to be configured in DetectIntentRequest.query_params. For - # Participants.StreamingAnalyzeContent, it needs to be configured in + # attitude as positive, negative, or neutral. For Participants.DetectIntent, it + # needs to be configured in DetectIntentRequest.query_params. For Participants. + # StreamingDetectIntent, it needs to be configured in # StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent # and Participants.StreamingAnalyzeContent, it needs to be configured in # ConversationProfile.human_agent_assistant_config @@ -3777,9 +3796,9 @@ module Google # The result of sentiment analysis. Sentiment analysis inspects user input and # identifies the prevailing subjective opinion, especially to determine a user's - # attitude as positive, negative, or neutral. For Participants.AnalyzeContent, - # it needs to be configured in DetectIntentRequest.query_params. For - # Participants.StreamingAnalyzeContent, it needs to be configured in + # attitude as positive, negative, or neutral. For Participants.DetectIntent, it + # needs to be configured in DetectIntentRequest.query_params. For Participants. + # StreamingDetectIntent, it needs to be configured in # StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent # and Participants.StreamingAnalyzeContent, it needs to be configured in # ConversationProfile.human_agent_assistant_config @@ -4570,6 +4589,25 @@ module Google end end + # Response message for Documents.ImportDocuments. + class GoogleCloudDialogflowV2beta1ImportDocumentsResponse + include Google::Apis::Core::Hashable + + # Includes details about skipped documents or any other warnings. + # Corresponds to the JSON property `warnings` + # @return [Array] + attr_accessor :warnings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @warnings = args[:warnings] if args.key?(:warnings) + end + end + # An intent categorizes an end-user's intention for one conversation turn. For # each agent, you define many intents, where your combined intents can handle a # complete conversation. When an end-user writes or says something, referred to @@ -6542,9 +6580,9 @@ module Google # The result of sentiment analysis. Sentiment analysis inspects user input and # identifies the prevailing subjective opinion, especially to determine a user's - # attitude as positive, negative, or neutral. For Participants.AnalyzeContent, - # it needs to be configured in DetectIntentRequest.query_params. For - # Participants.StreamingAnalyzeContent, it needs to be configured in + # attitude as positive, negative, or neutral. For Participants.DetectIntent, it + # needs to be configured in DetectIntentRequest.query_params. For Participants. + # StreamingDetectIntent, it needs to be configured in # StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent # and Participants.StreamingAnalyzeContent, it needs to be configured in # ConversationProfile.human_agent_assistant_config @@ -6629,9 +6667,9 @@ module Google # The result of sentiment analysis. Sentiment analysis inspects user input and # identifies the prevailing subjective opinion, especially to determine a user's - # attitude as positive, negative, or neutral. For Participants.AnalyzeContent, - # it needs to be configured in DetectIntentRequest.query_params. For - # Participants.StreamingAnalyzeContent, it needs to be configured in + # attitude as positive, negative, or neutral. For Participants.DetectIntent, it + # needs to be configured in DetectIntentRequest.query_params. For Participants. + # StreamingDetectIntent, it needs to be configured in # StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent # and Participants.StreamingAnalyzeContent, it needs to be configured in # ConversationProfile.human_agent_assistant_config @@ -6911,26 +6949,6 @@ module Google end end - # Metadata associated with the long running operation for Versions.CreateVersion. - class GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata - include Google::Apis::Core::Hashable - - # Name of the created version. Format: `projects//locations//agents//flows// - # versions/`. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @version = args[:version] if args.key?(:version) - end - end - # The response message for Agents.ExportAgent. class GoogleCloudDialogflowV3alpha1ExportAgentResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dialogflow_v2/representations.rb b/generated/google/apis/dialogflow_v2/representations.rb index a72026484..937504bf8 100644 --- a/generated/google/apis/dialogflow_v2/representations.rb +++ b/generated/google/apis/dialogflow_v2/representations.rb @@ -310,6 +310,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2ImportDocumentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2InputAudioConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -742,6 +748,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1ImportDocumentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1Intent class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1102,12 +1114,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleCloudDialogflowV3alpha1ExportAgentResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1641,6 +1647,14 @@ module Google end end + class GoogleCloudDialogflowV2ImportDocumentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :warnings, as: 'warnings', class: Google::Apis::DialogflowV2::GoogleRpcStatus, decorator: Google::Apis::DialogflowV2::GoogleRpcStatus::Representation + + end + end + class GoogleCloudDialogflowV2InputAudioConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2396,6 +2410,14 @@ module Google end end + class GoogleCloudDialogflowV2beta1ImportDocumentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :warnings, as: 'warnings', class: Google::Apis::DialogflowV2::GoogleRpcStatus, decorator: Google::Apis::DialogflowV2::GoogleRpcStatus::Representation + + end + end + class GoogleCloudDialogflowV2beta1Intent # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3039,13 +3061,6 @@ module Google end end - class GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :version, as: 'version' - end - end - class GoogleCloudDialogflowV3alpha1ExportAgentResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index 81d63b806..85240d2b6 100644 --- a/generated/google/apis/dialogflow_v2beta1.rb +++ b/generated/google/apis/dialogflow_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2beta1 VERSION = 'V2beta1' - REVISION = '20200928' + REVISION = '20201005' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb index 4a4ac1d97..884402fc6 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -1076,6 +1076,25 @@ module Google end end + # Response message for Documents.ImportDocuments. + class GoogleCloudDialogflowV2ImportDocumentsResponse + include Google::Apis::Core::Hashable + + # Includes details about skipped documents or any other warnings. + # Corresponds to the JSON property `warnings` + # @return [Array] + attr_accessor :warnings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @warnings = args[:warnings] if args.key?(:warnings) + end + end + # An intent categorizes an end-user's intention for one conversation turn. For # each agent, you define many intents, where your combined intents can handle a # complete conversation. When an end-user writes or says something, referred to @@ -2529,9 +2548,9 @@ module Google # The result of sentiment analysis. Sentiment analysis inspects user input and # identifies the prevailing subjective opinion, especially to determine a user's - # attitude as positive, negative, or neutral. For Participants.AnalyzeContent, - # it needs to be configured in DetectIntentRequest.query_params. For - # Participants.StreamingAnalyzeContent, it needs to be configured in + # attitude as positive, negative, or neutral. For Participants.DetectIntent, it + # needs to be configured in DetectIntentRequest.query_params. For Participants. + # StreamingDetectIntent, it needs to be configured in # StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent # and Participants.StreamingAnalyzeContent, it needs to be configured in # ConversationProfile.human_agent_assistant_config @@ -2615,9 +2634,9 @@ module Google # The result of sentiment analysis. Sentiment analysis inspects user input and # identifies the prevailing subjective opinion, especially to determine a user's - # attitude as positive, negative, or neutral. For Participants.AnalyzeContent, - # it needs to be configured in DetectIntentRequest.query_params. For - # Participants.StreamingAnalyzeContent, it needs to be configured in + # attitude as positive, negative, or neutral. For Participants.DetectIntent, it + # needs to be configured in DetectIntentRequest.query_params. For Participants. + # StreamingDetectIntent, it needs to be configured in # StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent # and Participants.StreamingAnalyzeContent, it needs to be configured in # ConversationProfile.human_agent_assistant_config @@ -4036,6 +4055,25 @@ module Google end end + # Response message for Documents.ImportDocuments. + class GoogleCloudDialogflowV2beta1ImportDocumentsResponse + include Google::Apis::Core::Hashable + + # Includes details about skipped documents or any other warnings. + # Corresponds to the JSON property `warnings` + # @return [Array] + attr_accessor :warnings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @warnings = args[:warnings] if args.key?(:warnings) + end + end + # Instructs the speech recognizer on how to process the audio content. class GoogleCloudDialogflowV2beta1InputAudioConfig include Google::Apis::Core::Hashable @@ -6525,9 +6563,9 @@ module Google # The result of sentiment analysis. Sentiment analysis inspects user input and # identifies the prevailing subjective opinion, especially to determine a user's - # attitude as positive, negative, or neutral. For Participants.AnalyzeContent, - # it needs to be configured in DetectIntentRequest.query_params. For - # Participants.StreamingAnalyzeContent, it needs to be configured in + # attitude as positive, negative, or neutral. For Participants.DetectIntent, it + # needs to be configured in DetectIntentRequest.query_params. For Participants. + # StreamingDetectIntent, it needs to be configured in # StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent # and Participants.StreamingAnalyzeContent, it needs to be configured in # ConversationProfile.human_agent_assistant_config @@ -6706,9 +6744,9 @@ module Google # The result of sentiment analysis. Sentiment analysis inspects user input and # identifies the prevailing subjective opinion, especially to determine a user's - # attitude as positive, negative, or neutral. For Participants.AnalyzeContent, - # it needs to be configured in DetectIntentRequest.query_params. For - # Participants.StreamingAnalyzeContent, it needs to be configured in + # attitude as positive, negative, or neutral. For Participants.DetectIntent, it + # needs to be configured in DetectIntentRequest.query_params. For Participants. + # StreamingDetectIntent, it needs to be configured in # StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent # and Participants.StreamingAnalyzeContent, it needs to be configured in # ConversationProfile.human_agent_assistant_config @@ -7237,26 +7275,6 @@ module Google end end - # Metadata associated with the long running operation for Versions.CreateVersion. - class GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata - include Google::Apis::Core::Hashable - - # Name of the created version. Format: `projects//locations//agents//flows// - # versions/`. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @version = args[:version] if args.key?(:version) - end - end - # The response message for Agents.ExportAgent. class GoogleCloudDialogflowV3alpha1ExportAgentResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dialogflow_v2beta1/representations.rb b/generated/google/apis/dialogflow_v2beta1/representations.rb index f8799a10f..20b6d8234 100644 --- a/generated/google/apis/dialogflow_v2beta1/representations.rb +++ b/generated/google/apis/dialogflow_v2beta1/representations.rb @@ -208,6 +208,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2ImportDocumentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2Intent class Representation < Google::Apis::Core::JsonRepresentation; end @@ -640,6 +646,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1ImportDocumentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1InputAudioConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1150,12 +1162,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleCloudDialogflowV3alpha1ExportAgentResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1513,6 +1519,14 @@ module Google end end + class GoogleCloudDialogflowV2ImportDocumentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :warnings, as: 'warnings', class: Google::Apis::DialogflowV2beta1::GoogleRpcStatus, decorator: Google::Apis::DialogflowV2beta1::GoogleRpcStatus::Representation + + end + end + class GoogleCloudDialogflowV2Intent # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2287,6 +2301,14 @@ module Google end end + class GoogleCloudDialogflowV2beta1ImportDocumentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :warnings, as: 'warnings', class: Google::Apis::DialogflowV2beta1::GoogleRpcStatus, decorator: Google::Apis::DialogflowV2beta1::GoogleRpcStatus::Representation + + end + end + class GoogleCloudDialogflowV2beta1InputAudioConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3168,13 +3190,6 @@ module Google end end - class GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :version, as: 'version' - end - end - class GoogleCloudDialogflowV3alpha1ExportAgentResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dialogflow_v3beta1.rb b/generated/google/apis/dialogflow_v3beta1.rb index a26b1e32b..15131aa69 100644 --- a/generated/google/apis/dialogflow_v3beta1.rb +++ b/generated/google/apis/dialogflow_v3beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV3beta1 VERSION = 'V3beta1' - REVISION = '20200928' + REVISION = '20201005' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v3beta1/classes.rb b/generated/google/apis/dialogflow_v3beta1/classes.rb index d671603b3..906dab996 100644 --- a/generated/google/apis/dialogflow_v3beta1/classes.rb +++ b/generated/google/apis/dialogflow_v3beta1/classes.rb @@ -172,8 +172,10 @@ module Google # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1OutputAudioConfig] attr_accessor :output_audio_config - # Represents the query input. It can contain either: 1. A conversational query + # Represents the query input. It can contain one of: 1. A conversational query # in the form of text. 2. An intent query that specifies which intent to trigger. + # 3. Natural language speech audio to be processed. 4. An event to be triggered. + # # Corresponds to the JSON property `queryInput` # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1QueryInput] attr_accessor :query_input @@ -1698,8 +1700,10 @@ module Google class GoogleCloudDialogflowCxV3beta1MatchIntentRequest include Google::Apis::Core::Hashable - # Represents the query input. It can contain either: 1. A conversational query + # Represents the query input. It can contain one of: 1. A conversational query # in the form of text. 2. An intent query that specifies which intent to trigger. + # 3. Natural language speech audio to be processed. 4. An event to be triggered. + # # Corresponds to the JSON property `queryInput` # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1QueryInput] attr_accessor :query_input @@ -1758,6 +1762,12 @@ module Google # @return [String] attr_accessor :transcript + # If an event was provided as input, this field will contain a copy of the event + # name. + # Corresponds to the JSON property `triggerEvent` + # @return [String] + attr_accessor :trigger_event + # If an intent was provided as input, this field will contain a copy of the # intent identifier. # Corresponds to the JSON property `triggerIntent` @@ -1774,6 +1784,7 @@ module Google @matches = args[:matches] if args.key?(:matches) @text = args[:text] if args.key?(:text) @transcript = args[:transcript] if args.key?(:transcript) + @trigger_event = args[:trigger_event] if args.key?(:trigger_event) @trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent) end end @@ -2041,8 +2052,10 @@ module Google end end - # Represents the query input. It can contain either: 1. A conversational query + # Represents the query input. It can contain one of: 1. A conversational query # in the form of text. 2. An intent query that specifies which intent to trigger. + # 3. Natural language speech audio to be processed. 4. An event to be triggered. + # class GoogleCloudDialogflowCxV3beta1QueryInput include Google::Apis::Core::Hashable @@ -3673,6 +3686,25 @@ module Google end end + # Response message for Documents.ImportDocuments. + class GoogleCloudDialogflowV2ImportDocumentsResponse + include Google::Apis::Core::Hashable + + # Includes details about skipped documents or any other warnings. + # Corresponds to the JSON property `warnings` + # @return [Array] + attr_accessor :warnings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @warnings = args[:warnings] if args.key?(:warnings) + end + end + # An intent categorizes an end-user's intention for one conversation turn. For # each agent, you define many intents, where your combined intents can handle a # complete conversation. When an end-user writes or says something, referred to @@ -5126,9 +5158,9 @@ module Google # The result of sentiment analysis. Sentiment analysis inspects user input and # identifies the prevailing subjective opinion, especially to determine a user's - # attitude as positive, negative, or neutral. For Participants.AnalyzeContent, - # it needs to be configured in DetectIntentRequest.query_params. For - # Participants.StreamingAnalyzeContent, it needs to be configured in + # attitude as positive, negative, or neutral. For Participants.DetectIntent, it + # needs to be configured in DetectIntentRequest.query_params. For Participants. + # StreamingDetectIntent, it needs to be configured in # StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent # and Participants.StreamingAnalyzeContent, it needs to be configured in # ConversationProfile.human_agent_assistant_config @@ -5212,9 +5244,9 @@ module Google # The result of sentiment analysis. Sentiment analysis inspects user input and # identifies the prevailing subjective opinion, especially to determine a user's - # attitude as positive, negative, or neutral. For Participants.AnalyzeContent, - # it needs to be configured in DetectIntentRequest.query_params. For - # Participants.StreamingAnalyzeContent, it needs to be configured in + # attitude as positive, negative, or neutral. For Participants.DetectIntent, it + # needs to be configured in DetectIntentRequest.query_params. For Participants. + # StreamingDetectIntent, it needs to be configured in # StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent # and Participants.StreamingAnalyzeContent, it needs to be configured in # ConversationProfile.human_agent_assistant_config @@ -5784,6 +5816,25 @@ module Google end end + # Response message for Documents.ImportDocuments. + class GoogleCloudDialogflowV2beta1ImportDocumentsResponse + include Google::Apis::Core::Hashable + + # Includes details about skipped documents or any other warnings. + # Corresponds to the JSON property `warnings` + # @return [Array] + attr_accessor :warnings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @warnings = args[:warnings] if args.key?(:warnings) + end + end + # An intent categorizes an end-user's intention for one conversation turn. For # each agent, you define many intents, where your combined intents can handle a # complete conversation. When an end-user writes or says something, referred to @@ -7756,9 +7807,9 @@ module Google # The result of sentiment analysis. Sentiment analysis inspects user input and # identifies the prevailing subjective opinion, especially to determine a user's - # attitude as positive, negative, or neutral. For Participants.AnalyzeContent, - # it needs to be configured in DetectIntentRequest.query_params. For - # Participants.StreamingAnalyzeContent, it needs to be configured in + # attitude as positive, negative, or neutral. For Participants.DetectIntent, it + # needs to be configured in DetectIntentRequest.query_params. For Participants. + # StreamingDetectIntent, it needs to be configured in # StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent # and Participants.StreamingAnalyzeContent, it needs to be configured in # ConversationProfile.human_agent_assistant_config @@ -7843,9 +7894,9 @@ module Google # The result of sentiment analysis. Sentiment analysis inspects user input and # identifies the prevailing subjective opinion, especially to determine a user's - # attitude as positive, negative, or neutral. For Participants.AnalyzeContent, - # it needs to be configured in DetectIntentRequest.query_params. For - # Participants.StreamingAnalyzeContent, it needs to be configured in + # attitude as positive, negative, or neutral. For Participants.DetectIntent, it + # needs to be configured in DetectIntentRequest.query_params. For Participants. + # StreamingDetectIntent, it needs to be configured in # StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent # and Participants.StreamingAnalyzeContent, it needs to be configured in # ConversationProfile.human_agent_assistant_config @@ -8125,26 +8176,6 @@ module Google end end - # Metadata associated with the long running operation for Versions.CreateVersion. - class GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata - include Google::Apis::Core::Hashable - - # Name of the created version. Format: `projects//locations//agents//flows// - # versions/`. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @version = args[:version] if args.key?(:version) - end - end - # The response message for Agents.ExportAgent. class GoogleCloudDialogflowV3alpha1ExportAgentResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dialogflow_v3beta1/representations.rb b/generated/google/apis/dialogflow_v3beta1/representations.rb index 971d105a9..d6039dc1e 100644 --- a/generated/google/apis/dialogflow_v3beta1/representations.rb +++ b/generated/google/apis/dialogflow_v3beta1/representations.rb @@ -586,6 +586,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2ImportDocumentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2Intent class Representation < Google::Apis::Core::JsonRepresentation; end @@ -898,6 +904,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1ImportDocumentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1Intent class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1258,12 +1270,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleCloudDialogflowV3alpha1ExportAgentResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1796,6 +1802,7 @@ module Google property :text, as: 'text' property :transcript, as: 'transcript' + property :trigger_event, as: 'triggerEvent' property :trigger_intent, as: 'triggerIntent' end end @@ -2285,6 +2292,14 @@ module Google end end + class GoogleCloudDialogflowV2ImportDocumentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :warnings, as: 'warnings', class: Google::Apis::DialogflowV3beta1::GoogleRpcStatus, decorator: Google::Apis::DialogflowV3beta1::GoogleRpcStatus::Representation + + end + end + class GoogleCloudDialogflowV2Intent # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2849,6 +2864,14 @@ module Google end end + class GoogleCloudDialogflowV2beta1ImportDocumentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :warnings, as: 'warnings', class: Google::Apis::DialogflowV3beta1::GoogleRpcStatus, decorator: Google::Apis::DialogflowV3beta1::GoogleRpcStatus::Representation + + end + end + class GoogleCloudDialogflowV2beta1Intent # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3492,13 +3515,6 @@ module Google end end - class GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :version, as: 'version' - end - end - class GoogleCloudDialogflowV3alpha1ExportAgentResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dialogflow_v3beta1/service.rb b/generated/google/apis/dialogflow_v3beta1/service.rb index 86ce20e61..ed18d980e 100644 --- a/generated/google/apis/dialogflow_v3beta1/service.rb +++ b/generated/google/apis/dialogflow_v3beta1/service.rb @@ -112,7 +112,7 @@ module Google execute_or_queue_command(command, &block) end - # Exports the specified agent to a ZIP file. + # Exports the specified agent to a binary file. # @param [String] name # Required. The name of the agent to export. Format: `projects//locations// # agents/`. @@ -252,8 +252,9 @@ module Google execute_or_queue_command(command, &block) end - # Restores the specified agent from a ZIP file. Note that all existing intents, - # intent routes, entity types, pages and webhooks in the agent will be deleted. + # Restores the specified agent from a bianry file. Replaces the current agent + # with a new one. Note that all existing resources in agent (e.g. intents, + # entity types, flows) will be removed. # @param [String] name # Required. The name of the agent to restore into. Format: `projects//locations// # agents/`. @@ -714,7 +715,9 @@ module Google # sessions/`. If `Environment ID` is not specified, we assume default 'draft' # environment. It's up to the API caller to choose an appropriate `Session ID`. # It can be a random number or some type of session identifiers (preferably - # hashed). The length of the `Session ID` must not exceed 36 characters. + # hashed). The length of the `Session ID` must not exceed 36 characters. For + # more information, see the [sessions guide](https://cloud.google.com/dialogflow/ + # cx/docs/concept/session). # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentRequest] google_cloud_dialogflow_cx_v3beta1_detect_intent_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -754,7 +757,9 @@ module Google # sessions/`. If `Environment ID` is not specified, we assume default 'draft' # environment. It's up to the API caller to choose an appropriate `Session ID`. # It can be a random number or some type of session identifiers (preferably - # hashed). The length of the `Session ID` must not exceed 36 characters. + # hashed). The length of the `Session ID` must not exceed 36 characters. For + # more information, see the [sessions guide](https://cloud.google.com/dialogflow/ + # cx/docs/concept/session). # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FulfillIntentRequest] google_cloud_dialogflow_cx_v3beta1_fulfill_intent_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -792,7 +797,9 @@ module Google # sessions/`. If `Environment ID` is not specified, we assume default 'draft' # environment. It's up to the API caller to choose an appropriate `Session ID`. # It can be a random number or some type of session identifiers (preferably - # hashed). The length of the `Session ID` must not exceed 36 characters. + # hashed). The length of the `Session ID` must not exceed 36 characters. For + # more information, see the [sessions guide](https://cloud.google.com/dialogflow/ + # cx/docs/concept/session). # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1MatchIntentRequest] google_cloud_dialogflow_cx_v3beta1_match_intent_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2100,7 +2107,9 @@ module Google # sessions/`. If `Environment ID` is not specified, we assume default 'draft' # environment. It's up to the API caller to choose an appropriate `Session ID`. # It can be a random number or some type of session identifiers (preferably - # hashed). The length of the `Session ID` must not exceed 36 characters. + # hashed). The length of the `Session ID` must not exceed 36 characters. For + # more information, see the [sessions guide](https://cloud.google.com/dialogflow/ + # cx/docs/concept/session). # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentRequest] google_cloud_dialogflow_cx_v3beta1_detect_intent_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2140,7 +2149,9 @@ module Google # sessions/`. If `Environment ID` is not specified, we assume default 'draft' # environment. It's up to the API caller to choose an appropriate `Session ID`. # It can be a random number or some type of session identifiers (preferably - # hashed). The length of the `Session ID` must not exceed 36 characters. + # hashed). The length of the `Session ID` must not exceed 36 characters. For + # more information, see the [sessions guide](https://cloud.google.com/dialogflow/ + # cx/docs/concept/session). # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FulfillIntentRequest] google_cloud_dialogflow_cx_v3beta1_fulfill_intent_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2178,7 +2189,9 @@ module Google # sessions/`. If `Environment ID` is not specified, we assume default 'draft' # environment. It's up to the API caller to choose an appropriate `Session ID`. # It can be a random number or some type of session identifiers (preferably - # hashed). The length of the `Session ID` must not exceed 36 characters. + # hashed). The length of the `Session ID` must not exceed 36 characters. For + # more information, see the [sessions guide](https://cloud.google.com/dialogflow/ + # cx/docs/concept/session). # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1MatchIntentRequest] google_cloud_dialogflow_cx_v3beta1_match_intent_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/people_v1.rb b/generated/google/apis/people_v1.rb index 7d647ed17..7d32b8958 100644 --- a/generated/google/apis/people_v1.rb +++ b/generated/google/apis/people_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/people/ module PeopleV1 VERSION = 'V1' - REVISION = '20200923' + REVISION = '20201004' # See, edit, download, and permanently delete your contacts AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts' diff --git a/generated/google/apis/people_v1/classes.rb b/generated/google/apis/people_v1/classes.rb index 901b465ca..abd9ac144 100644 --- a/generated/google/apis/people_v1/classes.rb +++ b/generated/google/apis/people_v1/classes.rb @@ -1026,7 +1026,8 @@ module Google attr_accessor :next_page_token # A token, which can be sent as `sync_token` to retrieve changes since the last - # request. Request must set `request_sync_token` to return the sync token. + # request. Request must set `request_sync_token` to return the sync token. When + # the response is paginated, only the last page will contain `nextSyncToken`. # Corresponds to the JSON property `nextSyncToken` # @return [String] attr_accessor :next_sync_token diff --git a/generated/google/apis/people_v1/service.rb b/generated/google/apis/people_v1/service.rb index 153fc18dc..acd54f5dc 100644 --- a/generated/google/apis/people_v1/service.rb +++ b/generated/google/apis/people_v1/service.rb @@ -866,10 +866,10 @@ module Google # Each path should start with `person.`: for example, `person.names` or `person. # photos`. # @param [Boolean] request_sync_token - # Optional. Whether the response should include `next_sync_token`, which can be - # used to get all changes since the last request. For subsequent sync requests - # use the `sync_token` param instead. Initial sync requests that specify ` - # request_sync_token` have an additional rate limit. + # Optional. Whether the response should include `next_sync_token` on the last + # page, which can be used to get all changes since the last request. For + # subsequent sync requests use the `sync_token` param instead. Initial sync + # requests that specify `request_sync_token` have an additional rate limit. # @param [String] sort_order # Optional. The order in which the connections should be sorted. Defaults to ` # LAST_MODIFIED_ASCENDING`.