Autogenerated update (2019-02-26)

Update:
- content_v2
- content_v2_1
- file_v1
- people_v1
- youtubereporting_v1
This commit is contained in:
Google APIs 2019-02-26 00:36:49 +00:00
parent d7f8dcb794
commit 597e9c7606
13 changed files with 558 additions and 72 deletions

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content # @see https://developers.google.com/shopping-content
module ContentV2 module ContentV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20190215' REVISION = '20190222'
# Manage your product listings and accounts for Google Shopping # Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content' AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -4026,7 +4026,7 @@ module Google
# @return [Google::Apis::ContentV2::OrderDeliveryDetails] # @return [Google::Apis::ContentV2::OrderDeliveryDetails]
attr_accessor :delivery_details attr_accessor :delivery_details
# The REST id of the order. Globally unique. # The REST ID of the order. Globally unique.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
@ -4047,7 +4047,7 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :merchant_id attr_accessor :merchant_id
# Merchant-provided id of the order. # Merchant-provided ID of the order.
# Corresponds to the JSON property `merchantOrderId` # Corresponds to the JSON property `merchantOrderId`
# @return [String] # @return [String]
attr_accessor :merchant_order_id attr_accessor :merchant_order_id
@ -4101,7 +4101,7 @@ module Google
# @return [Google::Apis::ContentV2::Price] # @return [Google::Apis::ContentV2::Price]
attr_accessor :shipping_cost_tax attr_accessor :shipping_cost_tax
# The requested shipping option. # Deprecated. Shipping details are provided with line items instead.
# Corresponds to the JSON property `shippingOption` # Corresponds to the JSON property `shippingOption`
# @return [String] # @return [String]
attr_accessor :shipping_option attr_accessor :shipping_option
@ -4479,7 +4479,7 @@ module Google
# @return [Array<Google::Apis::ContentV2::OrderCancellation>] # @return [Array<Google::Apis::ContentV2::OrderCancellation>]
attr_accessor :cancellations attr_accessor :cancellations
# The id of the line item. # The ID of the line item.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
@ -4606,7 +4606,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :gtin attr_accessor :gtin
# The REST id of the product. # The REST ID of the product.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
@ -4653,7 +4653,7 @@ module Google
# Variant attributes for the item. These are dimensions of the product, such as # 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 # color, gender, material, pattern, and size. You can find a comprehensive list
# of variant attributes here. # of variant attributes <a href="
# Corresponds to the JSON property `variantAttributes` # Corresponds to the JSON property `variantAttributes`
# @return [Array<Google::Apis::ContentV2::OrderLineItemProductVariantAttribute>] # @return [Array<Google::Apis::ContentV2::OrderLineItemProductVariantAttribute>]
attr_accessor :variant_attributes attr_accessor :variant_attributes
@ -5160,7 +5160,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :delivery_date attr_accessor :delivery_date
# The id of the shipment. # The ID of the shipment.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
@ -5175,7 +5175,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
# The tracking id for the shipment. # The tracking ID for the shipment.
# Corresponds to the JSON property `trackingId` # Corresponds to the JSON property `trackingId`
# @return [String] # @return [String]
attr_accessor :tracking_id attr_accessor :tracking_id
@ -5200,7 +5200,7 @@ module Google
class OrderShipmentLineItemShipment class OrderShipmentLineItemShipment
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The id of the line item that is shipped. Either lineItemId or productId is # The ID of the line item that is shipped. Either lineItemId or productId is
# required. # required.
# Corresponds to the JSON property `lineItemId` # Corresponds to the JSON property `lineItemId`
# @return [String] # @return [String]
@ -6143,7 +6143,7 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :merchant_id attr_accessor :merchant_id
# The merchant order id. Required for updateMerchantOrderId and # The merchant order ID. Required for updateMerchantOrderId and
# getByMerchantOrderId methods. # getByMerchantOrderId methods.
# Corresponds to the JSON property `merchantOrderId` # Corresponds to the JSON property `merchantOrderId`
# @return [String] # @return [String]
@ -6660,7 +6660,7 @@ module Google
# @return [Array<Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>] # @return [Array<Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>]
attr_accessor :shipment_infos attr_accessor :shipment_infos
# Deprecated. Please use shipmentInfo instead. The tracking id for the shipment. # Deprecated. Please use shipmentInfo instead. The tracking ID for the shipment.
# Corresponds to the JSON property `trackingId` # Corresponds to the JSON property `trackingId`
# @return [String] # @return [String]
attr_accessor :tracking_id attr_accessor :tracking_id
@ -6690,12 +6690,13 @@ module Google
# @return [String] # @return [String]
attr_accessor :carrier attr_accessor :carrier
# The ID of the shipment. # The ID of the shipment. This is assigned by the merchant and is unique to each
# shipment.
# Corresponds to the JSON property `shipmentId` # Corresponds to the JSON property `shipmentId`
# @return [String] # @return [String]
attr_accessor :shipment_id attr_accessor :shipment_id
# The tracking id for the shipment. # The tracking ID for the shipment.
# Corresponds to the JSON property `trackingId` # Corresponds to the JSON property `trackingId`
# @return [String] # @return [String]
attr_accessor :tracking_id attr_accessor :tracking_id
@ -6779,7 +6780,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
# The tracking id for the shipment. Not updated if missing. # The tracking ID for the shipment. Not updated if missing.
# Corresponds to the JSON property `trackingId` # Corresponds to the JSON property `trackingId`
# @return [String] # @return [String]
attr_accessor :tracking_id attr_accessor :tracking_id
@ -7464,7 +7465,7 @@ module Google
# @return [Array<Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>] # @return [Array<Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>]
attr_accessor :shipment_infos attr_accessor :shipment_infos
# Deprecated. Please use shipmentInfo instead. The tracking id for the shipment. # Deprecated. Please use shipmentInfo instead. The tracking ID for the shipment.
# Corresponds to the JSON property `trackingId` # Corresponds to the JSON property `trackingId`
# @return [String] # @return [String]
attr_accessor :tracking_id attr_accessor :tracking_id
@ -7666,7 +7667,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
# The tracking id for the shipment. Not updated if missing. # The tracking ID for the shipment. Not updated if missing.
# Corresponds to the JSON property `trackingId` # Corresponds to the JSON property `trackingId`
# @return [String] # @return [String]
attr_accessor :tracking_id attr_accessor :tracking_id

