From 0b48025248193e1d9248f3ac4096f16efefc3ef6 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Fri, 25 Jan 2019 00:37:03 +0000 Subject: [PATCH] Autogenerated update (2019-01-25) Update: - admin_directory_v1 - content_v2 - content_v2_1 - ml_v1 - monitoring_v3 - youtube_partner_v1 --- api_names_out.yaml | 6 + generated/google/apis/admin_directory_v1.rb | 2 +- .../google/apis/admin_directory_v1/classes.rb | 14 +- .../admin_directory_v1/representations.rb | 2 + generated/google/apis/content_v2.rb | 2 +- generated/google/apis/content_v2/classes.rb | 15 +- generated/google/apis/content_v2/service.rb | 2 +- generated/google/apis/content_v2_1.rb | 2 +- generated/google/apis/content_v2_1/classes.rb | 225 +----------------- .../apis/content_v2_1/representations.rb | 119 +-------- generated/google/apis/content_v2_1/service.rb | 162 +------------ generated/google/apis/ml_v1.rb | 2 +- generated/google/apis/ml_v1/service.rb | 66 ++--- generated/google/apis/monitoring_v3.rb | 2 +- .../google/apis/monitoring_v3/classes.rb | 2 +- generated/google/apis/youtube_partner_v1.rb | 2 +- 16 files changed, 86 insertions(+), 539 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 5f33fef10..d2fdcc863 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -3183,6 +3183,8 @@ "/admin:directory_v1/User/phones": phones "/admin:directory_v1/User/posixAccounts": posix_accounts "/admin:directory_v1/User/primaryEmail": primary_email +"/admin:directory_v1/User/recoveryEmail": recovery_email +"/admin:directory_v1/User/recoveryPhone": recovery_phone "/admin:directory_v1/User/relations": relations "/admin:directory_v1/User/sshPublicKeys": ssh_public_keys "/admin:directory_v1/User/suspended": suspended @@ -40531,6 +40533,7 @@ "/content:v2.1/OrderPromotion/funder": funder "/content:v2.1/OrderPromotion/merchantPromotionId": merchant_promotion_id "/content:v2.1/OrderPromotion/pretaxValue": pretax_value +"/content:v2.1/OrderPromotion/priceValue": price_value "/content:v2.1/OrderPromotion/shortTitle": short_title "/content:v2.1/OrderPromotion/subtype": subtype "/content:v2.1/OrderPromotion/taxValue": tax_value @@ -41222,6 +41225,7 @@ "/content:v2.1/UnitInvoice/additionalCharges/additional_charge": additional_charge "/content:v2.1/UnitInvoice/promotions": promotions "/content:v2.1/UnitInvoice/promotions/promotion": promotion +"/content:v2.1/UnitInvoice/unitPrice": unit_price "/content:v2.1/UnitInvoice/unitPricePretax": unit_price_pretax "/content:v2.1/UnitInvoice/unitPriceTaxes": unit_price_taxes "/content:v2.1/UnitInvoice/unitPriceTaxes/unit_price_tax": unit_price_tax @@ -77205,6 +77209,8 @@ "/ml:v1/GoogleType__Expr/title": title "/ml:v1/fields": fields "/ml:v1/key": key +"/ml:v1/ml.operations.delete": delete_operation +"/ml:v1/ml.operations.delete/name": name "/ml:v1/ml.projects.getConfig": get_project_config "/ml:v1/ml.projects.getConfig/name": name "/ml:v1/ml.projects.jobs.cancel": cancel_project_job diff --git a/generated/google/apis/admin_directory_v1.rb b/generated/google/apis/admin_directory_v1.rb index 8dcc8bba2..5b1c978b4 100644 --- a/generated/google/apis/admin_directory_v1.rb +++ b/generated/google/apis/admin_directory_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/admin-sdk/directory/ module AdminDirectoryV1 VERSION = 'DirectoryV1' - REVISION = '20180917' + REVISION = '20190118' # View and manage customer related information AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer' diff --git a/generated/google/apis/admin_directory_v1/classes.rb b/generated/google/apis/admin_directory_v1/classes.rb index 08913adc4..97f0ecd3e 100644 --- a/generated/google/apis/admin_directory_v1/classes.rb +++ b/generated/google/apis/admin_directory_v1/classes.rb @@ -3236,6 +3236,16 @@ module Google # @return [String] attr_accessor :primary_email + # Recovery email of the user. + # Corresponds to the JSON property `recoveryEmail` + # @return [String] + attr_accessor :recovery_email + + # Recovery phone of the user. + # Corresponds to the JSON property `recoveryPhone` + # @return [String] + attr_accessor :recovery_phone + # # Corresponds to the JSON property `relations` # @return [Object] @@ -3315,6 +3325,8 @@ module Google @phones = args[:phones] if args.key?(:phones) @posix_accounts = args[:posix_accounts] if args.key?(:posix_accounts) @primary_email = args[:primary_email] if args.key?(:primary_email) + @recovery_email = args[:recovery_email] if args.key?(:recovery_email) + @recovery_phone = args[:recovery_phone] if args.key?(:recovery_phone) @relations = args[:relations] if args.key?(:relations) @ssh_public_keys = args[:ssh_public_keys] if args.key?(:ssh_public_keys) @suspended = args[:suspended] if args.key?(:suspended) @@ -3981,7 +3993,7 @@ module Google class UserPosixAccount include Google::Apis::Core::Hashable - # A POSIX account field identifier. (Read-only) + # A POSIX account field identifier. # Corresponds to the JSON property `accountId` # @return [String] attr_accessor :account_id diff --git a/generated/google/apis/admin_directory_v1/representations.rb b/generated/google/apis/admin_directory_v1/representations.rb index f6f8b5dea..cf3fa6e1a 100644 --- a/generated/google/apis/admin_directory_v1/representations.rb +++ b/generated/google/apis/admin_directory_v1/representations.rb @@ -1350,6 +1350,8 @@ module Google property :phones, as: 'phones' property :posix_accounts, as: 'posixAccounts' property :primary_email, as: 'primaryEmail' + property :recovery_email, as: 'recoveryEmail' + property :recovery_phone, as: 'recoveryPhone' property :relations, as: 'relations' property :ssh_public_keys, as: 'sshPublicKeys' property :suspended, as: 'suspended' diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index 6d35f88cc..b5b853ea1 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 = '20190107' + REVISION = '20190122' # 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 2a4b1c327..cbef699ef 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -4075,8 +4075,9 @@ module Google # @return [String] attr_accessor :placed_date - # Deprecated. The details of the merchant provided promotions applied to the - # order. More details about the program are here. + # Deprecated. Ignored if provided for createTestOrder. The details of the + # merchant provided promotions applied to the order. More details about the + # program are here. # Corresponds to the JSON property `promotions` # @return [Array] attr_accessor :promotions @@ -5425,12 +5426,12 @@ module Google class OrderpaymentsNotifyAuthApprovedRequest include Google::Apis::Core::Hashable - # + # Authorized amount for pre-tax charge on user's credit card. # Corresponds to the JSON property `authAmountPretax` # @return [Google::Apis::ContentV2::Price] attr_accessor :auth_amount_pretax - # + # Authorized amount for tax charge on user's credit card. # Corresponds to the JSON property `authAmountTax` # @return [Google::Apis::ContentV2::Price] attr_accessor :auth_amount_tax @@ -10660,7 +10661,8 @@ module Google # @return [Google::Apis::ContentV2::OrderLineItemShippingDetails] attr_accessor :shipping_details - # Unit tax for the line item. + # Deprecated. Ignored if provided. Tax is automatically calculated for MFL + # orders. For non-MFL orders, tax settings from Merchant Center are applied. # Corresponds to the JSON property `unitTax` # @return [Google::Apis::ContentV2::Price] attr_accessor :unit_tax @@ -10728,7 +10730,8 @@ module Google # @return [String] attr_accessor :offer_id - # The price for the product. + # The price for the product. Tax is automatically calculated for MFL orders. For + # non-MFL orders, tax settings from Merchant Center are applied. # Corresponds to the JSON property `price` # @return [Google::Apis::ContentV2::Price] attr_accessor :price diff --git a/generated/google/apis/content_v2/service.rb b/generated/google/apis/content_v2/service.rb index ab2509976..401f73274 100644 --- a/generated/google/apis/content_v2/service.rb +++ b/generated/google/apis/content_v2/service.rb @@ -449,7 +449,7 @@ module Google execute_or_queue_command(command, &block) end - # + # Retrieves multiple Merchant Center account statuses in a single request. # @param [Google::Apis::ContentV2::BatchAccountStatusesRequest] batch_account_statuses_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/content_v2_1.rb b/generated/google/apis/content_v2_1.rb index 96e7a1522..4420357c8 100644 --- a/generated/google/apis/content_v2_1.rb +++ b/generated/google/apis/content_v2_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2_1 VERSION = 'V2_1' - REVISION = '20190107' + REVISION = '20190122' # 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_1/classes.rb b/generated/google/apis/content_v2_1/classes.rb index 69de5f690..8a1f03b16 100644 --- a/generated/google/apis/content_v2_1/classes.rb +++ b/generated/google/apis/content_v2_1/classes.rb @@ -4169,10 +4169,11 @@ module Google # @return [String] attr_accessor :merchant_promotion_id - # Estimated discount applied to pre-tax amount. - # Corresponds to the JSON property `pretaxValue` + # Estimated discount applied to price. Amount is pre-tax or post-tax depending + # on location of order. + # Corresponds to the JSON property `priceValue` # @return [Google::Apis::ContentV2_1::Price] - attr_accessor :pretax_value + attr_accessor :price_value # A short title of the promotion to be shown on the checkout page. # Corresponds to the JSON property `shortTitle` @@ -4209,7 +4210,7 @@ module Google @applied_items = args[:applied_items] if args.key?(:applied_items) @funder = args[:funder] if args.key?(:funder) @merchant_promotion_id = args[:merchant_promotion_id] if args.key?(:merchant_promotion_id) - @pretax_value = args[:pretax_value] if args.key?(:pretax_value) + @price_value = args[:price_value] if args.key?(:price_value) @short_title = args[:short_title] if args.key?(:short_title) @subtype = args[:subtype] if args.key?(:subtype) @tax_value = args[:tax_value] if args.key?(:tax_value) @@ -4746,204 +4747,6 @@ module Google end end - # - class OrderpaymentsNotifyAuthApprovedRequest - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `authAmountPretax` - # @return [Google::Apis::ContentV2_1::Price] - attr_accessor :auth_amount_pretax - - # - # Corresponds to the JSON property `authAmountTax` - # @return [Google::Apis::ContentV2_1::Price] - attr_accessor :auth_amount_tax - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @auth_amount_pretax = args[:auth_amount_pretax] if args.key?(:auth_amount_pretax) - @auth_amount_tax = args[:auth_amount_tax] if args.key?(:auth_amount_tax) - end - end - - # - class OrderpaymentsNotifyAuthApprovedResponse - include Google::Apis::Core::Hashable - - # The status of the execution. - # Corresponds to the JSON property `executionStatus` - # @return [String] - attr_accessor :execution_status - - # Identifies what kind of resource this is. Value: the fixed string "content# - # orderpaymentsNotifyAuthApprovedResponse". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @execution_status = args[:execution_status] if args.key?(:execution_status) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class OrderpaymentsNotifyAuthDeclinedRequest - include Google::Apis::Core::Hashable - - # Reason why payment authorization was declined. - # Corresponds to the JSON property `declineReason` - # @return [String] - attr_accessor :decline_reason - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @decline_reason = args[:decline_reason] if args.key?(:decline_reason) - end - end - - # - class OrderpaymentsNotifyAuthDeclinedResponse - include Google::Apis::Core::Hashable - - # The status of the execution. - # Corresponds to the JSON property `executionStatus` - # @return [String] - attr_accessor :execution_status - - # Identifies what kind of resource this is. Value: the fixed string "content# - # orderpaymentsNotifyAuthDeclinedResponse". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @execution_status = args[:execution_status] if args.key?(:execution_status) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class OrderpaymentsNotifyChargeRequest - include Google::Apis::Core::Hashable - - # Whether charge was successful. - # Corresponds to the JSON property `chargeState` - # @return [String] - attr_accessor :charge_state - - # Invoice IDs from the orderinvoices service that correspond to the charge. - # Corresponds to the JSON property `invoiceIds` - # @return [Array] - attr_accessor :invoice_ids - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @charge_state = args[:charge_state] if args.key?(:charge_state) - @invoice_ids = args[:invoice_ids] if args.key?(:invoice_ids) - end - end - - # - class OrderpaymentsNotifyChargeResponse - include Google::Apis::Core::Hashable - - # The status of the execution. - # Corresponds to the JSON property `executionStatus` - # @return [String] - attr_accessor :execution_status - - # Identifies what kind of resource this is. Value: the fixed string "content# - # orderpaymentsNotifyChargeResponse". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @execution_status = args[:execution_status] if args.key?(:execution_status) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class OrderpaymentsNotifyRefundRequest - include Google::Apis::Core::Hashable - - # Invoice IDs from the orderinvoices service that correspond to the refund. - # Corresponds to the JSON property `invoiceIds` - # @return [Array] - attr_accessor :invoice_ids - - # Whether refund was successful. - # Corresponds to the JSON property `refundState` - # @return [String] - attr_accessor :refund_state - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @invoice_ids = args[:invoice_ids] if args.key?(:invoice_ids) - @refund_state = args[:refund_state] if args.key?(:refund_state) - end - end - - # - class OrderpaymentsNotifyRefundResponse - include Google::Apis::Core::Hashable - - # The status of the execution. - # Corresponds to the JSON property `executionStatus` - # @return [String] - attr_accessor :execution_status - - # Identifies what kind of resource this is. Value: the fixed string "content# - # orderpaymentsNotifyRefundResponse". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @execution_status = args[:execution_status] if args.key?(:execution_status) - @kind = args[:kind] if args.key?(:kind) - end - end - # class OrderreportsListDisbursementsResponse include Google::Apis::Core::Hashable @@ -8874,11 +8677,6 @@ module Google # @return [Google::Apis::ContentV2_1::OrderLineItemShippingDetails] attr_accessor :shipping_details - # Unit tax for the line item. - # Corresponds to the JSON property `unitTax` - # @return [Google::Apis::ContentV2_1::Price] - attr_accessor :unit_tax - def initialize(**args) update!(**args) end @@ -8889,7 +8687,6 @@ module Google @quantity_ordered = args[:quantity_ordered] if args.key?(:quantity_ordered) @return_info = args[:return_info] if args.key?(:return_info) @shipping_details = args[:shipping_details] if args.key?(:shipping_details) - @unit_tax = args[:unit_tax] if args.key?(:unit_tax) end end @@ -8942,7 +8739,8 @@ module Google # @return [String] attr_accessor :offer_id - # The price for the product. + # The price for the product. Tax is automatically calculated for MFL orders. For + # non-MFL orders, tax settings from Merchant Center are applied. # Corresponds to the JSON property `price` # @return [Google::Apis::ContentV2_1::Price] attr_accessor :price @@ -8998,10 +8796,11 @@ module Google # @return [Array] attr_accessor :promotions - # [required] Price of the unit, before applying taxes. - # Corresponds to the JSON property `unitPricePretax` + # [required] Pre-tax or post-tax price of the unit depending on the locality of + # the order. + # Corresponds to the JSON property `unitPrice` # @return [Google::Apis::ContentV2_1::Price] - attr_accessor :unit_price_pretax + attr_accessor :unit_price # Tax amounts to apply to the unit price. # Corresponds to the JSON property `unitPriceTaxes` @@ -9016,7 +8815,7 @@ module Google def update!(**args) @additional_charges = args[:additional_charges] if args.key?(:additional_charges) @promotions = args[:promotions] if args.key?(:promotions) - @unit_price_pretax = args[:unit_price_pretax] if args.key?(:unit_price_pretax) + @unit_price = args[:unit_price] if args.key?(:unit_price) @unit_price_taxes = args[:unit_price_taxes] if args.key?(:unit_price_taxes) end end diff --git a/generated/google/apis/content_v2_1/representations.rb b/generated/google/apis/content_v2_1/representations.rb index 1ebf69dc1..ab3eef8f4 100644 --- a/generated/google/apis/content_v2_1/representations.rb +++ b/generated/google/apis/content_v2_1/representations.rb @@ -742,54 +742,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class OrderpaymentsNotifyAuthApprovedRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class OrderpaymentsNotifyAuthApprovedResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class OrderpaymentsNotifyAuthDeclinedRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class OrderpaymentsNotifyAuthDeclinedResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class OrderpaymentsNotifyChargeRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class OrderpaymentsNotifyChargeResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class OrderpaymentsNotifyRefundRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class OrderpaymentsNotifyRefundResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class OrderreportsListDisbursementsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2586,7 +2538,7 @@ module Google property :funder, as: 'funder' property :merchant_promotion_id, as: 'merchantPromotionId' - property :pretax_value, as: 'pretaxValue', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + property :price_value, as: 'priceValue', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation property :short_title, as: 'shortTitle' property :subtype, as: 'subtype' @@ -2740,71 +2692,6 @@ module Google end end - class OrderpaymentsNotifyAuthApprovedRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :auth_amount_pretax, as: 'authAmountPretax', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation - - property :auth_amount_tax, as: 'authAmountTax', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation - - end - end - - class OrderpaymentsNotifyAuthApprovedResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :execution_status, as: 'executionStatus' - property :kind, as: 'kind' - end - end - - class OrderpaymentsNotifyAuthDeclinedRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :decline_reason, as: 'declineReason' - end - end - - class OrderpaymentsNotifyAuthDeclinedResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :execution_status, as: 'executionStatus' - property :kind, as: 'kind' - end - end - - class OrderpaymentsNotifyChargeRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :charge_state, as: 'chargeState' - collection :invoice_ids, as: 'invoiceIds' - end - end - - class OrderpaymentsNotifyChargeResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :execution_status, as: 'executionStatus' - property :kind, as: 'kind' - end - end - - class OrderpaymentsNotifyRefundRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :invoice_ids, as: 'invoiceIds' - property :refund_state, as: 'refundState' - end - end - - class OrderpaymentsNotifyRefundResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :execution_status, as: 'executionStatus' - property :kind, as: 'kind' - end - end - class OrderreportsListDisbursementsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3904,8 +3791,6 @@ module Google property :shipping_details, as: 'shippingDetails', class: Google::Apis::ContentV2_1::OrderLineItemShippingDetails, decorator: Google::Apis::ContentV2_1::OrderLineItemShippingDetails::Representation - property :unit_tax, as: 'unitTax', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation - end end @@ -3937,7 +3822,7 @@ module Google collection :promotions, as: 'promotions', class: Google::Apis::ContentV2_1::Promotion, decorator: Google::Apis::ContentV2_1::Promotion::Representation - property :unit_price_pretax, as: 'unitPricePretax', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + property :unit_price, as: 'unitPrice', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation collection :unit_price_taxes, as: 'unitPriceTaxes', class: Google::Apis::ContentV2_1::UnitInvoiceTaxLine, decorator: Google::Apis::ContentV2_1::UnitInvoiceTaxLine::Representation diff --git a/generated/google/apis/content_v2_1/service.rb b/generated/google/apis/content_v2_1/service.rb index 30da66d45..5fed6c490 100644 --- a/generated/google/apis/content_v2_1/service.rb +++ b/generated/google/apis/content_v2_1/service.rb @@ -393,7 +393,7 @@ module Google execute_or_queue_command(command, &block) end - # + # Retrieves multiple Merchant Center account statuses in a single request. # @param [Google::Apis::ContentV2_1::AccountstatusesCustomBatchRequest] accountstatuses_custom_batch_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1533,166 +1533,6 @@ module Google execute_or_queue_command(command, &block) end - # Notify about successfully authorizing user's payment method for a given amount. - # @param [Fixnum] merchant_id - # The ID of the account that manages the order. This cannot be a multi-client - # account. - # @param [String] order_id - # The ID of the order for for which payment authorization is happening. - # @param [Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedRequest] orderpayments_notify_auth_approved_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedResponse] - # - # @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 notifyauthapproved_orderpayment(merchant_id, order_id, orderpayments_notify_auth_approved_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthApproved', options) - command.request_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedRequest::Representation - command.request_object = orderpayments_notify_auth_approved_request_object - command.response_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedResponse::Representation - command.response_class = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedResponse - command.params['merchantId'] = merchant_id unless merchant_id.nil? - command.params['orderId'] = order_id unless order_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Notify about failure to authorize user's payment method. - # @param [Fixnum] merchant_id - # The ID of the account that manages the order. This cannot be a multi-client - # account. - # @param [String] order_id - # The ID of the order for which payment authorization was declined. - # @param [Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedRequest] orderpayments_notify_auth_declined_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedResponse] - # - # @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 notifyauthdeclined_orderpayment(merchant_id, order_id, orderpayments_notify_auth_declined_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthDeclined', options) - command.request_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedRequest::Representation - command.request_object = orderpayments_notify_auth_declined_request_object - command.response_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedResponse::Representation - command.response_class = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedResponse - command.params['merchantId'] = merchant_id unless merchant_id.nil? - command.params['orderId'] = order_id unless order_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Notify about charge on user's selected payments method. - # @param [Fixnum] merchant_id - # The ID of the account that manages the order. This cannot be a multi-client - # account. - # @param [String] order_id - # The ID of the order for which charge is happening. - # @param [Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeRequest] orderpayments_notify_charge_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeResponse] - # - # @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 notifycharge_orderpayment(merchant_id, order_id, orderpayments_notify_charge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyCharge', options) - command.request_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeRequest::Representation - command.request_object = orderpayments_notify_charge_request_object - command.response_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeResponse::Representation - command.response_class = Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeResponse - command.params['merchantId'] = merchant_id unless merchant_id.nil? - command.params['orderId'] = order_id unless order_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Notify about refund on user's selected payments method. - # @param [Fixnum] merchant_id - # The ID of the account that manages the order. This cannot be a multi-client - # account. - # @param [String] order_id - # The ID of the order for which charge is happening. - # @param [Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundRequest] orderpayments_notify_refund_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundResponse] - # - # @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 notifyrefund_orderpayment(merchant_id, order_id, orderpayments_notify_refund_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyRefund', options) - command.request_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundRequest::Representation - command.request_object = orderpayments_notify_refund_request_object - command.response_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundResponse::Representation - command.response_class = Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundResponse - command.params['merchantId'] = merchant_id unless merchant_id.nil? - command.params['orderId'] = order_id unless order_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - # Retrieves a report for disbursements from your Merchant Center account. # @param [Fixnum] merchant_id # The ID of the account that manages the order. This cannot be a multi-client diff --git a/generated/google/apis/ml_v1.rb b/generated/google/apis/ml_v1.rb index f9df37ad6..0375722e9 100644 --- a/generated/google/apis/ml_v1.rb +++ b/generated/google/apis/ml_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/ml/ module MlV1 VERSION = 'V1' - REVISION = '20190115' + REVISION = '20190123' # 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/ml_v1/service.rb b/generated/google/apis/ml_v1/service.rb index a257b593c..b12756e4d 100644 --- a/generated/google/apis/ml_v1/service.rb +++ b/generated/google/apis/ml_v1/service.rb @@ -47,6 +47,39 @@ module Google @batch_path = 'batch' end + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # @param [String] name + # The name of the operation resource to be deleted. + # @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::MlV1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MlV1::GoogleProtobufEmpty] + # + # @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_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Get the service account information associated with your project. You need # this information in order to grant the service account permissions for # the Google Cloud Storage location where you put your model training code @@ -1096,39 +1129,6 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # @param [String] name - # The name of the operation resource to be deleted. - # @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::MlV1::GoogleProtobufEmpty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::MlV1::GoogleProtobufEmpty] - # - # @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_project_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1/{+name}', options) - command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Gets the latest state of a long-running operation. Clients can use this # method to poll the operation result at intervals as recommended by the API # service. diff --git a/generated/google/apis/monitoring_v3.rb b/generated/google/apis/monitoring_v3.rb index 8d5d324fc..c21aefaf8 100644 --- a/generated/google/apis/monitoring_v3.rb +++ b/generated/google/apis/monitoring_v3.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/monitoring/api/ module MonitoringV3 VERSION = 'V3' - REVISION = '20181205' + REVISION = '20190122' # 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/monitoring_v3/classes.rb b/generated/google/apis/monitoring_v3/classes.rb index 6f368e3c4..d5f745654 100644 --- a/generated/google/apis/monitoring_v3/classes.rb +++ b/generated/google/apis/monitoring_v3/classes.rb @@ -2869,7 +2869,7 @@ module Google # How often, in seconds, the uptime check is performed. Currently, the only # supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and - # 900s (15 minutes). Optional, defaults to 300s. + # 900s (15 minutes). Optional, defaults to 60s. # Corresponds to the JSON property `period` # @return [String] attr_accessor :period diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index 6b549bd13..48e65ea1e 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/youtube/partner/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20190106' + REVISION = '20190121' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'