diff --git a/api_names_out.yaml b/api_names_out.yaml index e77226c68..065a24f2e 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -42198,6 +42198,7 @@ "/content:v2.1/TestOrder/notificationMode": notification_mode "/content:v2.1/TestOrder/predefinedBillingAddress": predefined_billing_address "/content:v2.1/TestOrder/predefinedDeliveryAddress": predefined_delivery_address +"/content:v2.1/TestOrder/predefinedEmail": predefined_email "/content:v2.1/TestOrder/promotions": promotions "/content:v2.1/TestOrder/promotions/promotion": promotion "/content:v2.1/TestOrder/shippingCost": shipping_cost @@ -96019,6 +96020,15 @@ "/spanner:v1/Delete/keySet": key_set "/spanner:v1/Delete/table": table "/spanner:v1/Empty": empty +"/spanner:v1/ExecuteBatchDmlRequest": execute_batch_dml_request +"/spanner:v1/ExecuteBatchDmlRequest/seqno": seqno +"/spanner:v1/ExecuteBatchDmlRequest/statements": statements +"/spanner:v1/ExecuteBatchDmlRequest/statements/statement": statement +"/spanner:v1/ExecuteBatchDmlRequest/transaction": transaction +"/spanner:v1/ExecuteBatchDmlResponse": execute_batch_dml_response +"/spanner:v1/ExecuteBatchDmlResponse/resultSets": result_sets +"/spanner:v1/ExecuteBatchDmlResponse/resultSets/result_set": result_set +"/spanner:v1/ExecuteBatchDmlResponse/status": status "/spanner:v1/ExecuteSqlRequest": execute_sql_request "/spanner:v1/ExecuteSqlRequest/paramTypes": param_types "/spanner:v1/ExecuteSqlRequest/paramTypes/param_type": param_type @@ -96225,6 +96235,12 @@ "/spanner:v1/ShortRepresentation/description": description "/spanner:v1/ShortRepresentation/subqueries": subqueries "/spanner:v1/ShortRepresentation/subqueries/subquery": subquery +"/spanner:v1/Statement": statement +"/spanner:v1/Statement/paramTypes": param_types +"/spanner:v1/Statement/paramTypes/param_type": param_type +"/spanner:v1/Statement/params": params +"/spanner:v1/Statement/params/param": param +"/spanner:v1/Statement/sql": sql "/spanner:v1/Status": status "/spanner:v1/Status/code": code "/spanner:v1/Status/details": details @@ -96324,6 +96340,8 @@ "/spanner:v1/spanner.projects.instances.databases.sessions.create/database": database "/spanner:v1/spanner.projects.instances.databases.sessions.delete": delete_project_instance_database_session "/spanner:v1/spanner.projects.instances.databases.sessions.delete/name": name +"/spanner:v1/spanner.projects.instances.databases.sessions.executeBatchDml": execute_session_batch_dml +"/spanner:v1/spanner.projects.instances.databases.sessions.executeBatchDml/session": session "/spanner:v1/spanner.projects.instances.databases.sessions.executeSql": execute_session_sql "/spanner:v1/spanner.projects.instances.databases.sessions.executeSql/session": session "/spanner:v1/spanner.projects.instances.databases.sessions.executeStreamingSql": execute_project_instance_database_session_streaming_sql diff --git a/generated/google/apis/cloudasset_v1beta1.rb b/generated/google/apis/cloudasset_v1beta1.rb index 378c29844..c0f1e3ede 100644 --- a/generated/google/apis/cloudasset_v1beta1.rb +++ b/generated/google/apis/cloudasset_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://console.cloud.google.com/apis/api/cloudasset.googleapis.com/overview module CloudassetV1beta1 VERSION = 'V1beta1' - REVISION = '20190128' + REVISION = '20190302' # 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/cloudasset_v1beta1/classes.rb b/generated/google/apis/cloudasset_v1beta1/classes.rb index 2faea28a1..bf6588509 100644 --- a/generated/google/apis/cloudasset_v1beta1/classes.rb +++ b/generated/google/apis/cloudasset_v1beta1/classes.rb @@ -73,10 +73,11 @@ module Google # @return [Google::Apis::CloudassetV1beta1::Policy] attr_accessor :iam_policy - # The full name of the asset. For example: `//compute.googleapis.com/projects/ - # my_project_123/zones/zone1/instances/instance1`. - # See [Resource Names](https://cloud.google.com/apis/design/resource_names# - # full_resource_name) + # The full name of the asset. For example: + # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/ + # instance1`. + # See [Resource + # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) # for more information. # Corresponds to the JSON property `name` # @return [String] @@ -259,7 +260,7 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. - # * `domain:`domain``: A Google Apps domain name that represents all the + # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] @@ -626,12 +627,13 @@ module Google attr_accessor :discovery_name # The full name of the immediate parent of this resource. See - # [Resource Names](https://cloud.google.com/apis/design/resource_names# - # full_resource_name) + # [Resource + # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) # for more information. # For GCP assets, it is the parent resource defined in the [Cloud IAM policy # hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). - # For example: `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. + # For example: + # `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. # For third-party assets, it is up to the users to define. # Corresponds to the JSON property `parent` # @return [String] diff --git a/generated/google/apis/cloudasset_v1beta1/service.rb b/generated/google/apis/cloudasset_v1beta1/service.rb index 6358e9f3b..011234686 100644 --- a/generated/google/apis/cloudasset_v1beta1/service.rb +++ b/generated/google/apis/cloudasset_v1beta1/service.rb @@ -133,8 +133,8 @@ module Google # A list of the full names of the assets. For example: # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/ # instance1`. - # See [Resource Names](https://cloud.google.com/apis/design/resource_names# - # full_resource_name) + # See [Resource + # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) # for more info. # The request becomes a no-op if the asset name list is empty, and the max # size of the asset name list is 100 in one request. @@ -262,8 +262,8 @@ module Google # A list of the full names of the assets. For example: # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/ # instance1`. - # See [Resource Names](https://cloud.google.com/apis/design/resource_names# - # full_resource_name) + # See [Resource + # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) # for more info. # The request becomes a no-op if the asset name list is empty, and the max # size of the asset name list is 100 in one request. diff --git a/generated/google/apis/cloudidentity_v1.rb b/generated/google/apis/cloudidentity_v1.rb index d2dfb8c36..e21406be8 100644 --- a/generated/google/apis/cloudidentity_v1.rb +++ b/generated/google/apis/cloudidentity_v1.rb @@ -25,7 +25,13 @@ module Google # @see https://cloud.google.com/identity/ module CloudidentityV1 VERSION = 'V1' - REVISION = '20190219' + REVISION = '20190303' + + # See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group + AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups' + + # See any Cloud Identity Groups that you can access, including group members and their emails + AUTH_CLOUD_IDENTITY_GROUPS_READONLY = 'https://www.googleapis.com/auth/cloud-identity.groups.readonly' end end end diff --git a/generated/google/apis/cloudidentity_v1/classes.rb b/generated/google/apis/cloudidentity_v1/classes.rb index f0b0dc29e..daba3d6c3 100644 --- a/generated/google/apis/cloudidentity_v1/classes.rb +++ b/generated/google/apis/cloudidentity_v1/classes.rb @@ -236,9 +236,9 @@ module Google attr_accessor :create_time # [Resource name](https://cloud.google.com/apis/design/resource_names) of the - # Membership in the format: `groups/`group_id`/memberships/`member_id``, where - # group_id is the unique ID assigned to the Group to which Membership belongs - # to, and member_id is the unique ID assigned to the member + # Membership in the format: `groups/`group_id`/memberships/`member_id``, + # where group_id is the unique ID assigned to the Group to which Membership + # belongs to, and member_id is the unique ID assigned to the member # Must be left blank while creating a Membership. # Corresponds to the JSON property `name` # @return [String] diff --git a/generated/google/apis/cloudidentity_v1beta1.rb b/generated/google/apis/cloudidentity_v1beta1.rb index e535586b6..1caea78ba 100644 --- a/generated/google/apis/cloudidentity_v1beta1.rb +++ b/generated/google/apis/cloudidentity_v1beta1.rb @@ -25,7 +25,13 @@ module Google # @see https://cloud.google.com/identity/ module CloudidentityV1beta1 VERSION = 'V1beta1' - REVISION = '20190219' + REVISION = '20190303' + + # See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group + AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups' + + # See any Cloud Identity Groups that you can access, including group members and their emails + AUTH_CLOUD_IDENTITY_GROUPS_READONLY = 'https://www.googleapis.com/auth/cloud-identity.groups.readonly' end end end diff --git a/generated/google/apis/cloudresourcemanager_v1.rb b/generated/google/apis/cloudresourcemanager_v1.rb index f7c90a161..5cc034ede 100644 --- a/generated/google/apis/cloudresourcemanager_v1.rb +++ b/generated/google/apis/cloudresourcemanager_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1 VERSION = 'V1' - REVISION = '20190220' + REVISION = '20190227' # 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/cloudresourcemanager_v1/classes.rb b/generated/google/apis/cloudresourcemanager_v1/classes.rb index addb86bd4..fb0333572 100644 --- a/generated/google/apis/cloudresourcemanager_v1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1/classes.rb @@ -184,7 +184,7 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. - # * `domain:`domain``: A Google Apps domain name that represents all the + # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] @@ -231,9 +231,10 @@ module Google # If `true`, then the `Policy` is enforced. If `false`, then any # configuration is acceptable. - # Suppose you have a `Constraint` `constraints/compute.disableSerialPortAccess` - # with `constraint_default` set to `ALLOW`. A `Policy` for that - # `Constraint` exhibits the following behavior: + # Suppose you have a `Constraint` + # `constraints/compute.disableSerialPortAccess` with `constraint_default` + # set to `ALLOW`. A `Policy` for that `Constraint` exhibits the following + # behavior: # - If the `Policy` at this resource has enforced set to `false`, serial # port connection attempts will be allowed. # - If the `Policy` at this resource has enforced set to `true`, serial diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index 207e60863..834cd38fe 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '20190222' + REVISION = '20190304' # 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 d002de563..015a2bcb9 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -729,7 +729,7 @@ module Google attr_accessor :country # State (or province) is which the tax is applicable, described by its location - # id (also called criteria id). + # ID (also called criteria ID). # Corresponds to the JSON property `locationId` # @return [Fixnum] attr_accessor :location_id @@ -4314,8 +4314,9 @@ module Google # @return [String] attr_accessor :last_updated_timestamp - # Email address that can be used for marketing purposes. This field is only - # filled when explicitMarketingPreference is equal to 'granted'. + # Email address that can be used for marketing purposes. The field may be empty + # even if explicitMarketingPreference is 'granted'. This happens when retrieving + # an old order from the customer who deleted his account. # Corresponds to the JSON property `marketingEmailAddress` # @return [String] attr_accessor :marketing_email_address @@ -4653,7 +4654,7 @@ module Google # Variant attributes for the item. These are dimensions of the product, such as # color, gender, material, pattern, and size. You can find a comprehensive list - # of variant attributes ] attr_accessor :variant_attributes @@ -4342,12 +4337,12 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # Merchant-provided id of the order. + # Merchant-provided ID of the order. # Corresponds to the JSON property `merchantOrderId` # @return [String] attr_accessor :merchant_order_id - # The id of the order. + # The ID of the order. # Corresponds to the JSON property `orderId` # @return [String] attr_accessor :order_id @@ -6847,9 +6842,9 @@ module Google # @return [String] attr_accessor :gtin - # The REST id of the product. Content API methods that operate on products take + # 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: + # The REST ID for a product is of the form channel:contentLanguage:targetCountry: # offerId. # Corresponds to the JSON property `id` # @return [String] @@ -6952,7 +6947,7 @@ module Google # 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 + # 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] @@ -7198,7 +7193,7 @@ module Google # @return [String] attr_accessor :location_group_name - # The numeric id of a location that the shipping rate applies to as defined in + # The numeric ID of a location that the shipping rate applies to as defined in # the AdWords API. # Corresponds to the JSON property `locationId` # @return [Fixnum] @@ -7333,7 +7328,7 @@ module Google # @return [String] attr_accessor :link - # The id of the product for which status is reported. + # The ID of the product for which status is reported. # Corresponds to the JSON property `productId` # @return [String] attr_accessor :product_id @@ -7456,7 +7451,7 @@ module Google # @return [String] attr_accessor :country - # The numeric id of a location that the tax rate applies to as defined in the + # The numeric ID of a location that the tax rate applies to as defined in the # AdWords API. # Corresponds to the JSON property `locationId` # @return [Fixnum] @@ -7987,7 +7982,7 @@ module Google # @return [Google::Apis::ContentV2_1::Price] attr_accessor :price - # The id (name) of the region. + # The ID (name) of the region. # Corresponds to the JSON property `regionId` # @return [String] attr_accessor :region_id @@ -8675,11 +8670,6 @@ module Google class TestOrder include Google::Apis::Core::Hashable - # The details of the customer who placed the order. - # Corresponds to the JSON property `customer` - # @return [Google::Apis::ContentV2_1::TestOrderCustomer] - attr_accessor :customer - # Whether the orderinvoices service should support this order. # Corresponds to the JSON property `enableOrderinvoices` # @return [Boolean] @@ -8713,6 +8703,11 @@ module Google # @return [String] attr_accessor :predefined_delivery_address + # Email address of the customer. + # Corresponds to the JSON property `predefinedEmail` + # @return [String] + attr_accessor :predefined_email + # Promotions associated with the order. # Corresponds to the JSON property `promotions` # @return [Array] @@ -8736,77 +8731,19 @@ module Google # Update properties of this object def update!(**args) - @customer = args[:customer] if args.key?(:customer) @enable_orderinvoices = args[:enable_orderinvoices] if args.key?(:enable_orderinvoices) @kind = args[:kind] if args.key?(:kind) @line_items = args[:line_items] if args.key?(:line_items) @notification_mode = args[:notification_mode] if args.key?(:notification_mode) @predefined_billing_address = args[:predefined_billing_address] if args.key?(:predefined_billing_address) @predefined_delivery_address = args[:predefined_delivery_address] if args.key?(:predefined_delivery_address) + @predefined_email = args[:predefined_email] if args.key?(:predefined_email) @promotions = args[:promotions] if args.key?(:promotions) @shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost) @shipping_option = args[:shipping_option] if args.key?(:shipping_option) end end - # - class TestOrderCustomer - include Google::Apis::Core::Hashable - - # Deprecated. - # Corresponds to the JSON property `email` - # @return [String] - attr_accessor :email - - # Full name of the customer. - # Corresponds to the JSON property `fullName` - # @return [String] - attr_accessor :full_name - - # Customer's marketing preferences. - # Corresponds to the JSON property `marketingRightsInfo` - # @return [Google::Apis::ContentV2_1::TestOrderCustomerMarketingRightsInfo] - attr_accessor :marketing_rights_info - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @email = args[:email] if args.key?(:email) - @full_name = args[:full_name] if args.key?(:full_name) - @marketing_rights_info = args[:marketing_rights_info] if args.key?(:marketing_rights_info) - end - end - - # - class TestOrderCustomerMarketingRightsInfo - 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. - # Corresponds to the JSON property `explicitMarketingPreference` - # @return [String] - attr_accessor :explicit_marketing_preference - - # Timestamp when last time marketing preference was updated. Could be empty, if - # user wasn't offered a selection yet. - # Corresponds to the JSON property `lastUpdatedTimestamp` - # @return [String] - attr_accessor :last_updated_timestamp - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @explicit_marketing_preference = args[:explicit_marketing_preference] if args.key?(:explicit_marketing_preference) - @last_updated_timestamp = args[:last_updated_timestamp] if args.key?(:last_updated_timestamp) - end - end - # class TestOrderLineItem include Google::Apis::Core::Hashable diff --git a/generated/google/apis/content_v2_1/representations.rb b/generated/google/apis/content_v2_1/representations.rb index ea5b9c44f..165d1d2bd 100644 --- a/generated/google/apis/content_v2_1/representations.rb +++ b/generated/google/apis/content_v2_1/representations.rb @@ -1330,18 +1330,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class TestOrderCustomer - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TestOrderCustomerMarketingRightsInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class TestOrderLineItem class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2433,7 +2421,6 @@ module Google class OrderCustomer # @private class Representation < Google::Apis::Core::JsonRepresentation - property :email, as: 'email' property :full_name, as: 'fullName' property :marketing_rights_info, as: 'marketingRightsInfo', class: Google::Apis::ContentV2_1::OrderCustomerMarketingRightsInfo, decorator: Google::Apis::ContentV2_1::OrderCustomerMarketingRightsInfo::Representation @@ -3832,8 +3819,6 @@ module Google class TestOrder # @private class Representation < Google::Apis::Core::JsonRepresentation - property :customer, as: 'customer', class: Google::Apis::ContentV2_1::TestOrderCustomer, decorator: Google::Apis::ContentV2_1::TestOrderCustomer::Representation - property :enable_orderinvoices, as: 'enableOrderinvoices' property :kind, as: 'kind' collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2_1::TestOrderLineItem, decorator: Google::Apis::ContentV2_1::TestOrderLineItem::Representation @@ -3841,6 +3826,7 @@ module Google property :notification_mode, as: 'notificationMode' property :predefined_billing_address, as: 'predefinedBillingAddress' property :predefined_delivery_address, as: 'predefinedDeliveryAddress' + property :predefined_email, as: 'predefinedEmail' collection :promotions, as: 'promotions', class: Google::Apis::ContentV2_1::OrderPromotion, decorator: Google::Apis::ContentV2_1::OrderPromotion::Representation property :shipping_cost, as: 'shippingCost', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation @@ -3849,24 +3835,6 @@ module Google end end - class TestOrderCustomer - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :email, as: 'email' - property :full_name, as: 'fullName' - property :marketing_rights_info, as: 'marketingRightsInfo', class: Google::Apis::ContentV2_1::TestOrderCustomerMarketingRightsInfo, decorator: Google::Apis::ContentV2_1::TestOrderCustomerMarketingRightsInfo::Representation - - end - end - - class TestOrderCustomerMarketingRightsInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :explicit_marketing_preference, as: 'explicitMarketingPreference' - property :last_updated_timestamp, as: 'lastUpdatedTimestamp' - end - end - class TestOrderLineItem # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/content_v2_1/service.rb b/generated/google/apis/content_v2_1/service.rb index 94bda9123..23ede75bc 100644 --- a/generated/google/apis/content_v2_1/service.rb +++ b/generated/google/apis/content_v2_1/service.rb @@ -2033,12 +2033,12 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves an order using merchant order id. + # Retrieves an order using merchant order ID. # @param [Fixnum] merchant_id # The ID of the account that manages the order. This cannot be a multi-client # account. # @param [String] merchant_order_id - # The merchant order id to be looked for. + # The merchant order ID to be looked for. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2809,7 +2809,7 @@ module Google # The ID of the account that contains the product. This account cannot be a # multi-client account. # @param [String] product_id - # The REST id of the product. + # The REST ID of the product. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2844,7 +2844,7 @@ module Google # The ID of the account that contains the product. This account cannot be a # multi-client account. # @param [String] product_id - # The REST id of the product. + # The REST ID of the product. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2993,7 +2993,7 @@ module Google # The ID of the account that contains the product. This account cannot be a # multi-client account. # @param [String] product_id - # The REST id of the product. + # The REST ID of the product. # @param [Array, String] destinations # If set, only issues for the specified destinations are returned, otherwise # only issues for the Shopping destination. @@ -3115,7 +3115,7 @@ module Google # The ID of the account that contains the product. This account cannot be a # multi-client account. # @param [String] product_id - # The REST id of the product for which to update the regional inventory. + # The REST ID of the product for which to update the regional inventory. # @param [Google::Apis::ContentV2_1::RegionalInventory] regional_inventory_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/genomics_v1.rb b/generated/google/apis/genomics_v1.rb index 51777a458..8a44aa4cb 100644 --- a/generated/google/apis/genomics_v1.rb +++ b/generated/google/apis/genomics_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/genomics module GenomicsV1 VERSION = 'V1' - REVISION = '20190212' + REVISION = '20190305' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/genomics_v1/classes.rb b/generated/google/apis/genomics_v1/classes.rb index f13b2b8b4..f33ed43c2 100644 --- a/generated/google/apis/genomics_v1/classes.rb +++ b/generated/google/apis/genomics_v1/classes.rb @@ -258,7 +258,7 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. - # * `domain:`domain``: A Google Apps domain name that represents all the + # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] diff --git a/generated/google/apis/partners_v2.rb b/generated/google/apis/partners_v2.rb deleted file mode 100644 index 2d0dc0e36..000000000 --- a/generated/google/apis/partners_v2.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'google/apis/partners_v2/service.rb' -require 'google/apis/partners_v2/classes.rb' -require 'google/apis/partners_v2/representations.rb' - -module Google - module Apis - # Google Partners API - # - # Searches certified companies and creates contact leads with them, and also - # audits the usage of clients. - # - # @see https://developers.google.com/partners/ - module PartnersV2 - VERSION = 'V2' - REVISION = '20180925' - end - end -end diff --git a/generated/google/apis/partners_v2/classes.rb b/generated/google/apis/partners_v2/classes.rb deleted file mode 100644 index d4298a263..000000000 --- a/generated/google/apis/partners_v2/classes.rb +++ /dev/null @@ -1,2260 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'date' -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module PartnersV2 - - # Information about a particular AdWords Manager Account. - # Read more at https://support.google.com/adwords/answer/6139186 - class AdWordsManagerAccountInfo - include Google::Apis::Core::Hashable - - # Name of the customer this account represents. - # Corresponds to the JSON property `customerName` - # @return [String] - attr_accessor :customer_name - - # The AdWords Manager Account id. - # Corresponds to the JSON property `id` - # @return [Fixnum] - attr_accessor :id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @customer_name = args[:customer_name] if args.key?(:customer_name) - @id = args[:id] if args.key?(:id) - end - end - - # Analytics data for a `Company` within a single day. - class Analytics - include Google::Apis::Core::Hashable - - # Details of the analytics events for a `Company` within a single day. - # Corresponds to the JSON property `contacts` - # @return [Google::Apis::PartnersV2::AnalyticsDataPoint] - attr_accessor :contacts - - # Represents a whole or partial calendar date, e.g. a birthday. The time of day - # and time zone are either specified elsewhere or are not significant. The date - # is relative to the Proleptic Gregorian Calendar. This can represent: - # * A full date, with non-zero year, month and day values - # * A month and day value, with a zero year, e.g. an anniversary - # * A year on its own, with zero month and day values - # * A year and month value, with a zero day, e.g. a credit card expiration date - # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. - # Corresponds to the JSON property `eventDate` - # @return [Google::Apis::PartnersV2::Date] - attr_accessor :event_date - - # Details of the analytics events for a `Company` within a single day. - # Corresponds to the JSON property `profileViews` - # @return [Google::Apis::PartnersV2::AnalyticsDataPoint] - attr_accessor :profile_views - - # Details of the analytics events for a `Company` within a single day. - # Corresponds to the JSON property `searchViews` - # @return [Google::Apis::PartnersV2::AnalyticsDataPoint] - attr_accessor :search_views - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @contacts = args[:contacts] if args.key?(:contacts) - @event_date = args[:event_date] if args.key?(:event_date) - @profile_views = args[:profile_views] if args.key?(:profile_views) - @search_views = args[:search_views] if args.key?(:search_views) - end - end - - # Details of the analytics events for a `Company` within a single day. - class AnalyticsDataPoint - include Google::Apis::Core::Hashable - - # Number of times the type of event occurred. - # Meaning depends on context (e.g. profile views, contacts, etc.). - # Corresponds to the JSON property `eventCount` - # @return [Fixnum] - attr_accessor :event_count - - # Location information of where these events occurred. - # Corresponds to the JSON property `eventLocations` - # @return [Array] - attr_accessor :event_locations - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @event_count = args[:event_count] if args.key?(:event_count) - @event_locations = args[:event_locations] if args.key?(:event_locations) - end - end - - # Analytics aggregated data for a `Company` for a given date range. - class AnalyticsSummary - include Google::Apis::Core::Hashable - - # Aggregated number of times users contacted the `Company` - # for given date range. - # Corresponds to the JSON property `contactsCount` - # @return [Fixnum] - attr_accessor :contacts_count - - # Aggregated number of profile views for the `Company` for given date range. - # Corresponds to the JSON property `profileViewsCount` - # @return [Fixnum] - attr_accessor :profile_views_count - - # Aggregated number of times users saw the `Company` - # in Google Partners Search results for given date range. - # Corresponds to the JSON property `searchViewsCount` - # @return [Fixnum] - attr_accessor :search_views_count - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @contacts_count = args[:contacts_count] if args.key?(:contacts_count) - @profile_views_count = args[:profile_views_count] if args.key?(:profile_views_count) - @search_views_count = args[:search_views_count] if args.key?(:search_views_count) - end - end - - # Available Offers to be distributed. - class AvailableOffer - include Google::Apis::Core::Hashable - - # The number of codes for this offer that are available for distribution. - # Corresponds to the JSON property `available` - # @return [Fixnum] - attr_accessor :available - - # Offer info by country. - # Corresponds to the JSON property `countryOfferInfos` - # @return [Array] - attr_accessor :country_offer_infos - - # Description of the offer. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # ID of this offer. - # Corresponds to the JSON property `id` - # @return [Fixnum] - attr_accessor :id - - # The maximum age of an account [in days] to be eligible. - # Corresponds to the JSON property `maxAccountAge` - # @return [Fixnum] - attr_accessor :max_account_age - - # Name of the offer. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Level of this offer. - # Corresponds to the JSON property `offerLevel` - # @return [String] - attr_accessor :offer_level - - # Type of offer. - # Corresponds to the JSON property `offerType` - # @return [String] - attr_accessor :offer_type - - # Customers who qualify for this offer. - # Corresponds to the JSON property `qualifiedCustomer` - # @return [Array] - attr_accessor :qualified_customer - - # Whether or not the list of qualified customers is definitely complete. - # Corresponds to the JSON property `qualifiedCustomersComplete` - # @return [Boolean] - attr_accessor :qualified_customers_complete - alias_method :qualified_customers_complete?, :qualified_customers_complete - - # Should special text be shown on the offers page. - # Corresponds to the JSON property `showSpecialOfferCopy` - # @return [Boolean] - attr_accessor :show_special_offer_copy - alias_method :show_special_offer_copy?, :show_special_offer_copy - - # Terms of the offer. - # Corresponds to the JSON property `terms` - # @return [String] - attr_accessor :terms - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @available = args[:available] if args.key?(:available) - @country_offer_infos = args[:country_offer_infos] if args.key?(:country_offer_infos) - @description = args[:description] if args.key?(:description) - @id = args[:id] if args.key?(:id) - @max_account_age = args[:max_account_age] if args.key?(:max_account_age) - @name = args[:name] if args.key?(:name) - @offer_level = args[:offer_level] if args.key?(:offer_level) - @offer_type = args[:offer_type] if args.key?(:offer_type) - @qualified_customer = args[:qualified_customer] if args.key?(:qualified_customer) - @qualified_customers_complete = args[:qualified_customers_complete] if args.key?(:qualified_customers_complete) - @show_special_offer_copy = args[:show_special_offer_copy] if args.key?(:show_special_offer_copy) - @terms = args[:terms] if args.key?(:terms) - end - end - - # A user's information on a specific certification. - class Certification - include Google::Apis::Core::Hashable - - # Whether this certification has been achieved. - # Corresponds to the JSON property `achieved` - # @return [Boolean] - attr_accessor :achieved - alias_method :achieved?, :achieved - - # The type of certification, the area of expertise. - # Corresponds to the JSON property `certificationType` - # @return [String] - attr_accessor :certification_type - - # Date this certification is due to expire. - # Corresponds to the JSON property `expiration` - # @return [String] - attr_accessor :expiration - - # The date the user last achieved certification. - # Corresponds to the JSON property `lastAchieved` - # @return [String] - attr_accessor :last_achieved - - # Whether this certification is in the state of warning. - # Corresponds to the JSON property `warning` - # @return [Boolean] - attr_accessor :warning - alias_method :warning?, :warning - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @achieved = args[:achieved] if args.key?(:achieved) - @certification_type = args[:certification_type] if args.key?(:certification_type) - @expiration = args[:expiration] if args.key?(:expiration) - @last_achieved = args[:last_achieved] if args.key?(:last_achieved) - @warning = args[:warning] if args.key?(:warning) - end - end - - # Status for a Google Partners certification exam. - class CertificationExamStatus - include Google::Apis::Core::Hashable - - # The number of people who have passed the certification exam. - # Corresponds to the JSON property `numberUsersPass` - # @return [Fixnum] - attr_accessor :number_users_pass - - # The type of certification exam. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @number_users_pass = args[:number_users_pass] if args.key?(:number_users_pass) - @type = args[:type] if args.key?(:type) - end - end - - # Google Partners certification status. - class CertificationStatus - include Google::Apis::Core::Hashable - - # List of certification exam statuses. - # Corresponds to the JSON property `examStatuses` - # @return [Array] - attr_accessor :exam_statuses - - # Whether certification is passing. - # Corresponds to the JSON property `isCertified` - # @return [Boolean] - attr_accessor :is_certified - alias_method :is_certified?, :is_certified - - # The type of the certification. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Number of people who are certified, - # Corresponds to the JSON property `userCount` - # @return [Fixnum] - attr_accessor :user_count - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @exam_statuses = args[:exam_statuses] if args.key?(:exam_statuses) - @is_certified = args[:is_certified] if args.key?(:is_certified) - @type = args[:type] if args.key?(:type) - @user_count = args[:user_count] if args.key?(:user_count) - end - end - - # A company resource in the Google Partners API. Once certified, it qualifies - # for being searched by advertisers. - class Company - include Google::Apis::Core::Hashable - - # URL of the company's additional websites used to verify the dynamic badges. - # These are stored as full URLs as entered by the user, but only the TLD will - # be used for the actual verification. - # Corresponds to the JSON property `additionalWebsites` - # @return [Array] - attr_accessor :additional_websites - - # Email domains that allow users with a matching email address to get - # auto-approved for associating with this company. - # Corresponds to the JSON property `autoApprovalEmailDomains` - # @return [Array] - attr_accessor :auto_approval_email_domains - - # Whether the company's badge authority is in AWN - # Corresponds to the JSON property `badgeAuthorityInAwn` - # @return [Boolean] - attr_accessor :badge_authority_in_awn - alias_method :badge_authority_in_awn?, :badge_authority_in_awn - - # Partner badge tier - # Corresponds to the JSON property `badgeTier` - # @return [String] - attr_accessor :badge_tier - - # The list of Google Partners certification statuses for the company. - # Corresponds to the JSON property `certificationStatuses` - # @return [Array] - attr_accessor :certification_statuses - - # Company type labels listed on the company's profile. - # Corresponds to the JSON property `companyTypes` - # @return [Array] - attr_accessor :company_types - - # Represents an amount of money with its currency type. - # Corresponds to the JSON property `convertedMinMonthlyBudget` - # @return [Google::Apis::PartnersV2::Money] - attr_accessor :converted_min_monthly_budget - - # The ID of the company. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Industries the company can help with. - # Corresponds to the JSON property `industries` - # @return [Array] - attr_accessor :industries - - # The list of localized info for the company. - # Corresponds to the JSON property `localizedInfos` - # @return [Array] - attr_accessor :localized_infos - - # The list of all company locations. - # If set, must include the - # primary_location - # in the list. - # Corresponds to the JSON property `locations` - # @return [Array] - attr_accessor :locations - - # The name of the company. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Represents an amount of money with its currency type. - # Corresponds to the JSON property `originalMinMonthlyBudget` - # @return [Google::Apis::PartnersV2::Money] - attr_accessor :original_min_monthly_budget - - # The Primary AdWords Manager Account id. - # Corresponds to the JSON property `primaryAdwordsManagerAccountId` - # @return [Fixnum] - attr_accessor :primary_adwords_manager_account_id - - # The primary language code of the company, as defined by - # BCP 47 - # (IETF BCP 47, "Tags for Identifying Languages"). - # Corresponds to the JSON property `primaryLanguageCode` - # @return [String] - attr_accessor :primary_language_code - - # A location with address and geographic coordinates. May optionally contain a - # detailed (multi-field) version of the address. - # Corresponds to the JSON property `primaryLocation` - # @return [Google::Apis::PartnersV2::Location] - attr_accessor :primary_location - - # The public viewability status of the company's profile. - # Corresponds to the JSON property `profileStatus` - # @return [String] - attr_accessor :profile_status - - # Basic information from a public profile. - # Corresponds to the JSON property `publicProfile` - # @return [Google::Apis::PartnersV2::PublicProfile] - attr_accessor :public_profile - - # Information related to the ranking of the company within the list of - # companies. - # Corresponds to the JSON property `ranks` - # @return [Array] - attr_accessor :ranks - - # Services the company can help with. - # Corresponds to the JSON property `services` - # @return [Array] - attr_accessor :services - - # The list of Google Partners specialization statuses for the company. - # Corresponds to the JSON property `specializationStatus` - # @return [Array] - attr_accessor :specialization_status - - # URL of the company's website. - # Corresponds to the JSON property `websiteUrl` - # @return [String] - attr_accessor :website_url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @additional_websites = args[:additional_websites] if args.key?(:additional_websites) - @auto_approval_email_domains = args[:auto_approval_email_domains] if args.key?(:auto_approval_email_domains) - @badge_authority_in_awn = args[:badge_authority_in_awn] if args.key?(:badge_authority_in_awn) - @badge_tier = args[:badge_tier] if args.key?(:badge_tier) - @certification_statuses = args[:certification_statuses] if args.key?(:certification_statuses) - @company_types = args[:company_types] if args.key?(:company_types) - @converted_min_monthly_budget = args[:converted_min_monthly_budget] if args.key?(:converted_min_monthly_budget) - @id = args[:id] if args.key?(:id) - @industries = args[:industries] if args.key?(:industries) - @localized_infos = args[:localized_infos] if args.key?(:localized_infos) - @locations = args[:locations] if args.key?(:locations) - @name = args[:name] if args.key?(:name) - @original_min_monthly_budget = args[:original_min_monthly_budget] if args.key?(:original_min_monthly_budget) - @primary_adwords_manager_account_id = args[:primary_adwords_manager_account_id] if args.key?(:primary_adwords_manager_account_id) - @primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code) - @primary_location = args[:primary_location] if args.key?(:primary_location) - @profile_status = args[:profile_status] if args.key?(:profile_status) - @public_profile = args[:public_profile] if args.key?(:public_profile) - @ranks = args[:ranks] if args.key?(:ranks) - @services = args[:services] if args.key?(:services) - @specialization_status = args[:specialization_status] if args.key?(:specialization_status) - @website_url = args[:website_url] if args.key?(:website_url) - end - end - - # A CompanyRelation resource representing information about a user's - # affiliation and standing with a company in Partners. - class CompanyRelation - include Google::Apis::Core::Hashable - - # The primary address for this company. - # Corresponds to the JSON property `address` - # @return [String] - attr_accessor :address - - # Whether the company is a Partner. - # Corresponds to the JSON property `badgeTier` - # @return [String] - attr_accessor :badge_tier - - # Indicates if the user is an admin for this company. - # Corresponds to the JSON property `companyAdmin` - # @return [Boolean] - attr_accessor :company_admin - alias_method :company_admin?, :company_admin - - # The ID of the company. There may be no id if this is a - # pending company.5 - # Corresponds to the JSON property `companyId` - # @return [String] - attr_accessor :company_id - - # The timestamp of when affiliation was requested. - # @OutputOnly - # Corresponds to the JSON property `creationTime` - # @return [String] - attr_accessor :creation_time - - # The internal company ID. - # Only available for a whitelisted set of api clients. - # Corresponds to the JSON property `internalCompanyId` - # @return [String] - attr_accessor :internal_company_id - - # The flag that indicates if the company is pending verification. - # Corresponds to the JSON property `isPending` - # @return [Boolean] - attr_accessor :is_pending - alias_method :is_pending?, :is_pending - - # A URL to a profile photo, e.g. a G+ profile photo. - # Corresponds to the JSON property `logoUrl` - # @return [String] - attr_accessor :logo_url - - # The AdWords manager account # associated this company. - # Corresponds to the JSON property `managerAccount` - # @return [Fixnum] - attr_accessor :manager_account - - # The name (in the company's primary language) for the company. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The phone number for the company's primary address. - # Corresponds to the JSON property `phoneNumber` - # @return [String] - attr_accessor :phone_number - - # A location with address and geographic coordinates. May optionally contain a - # detailed (multi-field) version of the address. - # Corresponds to the JSON property `primaryAddress` - # @return [Google::Apis::PartnersV2::Location] - attr_accessor :primary_address - - # The primary country code of the company. - # Corresponds to the JSON property `primaryCountryCode` - # @return [String] - attr_accessor :primary_country_code - - # The primary language code of the company. - # Corresponds to the JSON property `primaryLanguageCode` - # @return [String] - attr_accessor :primary_language_code - - # The timestamp when the user was approved. - # @OutputOnly - # Corresponds to the JSON property `resolvedTimestamp` - # @return [String] - attr_accessor :resolved_timestamp - - # The segment the company is classified as. - # Corresponds to the JSON property `segment` - # @return [Array] - attr_accessor :segment - - # The list of Google Partners specialization statuses for the company. - # Corresponds to the JSON property `specializationStatus` - # @return [Array] - attr_accessor :specialization_status - - # The state of relationship, in terms of approvals. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # The website URL for this company. - # Corresponds to the JSON property `website` - # @return [String] - attr_accessor :website - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @address = args[:address] if args.key?(:address) - @badge_tier = args[:badge_tier] if args.key?(:badge_tier) - @company_admin = args[:company_admin] if args.key?(:company_admin) - @company_id = args[:company_id] if args.key?(:company_id) - @creation_time = args[:creation_time] if args.key?(:creation_time) - @internal_company_id = args[:internal_company_id] if args.key?(:internal_company_id) - @is_pending = args[:is_pending] if args.key?(:is_pending) - @logo_url = args[:logo_url] if args.key?(:logo_url) - @manager_account = args[:manager_account] if args.key?(:manager_account) - @name = args[:name] if args.key?(:name) - @phone_number = args[:phone_number] if args.key?(:phone_number) - @primary_address = args[:primary_address] if args.key?(:primary_address) - @primary_country_code = args[:primary_country_code] if args.key?(:primary_country_code) - @primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code) - @resolved_timestamp = args[:resolved_timestamp] if args.key?(:resolved_timestamp) - @segment = args[:segment] if args.key?(:segment) - @specialization_status = args[:specialization_status] if args.key?(:specialization_status) - @state = args[:state] if args.key?(:state) - @website = args[:website] if args.key?(:website) - end - end - - # Offer info by country. - class CountryOfferInfo - include Google::Apis::Core::Hashable - - # (localized) Get Y amount for that country's offer. - # Corresponds to the JSON property `getYAmount` - # @return [String] - attr_accessor :get_y_amount - - # Country code for which offer codes may be requested. - # Corresponds to the JSON property `offerCountryCode` - # @return [String] - attr_accessor :offer_country_code - - # Type of offer country is eligible for. - # Corresponds to the JSON property `offerType` - # @return [String] - attr_accessor :offer_type - - # (localized) Spend X amount for that country's offer. - # Corresponds to the JSON property `spendXAmount` - # @return [String] - attr_accessor :spend_x_amount - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount) - @offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code) - @offer_type = args[:offer_type] if args.key?(:offer_type) - @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount) - end - end - - # Request message for CreateLead. - class CreateLeadRequest - include Google::Apis::Core::Hashable - - # A lead resource that represents an advertiser contact for a `Company`. These - # are usually generated via Google Partner Search (the advertiser portal). - # Corresponds to the JSON property `lead` - # @return [Google::Apis::PartnersV2::Lead] - attr_accessor :lead - - # reCaptcha challenge info. - # Corresponds to the JSON property `recaptchaChallenge` - # @return [Google::Apis::PartnersV2::RecaptchaChallenge] - attr_accessor :recaptcha_challenge - - # Common data that is in each API request. - # Corresponds to the JSON property `requestMetadata` - # @return [Google::Apis::PartnersV2::RequestMetadata] - attr_accessor :request_metadata - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @lead = args[:lead] if args.key?(:lead) - @recaptcha_challenge = args[:recaptcha_challenge] if args.key?(:recaptcha_challenge) - @request_metadata = args[:request_metadata] if args.key?(:request_metadata) - end - end - - # Response message for CreateLead. - class CreateLeadResponse - include Google::Apis::Core::Hashable - - # A lead resource that represents an advertiser contact for a `Company`. These - # are usually generated via Google Partner Search (the advertiser portal). - # Corresponds to the JSON property `lead` - # @return [Google::Apis::PartnersV2::Lead] - attr_accessor :lead - - # The outcome of reCaptcha - # validation. - # Corresponds to the JSON property `recaptchaStatus` - # @return [String] - attr_accessor :recaptcha_status - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @lead = args[:lead] if args.key?(:lead) - @recaptcha_status = args[:recaptcha_status] if args.key?(:recaptcha_status) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - end - end - - # Represents a whole or partial calendar date, e.g. a birthday. The time of day - # and time zone are either specified elsewhere or are not significant. The date - # is relative to the Proleptic Gregorian Calendar. This can represent: - # * A full date, with non-zero year, month and day values - # * A month and day value, with a zero year, e.g. an anniversary - # * A year on its own, with zero month and day values - # * A year and month value, with a zero day, e.g. a credit card expiration date - # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. - class Date - include Google::Apis::Core::Hashable - - # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 - # if specifying a year by itself or a year and month where the day is not - # significant. - # Corresponds to the JSON property `day` - # @return [Fixnum] - attr_accessor :day - - # Month of year. Must be from 1 to 12, or 0 if specifying a year without a - # month and day. - # Corresponds to the JSON property `month` - # @return [Fixnum] - attr_accessor :month - - # Year of date. Must be from 1 to 9999, or 0 if specifying a date without - # a year. - # Corresponds to the JSON property `year` - # @return [Fixnum] - attr_accessor :year - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @day = args[:day] if args.key?(:day) - @month = args[:month] if args.key?(:month) - @year = args[:year] if args.key?(:year) - end - end - - # Debug information about this request. - class DebugInfo - include Google::Apis::Core::Hashable - - # Info about the server that serviced this request. - # Corresponds to the JSON property `serverInfo` - # @return [String] - attr_accessor :server_info - - # Server-side debug stack trace. - # Corresponds to the JSON property `serverTraceInfo` - # @return [String] - attr_accessor :server_trace_info - - # URL of the service that handled this request. - # Corresponds to the JSON property `serviceUrl` - # @return [String] - attr_accessor :service_url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @server_info = args[:server_info] if args.key?(:server_info) - @server_trace_info = args[:server_trace_info] if args.key?(:server_trace_info) - @service_url = args[:service_url] if args.key?(:service_url) - end - end - - # A generic empty message that you can re-use to avoid defining duplicated - # empty messages in your APIs. A typical example is to use it as the request - # or the response type of an API method. For instance: - # service Foo ` - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # ` - # The JSON representation for `Empty` is empty JSON object ````. - class Empty - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # Key value data pair for an event. - class EventData - include Google::Apis::Core::Hashable - - # Data type. - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - - # Data values. - # Corresponds to the JSON property `values` - # @return [Array] - attr_accessor :values - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @key = args[:key] if args.key?(:key) - @values = args[:values] if args.key?(:values) - end - end - - # A user's information on a specific exam. - class ExamStatus - include Google::Apis::Core::Hashable - - # The type of the exam. - # Corresponds to the JSON property `examType` - # @return [String] - attr_accessor :exam_type - - # Date this exam is due to expire. - # Corresponds to the JSON property `expiration` - # @return [String] - attr_accessor :expiration - - # The date the user last passed this exam. - # Corresponds to the JSON property `lastPassed` - # @return [String] - attr_accessor :last_passed - - # Whether this exam has been passed and not expired. - # Corresponds to the JSON property `passed` - # @return [Boolean] - attr_accessor :passed - alias_method :passed?, :passed - - # The date the user last taken this exam. - # Corresponds to the JSON property `taken` - # @return [String] - attr_accessor :taken - - # Whether this exam is in the state of warning. - # Corresponds to the JSON property `warning` - # @return [Boolean] - attr_accessor :warning - alias_method :warning?, :warning - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @exam_type = args[:exam_type] if args.key?(:exam_type) - @expiration = args[:expiration] if args.key?(:expiration) - @last_passed = args[:last_passed] if args.key?(:last_passed) - @passed = args[:passed] if args.key?(:passed) - @taken = args[:taken] if args.key?(:taken) - @warning = args[:warning] if args.key?(:warning) - end - end - - # Response message for GetCompany. - class GetCompanyResponse - include Google::Apis::Core::Hashable - - # A company resource in the Google Partners API. Once certified, it qualifies - # for being searched by advertisers. - # Corresponds to the JSON property `company` - # @return [Google::Apis::PartnersV2::Company] - attr_accessor :company - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @company = args[:company] if args.key?(:company) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - end - end - - # Response message for - # GetPartnersStatus. - class GetPartnersStatusResponse - include Google::Apis::Core::Hashable - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - end - end - - # Historical information about a Google Partners Offer. - class HistoricalOffer - include Google::Apis::Core::Hashable - - # Client's AdWords page URL. - # Corresponds to the JSON property `adwordsUrl` - # @return [String] - attr_accessor :adwords_url - - # Email address for client. - # Corresponds to the JSON property `clientEmail` - # @return [String] - attr_accessor :client_email - - # ID of client. - # Corresponds to the JSON property `clientId` - # @return [Fixnum] - attr_accessor :client_id - - # Name of the client. - # Corresponds to the JSON property `clientName` - # @return [String] - attr_accessor :client_name - - # Time offer was first created. - # Corresponds to the JSON property `creationTime` - # @return [String] - attr_accessor :creation_time - - # Time this offer expires. - # Corresponds to the JSON property `expirationTime` - # @return [String] - attr_accessor :expiration_time - - # Time last action was taken. - # Corresponds to the JSON property `lastModifiedTime` - # @return [String] - attr_accessor :last_modified_time - - # Offer code. - # Corresponds to the JSON property `offerCode` - # @return [String] - attr_accessor :offer_code - - # Country Code for the offer country. - # Corresponds to the JSON property `offerCountryCode` - # @return [String] - attr_accessor :offer_country_code - - # Type of offer. - # Corresponds to the JSON property `offerType` - # @return [String] - attr_accessor :offer_type - - # Name (First + Last) of the partners user to whom the incentive is allocated. - # Corresponds to the JSON property `senderName` - # @return [String] - attr_accessor :sender_name - - # Status of the offer. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @adwords_url = args[:adwords_url] if args.key?(:adwords_url) - @client_email = args[:client_email] if args.key?(:client_email) - @client_id = args[:client_id] if args.key?(:client_id) - @client_name = args[:client_name] if args.key?(:client_name) - @creation_time = args[:creation_time] if args.key?(:creation_time) - @expiration_time = args[:expiration_time] if args.key?(:expiration_time) - @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) - @offer_code = args[:offer_code] if args.key?(:offer_code) - @offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code) - @offer_type = args[:offer_type] if args.key?(:offer_type) - @sender_name = args[:sender_name] if args.key?(:sender_name) - @status = args[:status] if args.key?(:status) - end - end - - # An object representing a latitude/longitude pair. This is expressed as a pair - # of doubles representing degrees latitude and degrees longitude. Unless - # specified otherwise, this must conform to the - # WGS84 - # standard. Values must be within normalized ranges. - class LatLng - include Google::Apis::Core::Hashable - - # The latitude in degrees. It must be in the range [-90.0, +90.0]. - # Corresponds to the JSON property `latitude` - # @return [Float] - attr_accessor :latitude - - # The longitude in degrees. It must be in the range [-180.0, +180.0]. - # Corresponds to the JSON property `longitude` - # @return [Float] - attr_accessor :longitude - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @latitude = args[:latitude] if args.key?(:latitude) - @longitude = args[:longitude] if args.key?(:longitude) - end - end - - # A lead resource that represents an advertiser contact for a `Company`. These - # are usually generated via Google Partner Search (the advertiser portal). - class Lead - include Google::Apis::Core::Hashable - - # The AdWords Customer ID of the lead. - # Corresponds to the JSON property `adwordsCustomerId` - # @return [Fixnum] - attr_accessor :adwords_customer_id - - # Comments lead source gave. - # Corresponds to the JSON property `comments` - # @return [String] - attr_accessor :comments - - # Timestamp of when this lead was created. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # Email address of lead source. - # Corresponds to the JSON property `email` - # @return [String] - attr_accessor :email - - # Last name of lead source. - # Corresponds to the JSON property `familyName` - # @return [String] - attr_accessor :family_name - - # First name of lead source. - # Corresponds to the JSON property `givenName` - # @return [String] - attr_accessor :given_name - - # List of reasons for using Google Partner Search and creating a lead. - # Corresponds to the JSON property `gpsMotivations` - # @return [Array] - attr_accessor :gps_motivations - - # ID of the lead. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Language code of the lead's language preference, as defined by - # BCP 47 - # (IETF BCP 47, "Tags for Identifying Languages"). - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - # Whether or not the lead signed up for marketing emails - # Corresponds to the JSON property `marketingOptIn` - # @return [Boolean] - attr_accessor :marketing_opt_in - alias_method :marketing_opt_in?, :marketing_opt_in - - # Represents an amount of money with its currency type. - # Corresponds to the JSON property `minMonthlyBudget` - # @return [Google::Apis::PartnersV2::Money] - attr_accessor :min_monthly_budget - - # Phone number of lead source. - # Corresponds to the JSON property `phoneNumber` - # @return [String] - attr_accessor :phone_number - - # The lead's state in relation to the company. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # Type of lead. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Website URL of lead source. - # Corresponds to the JSON property `websiteUrl` - # @return [String] - attr_accessor :website_url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @adwords_customer_id = args[:adwords_customer_id] if args.key?(:adwords_customer_id) - @comments = args[:comments] if args.key?(:comments) - @create_time = args[:create_time] if args.key?(:create_time) - @email = args[:email] if args.key?(:email) - @family_name = args[:family_name] if args.key?(:family_name) - @given_name = args[:given_name] if args.key?(:given_name) - @gps_motivations = args[:gps_motivations] if args.key?(:gps_motivations) - @id = args[:id] if args.key?(:id) - @language_code = args[:language_code] if args.key?(:language_code) - @marketing_opt_in = args[:marketing_opt_in] if args.key?(:marketing_opt_in) - @min_monthly_budget = args[:min_monthly_budget] if args.key?(:min_monthly_budget) - @phone_number = args[:phone_number] if args.key?(:phone_number) - @state = args[:state] if args.key?(:state) - @type = args[:type] if args.key?(:type) - @website_url = args[:website_url] if args.key?(:website_url) - end - end - - # Response message for - # ListAnalytics. - class ListAnalyticsResponse - include Google::Apis::Core::Hashable - - # The list of analytics. - # Sorted in ascending order of - # Analytics.event_date. - # Corresponds to the JSON property `analytics` - # @return [Array] - attr_accessor :analytics - - # Analytics aggregated data for a `Company` for a given date range. - # Corresponds to the JSON property `analyticsSummary` - # @return [Google::Apis::PartnersV2::AnalyticsSummary] - attr_accessor :analytics_summary - - # A token to retrieve next page of results. - # Pass this value in the `ListAnalyticsRequest.page_token` field in the - # subsequent call to - # ListAnalytics to retrieve the - # next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @analytics = args[:analytics] if args.key?(:analytics) - @analytics_summary = args[:analytics_summary] if args.key?(:analytics_summary) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - end - end - - # Response message for - # ListCompanies. - class ListCompaniesResponse - include Google::Apis::Core::Hashable - - # The list of companies. - # Corresponds to the JSON property `companies` - # @return [Array] - attr_accessor :companies - - # A token to retrieve next page of results. - # Pass this value in the `ListCompaniesRequest.page_token` field in the - # subsequent call to - # ListCompanies to retrieve the - # next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @companies = args[:companies] if args.key?(:companies) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - end - end - - # Response message for ListLeads. - class ListLeadsResponse - include Google::Apis::Core::Hashable - - # The list of leads. - # Corresponds to the JSON property `leads` - # @return [Array] - attr_accessor :leads - - # A token to retrieve next page of results. - # Pass this value in the `ListLeadsRequest.page_token` field in the - # subsequent call to - # ListLeads to retrieve the - # next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - # The total count of leads for the given company. - # Corresponds to the JSON property `totalSize` - # @return [Fixnum] - attr_accessor :total_size - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @leads = args[:leads] if args.key?(:leads) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - @total_size = args[:total_size] if args.key?(:total_size) - end - end - - # Response for ListOfferHistory. - class ListOffersHistoryResponse - include Google::Apis::Core::Hashable - - # True if the user has the option to show entire company history. - # Corresponds to the JSON property `canShowEntireCompany` - # @return [Boolean] - attr_accessor :can_show_entire_company - alias_method :can_show_entire_company?, :can_show_entire_company - - # Supply this token in a ListOffersHistoryRequest to retrieve the next page. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # Historical offers meeting request. - # Corresponds to the JSON property `offers` - # @return [Array] - attr_accessor :offers - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - # True if this response is showing entire company history. - # Corresponds to the JSON property `showingEntireCompany` - # @return [Boolean] - attr_accessor :showing_entire_company - alias_method :showing_entire_company?, :showing_entire_company - - # Number of results across all pages. - # Corresponds to the JSON property `totalResults` - # @return [Fixnum] - attr_accessor :total_results - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @can_show_entire_company = args[:can_show_entire_company] if args.key?(:can_show_entire_company) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @offers = args[:offers] if args.key?(:offers) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - @showing_entire_company = args[:showing_entire_company] if args.key?(:showing_entire_company) - @total_results = args[:total_results] if args.key?(:total_results) - end - end - - # Response for ListOffer. - class ListOffersResponse - include Google::Apis::Core::Hashable - - # Available Offers to be distributed. - # Corresponds to the JSON property `availableOffers` - # @return [Array] - attr_accessor :available_offers - - # Reason why no Offers are available. - # Corresponds to the JSON property `noOfferReason` - # @return [String] - attr_accessor :no_offer_reason - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @available_offers = args[:available_offers] if args.key?(:available_offers) - @no_offer_reason = args[:no_offer_reason] if args.key?(:no_offer_reason) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - end - end - - # Response message for - # ListUserStates. - class ListUserStatesResponse - include Google::Apis::Core::Hashable - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - # User's states. - # Corresponds to the JSON property `userStates` - # @return [Array] - attr_accessor :user_states - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - @user_states = args[:user_states] if args.key?(:user_states) - end - end - - # The localized company information. - class LocalizedCompanyInfo - include Google::Apis::Core::Hashable - - # List of country codes for the localized company info. - # Corresponds to the JSON property `countryCodes` - # @return [Array] - attr_accessor :country_codes - - # Localized display name. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # Language code of the localized company info, as defined by - # BCP 47 - # (IETF BCP 47, "Tags for Identifying Languages"). - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - # Localized brief description that the company uses to advertise themselves. - # Corresponds to the JSON property `overview` - # @return [String] - attr_accessor :overview - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @country_codes = args[:country_codes] if args.key?(:country_codes) - @display_name = args[:display_name] if args.key?(:display_name) - @language_code = args[:language_code] if args.key?(:language_code) - @overview = args[:overview] if args.key?(:overview) - end - end - - # A location with address and geographic coordinates. May optionally contain a - # detailed (multi-field) version of the address. - class Location - include Google::Apis::Core::Hashable - - # The single string version of the address. - # Corresponds to the JSON property `address` - # @return [String] - attr_accessor :address - - # The following address lines represent the most specific part of any - # address. - # Corresponds to the JSON property `addressLine` - # @return [Array] - attr_accessor :address_line - - # Top-level administrative subdivision of this country. - # Corresponds to the JSON property `administrativeArea` - # @return [String] - attr_accessor :administrative_area - - # Dependent locality or sublocality. Used for UK dependent localities, or - # neighborhoods or boroughs in other locations. - # Corresponds to the JSON property `dependentLocality` - # @return [String] - attr_accessor :dependent_locality - - # Language code of the address. Should be in BCP 47 format. - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - # An object representing a latitude/longitude pair. This is expressed as a pair - # of doubles representing degrees latitude and degrees longitude. Unless - # specified otherwise, this must conform to the - # WGS84 - # standard. Values must be within normalized ranges. - # Corresponds to the JSON property `latLng` - # @return [Google::Apis::PartnersV2::LatLng] - attr_accessor :lat_lng - - # Generally refers to the city/town portion of an address. - # Corresponds to the JSON property `locality` - # @return [String] - attr_accessor :locality - - # Values are frequently alphanumeric. - # Corresponds to the JSON property `postalCode` - # @return [String] - attr_accessor :postal_code - - # CLDR (Common Locale Data Repository) region code . - # Corresponds to the JSON property `regionCode` - # @return [String] - attr_accessor :region_code - - # Use of this code is very country-specific, but will refer to a secondary - # classification code for sorting mail. - # Corresponds to the JSON property `sortingCode` - # @return [String] - attr_accessor :sorting_code - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @address = args[:address] if args.key?(:address) - @address_line = args[:address_line] if args.key?(:address_line) - @administrative_area = args[:administrative_area] if args.key?(:administrative_area) - @dependent_locality = args[:dependent_locality] if args.key?(:dependent_locality) - @language_code = args[:language_code] if args.key?(:language_code) - @lat_lng = args[:lat_lng] if args.key?(:lat_lng) - @locality = args[:locality] if args.key?(:locality) - @postal_code = args[:postal_code] if args.key?(:postal_code) - @region_code = args[:region_code] if args.key?(:region_code) - @sorting_code = args[:sorting_code] if args.key?(:sorting_code) - end - end - - # Request message for - # LogClientMessage. - class LogMessageRequest - include Google::Apis::Core::Hashable - - # Map of client info, such as URL, browser navigator, browser platform, etc. - # Corresponds to the JSON property `clientInfo` - # @return [Hash] - attr_accessor :client_info - - # Details about the client message. - # Corresponds to the JSON property `details` - # @return [String] - attr_accessor :details - - # Message level of client message. - # Corresponds to the JSON property `level` - # @return [String] - attr_accessor :level - - # Common data that is in each API request. - # Corresponds to the JSON property `requestMetadata` - # @return [Google::Apis::PartnersV2::RequestMetadata] - attr_accessor :request_metadata - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @client_info = args[:client_info] if args.key?(:client_info) - @details = args[:details] if args.key?(:details) - @level = args[:level] if args.key?(:level) - @request_metadata = args[:request_metadata] if args.key?(:request_metadata) - end - end - - # Response message for - # LogClientMessage. - class LogMessageResponse - include Google::Apis::Core::Hashable - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - end - end - - # Request message for - # LogUserEvent. - class LogUserEventRequest - include Google::Apis::Core::Hashable - - # The action that occurred. - # Corresponds to the JSON property `eventAction` - # @return [String] - attr_accessor :event_action - - # The category the action belongs to. - # Corresponds to the JSON property `eventCategory` - # @return [String] - attr_accessor :event_category - - # List of event data for the event. - # Corresponds to the JSON property `eventDatas` - # @return [Array] - attr_accessor :event_datas - - # The scope of the event. - # Corresponds to the JSON property `eventScope` - # @return [String] - attr_accessor :event_scope - - # A lead resource that represents an advertiser contact for a `Company`. These - # are usually generated via Google Partner Search (the advertiser portal). - # Corresponds to the JSON property `lead` - # @return [Google::Apis::PartnersV2::Lead] - attr_accessor :lead - - # Common data that is in each API request. - # Corresponds to the JSON property `requestMetadata` - # @return [Google::Apis::PartnersV2::RequestMetadata] - attr_accessor :request_metadata - - # The URL where the event occurred. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @event_action = args[:event_action] if args.key?(:event_action) - @event_category = args[:event_category] if args.key?(:event_category) - @event_datas = args[:event_datas] if args.key?(:event_datas) - @event_scope = args[:event_scope] if args.key?(:event_scope) - @lead = args[:lead] if args.key?(:lead) - @request_metadata = args[:request_metadata] if args.key?(:request_metadata) - @url = args[:url] if args.key?(:url) - end - end - - # Response message for - # LogUserEvent. - class LogUserEventResponse - include Google::Apis::Core::Hashable - - # Common data that is in each API response. - # Corresponds to the JSON property `responseMetadata` - # @return [Google::Apis::PartnersV2::ResponseMetadata] - attr_accessor :response_metadata - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @response_metadata = args[:response_metadata] if args.key?(:response_metadata) - end - end - - # Represents an amount of money with its currency type. - class Money - include Google::Apis::Core::Hashable - - # The 3-letter currency code defined in ISO 4217. - # Corresponds to the JSON property `currencyCode` - # @return [String] - attr_accessor :currency_code - - # Number of nano (10^-9) units of the amount. - # The value must be between -999,999,999 and +999,999,999 inclusive. - # If `units` is positive, `nanos` must be positive or zero. - # If `units` is zero, `nanos` can be positive, zero, or negative. - # If `units` is negative, `nanos` must be negative or zero. - # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. - # Corresponds to the JSON property `nanos` - # @return [Fixnum] - attr_accessor :nanos - - # The whole units of the amount. - # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. - # Corresponds to the JSON property `units` - # @return [Fixnum] - attr_accessor :units - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @currency_code = args[:currency_code] if args.key?(:currency_code) - @nanos = args[:nanos] if args.key?(:nanos) - @units = args[:units] if args.key?(:units) - end - end - - # Customers qualified for an offer. - class OfferCustomer - include Google::Apis::Core::Hashable - - # URL to the customer's AdWords page. - # Corresponds to the JSON property `adwordsUrl` - # @return [String] - attr_accessor :adwords_url - - # Country code of the customer. - # Corresponds to the JSON property `countryCode` - # @return [String] - attr_accessor :country_code - - # Time the customer was created. - # Corresponds to the JSON property `creationTime` - # @return [String] - attr_accessor :creation_time - - # Days the customer is still eligible. - # Corresponds to the JSON property `eligibilityDaysLeft` - # @return [Fixnum] - attr_accessor :eligibility_days_left - - # External CID for the customer. - # Corresponds to the JSON property `externalCid` - # @return [Fixnum] - attr_accessor :external_cid - - # Formatted Get Y amount with currency code. - # Corresponds to the JSON property `getYAmount` - # @return [String] - attr_accessor :get_y_amount - - # Name of the customer. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Type of the offer - # Corresponds to the JSON property `offerType` - # @return [String] - attr_accessor :offer_type - - # Formatted Spend X amount with currency code. - # Corresponds to the JSON property `spendXAmount` - # @return [String] - attr_accessor :spend_x_amount - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @adwords_url = args[:adwords_url] if args.key?(:adwords_url) - @country_code = args[:country_code] if args.key?(:country_code) - @creation_time = args[:creation_time] if args.key?(:creation_time) - @eligibility_days_left = args[:eligibility_days_left] if args.key?(:eligibility_days_left) - @external_cid = args[:external_cid] if args.key?(:external_cid) - @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount) - @name = args[:name] if args.key?(:name) - @offer_type = args[:offer_type] if args.key?(:offer_type) - @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount) - end - end - - # A set of opt-ins for a user. - class OptIns - include Google::Apis::Core::Hashable - - # An opt-in about receiving email from Partners marketing teams. Includes - # member-only events and special promotional offers for Google products. - # Corresponds to the JSON property `marketComm` - # @return [Boolean] - attr_accessor :market_comm - alias_method :market_comm?, :market_comm - - # An opt-in about receiving email with customized AdWords campaign management - # tips. - # Corresponds to the JSON property `performanceSuggestions` - # @return [Boolean] - attr_accessor :performance_suggestions - alias_method :performance_suggestions?, :performance_suggestions - - # An opt-in to allow recieivng phone calls about their Partners account. - # Corresponds to the JSON property `phoneContact` - # @return [Boolean] - attr_accessor :phone_contact - alias_method :phone_contact?, :phone_contact - - # An opt-in to receive special promotional gifts and material in the mail. - # Corresponds to the JSON property `physicalMail` - # @return [Boolean] - attr_accessor :physical_mail - alias_method :physical_mail?, :physical_mail - - # An opt-in about receiving email regarding new features and products. - # Corresponds to the JSON property `specialOffers` - # @return [Boolean] - attr_accessor :special_offers - alias_method :special_offers?, :special_offers - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @market_comm = args[:market_comm] if args.key?(:market_comm) - @performance_suggestions = args[:performance_suggestions] if args.key?(:performance_suggestions) - @phone_contact = args[:phone_contact] if args.key?(:phone_contact) - @physical_mail = args[:physical_mail] if args.key?(:physical_mail) - @special_offers = args[:special_offers] if args.key?(:special_offers) - end - end - - # Basic information from a public profile. - class PublicProfile - include Google::Apis::Core::Hashable - - # The URL to the main display image of the public profile. Being deprecated. - # Corresponds to the JSON property `displayImageUrl` - # @return [String] - attr_accessor :display_image_url - - # The display name of the public profile. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # The ID which can be used to retrieve more details about the public profile. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The URL to the main profile image of the public profile. - # Corresponds to the JSON property `profileImage` - # @return [String] - attr_accessor :profile_image - - # The URL of the public profile. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @display_image_url = args[:display_image_url] if args.key?(:display_image_url) - @display_name = args[:display_name] if args.key?(:display_name) - @id = args[:id] if args.key?(:id) - @profile_image = args[:profile_image] if args.key?(:profile_image) - @url = args[:url] if args.key?(:url) - end - end - - # Information related to ranking of results. - class Rank - include Google::Apis::Core::Hashable - - # The type of rank. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The numerical value of the rank. - # Corresponds to the JSON property `value` - # @return [Float] - attr_accessor :value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type = args[:type] if args.key?(:type) - @value = args[:value] if args.key?(:value) - end - end - - # reCaptcha challenge info. - class RecaptchaChallenge - include Google::Apis::Core::Hashable - - # The ID of the reCaptcha challenge. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The response to the reCaptcha challenge. - # Corresponds to the JSON property `response` - # @return [String] - attr_accessor :response - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @response = args[:response] if args.key?(:response) - end - end - - # Common data that is in each API request. - class RequestMetadata - include Google::Apis::Core::Hashable - - # Experiment IDs the current request belongs to. - # Corresponds to the JSON property `experimentIds` - # @return [Array] - attr_accessor :experiment_ids - - # Locale to use for the current request. - # Corresponds to the JSON property `locale` - # @return [String] - attr_accessor :locale - - # Google Partners session ID. - # Corresponds to the JSON property `partnersSessionId` - # @return [String] - attr_accessor :partners_session_id - - # Source of traffic for the current request. - # Corresponds to the JSON property `trafficSource` - # @return [Google::Apis::PartnersV2::TrafficSource] - attr_accessor :traffic_source - - # Values to use instead of the user's respective defaults. These are only - # honored by whitelisted products. - # Corresponds to the JSON property `userOverrides` - # @return [Google::Apis::PartnersV2::UserOverrides] - attr_accessor :user_overrides - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids) - @locale = args[:locale] if args.key?(:locale) - @partners_session_id = args[:partners_session_id] if args.key?(:partners_session_id) - @traffic_source = args[:traffic_source] if args.key?(:traffic_source) - @user_overrides = args[:user_overrides] if args.key?(:user_overrides) - end - end - - # Common data that is in each API response. - class ResponseMetadata - include Google::Apis::Core::Hashable - - # Debug information about this request. - # Corresponds to the JSON property `debugInfo` - # @return [Google::Apis::PartnersV2::DebugInfo] - attr_accessor :debug_info - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @debug_info = args[:debug_info] if args.key?(:debug_info) - end - end - - # Agency specialization status - class SpecializationStatus - include Google::Apis::Core::Hashable - - # The specialization this status is for. - # Corresponds to the JSON property `badgeSpecialization` - # @return [String] - attr_accessor :badge_specialization - - # State of agency specialization. - # Corresponds to the JSON property `badgeSpecializationState` - # @return [String] - attr_accessor :badge_specialization_state - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @badge_specialization = args[:badge_specialization] if args.key?(:badge_specialization) - @badge_specialization_state = args[:badge_specialization_state] if args.key?(:badge_specialization_state) - end - end - - # Source of traffic for the current request. - class TrafficSource - include Google::Apis::Core::Hashable - - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # Corresponds to the JSON property `trafficSourceId` - # @return [String] - attr_accessor :traffic_source_id - - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # Corresponds to the JSON property `trafficSubId` - # @return [String] - attr_accessor :traffic_sub_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @traffic_source_id = args[:traffic_source_id] if args.key?(:traffic_source_id) - @traffic_sub_id = args[:traffic_sub_id] if args.key?(:traffic_sub_id) - end - end - - # A resource representing a user of the Partners platform. - class User - include Google::Apis::Core::Hashable - - # Whether or not the user has opted to share their Academy for Ads info with - # Google Partners. - # Corresponds to the JSON property `afaInfoShared` - # @return [Boolean] - attr_accessor :afa_info_shared - alias_method :afa_info_shared?, :afa_info_shared - - # This is the list of AdWords Manager Accounts the user has edit access to. - # If the user has edit access to multiple accounts, the user can choose the - # preferred account and we use this when a personal account is needed. Can - # be empty meaning the user has access to no accounts. - # @OutputOnly - # Corresponds to the JSON property `availableAdwordsManagerAccounts` - # @return [Array] - attr_accessor :available_adwords_manager_accounts - - # The list of achieved certifications. These are calculated based on exam - # results and other requirements. - # @OutputOnly - # Corresponds to the JSON property `certificationStatus` - # @return [Array] - attr_accessor :certification_status - - # A CompanyRelation resource representing information about a user's - # affiliation and standing with a company in Partners. - # Corresponds to the JSON property `company` - # @return [Google::Apis::PartnersV2::CompanyRelation] - attr_accessor :company - - # The email address used by the user used for company verification. - # @OutputOnly - # Corresponds to the JSON property `companyVerificationEmail` - # @return [String] - attr_accessor :company_verification_email - - # The list of exams the user ever taken. For each type of exam, only one - # entry is listed. - # Corresponds to the JSON property `examStatus` - # @return [Array] - attr_accessor :exam_status - - # The ID of the user. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The internal user ID. - # Only available for a whitelisted set of api clients. - # Corresponds to the JSON property `internalId` - # @return [String] - attr_accessor :internal_id - - # The most recent time the user interacted with the Partners site. - # @OutputOnly - # Corresponds to the JSON property `lastAccessTime` - # @return [String] - attr_accessor :last_access_time - - # The list of emails the user has access to/can select as primary. - # @OutputOnly - # Corresponds to the JSON property `primaryEmails` - # @return [Array] - attr_accessor :primary_emails - - # The profile information of a Partners user. - # Corresponds to the JSON property `profile` - # @return [Google::Apis::PartnersV2::UserProfile] - attr_accessor :profile - - # Basic information from a public profile. - # Corresponds to the JSON property `publicProfile` - # @return [Google::Apis::PartnersV2::PublicProfile] - attr_accessor :public_profile - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @afa_info_shared = args[:afa_info_shared] if args.key?(:afa_info_shared) - @available_adwords_manager_accounts = args[:available_adwords_manager_accounts] if args.key?(:available_adwords_manager_accounts) - @certification_status = args[:certification_status] if args.key?(:certification_status) - @company = args[:company] if args.key?(:company) - @company_verification_email = args[:company_verification_email] if args.key?(:company_verification_email) - @exam_status = args[:exam_status] if args.key?(:exam_status) - @id = args[:id] if args.key?(:id) - @internal_id = args[:internal_id] if args.key?(:internal_id) - @last_access_time = args[:last_access_time] if args.key?(:last_access_time) - @primary_emails = args[:primary_emails] if args.key?(:primary_emails) - @profile = args[:profile] if args.key?(:profile) - @public_profile = args[:public_profile] if args.key?(:public_profile) - end - end - - # Values to use instead of the user's respective defaults. These are only - # honored by whitelisted products. - class UserOverrides - include Google::Apis::Core::Hashable - - # IP address to use instead of the user's geo-located IP address. - # Corresponds to the JSON property `ipAddress` - # @return [String] - attr_accessor :ip_address - - # Logged-in user ID to impersonate instead of the user's ID. - # Corresponds to the JSON property `userId` - # @return [String] - attr_accessor :user_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @ip_address = args[:ip_address] if args.key?(:ip_address) - @user_id = args[:user_id] if args.key?(:user_id) - end - end - - # The profile information of a Partners user. - class UserProfile - include Google::Apis::Core::Hashable - - # A location with address and geographic coordinates. May optionally contain a - # detailed (multi-field) version of the address. - # Corresponds to the JSON property `address` - # @return [Google::Apis::PartnersV2::Location] - attr_accessor :address - - # If the user has edit access to multiple accounts, the user can choose the - # preferred account and it is used when a personal account is needed. Can - # be empty. - # Corresponds to the JSON property `adwordsManagerAccount` - # @return [Fixnum] - attr_accessor :adwords_manager_account - - # A list of ids representing which channels the user selected they were in. - # Corresponds to the JSON property `channels` - # @return [Array] - attr_accessor :channels - - # The email address the user has selected on the Partners site as primary. - # Corresponds to the JSON property `emailAddress` - # @return [String] - attr_accessor :email_address - - # A set of opt-ins for a user. - # Corresponds to the JSON property `emailOptIns` - # @return [Google::Apis::PartnersV2::OptIns] - attr_accessor :email_opt_ins - - # The user's family name. - # Corresponds to the JSON property `familyName` - # @return [String] - attr_accessor :family_name - - # The user's given name. - # Corresponds to the JSON property `givenName` - # @return [String] - attr_accessor :given_name - - # A list of ids representing which industries the user selected. - # Corresponds to the JSON property `industries` - # @return [Array] - attr_accessor :industries - - # A list of ids represnting which job categories the user selected. - # Corresponds to the JSON property `jobFunctions` - # @return [Array] - attr_accessor :job_functions - - # The list of languages this user understands. - # Corresponds to the JSON property `languages` - # @return [Array] - attr_accessor :languages - - # A list of ids representing which markets the user was interested in. - # Corresponds to the JSON property `markets` - # @return [Array] - attr_accessor :markets - - # Whether or not to migrate the user's exam data to Academy for Ads. - # Corresponds to the JSON property `migrateToAfa` - # @return [Boolean] - attr_accessor :migrate_to_afa - alias_method :migrate_to_afa?, :migrate_to_afa - - # The user's phone number. - # Corresponds to the JSON property `phoneNumber` - # @return [String] - attr_accessor :phone_number - - # The user's primary country, an ISO 2-character code. - # Corresponds to the JSON property `primaryCountryCode` - # @return [String] - attr_accessor :primary_country_code - - # Whether the user's public profile is visible to anyone with the URL. - # Corresponds to the JSON property `profilePublic` - # @return [Boolean] - attr_accessor :profile_public - alias_method :profile_public?, :profile_public - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @address = args[:address] if args.key?(:address) - @adwords_manager_account = args[:adwords_manager_account] if args.key?(:adwords_manager_account) - @channels = args[:channels] if args.key?(:channels) - @email_address = args[:email_address] if args.key?(:email_address) - @email_opt_ins = args[:email_opt_ins] if args.key?(:email_opt_ins) - @family_name = args[:family_name] if args.key?(:family_name) - @given_name = args[:given_name] if args.key?(:given_name) - @industries = args[:industries] if args.key?(:industries) - @job_functions = args[:job_functions] if args.key?(:job_functions) - @languages = args[:languages] if args.key?(:languages) - @markets = args[:markets] if args.key?(:markets) - @migrate_to_afa = args[:migrate_to_afa] if args.key?(:migrate_to_afa) - @phone_number = args[:phone_number] if args.key?(:phone_number) - @primary_country_code = args[:primary_country_code] if args.key?(:primary_country_code) - @profile_public = args[:profile_public] if args.key?(:profile_public) - end - end - end - end -end diff --git a/generated/google/apis/partners_v2/representations.rb b/generated/google/apis/partners_v2/representations.rb deleted file mode 100644 index 57ad5f9de..000000000 --- a/generated/google/apis/partners_v2/representations.rb +++ /dev/null @@ -1,905 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'date' -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module PartnersV2 - - class AdWordsManagerAccountInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Analytics - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AnalyticsDataPoint - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AnalyticsSummary - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AvailableOffer - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Certification - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CertificationExamStatus - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CertificationStatus - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Company - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CompanyRelation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CountryOfferInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CreateLeadRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CreateLeadResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Date - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DebugInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Empty - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class EventData - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ExamStatus - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GetCompanyResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GetPartnersStatusResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class HistoricalOffer - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LatLng - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Lead - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListAnalyticsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListCompaniesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListLeadsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListOffersHistoryResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListOffersResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListUserStatesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LocalizedCompanyInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Location - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LogMessageRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LogMessageResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LogUserEventRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LogUserEventResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Money - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class OfferCustomer - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class OptIns - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PublicProfile - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Rank - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class RecaptchaChallenge - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class RequestMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ResponseMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SpecializationStatus - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TrafficSource - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class User - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class UserOverrides - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class UserProfile - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AdWordsManagerAccountInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :customer_name, as: 'customerName' - property :id, :numeric_string => true, as: 'id' - end - end - - class Analytics - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :contacts, as: 'contacts', class: Google::Apis::PartnersV2::AnalyticsDataPoint, decorator: Google::Apis::PartnersV2::AnalyticsDataPoint::Representation - - property :event_date, as: 'eventDate', class: Google::Apis::PartnersV2::Date, decorator: Google::Apis::PartnersV2::Date::Representation - - property :profile_views, as: 'profileViews', class: Google::Apis::PartnersV2::AnalyticsDataPoint, decorator: Google::Apis::PartnersV2::AnalyticsDataPoint::Representation - - property :search_views, as: 'searchViews', class: Google::Apis::PartnersV2::AnalyticsDataPoint, decorator: Google::Apis::PartnersV2::AnalyticsDataPoint::Representation - - end - end - - class AnalyticsDataPoint - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :event_count, as: 'eventCount' - collection :event_locations, as: 'eventLocations', class: Google::Apis::PartnersV2::LatLng, decorator: Google::Apis::PartnersV2::LatLng::Representation - - end - end - - class AnalyticsSummary - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :contacts_count, as: 'contactsCount' - property :profile_views_count, as: 'profileViewsCount' - property :search_views_count, as: 'searchViewsCount' - end - end - - class AvailableOffer - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :available, as: 'available' - collection :country_offer_infos, as: 'countryOfferInfos', class: Google::Apis::PartnersV2::CountryOfferInfo, decorator: Google::Apis::PartnersV2::CountryOfferInfo::Representation - - property :description, as: 'description' - property :id, :numeric_string => true, as: 'id' - property :max_account_age, as: 'maxAccountAge' - property :name, as: 'name' - property :offer_level, as: 'offerLevel' - property :offer_type, as: 'offerType' - collection :qualified_customer, as: 'qualifiedCustomer', class: Google::Apis::PartnersV2::OfferCustomer, decorator: Google::Apis::PartnersV2::OfferCustomer::Representation - - property :qualified_customers_complete, as: 'qualifiedCustomersComplete' - property :show_special_offer_copy, as: 'showSpecialOfferCopy' - property :terms, as: 'terms' - end - end - - class Certification - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :achieved, as: 'achieved' - property :certification_type, as: 'certificationType' - property :expiration, as: 'expiration' - property :last_achieved, as: 'lastAchieved' - property :warning, as: 'warning' - end - end - - class CertificationExamStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :number_users_pass, as: 'numberUsersPass' - property :type, as: 'type' - end - end - - class CertificationStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :exam_statuses, as: 'examStatuses', class: Google::Apis::PartnersV2::CertificationExamStatus, decorator: Google::Apis::PartnersV2::CertificationExamStatus::Representation - - property :is_certified, as: 'isCertified' - property :type, as: 'type' - property :user_count, as: 'userCount' - end - end - - class Company - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :additional_websites, as: 'additionalWebsites' - collection :auto_approval_email_domains, as: 'autoApprovalEmailDomains' - property :badge_authority_in_awn, as: 'badgeAuthorityInAwn' - property :badge_tier, as: 'badgeTier' - collection :certification_statuses, as: 'certificationStatuses', class: Google::Apis::PartnersV2::CertificationStatus, decorator: Google::Apis::PartnersV2::CertificationStatus::Representation - - collection :company_types, as: 'companyTypes' - property :converted_min_monthly_budget, as: 'convertedMinMonthlyBudget', class: Google::Apis::PartnersV2::Money, decorator: Google::Apis::PartnersV2::Money::Representation - - property :id, as: 'id' - collection :industries, as: 'industries' - collection :localized_infos, as: 'localizedInfos', class: Google::Apis::PartnersV2::LocalizedCompanyInfo, decorator: Google::Apis::PartnersV2::LocalizedCompanyInfo::Representation - - collection :locations, as: 'locations', class: Google::Apis::PartnersV2::Location, decorator: Google::Apis::PartnersV2::Location::Representation - - property :name, as: 'name' - property :original_min_monthly_budget, as: 'originalMinMonthlyBudget', class: Google::Apis::PartnersV2::Money, decorator: Google::Apis::PartnersV2::Money::Representation - - property :primary_adwords_manager_account_id, :numeric_string => true, as: 'primaryAdwordsManagerAccountId' - property :primary_language_code, as: 'primaryLanguageCode' - property :primary_location, as: 'primaryLocation', class: Google::Apis::PartnersV2::Location, decorator: Google::Apis::PartnersV2::Location::Representation - - property :profile_status, as: 'profileStatus' - property :public_profile, as: 'publicProfile', class: Google::Apis::PartnersV2::PublicProfile, decorator: Google::Apis::PartnersV2::PublicProfile::Representation - - collection :ranks, as: 'ranks', class: Google::Apis::PartnersV2::Rank, decorator: Google::Apis::PartnersV2::Rank::Representation - - collection :services, as: 'services' - collection :specialization_status, as: 'specializationStatus', class: Google::Apis::PartnersV2::SpecializationStatus, decorator: Google::Apis::PartnersV2::SpecializationStatus::Representation - - property :website_url, as: 'websiteUrl' - end - end - - class CompanyRelation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :address, as: 'address' - property :badge_tier, as: 'badgeTier' - property :company_admin, as: 'companyAdmin' - property :company_id, as: 'companyId' - property :creation_time, as: 'creationTime' - property :internal_company_id, as: 'internalCompanyId' - property :is_pending, as: 'isPending' - property :logo_url, as: 'logoUrl' - property :manager_account, :numeric_string => true, as: 'managerAccount' - property :name, as: 'name' - property :phone_number, as: 'phoneNumber' - property :primary_address, as: 'primaryAddress', class: Google::Apis::PartnersV2::Location, decorator: Google::Apis::PartnersV2::Location::Representation - - property :primary_country_code, as: 'primaryCountryCode' - property :primary_language_code, as: 'primaryLanguageCode' - property :resolved_timestamp, as: 'resolvedTimestamp' - collection :segment, as: 'segment' - collection :specialization_status, as: 'specializationStatus', class: Google::Apis::PartnersV2::SpecializationStatus, decorator: Google::Apis::PartnersV2::SpecializationStatus::Representation - - property :state, as: 'state' - property :website, as: 'website' - end - end - - class CountryOfferInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :get_y_amount, as: 'getYAmount' - property :offer_country_code, as: 'offerCountryCode' - property :offer_type, as: 'offerType' - property :spend_x_amount, as: 'spendXAmount' - end - end - - class CreateLeadRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :lead, as: 'lead', class: Google::Apis::PartnersV2::Lead, decorator: Google::Apis::PartnersV2::Lead::Representation - - property :recaptcha_challenge, as: 'recaptchaChallenge', class: Google::Apis::PartnersV2::RecaptchaChallenge, decorator: Google::Apis::PartnersV2::RecaptchaChallenge::Representation - - property :request_metadata, as: 'requestMetadata', class: Google::Apis::PartnersV2::RequestMetadata, decorator: Google::Apis::PartnersV2::RequestMetadata::Representation - - end - end - - class CreateLeadResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :lead, as: 'lead', class: Google::Apis::PartnersV2::Lead, decorator: Google::Apis::PartnersV2::Lead::Representation - - property :recaptcha_status, as: 'recaptchaStatus' - property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation - - end - end - - class Date - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :day, as: 'day' - property :month, as: 'month' - property :year, as: 'year' - end - end - - class DebugInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :server_info, as: 'serverInfo' - property :server_trace_info, as: 'serverTraceInfo' - property :service_url, as: 'serviceUrl' - end - end - - class Empty - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class EventData - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :key, as: 'key' - collection :values, as: 'values' - end - end - - class ExamStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :exam_type, as: 'examType' - property :expiration, as: 'expiration' - property :last_passed, as: 'lastPassed' - property :passed, as: 'passed' - property :taken, as: 'taken' - property :warning, as: 'warning' - end - end - - class GetCompanyResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :company, as: 'company', class: Google::Apis::PartnersV2::Company, decorator: Google::Apis::PartnersV2::Company::Representation - - property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation - - end - end - - class GetPartnersStatusResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation - - end - end - - class HistoricalOffer - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :adwords_url, as: 'adwordsUrl' - property :client_email, as: 'clientEmail' - property :client_id, :numeric_string => true, as: 'clientId' - property :client_name, as: 'clientName' - property :creation_time, as: 'creationTime' - property :expiration_time, as: 'expirationTime' - property :last_modified_time, as: 'lastModifiedTime' - property :offer_code, as: 'offerCode' - property :offer_country_code, as: 'offerCountryCode' - property :offer_type, as: 'offerType' - property :sender_name, as: 'senderName' - property :status, as: 'status' - end - end - - class LatLng - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :latitude, as: 'latitude' - property :longitude, as: 'longitude' - end - end - - class Lead - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :adwords_customer_id, :numeric_string => true, as: 'adwordsCustomerId' - property :comments, as: 'comments' - property :create_time, as: 'createTime' - property :email, as: 'email' - property :family_name, as: 'familyName' - property :given_name, as: 'givenName' - collection :gps_motivations, as: 'gpsMotivations' - property :id, as: 'id' - property :language_code, as: 'languageCode' - property :marketing_opt_in, as: 'marketingOptIn' - property :min_monthly_budget, as: 'minMonthlyBudget', class: Google::Apis::PartnersV2::Money, decorator: Google::Apis::PartnersV2::Money::Representation - - property :phone_number, as: 'phoneNumber' - property :state, as: 'state' - property :type, as: 'type' - property :website_url, as: 'websiteUrl' - end - end - - class ListAnalyticsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :analytics, as: 'analytics', class: Google::Apis::PartnersV2::Analytics, decorator: Google::Apis::PartnersV2::Analytics::Representation - - property :analytics_summary, as: 'analyticsSummary', class: Google::Apis::PartnersV2::AnalyticsSummary, decorator: Google::Apis::PartnersV2::AnalyticsSummary::Representation - - property :next_page_token, as: 'nextPageToken' - property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation - - end - end - - class ListCompaniesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :companies, as: 'companies', class: Google::Apis::PartnersV2::Company, decorator: Google::Apis::PartnersV2::Company::Representation - - property :next_page_token, as: 'nextPageToken' - property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation - - end - end - - class ListLeadsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :leads, as: 'leads', class: Google::Apis::PartnersV2::Lead, decorator: Google::Apis::PartnersV2::Lead::Representation - - property :next_page_token, as: 'nextPageToken' - property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation - - property :total_size, as: 'totalSize' - end - end - - class ListOffersHistoryResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :can_show_entire_company, as: 'canShowEntireCompany' - property :next_page_token, as: 'nextPageToken' - collection :offers, as: 'offers', class: Google::Apis::PartnersV2::HistoricalOffer, decorator: Google::Apis::PartnersV2::HistoricalOffer::Representation - - property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation - - property :showing_entire_company, as: 'showingEntireCompany' - property :total_results, as: 'totalResults' - end - end - - class ListOffersResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :available_offers, as: 'availableOffers', class: Google::Apis::PartnersV2::AvailableOffer, decorator: Google::Apis::PartnersV2::AvailableOffer::Representation - - property :no_offer_reason, as: 'noOfferReason' - property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation - - end - end - - class ListUserStatesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation - - collection :user_states, as: 'userStates' - end - end - - class LocalizedCompanyInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :country_codes, as: 'countryCodes' - property :display_name, as: 'displayName' - property :language_code, as: 'languageCode' - property :overview, as: 'overview' - end - end - - class Location - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :address, as: 'address' - collection :address_line, as: 'addressLine' - property :administrative_area, as: 'administrativeArea' - property :dependent_locality, as: 'dependentLocality' - property :language_code, as: 'languageCode' - property :lat_lng, as: 'latLng', class: Google::Apis::PartnersV2::LatLng, decorator: Google::Apis::PartnersV2::LatLng::Representation - - property :locality, as: 'locality' - property :postal_code, as: 'postalCode' - property :region_code, as: 'regionCode' - property :sorting_code, as: 'sortingCode' - end - end - - class LogMessageRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :client_info, as: 'clientInfo' - property :details, as: 'details' - property :level, as: 'level' - property :request_metadata, as: 'requestMetadata', class: Google::Apis::PartnersV2::RequestMetadata, decorator: Google::Apis::PartnersV2::RequestMetadata::Representation - - end - end - - class LogMessageResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation - - end - end - - class LogUserEventRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :event_action, as: 'eventAction' - property :event_category, as: 'eventCategory' - collection :event_datas, as: 'eventDatas', class: Google::Apis::PartnersV2::EventData, decorator: Google::Apis::PartnersV2::EventData::Representation - - property :event_scope, as: 'eventScope' - property :lead, as: 'lead', class: Google::Apis::PartnersV2::Lead, decorator: Google::Apis::PartnersV2::Lead::Representation - - property :request_metadata, as: 'requestMetadata', class: Google::Apis::PartnersV2::RequestMetadata, decorator: Google::Apis::PartnersV2::RequestMetadata::Representation - - property :url, as: 'url' - end - end - - class LogUserEventResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :response_metadata, as: 'responseMetadata', class: Google::Apis::PartnersV2::ResponseMetadata, decorator: Google::Apis::PartnersV2::ResponseMetadata::Representation - - end - end - - class Money - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :currency_code, as: 'currencyCode' - property :nanos, as: 'nanos' - property :units, :numeric_string => true, as: 'units' - end - end - - class OfferCustomer - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :adwords_url, as: 'adwordsUrl' - property :country_code, as: 'countryCode' - property :creation_time, as: 'creationTime' - property :eligibility_days_left, as: 'eligibilityDaysLeft' - property :external_cid, :numeric_string => true, as: 'externalCid' - property :get_y_amount, as: 'getYAmount' - property :name, as: 'name' - property :offer_type, as: 'offerType' - property :spend_x_amount, as: 'spendXAmount' - end - end - - class OptIns - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :market_comm, as: 'marketComm' - property :performance_suggestions, as: 'performanceSuggestions' - property :phone_contact, as: 'phoneContact' - property :physical_mail, as: 'physicalMail' - property :special_offers, as: 'specialOffers' - end - end - - class PublicProfile - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :display_image_url, as: 'displayImageUrl' - property :display_name, as: 'displayName' - property :id, as: 'id' - property :profile_image, as: 'profileImage' - property :url, as: 'url' - end - end - - class Rank - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - property :value, as: 'value' - end - end - - class RecaptchaChallenge - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :response, as: 'response' - end - end - - class RequestMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :experiment_ids, as: 'experimentIds' - property :locale, as: 'locale' - property :partners_session_id, as: 'partnersSessionId' - property :traffic_source, as: 'trafficSource', class: Google::Apis::PartnersV2::TrafficSource, decorator: Google::Apis::PartnersV2::TrafficSource::Representation - - property :user_overrides, as: 'userOverrides', class: Google::Apis::PartnersV2::UserOverrides, decorator: Google::Apis::PartnersV2::UserOverrides::Representation - - end - end - - class ResponseMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :debug_info, as: 'debugInfo', class: Google::Apis::PartnersV2::DebugInfo, decorator: Google::Apis::PartnersV2::DebugInfo::Representation - - end - end - - class SpecializationStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :badge_specialization, as: 'badgeSpecialization' - property :badge_specialization_state, as: 'badgeSpecializationState' - end - end - - class TrafficSource - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :traffic_source_id, as: 'trafficSourceId' - property :traffic_sub_id, as: 'trafficSubId' - end - end - - class User - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :afa_info_shared, as: 'afaInfoShared' - collection :available_adwords_manager_accounts, as: 'availableAdwordsManagerAccounts', class: Google::Apis::PartnersV2::AdWordsManagerAccountInfo, decorator: Google::Apis::PartnersV2::AdWordsManagerAccountInfo::Representation - - collection :certification_status, as: 'certificationStatus', class: Google::Apis::PartnersV2::Certification, decorator: Google::Apis::PartnersV2::Certification::Representation - - property :company, as: 'company', class: Google::Apis::PartnersV2::CompanyRelation, decorator: Google::Apis::PartnersV2::CompanyRelation::Representation - - property :company_verification_email, as: 'companyVerificationEmail' - collection :exam_status, as: 'examStatus', class: Google::Apis::PartnersV2::ExamStatus, decorator: Google::Apis::PartnersV2::ExamStatus::Representation - - property :id, as: 'id' - property :internal_id, as: 'internalId' - property :last_access_time, as: 'lastAccessTime' - collection :primary_emails, as: 'primaryEmails' - property :profile, as: 'profile', class: Google::Apis::PartnersV2::UserProfile, decorator: Google::Apis::PartnersV2::UserProfile::Representation - - property :public_profile, as: 'publicProfile', class: Google::Apis::PartnersV2::PublicProfile, decorator: Google::Apis::PartnersV2::PublicProfile::Representation - - end - end - - class UserOverrides - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :ip_address, as: 'ipAddress' - property :user_id, as: 'userId' - end - end - - class UserProfile - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :address, as: 'address', class: Google::Apis::PartnersV2::Location, decorator: Google::Apis::PartnersV2::Location::Representation - - property :adwords_manager_account, :numeric_string => true, as: 'adwordsManagerAccount' - collection :channels, as: 'channels' - property :email_address, as: 'emailAddress' - property :email_opt_ins, as: 'emailOptIns', class: Google::Apis::PartnersV2::OptIns, decorator: Google::Apis::PartnersV2::OptIns::Representation - - property :family_name, as: 'familyName' - property :given_name, as: 'givenName' - collection :industries, as: 'industries' - collection :job_functions, as: 'jobFunctions' - collection :languages, as: 'languages' - collection :markets, as: 'markets' - property :migrate_to_afa, as: 'migrateToAfa' - property :phone_number, as: 'phoneNumber' - property :primary_country_code, as: 'primaryCountryCode' - property :profile_public, as: 'profilePublic' - end - end - end - end -end diff --git a/generated/google/apis/partners_v2/service.rb b/generated/google/apis/partners_v2/service.rb deleted file mode 100644 index e09fc4c3f..000000000 --- a/generated/google/apis/partners_v2/service.rb +++ /dev/null @@ -1,1077 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module PartnersV2 - # Google Partners API - # - # Searches certified companies and creates contact leads with them, and also - # audits the usage of clients. - # - # @example - # require 'google/apis/partners_v2' - # - # Partners = Google::Apis::PartnersV2 # Alias the module - # service = Partners::PartnersService.new - # - # @see https://developers.google.com/partners/ - class PartnersService < Google::Apis::Core::BaseService - # @return [String] - # API key. Your API key identifies your project and provides you with API access, - # quota, and reports. Required unless you provide an OAuth 2.0 token. - attr_accessor :key - - # @return [String] - # 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 - - def initialize - super('https://partners.googleapis.com/', '') - @batch_path = 'batch' - end - - # Lists analytics data for a user's associated company. - # Should only be called within the context of an authorized logged in user. - # @param [Fixnum] page_size - # Requested page size. Server may return fewer analytics than requested. - # If unspecified or set to 0, default value is 30. - # Specifies the number of days in the date range when querying analytics. - # The `page_token` represents the end date of the date range - # and the start date is calculated using the `page_size` as the number - # of days BEFORE the end date. - # Must be a non-negative integer. - # @param [String] page_token - # A token identifying a page of results that the server returns. - # Typically, this is the value of `ListAnalyticsResponse.next_page_token` - # returned from the previous call to - # ListAnalytics. - # Will be a date string in `YYYY-MM-DD` format representing the end date - # of the date range of results to return. - # If unspecified or set to "", default value is the current date. - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @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::PartnersV2::ListAnalyticsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::ListAnalyticsResponse] - # - # @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_analytics(page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/analytics', options) - command.response_representation = Google::Apis::PartnersV2::ListAnalyticsResponse::Representation - command.response_class = Google::Apis::PartnersV2::ListAnalyticsResponse - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Logs a generic message from the client, such as - # `Failed to render component`, `Profile page is running slow`, - # `More than 500 users have accessed this result.`, etc. - # @param [Google::Apis::PartnersV2::LogMessageRequest] log_message_request_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::PartnersV2::LogMessageResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::LogMessageResponse] - # - # @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 log_client_message_message(log_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v2/clientMessages:log', options) - command.request_representation = Google::Apis::PartnersV2::LogMessageRequest::Representation - command.request_object = log_message_request_object - command.response_representation = Google::Apis::PartnersV2::LogMessageResponse::Representation - command.response_class = Google::Apis::PartnersV2::LogMessageResponse - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets a company. - # @param [String] company_id - # The ID of the company to retrieve. - # @param [String] address - # The address to use for sorting the company's addresses by proximity. - # If not given, the geo-located address of the request is used. - # Used when order_by is set. - # @param [String] currency_code - # If the company's budget is in a different currency code than this one, then - # the converted budget is converted to this currency code. - # @param [String] order_by - # How to order addresses within the returned company. Currently, only - # `address` and `address desc` is supported which will sorted by closest to - # farthest in distance from given address and farthest to closest distance - # from given address respectively. - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @param [String] view - # The view of `Company` resource to be returned. This must not be - # `COMPANY_VIEW_UNSPECIFIED`. - # @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::PartnersV2::GetCompanyResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::GetCompanyResponse] - # - # @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_company(company_id, address: nil, currency_code: nil, order_by: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/companies/{companyId}', options) - command.response_representation = Google::Apis::PartnersV2::GetCompanyResponse::Representation - command.response_class = Google::Apis::PartnersV2::GetCompanyResponse - command.params['companyId'] = company_id unless company_id.nil? - command.query['address'] = address unless address.nil? - command.query['currencyCode'] = currency_code unless currency_code.nil? - command.query['orderBy'] = order_by unless order_by.nil? - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? - command.query['view'] = view unless view.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 companies. - # @param [String] address - # The address to use when searching for companies. - # If not given, the geo-located address of the request is used. - # @param [String] company_name - # Company name to search for. - # @param [Array, String] gps_motivations - # List of reasons for using Google Partner Search to get companies. - # @param [Array, String] industries - # List of industries the company can help with. - # @param [Array, String] language_codes - # List of language codes that company can support. Only primary language - # subtags are accepted as defined by - # BCP 47 - # (IETF BCP 47, "Tags for Identifying Languages"). - # @param [String] max_monthly_budget_currency_code - # The 3-letter currency code defined in ISO 4217. - # @param [Fixnum] max_monthly_budget_nanos - # Number of nano (10^-9) units of the amount. - # The value must be between -999,999,999 and +999,999,999 inclusive. - # If `units` is positive, `nanos` must be positive or zero. - # If `units` is zero, `nanos` can be positive, zero, or negative. - # If `units` is negative, `nanos` must be negative or zero. - # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. - # @param [Fixnum] max_monthly_budget_units - # The whole units of the amount. - # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. - # @param [String] min_monthly_budget_currency_code - # The 3-letter currency code defined in ISO 4217. - # @param [Fixnum] min_monthly_budget_nanos - # Number of nano (10^-9) units of the amount. - # The value must be between -999,999,999 and +999,999,999 inclusive. - # If `units` is positive, `nanos` must be positive or zero. - # If `units` is zero, `nanos` can be positive, zero, or negative. - # If `units` is negative, `nanos` must be negative or zero. - # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. - # @param [Fixnum] min_monthly_budget_units - # The whole units of the amount. - # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. - # @param [String] order_by - # How to order addresses within the returned companies. Currently, only - # `address` and `address desc` is supported which will sorted by closest to - # farthest in distance from given address and farthest to closest distance - # from given address respectively. - # @param [Fixnum] page_size - # Requested page size. Server may return fewer companies than requested. - # If unspecified, server picks an appropriate default. - # @param [String] page_token - # A token identifying a page of results that the server returns. - # Typically, this is the value of `ListCompaniesResponse.next_page_token` - # returned from the previous call to - # ListCompanies. - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @param [Array, String] services - # List of services that the returned agencies should provide. If this is - # not empty, any returned agency must have at least one of these services, - # or one of the specializations in the "specializations" field. - # @param [Array, String] specializations - # List of specializations that the returned agencies should provide. If this - # is not empty, any returned agency must have at least one of these - # specializations, or one of the services in the "services" field. - # @param [String] view - # The view of the `Company` resource to be returned. This must not be - # `COMPANY_VIEW_UNSPECIFIED`. - # @param [String] website_url - # Website URL that will help to find a better matched company. - # . - # @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::PartnersV2::ListCompaniesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::ListCompaniesResponse] - # - # @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_companies(address: nil, company_name: nil, gps_motivations: nil, industries: nil, language_codes: nil, max_monthly_budget_currency_code: nil, max_monthly_budget_nanos: nil, max_monthly_budget_units: nil, min_monthly_budget_currency_code: nil, min_monthly_budget_nanos: nil, min_monthly_budget_units: nil, order_by: nil, page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, services: nil, specializations: nil, view: nil, website_url: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/companies', options) - command.response_representation = Google::Apis::PartnersV2::ListCompaniesResponse::Representation - command.response_class = Google::Apis::PartnersV2::ListCompaniesResponse - command.query['address'] = address unless address.nil? - command.query['companyName'] = company_name unless company_name.nil? - command.query['gpsMotivations'] = gps_motivations unless gps_motivations.nil? - command.query['industries'] = industries unless industries.nil? - command.query['languageCodes'] = language_codes unless language_codes.nil? - command.query['maxMonthlyBudget.currencyCode'] = max_monthly_budget_currency_code unless max_monthly_budget_currency_code.nil? - command.query['maxMonthlyBudget.nanos'] = max_monthly_budget_nanos unless max_monthly_budget_nanos.nil? - command.query['maxMonthlyBudget.units'] = max_monthly_budget_units unless max_monthly_budget_units.nil? - command.query['minMonthlyBudget.currencyCode'] = min_monthly_budget_currency_code unless min_monthly_budget_currency_code.nil? - command.query['minMonthlyBudget.nanos'] = min_monthly_budget_nanos unless min_monthly_budget_nanos.nil? - command.query['minMonthlyBudget.units'] = min_monthly_budget_units unless min_monthly_budget_units.nil? - command.query['orderBy'] = order_by unless order_by.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? - command.query['services'] = services unless services.nil? - command.query['specializations'] = specializations unless specializations.nil? - command.query['view'] = view unless view.nil? - command.query['websiteUrl'] = website_url unless website_url.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Creates an advertiser lead for the given company ID. - # @param [String] company_id - # The ID of the company to contact. - # @param [Google::Apis::PartnersV2::CreateLeadRequest] create_lead_request_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::PartnersV2::CreateLeadResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::CreateLeadResponse] - # - # @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_lead(company_id, create_lead_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v2/companies/{companyId}/leads', options) - command.request_representation = Google::Apis::PartnersV2::CreateLeadRequest::Representation - command.request_object = create_lead_request_object - command.response_representation = Google::Apis::PartnersV2::CreateLeadResponse::Representation - command.response_class = Google::Apis::PartnersV2::CreateLeadResponse - command.params['companyId'] = company_id unless company_id.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 advertiser leads for a user's associated company. - # Should only be called within the context of an authorized logged in user. - # @param [String] order_by - # How to order Leads. Currently, only `create_time` - # and `create_time desc` are supported - # @param [Fixnum] page_size - # Requested page size. Server may return fewer leads than requested. - # If unspecified, server picks an appropriate default. - # @param [String] page_token - # A token identifying a page of results that the server returns. - # Typically, this is the value of `ListLeadsResponse.next_page_token` - # returned from the previous call to - # ListLeads. - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @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::PartnersV2::ListLeadsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::ListLeadsResponse] - # - # @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_leads(order_by: nil, page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/leads', options) - command.response_representation = Google::Apis::PartnersV2::ListLeadsResponse::Representation - command.response_class = Google::Apis::PartnersV2::ListLeadsResponse - command.query['orderBy'] = order_by unless order_by.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.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 the Offers available for the current user - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @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::PartnersV2::ListOffersResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::ListOffersResponse] - # - # @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_offers(request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/offers', options) - command.response_representation = Google::Apis::PartnersV2::ListOffersResponse::Representation - command.response_class = Google::Apis::PartnersV2::ListOffersResponse - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.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 the Historical Offers for the current user (or user's entire company) - # @param [Boolean] entire_company - # if true, show history for the entire company. Requires user to be admin. - # @param [String] order_by - # Comma-separated list of fields to order by, e.g.: "foo,bar,baz". - # Use "foo desc" to sort descending. - # List of valid field names is: name, offer_code, expiration_time, status, - # last_modified_time, sender_name, creation_time, country_code, - # offer_type. - # @param [Fixnum] page_size - # Maximum number of rows to return per page. - # @param [String] page_token - # Token to retrieve a specific page. - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @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::PartnersV2::ListOffersHistoryResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::ListOffersHistoryResponse] - # - # @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_offer_histories(entire_company: nil, order_by: nil, page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/offers/history', options) - command.response_representation = Google::Apis::PartnersV2::ListOffersHistoryResponse::Representation - command.response_class = Google::Apis::PartnersV2::ListOffersHistoryResponse - command.query['entireCompany'] = entire_company unless entire_company.nil? - command.query['orderBy'] = order_by unless order_by.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Logs a user event. - # @param [Google::Apis::PartnersV2::LogUserEventRequest] log_user_event_request_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::PartnersV2::LogUserEventResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::LogUserEventResponse] - # - # @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 log_user_event(log_user_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v2/userEvents:log', options) - command.request_representation = Google::Apis::PartnersV2::LogUserEventRequest::Representation - command.request_object = log_user_event_request_object - command.response_representation = Google::Apis::PartnersV2::LogUserEventResponse::Representation - command.response_class = Google::Apis::PartnersV2::LogUserEventResponse - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists states for current user. - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @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::PartnersV2::ListUserStatesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::ListUserStatesResponse] - # - # @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_user_states(request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/userStates', options) - command.response_representation = Google::Apis::PartnersV2::ListUserStatesResponse::Representation - command.response_class = Google::Apis::PartnersV2::ListUserStatesResponse - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Creates a user's company relation. Affiliates the user to a company. - # @param [String] user_id - # The ID of the user. Can be set to me to mean - # the currently authenticated user. - # @param [Google::Apis::PartnersV2::CompanyRelation] company_relation_object - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @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::PartnersV2::CompanyRelation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::CompanyRelation] - # - # @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_user_company_relation(user_id, company_relation_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v2/users/{userId}/companyRelation', options) - command.request_representation = Google::Apis::PartnersV2::CompanyRelation::Representation - command.request_object = company_relation_object - command.response_representation = Google::Apis::PartnersV2::CompanyRelation::Representation - command.response_class = Google::Apis::PartnersV2::CompanyRelation - command.params['userId'] = user_id unless user_id.nil? - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.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 user's company relation. Unaffiliaites the user from a company. - # @param [String] user_id - # The ID of the user. Can be set to me to mean - # the currently authenticated user. - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @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::PartnersV2::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::Empty] - # - # @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_user_company_relation(user_id, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v2/users/{userId}/companyRelation', options) - command.response_representation = Google::Apis::PartnersV2::Empty::Representation - command.response_class = Google::Apis::PartnersV2::Empty - command.params['userId'] = user_id unless user_id.nil? - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.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 a user. - # @param [String] user_id - # Identifier of the user. Can be set to me to mean the currently - # authenticated user. - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @param [String] user_view - # Specifies what parts of the user information to return. - # @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::PartnersV2::User] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::User] - # - # @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_user(user_id, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, user_view: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/users/{userId}', options) - command.response_representation = Google::Apis::PartnersV2::User::Representation - command.response_class = Google::Apis::PartnersV2::User - command.params['userId'] = user_id unless user_id.nil? - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? - command.query['userView'] = user_view unless user_view.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 user's profile. A user can only update their own profile and - # should only be called within the context of a logged in user. - # @param [Google::Apis::PartnersV2::UserProfile] user_profile_object - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @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::PartnersV2::UserProfile] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::UserProfile] - # - # @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_user_profile(user_profile_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v2/users/profile', options) - command.request_representation = Google::Apis::PartnersV2::UserProfile::Representation - command.request_object = user_profile_object - command.response_representation = Google::Apis::PartnersV2::UserProfile::Representation - command.response_class = Google::Apis::PartnersV2::UserProfile - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.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 Partners Status of the logged in user's agency. - # Should only be called if the logged in user is the admin of the agency. - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @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::PartnersV2::GetPartnersStatusResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::GetPartnersStatusResponse] - # - # @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_partnersstatus(request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2/partnersstatus', options) - command.response_representation = Google::Apis::PartnersV2::GetPartnersStatusResponse::Representation - command.response_class = Google::Apis::PartnersV2::GetPartnersStatusResponse - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Update company. - # Should only be called within the context of an authorized logged in user. - # @param [Google::Apis::PartnersV2::Company] company_object - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @param [String] update_mask - # Standard field mask for the set of fields to be updated. - # Required with at least 1 value in FieldMask's paths. - # @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::PartnersV2::Company] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::Company] - # - # @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_companies(company_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v2/companies', options) - command.request_representation = Google::Apis::PartnersV2::Company::Representation - command.request_object = company_object - command.response_representation = Google::Apis::PartnersV2::Company::Representation - command.response_class = Google::Apis::PartnersV2::Company - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.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 - - # Updates the specified lead. - # @param [Google::Apis::PartnersV2::Lead] lead_object - # @param [Array, String] request_metadata_experiment_ids - # Experiment IDs the current request belongs to. - # @param [String] request_metadata_locale - # Locale to use for the current request. - # @param [String] request_metadata_partners_session_id - # Google Partners session ID. - # @param [String] request_metadata_traffic_source_traffic_source_id - # Identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_traffic_source_traffic_sub_id - # Second level identifier to indicate where the traffic comes from. - # An identifier has multiple letters created by a team which redirected the - # traffic to us. - # @param [String] request_metadata_user_overrides_ip_address - # IP address to use instead of the user's geo-located IP address. - # @param [String] request_metadata_user_overrides_user_id - # Logged-in user ID to impersonate instead of the user's ID. - # @param [String] update_mask - # Standard field mask for the set of fields to be updated. - # Required with at least 1 value in FieldMask's paths. - # Only `state` and `adwords_customer_id` are currently supported. - # @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::PartnersV2::Lead] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::PartnersV2::Lead] - # - # @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_leads(lead_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v2/leads', options) - command.request_representation = Google::Apis::PartnersV2::Lead::Representation - command.request_object = lead_object - command.response_representation = Google::Apis::PartnersV2::Lead::Representation - command.response_class = Google::Apis::PartnersV2::Lead - command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil? - command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil? - command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil? - command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil? - command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil? - command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil? - command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.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 - - def apply_command_defaults(command) - command.query['key'] = key unless key.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - end - end - end - end -end diff --git a/generated/google/apis/pubsub_v1.rb b/generated/google/apis/pubsub_v1.rb index b0968f8bd..051c29a00 100644 --- a/generated/google/apis/pubsub_v1.rb +++ b/generated/google/apis/pubsub_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1 VERSION = 'V1' - REVISION = '20190116' + REVISION = '20190227' # 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/pubsub_v1/classes.rb b/generated/google/apis/pubsub_v1/classes.rb index fd858801a..bd0a38ebd 100644 --- a/generated/google/apis/pubsub_v1/classes.rb +++ b/generated/google/apis/pubsub_v1/classes.rb @@ -66,7 +66,7 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. - # * `domain:`domain``: A Google Apps domain name that represents all the + # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] diff --git a/generated/google/apis/pubsub_v1beta2.rb b/generated/google/apis/pubsub_v1beta2.rb index fbed99c5a..92e72217d 100644 --- a/generated/google/apis/pubsub_v1beta2.rb +++ b/generated/google/apis/pubsub_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1beta2 VERSION = 'V1beta2' - REVISION = '20180723' + REVISION = '20190227' # 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/pubsub_v1beta2/classes.rb b/generated/google/apis/pubsub_v1beta2/classes.rb index d209cc466..4482abb61 100644 --- a/generated/google/apis/pubsub_v1beta2/classes.rb +++ b/generated/google/apis/pubsub_v1beta2/classes.rb @@ -66,7 +66,7 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. - # * `domain:`domain``: A Google Apps domain name that represents all the + # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] diff --git a/generated/google/apis/spanner_v1.rb b/generated/google/apis/spanner_v1.rb index a610b9621..bb113873f 100644 --- a/generated/google/apis/spanner_v1.rb +++ b/generated/google/apis/spanner_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/spanner/ module SpannerV1 VERSION = 'V1' - REVISION = '20190212' + REVISION = '20190214' # 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/spanner_v1/classes.rb b/generated/google/apis/spanner_v1/classes.rb index 62890ae28..f86eb4f1a 100644 --- a/generated/google/apis/spanner_v1/classes.rb +++ b/generated/google/apis/spanner_v1/classes.rb @@ -830,6 +830,130 @@ module Google end end + # The request for ExecuteBatchDml + class ExecuteBatchDmlRequest + include Google::Apis::Core::Hashable + + # A per-transaction sequence number used to identify this request. This is + # used in the same space as the seqno in + # ExecuteSqlRequest. See more details + # in ExecuteSqlRequest. + # Corresponds to the JSON property `seqno` + # @return [Fixnum] + attr_accessor :seqno + + # The list of statements to execute in this batch. Statements are executed + # serially, such that the effects of statement i are visible to statement + # i+1. Each statement must be a DML statement. Execution will stop at the + # first failed statement; the remaining statements will not run. + # REQUIRES: statements_size() > 0. + # Corresponds to the JSON property `statements` + # @return [Array] + attr_accessor :statements + + # This message is used to select the transaction in which a + # Read or + # ExecuteSql call runs. + # See TransactionOptions for more information about transactions. + # Corresponds to the JSON property `transaction` + # @return [Google::Apis::SpannerV1::TransactionSelector] + attr_accessor :transaction + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @seqno = args[:seqno] if args.key?(:seqno) + @statements = args[:statements] if args.key?(:statements) + @transaction = args[:transaction] if args.key?(:transaction) + end + end + + # The response for ExecuteBatchDml. Contains a list + # of ResultSet, one for each DML statement that has successfully executed. + # If a statement fails, the error is returned as part of the response payload. + # Clients can determine whether all DML statements have run successfully, or if + # a statement failed, using one of the following approaches: + # 1. Check if 'status' field is OkStatus. + # 2. Check if result_sets_size() equals the number of statements in + # ExecuteBatchDmlRequest. + # Example 1: A request with 5 DML statements, all executed successfully. + # Result: A response with 5 ResultSets, one for each statement in the same + # order, and an OK status. + # Example 2: A request with 5 DML statements. The 3rd statement has a syntax + # error. + # Result: A response with 2 ResultSets, for the first 2 statements that + # run successfully, and a syntax error (INVALID_ARGUMENT) status. From + # result_set_size() client can determine that the 3rd statement has failed. + class ExecuteBatchDmlResponse + include Google::Apis::Core::Hashable + + # ResultSets, one for each statement in the request that ran successfully, in + # the same order as the statements in the request. Each ResultSet will + # not contain any rows. The ResultSetStats in each ResultSet will + # contain the number of rows modified by the statement. + # Only the first ResultSet in the response contains a valid + # ResultSetMetadata. + # Corresponds to the JSON property `resultSets` + # @return [Array] + attr_accessor :result_sets + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `status` + # @return [Google::Apis::SpannerV1::Status] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @result_sets = args[:result_sets] if args.key?(:result_sets) + @status = args[:status] if args.key?(:status) + end + end + # The request for ExecuteSql and # ExecuteStreamingSql. class ExecuteSqlRequest @@ -2522,6 +2646,53 @@ module Google end end + # A single DML statement. + class Statement + include Google::Apis::Core::Hashable + + # It is not always possible for Cloud Spanner to infer the right SQL type + # from a JSON value. For example, values of type `BYTES` and values + # of type `STRING` both appear in params as JSON strings. + # In these cases, `param_types` can be used to specify the exact + # SQL type for some or all of the SQL statement parameters. See the + # definition of Type for more information + # about SQL types. + # Corresponds to the JSON property `paramTypes` + # @return [Hash] + attr_accessor :param_types + + # The DML string can contain parameter placeholders. A parameter + # placeholder consists of `'@'` followed by the parameter + # name. Parameter names consist of any combination of letters, + # numbers, and underscores. + # Parameters can appear anywhere that a literal value is expected. The + # same parameter name can be used more than once, for example: + # `"WHERE id > @msg_id AND id < @msg_id + 100"` + # It is an error to execute an SQL statement with unbound parameters. + # Parameter values are specified using `params`, which is a JSON + # object whose keys are parameter names, and whose values are the + # corresponding parameter values. + # Corresponds to the JSON property `params` + # @return [Hash] + attr_accessor :params + + # Required. The DML string. + # Corresponds to the JSON property `sql` + # @return [String] + attr_accessor :sql + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @param_types = args[:param_types] if args.key?(:param_types) + @params = args[:params] if args.key?(:params) + @sql = args[:sql] if args.key?(:sql) + end + end + # The `Status` type defines a logical error model that is suitable for different # programming environments, including REST APIs and RPC APIs. It is used by # [gRPC](https://github.com/grpc). The error model is designed to be: diff --git a/generated/google/apis/spanner_v1/representations.rb b/generated/google/apis/spanner_v1/representations.rb index a60c62d89..8d67e9706 100644 --- a/generated/google/apis/spanner_v1/representations.rb +++ b/generated/google/apis/spanner_v1/representations.rb @@ -100,6 +100,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ExecuteBatchDmlRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExecuteBatchDmlResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ExecuteSqlRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -316,6 +328,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Statement + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Status class Representation < Google::Apis::Core::JsonRepresentation; end @@ -505,6 +523,27 @@ module Google end end + class ExecuteBatchDmlRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :seqno, :numeric_string => true, as: 'seqno' + collection :statements, as: 'statements', class: Google::Apis::SpannerV1::Statement, decorator: Google::Apis::SpannerV1::Statement::Representation + + property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::TransactionSelector, decorator: Google::Apis::SpannerV1::TransactionSelector::Representation + + end + end + + class ExecuteBatchDmlResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :result_sets, as: 'resultSets', class: Google::Apis::SpannerV1::ResultSet, decorator: Google::Apis::SpannerV1::ResultSet::Representation + + property :status, as: 'status', class: Google::Apis::SpannerV1::Status, decorator: Google::Apis::SpannerV1::Status::Representation + + end + end + class ExecuteSqlRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -879,6 +918,16 @@ module Google end end + class Statement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :param_types, as: 'paramTypes', class: Google::Apis::SpannerV1::Type, decorator: Google::Apis::SpannerV1::Type::Representation + + hash :params, as: 'params' + property :sql, as: 'sql' + end + end + class Status # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/spanner_v1/service.rb b/generated/google/apis/spanner_v1/service.rb index 8bdba3026..0bc8f7f69 100644 --- a/generated/google/apis/spanner_v1/service.rb +++ b/generated/google/apis/spanner_v1/service.rb @@ -1129,6 +1129,54 @@ module Google execute_or_queue_command(command, &block) end + # Executes a batch of SQL DML statements. This method allows many statements + # to be run with lower latency than submitting them sequentially with + # ExecuteSql. + # Statements are executed in order, sequentially. + # ExecuteBatchDmlResponse will contain a + # ResultSet for each DML statement that has successfully executed. If a + # statement fails, its error status will be returned as part of the + # ExecuteBatchDmlResponse. Execution will + # stop at the first failed statement; the remaining statements will not run. + # ExecuteBatchDml is expected to return an OK status with a response even if + # there was an error while processing one of the DML statements. Clients must + # inspect response.status to determine if there were any errors while + # processing the request. + # See more details in + # ExecuteBatchDmlRequest and + # ExecuteBatchDmlResponse. + # @param [String] session + # Required. The session in which the DML statements should be performed. + # @param [Google::Apis::SpannerV1::ExecuteBatchDmlRequest] execute_batch_dml_request_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::SpannerV1::ExecuteBatchDmlResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SpannerV1::ExecuteBatchDmlResponse] + # + # @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 execute_session_batch_dml(session, execute_batch_dml_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+session}:executeBatchDml', options) + command.request_representation = Google::Apis::SpannerV1::ExecuteBatchDmlRequest::Representation + command.request_object = execute_batch_dml_request_object + command.response_representation = Google::Apis::SpannerV1::ExecuteBatchDmlResponse::Representation + command.response_class = Google::Apis::SpannerV1::ExecuteBatchDmlResponse + command.params['session'] = session unless session.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Executes an SQL statement, returning all results in a single reply. This # method cannot be used to return a result set larger than 10 MiB; # if the query yields more data than that, the query fails with