View File

@ -129,7 +129,8 @@ module Google
# accounts in a single request. # accounts in a single request.
# @param [Google::Apis::ContentV2::BatchAccountsRequest] batch_accounts_request_object # @param [Google::Apis::ContentV2::BatchAccountsRequest] batch_accounts_request_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -169,7 +170,8 @@ module Google
# @param [Fixnum] account_id # @param [Fixnum] account_id
# The ID of the account. # The ID of the account.
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [Boolean] force # @param [Boolean] force
# Flag to delete sub-accounts with products. The default value is false. # Flag to delete sub-accounts with products. The default value is false.
# @param [String] fields # @param [String] fields
@ -246,7 +248,8 @@ module Google
# The ID of the managing account. This must be a multi-client account. # The ID of the managing account. This must be a multi-client account.
# @param [Google::Apis::ContentV2::Account] account_object # @param [Google::Apis::ContentV2::Account] account_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -370,7 +373,8 @@ module Google
# The ID of the account. # The ID of the account.
# @param [Google::Apis::ContentV2::Account] account_object # @param [Google::Apis::ContentV2::Account] account_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -414,7 +418,8 @@ module Google
# The ID of the account. # The ID of the account.
# @param [Google::Apis::ContentV2::Account] account_object # @param [Google::Apis::ContentV2::Account] account_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -572,7 +577,8 @@ module Google
# Retrieves and updates tax settings of multiple accounts in a single request. # Retrieves and updates tax settings of multiple accounts in a single request.
# @param [Google::Apis::ContentV2::BatchAccountTaxRequest] batch_account_tax_request_object # @param [Google::Apis::ContentV2::BatchAccountTaxRequest] batch_account_tax_request_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -691,7 +697,8 @@ module Google
# The ID of the account for which to get/update account tax settings. # The ID of the account for which to get/update account tax settings.
# @param [Google::Apis::ContentV2::AccountTax] account_tax_object # @param [Google::Apis::ContentV2::AccountTax] account_tax_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -735,7 +742,8 @@ module Google
# The ID of the account for which to get/update account tax settings. # The ID of the account for which to get/update account tax settings.
# @param [Google::Apis::ContentV2::AccountTax] account_tax_object # @param [Google::Apis::ContentV2::AccountTax] account_tax_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -773,7 +781,8 @@ module Google
# #
# @param [Google::Apis::ContentV2::BatchDatafeedsRequest] batch_datafeeds_request_object # @param [Google::Apis::ContentV2::BatchDatafeedsRequest] batch_datafeeds_request_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -813,7 +822,8 @@ module Google
# @param [Fixnum] datafeed_id # @param [Fixnum] datafeed_id
# The ID of the datafeed. # The ID of the datafeed.
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -851,7 +861,8 @@ module Google
# @param [Fixnum] datafeed_id # @param [Fixnum] datafeed_id
# The ID of the datafeed to be fetched. # The ID of the datafeed to be fetched.
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -927,7 +938,8 @@ module Google
# multi-client account. # multi-client account.
# @param [Google::Apis::ContentV2::Datafeed] datafeed_object # @param [Google::Apis::ContentV2::Datafeed] datafeed_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1010,7 +1022,8 @@ module Google
# The ID of the datafeed. # The ID of the datafeed.
# @param [Google::Apis::ContentV2::Datafeed] datafeed_object # @param [Google::Apis::ContentV2::Datafeed] datafeed_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1053,7 +1066,8 @@ module Google
# The ID of the datafeed. # The ID of the datafeed.
# @param [Google::Apis::ContentV2::Datafeed] datafeed_object # @param [Google::Apis::ContentV2::Datafeed] datafeed_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1214,7 +1228,8 @@ module Google
# request. This operation does not update the expiration date of the products. # request. This operation does not update the expiration date of the products.
# @param [Google::Apis::ContentV2::BatchInventoryRequest] batch_inventory_request_object # @param [Google::Apis::ContentV2::BatchInventoryRequest] batch_inventory_request_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1258,7 +1273,8 @@ module Google
# The REST id of the product for which to update price and availability. # The REST id of the product for which to update price and availability.
# @param [Google::Apis::ContentV2::SetInventoryRequest] set_inventory_request_object # @param [Google::Apis::ContentV2::SetInventoryRequest] set_inventory_request_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1298,7 +1314,8 @@ module Google
# request. # request.
# @param [Google::Apis::ContentV2::LiasettingsCustomBatchRequest] liasettings_custom_batch_request_object # @param [Google::Apis::ContentV2::LiasettingsCustomBatchRequest] liasettings_custom_batch_request_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1487,7 +1504,8 @@ module Google
# The ID of the account for which to get or update LIA settings. # The ID of the account for which to get or update LIA settings.
# @param [Google::Apis::ContentV2::LiaSettings] lia_settings_object # @param [Google::Apis::ContentV2::LiaSettings] lia_settings_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1713,7 +1731,8 @@ module Google
# The ID of the account for which to get or update LIA settings. # The ID of the account for which to get or update LIA settings.
# @param [Google::Apis::ContentV2::LiaSettings] lia_settings_object # @param [Google::Apis::ContentV2::LiaSettings] lia_settings_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -2877,7 +2896,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Sets (overrides) merchant provided annotations on the line item. # Sets (or overrides if it already exists) merchant provided annotations in the
# form of key-value pairs. A common use case would be to supply us with
# additional structured information about a line item that cannot be provided
# via other methods. Submitted key-value pairs can be retrieved as part of the
# orders resource.
# @param [Fixnum] merchant_id # @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client # The ID of the account that manages the order. This cannot be a multi-client
# account. # account.
@ -3080,7 +3103,8 @@ module Google
# Batches multiple POS-related calls in a single request. # Batches multiple POS-related calls in a single request.
# @param [Google::Apis::ContentV2::PosCustomBatchRequest] pos_custom_batch_request_object # @param [Google::Apis::ContentV2::PosCustomBatchRequest] pos_custom_batch_request_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -3121,7 +3145,8 @@ module Google
# @param [String] store_code # @param [String] store_code
# A store code that is unique per merchant. # A store code that is unique per merchant.
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -3199,7 +3224,8 @@ module Google
# The ID of the target merchant. # The ID of the target merchant.
# @param [Google::Apis::ContentV2::PosStore] pos_store_object # @param [Google::Apis::ContentV2::PosStore] pos_store_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -3241,7 +3267,8 @@ module Google
# The ID of the target merchant. # The ID of the target merchant.
# @param [Google::Apis::ContentV2::PosInventoryRequest] pos_inventory_request_object # @param [Google::Apis::ContentV2::PosInventoryRequest] pos_inventory_request_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -3319,7 +3346,8 @@ module Google
# The ID of the target merchant. # The ID of the target merchant.
# @param [Google::Apis::ContentV2::PosSaleRequest] pos_sale_request_object # @param [Google::Apis::ContentV2::PosSaleRequest] pos_sale_request_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -3357,7 +3385,8 @@ module Google
# Retrieves, inserts, and deletes multiple products in a single request. # Retrieves, inserts, and deletes multiple products in a single request.
# @param [Google::Apis::ContentV2::BatchProductsRequest] batch_products_request_object # @param [Google::Apis::ContentV2::BatchProductsRequest] batch_products_request_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -3397,7 +3426,8 @@ module Google
# @param [String] product_id # @param [String] product_id
# The REST id of the product. # The REST id of the product.
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -3473,7 +3503,8 @@ module Google
# multi-client account. # multi-client account.
# @param [Google::Apis::ContentV2::Product] product_object # @param [Google::Apis::ContentV2::Product] product_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -3690,7 +3721,8 @@ module Google
# request. # request.
# @param [Google::Apis::ContentV2::ShippingsettingsCustomBatchRequest] shippingsettings_custom_batch_request_object # @param [Google::Apis::ContentV2::ShippingsettingsCustomBatchRequest] shippingsettings_custom_batch_request_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -3878,7 +3910,8 @@ module Google
# The ID of the account for which to get/update shipping settings. # The ID of the account for which to get/update shipping settings.
# @param [Google::Apis::ContentV2::ShippingSettings] shipping_settings_object # @param [Google::Apis::ContentV2::ShippingSettings] shipping_settings_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -3922,7 +3955,8 @@ module Google
# The ID of the account for which to get/update shipping settings. # The ID of the account for which to get/update shipping settings.
# @param [Google::Apis::ContentV2::ShippingSettings] shipping_settings_object # @param [Google::Apis::ContentV2::ShippingSettings] shipping_settings_object
# @param [Boolean] dry_run # @param [Boolean] dry_run
# Flag to run the request in dry-run mode. # Flag to simulate a request like in a live environment. If set to true, dry-run
# mode checks the validity of the request and returns errors (if any).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content # @see https://developers.google.com/shopping-content
module ContentV2_1 module ContentV2_1
VERSION = 'V2_1' VERSION = 'V2_1'
REVISION = '20190215' REVISION = '20190222'
# Manage your product listings and accounts for Google Shopping # Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content' AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -3406,7 +3406,7 @@ module Google
# @return [Google::Apis::ContentV2_1::OrderDeliveryDetails] # @return [Google::Apis::ContentV2_1::OrderDeliveryDetails]
attr_accessor :delivery_details attr_accessor :delivery_details
# The REST id of the order. Globally unique. # The REST ID of the order. Globally unique.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
@ -3427,7 +3427,7 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :merchant_id attr_accessor :merchant_id
# Merchant-provided id of the order. # Merchant-provided ID of the order.
# Corresponds to the JSON property `merchantOrderId` # Corresponds to the JSON property `merchantOrderId`
# @return [String] # @return [String]
attr_accessor :merchant_order_id attr_accessor :merchant_order_id
@ -3481,11 +3481,6 @@ module Google
# @return [Google::Apis::ContentV2_1::Price] # @return [Google::Apis::ContentV2_1::Price]
attr_accessor :shipping_cost_tax attr_accessor :shipping_cost_tax
# The requested shipping option.
# Corresponds to the JSON property `shippingOption`
# @return [String]
attr_accessor :shipping_option
# The status of the order. # The status of the order.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [String] # @return [String]
@ -3521,7 +3516,6 @@ module Google
@shipments = args[:shipments] if args.key?(:shipments) @shipments = args[:shipments] if args.key?(:shipments)
@shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost) @shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost)
@shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax) @shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax)
@shipping_option = args[:shipping_option] if args.key?(:shipping_option)
@status = args[:status] if args.key?(:status) @status = args[:status] if args.key?(:status)
@tax_collector = args[:tax_collector] if args.key?(:tax_collector) @tax_collector = args[:tax_collector] if args.key?(:tax_collector)
end end
@ -3745,7 +3739,7 @@ module Google
# @return [Array<Google::Apis::ContentV2_1::OrderCancellation>] # @return [Array<Google::Apis::ContentV2_1::OrderCancellation>]
attr_accessor :cancellations attr_accessor :cancellations
# The id of the line item. # The ID of the line item.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
@ -3872,7 +3866,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :gtin attr_accessor :gtin
# The REST id of the product. # The REST ID of the product.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
@ -3919,7 +3913,7 @@ module Google
# Variant attributes for the item. These are dimensions of the product, such as # 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 # color, gender, material, pattern, and size. You can find a comprehensive list
# of variant attributes here. # of variant attributes <a href="
# Corresponds to the JSON property `variantAttributes` # Corresponds to the JSON property `variantAttributes`
# @return [Array<Google::Apis::ContentV2_1::OrderLineItemProductVariantAttribute>] # @return [Array<Google::Apis::ContentV2_1::OrderLineItemProductVariantAttribute>]
attr_accessor :variant_attributes attr_accessor :variant_attributes
@ -4469,7 +4463,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :delivery_date attr_accessor :delivery_date
# The id of the shipment. # The ID of the shipment.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
@ -4484,7 +4478,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
# The tracking id for the shipment. # The tracking ID for the shipment.
# Corresponds to the JSON property `trackingId` # Corresponds to the JSON property `trackingId`
# @return [String] # @return [String]
attr_accessor :tracking_id attr_accessor :tracking_id
@ -4509,7 +4503,7 @@ module Google
class OrderShipmentLineItemShipment class OrderShipmentLineItemShipment
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The id of the line item that is shipped. Either lineItemId or productId is # The ID of the line item that is shipped. Either lineItemId or productId is
# required. # required.
# Corresponds to the JSON property `lineItemId` # Corresponds to the JSON property `lineItemId`
# @return [String] # @return [String]
@ -5207,12 +5201,13 @@ module Google
# @return [String] # @return [String]
attr_accessor :carrier attr_accessor :carrier
# The ID of the shipment. # The ID of the shipment. This is assigned by the merchant and is unique to each
# shipment.
# Corresponds to the JSON property `shipmentId` # Corresponds to the JSON property `shipmentId`
# @return [String] # @return [String]
attr_accessor :shipment_id attr_accessor :shipment_id
# The tracking id for the shipment. # The tracking ID for the shipment.
# Corresponds to the JSON property `trackingId` # Corresponds to the JSON property `trackingId`
# @return [String] # @return [String]
attr_accessor :tracking_id attr_accessor :tracking_id
@ -5853,7 +5848,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
# The tracking id for the shipment. Not updated if missing. # The tracking ID for the shipment. Not updated if missing.
# Corresponds to the JSON property `trackingId` # Corresponds to the JSON property `trackingId`
# @return [String] # @return [String]
attr_accessor :tracking_id attr_accessor :tracking_id

View File

@ -2400,7 +2400,6 @@ module Google
property :shipping_cost_tax, as: 'shippingCostTax', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation property :shipping_cost_tax, as: 'shippingCostTax', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
property :shipping_option, as: 'shippingOption'
property :status, as: 'status' property :status, as: 'status'
property :tax_collector, as: 'taxCollector' property :tax_collector, as: 'taxCollector'
end end

View File

@ -2305,7 +2305,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Sets (overrides) merchant provided annotations on the line item. # Sets (or overrides if it already exists) merchant provided annotations in the
# form of key-value pairs. A common use case would be to supply us with
# additional structured information about a line item that cannot be provided
# via other methods. Submitted key-value pairs can be retrieved as part of the
# orders resource.
# @param [Fixnum] merchant_id # @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client # The ID of the account that manages the order. This cannot be a multi-client
# account. # account.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/filestore/ # @see https://cloud.google.com/filestore/
module FileV1 module FileV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190129' REVISION = '20190225'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -54,6 +54,149 @@ module Google
end end
end end
# File share configuration for the instance.
class FileShareConfig
include Google::Apis::Core::Hashable
# File share capacity in gigabytes (GB).
# Cloud Filestore defines 1 GB as 1024^3 bytes.
# Corresponds to the JSON property `capacityGb`
# @return [Fixnum]
attr_accessor :capacity_gb
# The name of the file share (must be 16 characters or less).
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
@name = args[:name] if args.key?(:name)
end
end
# A Cloud Filestore instance.
class Instance
include Google::Apis::Core::Hashable
# Output only.
# The time when the instance was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Optional. A description of the instance (2048 characters or less).
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Server-specified ETag for the instance resource to prevent simultaneous
# updates from overwriting each other.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# File system shares on the instance.
# For this version, only a single file share is supported.
# Corresponds to the JSON property `fileShares`
# @return [Array<Google::Apis::FileV1::FileShareConfig>]
attr_accessor :file_shares
# Resource labels to represent user provided metadata.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Output only.
# The resource name of the instance, in the format
# projects/`project_id`/locations/`location_id`/instances/`instance_id`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# VPC networks to which the instance is connected.
# For this version, only a single network is supported.
# Corresponds to the JSON property `networks`
# @return [Array<Google::Apis::FileV1::NetworkConfig>]
attr_accessor :networks
# Output only.
# The instance state.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Output only.
# Additional information about the instance state, if available.
# Corresponds to the JSON property `statusMessage`
# @return [String]
attr_accessor :status_message
# The service tier of the instance.
# Corresponds to the JSON property `tier`
# @return [String]
attr_accessor :tier
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description)
@etag = args[:etag] if args.key?(:etag)
@file_shares = args[:file_shares] if args.key?(:file_shares)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@networks = args[:networks] if args.key?(:networks)
@state = args[:state] if args.key?(:state)
@status_message = args[:status_message] if args.key?(:status_message)
@tier = args[:tier] if args.key?(:tier)
end
end
# ListInstancesResponse is the result of ListInstancesRequest.
class ListInstancesResponse
include Google::Apis::Core::Hashable
# A list of instances in the project for the specified location.
# If the `location` value in the request is "-", the response contains a list
# of instances from all locations. If any location is unreachable, the
# response will only return instances in reachable locations and the
# "unreachable" field will be populated with a list of unreachable locations.
# Corresponds to the JSON property `instances`
# @return [Array<Google::Apis::FileV1::Instance>]
attr_accessor :instances
# The token you can use to retrieve the next page of results. Not returned
# if there are no more results in the list.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Locations that could not be reached.
# Corresponds to the JSON property `unreachable`
# @return [Array<String>]
attr_accessor :unreachable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@instances = args[:instances] if args.key?(:instances)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@unreachable = args[:unreachable] if args.key?(:unreachable)
end
end
# The response message for Locations.ListLocations. # The response message for Locations.ListLocations.
class ListLocationsResponse class ListLocationsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -151,6 +294,56 @@ module Google
end end
end end
# Network configuration for the instance.
class NetworkConfig
include Google::Apis::Core::Hashable
# Output only.
# IPv4 addresses in the format
# `octet 1`.`octet 2`.`octet 3`.`octet 4` or IPv6 addresses in the format
# `block 1`:`block 2`:`block 3`:`block 4`:`block 5`:`block 6`:`block 7`:`block 8`
# .
# Corresponds to the JSON property `ipAddresses`
# @return [Array<String>]
attr_accessor :ip_addresses
# Internet protocol versions for which the instance has IP addresses
# assigned. For this version, only MODE_IPV4 is supported.
# Corresponds to the JSON property `modes`
# @return [Array<String>]
attr_accessor :modes
# The name of the Google Compute Engine
# [VPC network](/compute/docs/networks-and-firewalls#networks) to which the
# instance is connected.
# Corresponds to the JSON property `network`
# @return [String]
attr_accessor :network
# A /29 CIDR block in one of the
# [internal IP address ranges](https://www.arin.net/knowledge/address_filters.
# html)
# that identifies the range of IP addresses reserved for this
# instance. For example, 10.0.0.0/29 or 192.168.0.0/29. The range you specify
# can't overlap with either existing subnets or assigned IP address ranges
# for other Cloud Filestore instances in the selected VPC network.
# Corresponds to the JSON property `reservedIpRange`
# @return [String]
attr_accessor :reserved_ip_range
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
@modes = args[:modes] if args.key?(:modes)
@network = args[:network] if args.key?(:network)
@reserved_ip_range = args[:reserved_ip_range] if args.key?(:reserved_ip_range)
end
end
# This resource represents a long-running operation that is the result of a # This resource represents a long-running operation that is the result of a
# network API call. # network API call.
class Operation class Operation

View File

@ -34,6 +34,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class FileShareConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Instance
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListInstancesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLocationsResponse class ListLocationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -52,6 +70,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class NetworkConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -82,6 +106,42 @@ module Google
end end
end end
class FileShareConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :capacity_gb, :numeric_string => true, as: 'capacityGb'
property :name, as: 'name'
end
end
class Instance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :description, as: 'description'
property :etag, as: 'etag'
collection :file_shares, as: 'fileShares', class: Google::Apis::FileV1::FileShareConfig, decorator: Google::Apis::FileV1::FileShareConfig::Representation
hash :labels, as: 'labels'
property :name, as: 'name'
collection :networks, as: 'networks', class: Google::Apis::FileV1::NetworkConfig, decorator: Google::Apis::FileV1::NetworkConfig::Representation
property :state, as: 'state'
property :status_message, as: 'statusMessage'
property :tier, as: 'tier'
end
end
class ListInstancesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :instances, as: 'instances', class: Google::Apis::FileV1::Instance, decorator: Google::Apis::FileV1::Instance::Representation
property :next_page_token, as: 'nextPageToken'
collection :unreachable, as: 'unreachable'
end
end
class ListLocationsResponse class ListLocationsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -111,6 +171,16 @@ module Google
end end
end end
class NetworkConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :ip_addresses, as: 'ipAddresses'
collection :modes, as: 'modes'
property :network, as: 'network'
property :reserved_ip_range, as: 'reservedIpRange'
end
end
class Operation class Operation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -116,6 +116,196 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates an instance.
# @param [String] parent
# The instance's project and location, in the format
# projects/`project_id`/locations/`location`. In Cloud Filestore,
# locations map to GCP zones, for example **us-west1-b**.
# @param [Google::Apis::FileV1::Instance] instance_object
# @param [String] instance_id
# The name of the instance to create.
# The name must be unique for the specified project and location.
# @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::FileV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FileV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_instance(parent, instance_object = nil, instance_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/instances', options)
command.request_representation = Google::Apis::FileV1::Instance::Representation
command.request_object = instance_object
command.response_representation = Google::Apis::FileV1::Operation::Representation
command.response_class = Google::Apis::FileV1::Operation
command.params['parent'] = parent unless parent.nil?
command.query['instanceId'] = instance_id unless instance_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 an instance.
# @param [String] name
# The instance resource name, in the format
# projects/`project_id`/locations/`location`/instances/`instance_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::FileV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FileV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::FileV1::Operation::Representation
command.response_class = Google::Apis::FileV1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the details of a specific instance.
# @param [String] name
# The instance resource name, in the format
# projects/`project_id`/locations/`location`/instances/`instance_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::FileV1::Instance] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FileV1::Instance]
#
# @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_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::FileV1::Instance::Representation
command.response_class = Google::Apis::FileV1::Instance
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all instances in a project for either a specified location
# or for all locations.
# @param [String] parent
# The project and location for which to retrieve instance information,
# in the format projects/`project_id`/locations/`location`. In Cloud
# Filestore, locations map to GCP zones, for example **us-west1-b**. To
# retrieve instance information for all locations, use "-" for the `location`
# value.
# @param [String] filter
# List filter.
# @param [String] order_by
# Sort results. Supported values are "name", "name desc" or "" (unsorted).
# @param [Fixnum] page_size
# The maximum number of items to return.
# @param [String] page_token
# The next_page_token value to use if there are additional
# results to retrieve for this list request.
# @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::FileV1::ListInstancesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FileV1::ListInstancesResponse]
#
# @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_project_location_instances(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/instances', options)
command.response_representation = Google::Apis::FileV1::ListInstancesResponse::Representation
command.response_class = Google::Apis::FileV1::ListInstancesResponse
command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.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['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the settings of a specific instance.
# @param [String] name
# Output only.
# The resource name of the instance, in the format
# projects/`project_id`/locations/`location_id`/instances/`instance_id`.
# @param [Google::Apis::FileV1::Instance] instance_object
# @param [String] update_mask
# Mask of fields to update. At least one path must be supplied in this
# field. The elements of the repeated paths field may only include these
# fields:
# "description"
# @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::FileV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FileV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_location_instance(name, instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::FileV1::Instance::Representation
command.request_object = instance_object
command.response_representation = Google::Apis::FileV1::Operation::Representation
command.response_class = Google::Apis::FileV1::Operation
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server # Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not # makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns # guaranteed. If the server doesn't support this method, it returns

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/people/ # @see https://developers.google.com/people/
module PeopleV1 module PeopleV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20181111' REVISION = '20190223'
# See, edit, download, and permanently delete your contacts # See, edit, download, and permanently delete your contacts
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts' AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
@ -33,7 +33,7 @@ module Google
# See and download your contacts # See and download your contacts
AUTH_CONTACTS_READONLY = 'https://www.googleapis.com/auth/contacts.readonly' AUTH_CONTACTS_READONLY = 'https://www.googleapis.com/auth/contacts.readonly'
# Know the list of people in your circles, your age range, and language # View your basic profile info, including your age range and language
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
# View your street addresses # View your street addresses

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/youtube/reporting/v1/reports/ # @see https://developers.google.com/youtube/reporting/v1/reports/
module YoutubereportingV1 module YoutubereportingV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20180601' REVISION = '20190223'
# View monetary and non-monetary YouTube Analytics reports for your YouTube content # View monetary and non-monetary YouTube Analytics reports for your YouTube content
AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly' AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly'