google-api-client 0.18.0 → 0.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +41 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +9 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1 -1
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +238 -10
- data/generated/google/apis/admin_directory_v1/representations.rb +101 -0
- data/generated/google/apis/admin_directory_v1/service.rb +529 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +7 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +9 -0
- data/generated/google/apis/androidpublisher_v1_1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +34 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +21 -17
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +21 -17
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +2 -2
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +326 -0
- data/generated/google/apis/calendar_v3/representations.rb +118 -0
- data/generated/google/apis/calendar_v3/service.rb +28 -4
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +69 -0
- data/generated/google/apis/classroom_v1/representations.rb +31 -0
- data/generated/google/apis/classroom_v1/service.rb +88 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +49 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +20 -0
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +9 -12
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +25 -0
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +4 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +8 -3
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +7 -3
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +8 -6
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +19 -13
- data/generated/google/apis/cloudshell_v1.rb +35 -0
- data/generated/google/apis/cloudshell_v1/classes.rb +409 -0
- data/generated/google/apis/cloudshell_v1/representations.rb +161 -0
- data/generated/google/apis/cloudshell_v1/service.rb +214 -0
- data/generated/google/apis/cloudshell_v1alpha1.rb +35 -0
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +403 -0
- data/generated/google/apis/cloudshell_v1alpha1/representations.rb +160 -0
- data/generated/google/apis/cloudshell_v1alpha1/service.rb +237 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +106 -13
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +31 -1
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +63 -8
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/service.rb +2 -2
- data/generated/google/apis/container_v1.rb +2 -2
- data/generated/google/apis/container_v1/classes.rb +6 -7
- data/generated/google/apis/container_v1/service.rb +2 -2
- data/generated/google/apis/container_v1beta1.rb +2 -2
- data/generated/google/apis/container_v1beta1/classes.rb +4 -4
- data/generated/google/apis/container_v1beta1/service.rb +3 -3
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +257 -0
- data/generated/google/apis/content_v2/representations.rb +114 -0
- data/generated/google/apis/content_v2/service.rb +84 -0
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +257 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +114 -0
- data/generated/google/apis/content_v2sandbox/service.rb +84 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +16 -0
- data/generated/google/apis/digitalassetlinks_v1.rb +32 -0
- data/generated/google/apis/digitalassetlinks_v1/classes.rb +305 -0
- data/generated/google/apis/digitalassetlinks_v1/representations.rb +133 -0
- data/generated/google/apis/digitalassetlinks_v1/service.rb +324 -0
- data/generated/google/apis/dlp_v2beta2.rb +36 -0
- data/generated/google/apis/dlp_v2beta2/classes.rb +5475 -0
- data/generated/google/apis/dlp_v2beta2/representations.rb +2734 -0
- data/generated/google/apis/dlp_v2beta2/service.rb +1135 -0
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +25 -16
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +50 -1
- data/generated/google/apis/monitoring_v3/representations.rb +16 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +6 -5
- data/generated/google/apis/slides_v1.rb +4 -1
- data/generated/google/apis/speech_v1.rb +1 -4
- data/generated/google/apis/speech_v1beta1.rb +1 -4
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +0 -2
- data/generated/google/apis/streetviewpublish_v1/service.rb +6 -0
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +81 -0
- data/generated/google/apis/testing_v1/representations.rb +45 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +0 -6
- data/generated/google/apis/youtube_v3/representations.rb +0 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +576 -19
- data/generated/google/apis/youtubereporting_v1/representations.rb +218 -12
- data/generated/google/apis/youtubereporting_v1/service.rb +4 -4
- data/lib/google/apis/version.rb +1 -1
- metadata +18 -2
@@ -466,6 +466,12 @@ module Google
|
|
466
466
|
include Google::Apis::Core::JsonObjectSupport
|
467
467
|
end
|
468
468
|
|
469
|
+
class OrderMerchantProvidedAnnotation
|
470
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
471
|
+
|
472
|
+
include Google::Apis::Core::JsonObjectSupport
|
473
|
+
end
|
474
|
+
|
469
475
|
class OrderPaymentMethod
|
470
476
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
471
477
|
|
@@ -598,6 +604,12 @@ module Google
|
|
598
604
|
include Google::Apis::Core::JsonObjectSupport
|
599
605
|
end
|
600
606
|
|
607
|
+
class OrdersCustomBatchRequestEntrySetLineItemMetadata
|
608
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
609
|
+
|
610
|
+
include Google::Apis::Core::JsonObjectSupport
|
611
|
+
end
|
612
|
+
|
601
613
|
class OrdersCustomBatchRequestEntryShipLineItems
|
602
614
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
603
615
|
|
@@ -610,6 +622,12 @@ module Google
|
|
610
622
|
include Google::Apis::Core::JsonObjectSupport
|
611
623
|
end
|
612
624
|
|
625
|
+
class OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails
|
626
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
627
|
+
|
628
|
+
include Google::Apis::Core::JsonObjectSupport
|
629
|
+
end
|
630
|
+
|
613
631
|
class OrdersCustomBatchRequestEntryUpdateShipment
|
614
632
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
615
633
|
|
@@ -670,6 +688,18 @@ module Google
|
|
670
688
|
include Google::Apis::Core::JsonObjectSupport
|
671
689
|
end
|
672
690
|
|
691
|
+
class OrdersSetLineItemMetadataRequest
|
692
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
693
|
+
|
694
|
+
include Google::Apis::Core::JsonObjectSupport
|
695
|
+
end
|
696
|
+
|
697
|
+
class OrdersSetLineItemMetadataResponse
|
698
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
699
|
+
|
700
|
+
include Google::Apis::Core::JsonObjectSupport
|
701
|
+
end
|
702
|
+
|
673
703
|
class OrdersShipLineItemsRequest
|
674
704
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
675
705
|
|
@@ -682,6 +712,18 @@ module Google
|
|
682
712
|
include Google::Apis::Core::JsonObjectSupport
|
683
713
|
end
|
684
714
|
|
715
|
+
class OrdersUpdateLineItemShippingDetailsRequest
|
716
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
717
|
+
|
718
|
+
include Google::Apis::Core::JsonObjectSupport
|
719
|
+
end
|
720
|
+
|
721
|
+
class OrdersUpdateLineItemShippingDetailsResponse
|
722
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
723
|
+
|
724
|
+
include Google::Apis::Core::JsonObjectSupport
|
725
|
+
end
|
726
|
+
|
685
727
|
class OrdersUpdateMerchantOrderIdRequest
|
686
728
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
687
729
|
|
@@ -1736,6 +1778,8 @@ module Google
|
|
1736
1778
|
class OrderLineItem
|
1737
1779
|
# @private
|
1738
1780
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1781
|
+
collection :annotations, as: 'annotations', class: Google::Apis::ContentV2::OrderMerchantProvidedAnnotation, decorator: Google::Apis::ContentV2::OrderMerchantProvidedAnnotation::Representation
|
1782
|
+
|
1739
1783
|
collection :cancellations, as: 'cancellations', class: Google::Apis::ContentV2::OrderCancellation, decorator: Google::Apis::ContentV2::OrderCancellation::Representation
|
1740
1784
|
|
1741
1785
|
property :id, as: 'id'
|
@@ -1820,6 +1864,14 @@ module Google
|
|
1820
1864
|
end
|
1821
1865
|
end
|
1822
1866
|
|
1867
|
+
class OrderMerchantProvidedAnnotation
|
1868
|
+
# @private
|
1869
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1870
|
+
property :key, as: 'key'
|
1871
|
+
property :value, as: 'value'
|
1872
|
+
end
|
1873
|
+
end
|
1874
|
+
|
1823
1875
|
class OrderPaymentMethod
|
1824
1876
|
# @private
|
1825
1877
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2013,8 +2065,12 @@ module Google
|
|
2013
2065
|
|
2014
2066
|
property :return_line_item, as: 'returnLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem::Representation
|
2015
2067
|
|
2068
|
+
property :set_line_item_metadata, as: 'setLineItemMetadata', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata::Representation
|
2069
|
+
|
2016
2070
|
property :ship_line_items, as: 'shipLineItems', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems::Representation
|
2017
2071
|
|
2072
|
+
property :update_line_item_shipping_details, as: 'updateLineItemShippingDetails', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails::Representation
|
2073
|
+
|
2018
2074
|
property :update_shipment, as: 'updateShipment', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment::Representation
|
2019
2075
|
|
2020
2076
|
end
|
@@ -2070,6 +2126,16 @@ module Google
|
|
2070
2126
|
end
|
2071
2127
|
end
|
2072
2128
|
|
2129
|
+
class OrdersCustomBatchRequestEntrySetLineItemMetadata
|
2130
|
+
# @private
|
2131
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2132
|
+
collection :annotations, as: 'annotations', class: Google::Apis::ContentV2::OrderMerchantProvidedAnnotation, decorator: Google::Apis::ContentV2::OrderMerchantProvidedAnnotation::Representation
|
2133
|
+
|
2134
|
+
property :line_item_id, as: 'lineItemId'
|
2135
|
+
property :product_id, as: 'productId'
|
2136
|
+
end
|
2137
|
+
end
|
2138
|
+
|
2073
2139
|
class OrdersCustomBatchRequestEntryShipLineItems
|
2074
2140
|
# @private
|
2075
2141
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2092,6 +2158,16 @@ module Google
|
|
2092
2158
|
end
|
2093
2159
|
end
|
2094
2160
|
|
2161
|
+
class OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails
|
2162
|
+
# @private
|
2163
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2164
|
+
property :deliver_by_date, as: 'deliverByDate'
|
2165
|
+
property :line_item_id, as: 'lineItemId'
|
2166
|
+
property :product_id, as: 'productId'
|
2167
|
+
property :ship_by_date, as: 'shipByDate'
|
2168
|
+
end
|
2169
|
+
end
|
2170
|
+
|
2095
2171
|
class OrdersCustomBatchRequestEntryUpdateShipment
|
2096
2172
|
# @private
|
2097
2173
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2195,6 +2271,25 @@ module Google
|
|
2195
2271
|
end
|
2196
2272
|
end
|
2197
2273
|
|
2274
|
+
class OrdersSetLineItemMetadataRequest
|
2275
|
+
# @private
|
2276
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2277
|
+
collection :annotations, as: 'annotations', class: Google::Apis::ContentV2::OrderMerchantProvidedAnnotation, decorator: Google::Apis::ContentV2::OrderMerchantProvidedAnnotation::Representation
|
2278
|
+
|
2279
|
+
property :line_item_id, as: 'lineItemId'
|
2280
|
+
property :operation_id, as: 'operationId'
|
2281
|
+
property :product_id, as: 'productId'
|
2282
|
+
end
|
2283
|
+
end
|
2284
|
+
|
2285
|
+
class OrdersSetLineItemMetadataResponse
|
2286
|
+
# @private
|
2287
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2288
|
+
property :execution_status, as: 'executionStatus'
|
2289
|
+
property :kind, as: 'kind'
|
2290
|
+
end
|
2291
|
+
end
|
2292
|
+
|
2198
2293
|
class OrdersShipLineItemsRequest
|
2199
2294
|
# @private
|
2200
2295
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2217,6 +2312,25 @@ module Google
|
|
2217
2312
|
end
|
2218
2313
|
end
|
2219
2314
|
|
2315
|
+
class OrdersUpdateLineItemShippingDetailsRequest
|
2316
|
+
# @private
|
2317
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2318
|
+
property :deliver_by_date, as: 'deliverByDate'
|
2319
|
+
property :line_item_id, as: 'lineItemId'
|
2320
|
+
property :operation_id, as: 'operationId'
|
2321
|
+
property :product_id, as: 'productId'
|
2322
|
+
property :ship_by_date, as: 'shipByDate'
|
2323
|
+
end
|
2324
|
+
end
|
2325
|
+
|
2326
|
+
class OrdersUpdateLineItemShippingDetailsResponse
|
2327
|
+
# @private
|
2328
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2329
|
+
property :execution_status, as: 'executionStatus'
|
2330
|
+
property :kind, as: 'kind'
|
2331
|
+
end
|
2332
|
+
end
|
2333
|
+
|
2220
2334
|
class OrdersUpdateMerchantOrderIdRequest
|
2221
2335
|
# @private
|
2222
2336
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1779,6 +1779,48 @@ module Google
|
|
1779
1779
|
execute_or_queue_command(command, &block)
|
1780
1780
|
end
|
1781
1781
|
|
1782
|
+
# Sets (overrides) merchant provided annotations on the line item.
|
1783
|
+
# @param [Fixnum] merchant_id
|
1784
|
+
# The ID of the account that manages the order. This cannot be a multi-client
|
1785
|
+
# account.
|
1786
|
+
# @param [String] order_id
|
1787
|
+
# The ID of the order.
|
1788
|
+
# @param [Google::Apis::ContentV2::OrdersSetLineItemMetadataRequest] orders_set_line_item_metadata_request_object
|
1789
|
+
# @param [String] fields
|
1790
|
+
# Selector specifying which fields to include in a partial response.
|
1791
|
+
# @param [String] quota_user
|
1792
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1793
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1794
|
+
# Overrides userIp if both are provided.
|
1795
|
+
# @param [String] user_ip
|
1796
|
+
# IP address of the site where the request originates. Use this if you want to
|
1797
|
+
# enforce per-user limits.
|
1798
|
+
# @param [Google::Apis::RequestOptions] options
|
1799
|
+
# Request-specific options
|
1800
|
+
#
|
1801
|
+
# @yield [result, err] Result & error if block supplied
|
1802
|
+
# @yieldparam result [Google::Apis::ContentV2::OrdersSetLineItemMetadataResponse] parsed result object
|
1803
|
+
# @yieldparam err [StandardError] error object if request failed
|
1804
|
+
#
|
1805
|
+
# @return [Google::Apis::ContentV2::OrdersSetLineItemMetadataResponse]
|
1806
|
+
#
|
1807
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1808
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1809
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1810
|
+
def setlineitemmetadata_order(merchant_id, order_id, orders_set_line_item_metadata_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1811
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/setLineItemMetadata', options)
|
1812
|
+
command.request_representation = Google::Apis::ContentV2::OrdersSetLineItemMetadataRequest::Representation
|
1813
|
+
command.request_object = orders_set_line_item_metadata_request_object
|
1814
|
+
command.response_representation = Google::Apis::ContentV2::OrdersSetLineItemMetadataResponse::Representation
|
1815
|
+
command.response_class = Google::Apis::ContentV2::OrdersSetLineItemMetadataResponse
|
1816
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1817
|
+
command.params['orderId'] = order_id unless order_id.nil?
|
1818
|
+
command.query['fields'] = fields unless fields.nil?
|
1819
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1820
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1821
|
+
execute_or_queue_command(command, &block)
|
1822
|
+
end
|
1823
|
+
|
1782
1824
|
# Marks line item(s) as shipped.
|
1783
1825
|
# @param [Fixnum] merchant_id
|
1784
1826
|
# The ID of the account that manages the order. This cannot be a multi-client
|
@@ -1821,6 +1863,48 @@ module Google
|
|
1821
1863
|
execute_or_queue_command(command, &block)
|
1822
1864
|
end
|
1823
1865
|
|
1866
|
+
# Updates ship by and delivery by dates for a line item.
|
1867
|
+
# @param [Fixnum] merchant_id
|
1868
|
+
# The ID of the account that manages the order. This cannot be a multi-client
|
1869
|
+
# account.
|
1870
|
+
# @param [String] order_id
|
1871
|
+
# The ID of the order.
|
1872
|
+
# @param [Google::Apis::ContentV2::OrdersUpdateLineItemShippingDetailsRequest] orders_update_line_item_shipping_details_request_object
|
1873
|
+
# @param [String] fields
|
1874
|
+
# Selector specifying which fields to include in a partial response.
|
1875
|
+
# @param [String] quota_user
|
1876
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1877
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1878
|
+
# Overrides userIp if both are provided.
|
1879
|
+
# @param [String] user_ip
|
1880
|
+
# IP address of the site where the request originates. Use this if you want to
|
1881
|
+
# enforce per-user limits.
|
1882
|
+
# @param [Google::Apis::RequestOptions] options
|
1883
|
+
# Request-specific options
|
1884
|
+
#
|
1885
|
+
# @yield [result, err] Result & error if block supplied
|
1886
|
+
# @yieldparam result [Google::Apis::ContentV2::OrdersUpdateLineItemShippingDetailsResponse] parsed result object
|
1887
|
+
# @yieldparam err [StandardError] error object if request failed
|
1888
|
+
#
|
1889
|
+
# @return [Google::Apis::ContentV2::OrdersUpdateLineItemShippingDetailsResponse]
|
1890
|
+
#
|
1891
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1892
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1893
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1894
|
+
def updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1895
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateLineItemShippingDetails', options)
|
1896
|
+
command.request_representation = Google::Apis::ContentV2::OrdersUpdateLineItemShippingDetailsRequest::Representation
|
1897
|
+
command.request_object = orders_update_line_item_shipping_details_request_object
|
1898
|
+
command.response_representation = Google::Apis::ContentV2::OrdersUpdateLineItemShippingDetailsResponse::Representation
|
1899
|
+
command.response_class = Google::Apis::ContentV2::OrdersUpdateLineItemShippingDetailsResponse
|
1900
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1901
|
+
command.params['orderId'] = order_id unless order_id.nil?
|
1902
|
+
command.query['fields'] = fields unless fields.nil?
|
1903
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1904
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1905
|
+
execute_or_queue_command(command, &block)
|
1906
|
+
end
|
1907
|
+
|
1824
1908
|
# Updates the merchant order ID for a given order.
|
1825
1909
|
# @param [Fixnum] merchant_id
|
1826
1910
|
# The ID of the account that manages the order. This cannot be a multi-client
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/shopping-content
|
27
27
|
module ContentV2sandbox
|
28
28
|
VERSION = 'V2sandbox'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20171207'
|
30
30
|
|
31
31
|
# Manage your product listings and accounts for Google Shopping
|
32
32
|
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
@@ -399,6 +399,11 @@ module Google
|
|
399
399
|
class OrderLineItem
|
400
400
|
include Google::Apis::Core::Hashable
|
401
401
|
|
402
|
+
# Annotations that are attached to the line item.
|
403
|
+
# Corresponds to the JSON property `annotations`
|
404
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrderMerchantProvidedAnnotation>]
|
405
|
+
attr_accessor :annotations
|
406
|
+
|
402
407
|
# Cancellations of the line item.
|
403
408
|
# Corresponds to the JSON property `cancellations`
|
404
409
|
# @return [Array<Google::Apis::ContentV2sandbox::OrderCancellation>]
|
@@ -477,6 +482,7 @@ module Google
|
|
477
482
|
|
478
483
|
# Update properties of this object
|
479
484
|
def update!(**args)
|
485
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
480
486
|
@cancellations = args[:cancellations] if args.key?(:cancellations)
|
481
487
|
@id = args[:id] if args.key?(:id)
|
482
488
|
@price = args[:price] if args.key?(:price)
|
@@ -725,6 +731,33 @@ module Google
|
|
725
731
|
end
|
726
732
|
end
|
727
733
|
|
734
|
+
#
|
735
|
+
class OrderMerchantProvidedAnnotation
|
736
|
+
include Google::Apis::Core::Hashable
|
737
|
+
|
738
|
+
# Key for additional merchant provided (as key-value pairs) annotation about the
|
739
|
+
# line item.
|
740
|
+
# Corresponds to the JSON property `key`
|
741
|
+
# @return [String]
|
742
|
+
attr_accessor :key
|
743
|
+
|
744
|
+
# Value for additional merchant provided (as key-value pairs) annotation about
|
745
|
+
# the line item.
|
746
|
+
# Corresponds to the JSON property `value`
|
747
|
+
# @return [String]
|
748
|
+
attr_accessor :value
|
749
|
+
|
750
|
+
def initialize(**args)
|
751
|
+
update!(**args)
|
752
|
+
end
|
753
|
+
|
754
|
+
# Update properties of this object
|
755
|
+
def update!(**args)
|
756
|
+
@key = args[:key] if args.key?(:key)
|
757
|
+
@value = args[:value] if args.key?(:value)
|
758
|
+
end
|
759
|
+
end
|
760
|
+
|
728
761
|
#
|
729
762
|
class OrderPaymentMethod
|
730
763
|
include Google::Apis::Core::Hashable
|
@@ -1430,11 +1463,21 @@ module Google
|
|
1430
1463
|
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem]
|
1431
1464
|
attr_accessor :return_line_item
|
1432
1465
|
|
1466
|
+
# Required for setLineItemMetadata method.
|
1467
|
+
# Corresponds to the JSON property `setLineItemMetadata`
|
1468
|
+
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntrySetLineItemMetadata]
|
1469
|
+
attr_accessor :set_line_item_metadata
|
1470
|
+
|
1433
1471
|
# Required for shipLineItems method.
|
1434
1472
|
# Corresponds to the JSON property `shipLineItems`
|
1435
1473
|
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItems]
|
1436
1474
|
attr_accessor :ship_line_items
|
1437
1475
|
|
1476
|
+
# Required for updateLineItemShippingDate method.
|
1477
|
+
# Corresponds to the JSON property `updateLineItemShippingDetails`
|
1478
|
+
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails]
|
1479
|
+
attr_accessor :update_line_item_shipping_details
|
1480
|
+
|
1438
1481
|
# Required for updateShipment method.
|
1439
1482
|
# Corresponds to the JSON property `updateShipment`
|
1440
1483
|
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryUpdateShipment]
|
@@ -1456,7 +1499,9 @@ module Google
|
|
1456
1499
|
@order_id = args[:order_id] if args.key?(:order_id)
|
1457
1500
|
@refund = args[:refund] if args.key?(:refund)
|
1458
1501
|
@return_line_item = args[:return_line_item] if args.key?(:return_line_item)
|
1502
|
+
@set_line_item_metadata = args[:set_line_item_metadata] if args.key?(:set_line_item_metadata)
|
1459
1503
|
@ship_line_items = args[:ship_line_items] if args.key?(:ship_line_items)
|
1504
|
+
@update_line_item_shipping_details = args[:update_line_item_shipping_details] if args.key?(:update_line_item_shipping_details)
|
1460
1505
|
@update_shipment = args[:update_shipment] if args.key?(:update_shipment)
|
1461
1506
|
end
|
1462
1507
|
end
|
@@ -1640,6 +1685,39 @@ module Google
|
|
1640
1685
|
end
|
1641
1686
|
end
|
1642
1687
|
|
1688
|
+
#
|
1689
|
+
class OrdersCustomBatchRequestEntrySetLineItemMetadata
|
1690
|
+
include Google::Apis::Core::Hashable
|
1691
|
+
|
1692
|
+
#
|
1693
|
+
# Corresponds to the JSON property `annotations`
|
1694
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrderMerchantProvidedAnnotation>]
|
1695
|
+
attr_accessor :annotations
|
1696
|
+
|
1697
|
+
# The ID of the line item to set metadata. Either lineItemId or productId is
|
1698
|
+
# required.
|
1699
|
+
# Corresponds to the JSON property `lineItemId`
|
1700
|
+
# @return [String]
|
1701
|
+
attr_accessor :line_item_id
|
1702
|
+
|
1703
|
+
# The ID of the product to set metadata. This is the REST ID used in the
|
1704
|
+
# products service. Either lineItemId or productId is required.
|
1705
|
+
# Corresponds to the JSON property `productId`
|
1706
|
+
# @return [String]
|
1707
|
+
attr_accessor :product_id
|
1708
|
+
|
1709
|
+
def initialize(**args)
|
1710
|
+
update!(**args)
|
1711
|
+
end
|
1712
|
+
|
1713
|
+
# Update properties of this object
|
1714
|
+
def update!(**args)
|
1715
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
1716
|
+
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
1717
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1718
|
+
end
|
1719
|
+
end
|
1720
|
+
|
1643
1721
|
#
|
1644
1722
|
class OrdersCustomBatchRequestEntryShipLineItems
|
1645
1723
|
include Google::Apis::Core::Hashable
|
@@ -1718,6 +1796,47 @@ module Google
|
|
1718
1796
|
end
|
1719
1797
|
end
|
1720
1798
|
|
1799
|
+
#
|
1800
|
+
class OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails
|
1801
|
+
include Google::Apis::Core::Hashable
|
1802
|
+
|
1803
|
+
# Updated delivery by date, in ISO 8601 format. If not specified only ship by
|
1804
|
+
# date is updated.
|
1805
|
+
# Corresponds to the JSON property `deliverByDate`
|
1806
|
+
# @return [String]
|
1807
|
+
attr_accessor :deliver_by_date
|
1808
|
+
|
1809
|
+
# The ID of the line item to set metadata. Either lineItemId or productId is
|
1810
|
+
# required.
|
1811
|
+
# Corresponds to the JSON property `lineItemId`
|
1812
|
+
# @return [String]
|
1813
|
+
attr_accessor :line_item_id
|
1814
|
+
|
1815
|
+
# The ID of the product to set metadata. This is the REST ID used in the
|
1816
|
+
# products service. Either lineItemId or productId is required.
|
1817
|
+
# Corresponds to the JSON property `productId`
|
1818
|
+
# @return [String]
|
1819
|
+
attr_accessor :product_id
|
1820
|
+
|
1821
|
+
# Updated ship by date, in ISO 8601 format. If not specified only deliver by
|
1822
|
+
# date is updated.
|
1823
|
+
# Corresponds to the JSON property `shipByDate`
|
1824
|
+
# @return [String]
|
1825
|
+
attr_accessor :ship_by_date
|
1826
|
+
|
1827
|
+
def initialize(**args)
|
1828
|
+
update!(**args)
|
1829
|
+
end
|
1830
|
+
|
1831
|
+
# Update properties of this object
|
1832
|
+
def update!(**args)
|
1833
|
+
@deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date)
|
1834
|
+
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
1835
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1836
|
+
@ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date)
|
1837
|
+
end
|
1838
|
+
end
|
1839
|
+
|
1721
1840
|
#
|
1722
1841
|
class OrdersCustomBatchRequestEntryUpdateShipment
|
1723
1842
|
include Google::Apis::Core::Hashable
|
@@ -2064,6 +2183,71 @@ module Google
|
|
2064
2183
|
end
|
2065
2184
|
end
|
2066
2185
|
|
2186
|
+
#
|
2187
|
+
class OrdersSetLineItemMetadataRequest
|
2188
|
+
include Google::Apis::Core::Hashable
|
2189
|
+
|
2190
|
+
#
|
2191
|
+
# Corresponds to the JSON property `annotations`
|
2192
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrderMerchantProvidedAnnotation>]
|
2193
|
+
attr_accessor :annotations
|
2194
|
+
|
2195
|
+
# The ID of the line item to set metadata. Either lineItemId or productId is
|
2196
|
+
# required.
|
2197
|
+
# Corresponds to the JSON property `lineItemId`
|
2198
|
+
# @return [String]
|
2199
|
+
attr_accessor :line_item_id
|
2200
|
+
|
2201
|
+
# The ID of the operation. Unique across all operations for a given order.
|
2202
|
+
# Corresponds to the JSON property `operationId`
|
2203
|
+
# @return [String]
|
2204
|
+
attr_accessor :operation_id
|
2205
|
+
|
2206
|
+
# The ID of the product to set metadata. This is the REST ID used in the
|
2207
|
+
# products service. Either lineItemId or productId is required.
|
2208
|
+
# Corresponds to the JSON property `productId`
|
2209
|
+
# @return [String]
|
2210
|
+
attr_accessor :product_id
|
2211
|
+
|
2212
|
+
def initialize(**args)
|
2213
|
+
update!(**args)
|
2214
|
+
end
|
2215
|
+
|
2216
|
+
# Update properties of this object
|
2217
|
+
def update!(**args)
|
2218
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
2219
|
+
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
2220
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
2221
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
2222
|
+
end
|
2223
|
+
end
|
2224
|
+
|
2225
|
+
#
|
2226
|
+
class OrdersSetLineItemMetadataResponse
|
2227
|
+
include Google::Apis::Core::Hashable
|
2228
|
+
|
2229
|
+
# The status of the execution.
|
2230
|
+
# Corresponds to the JSON property `executionStatus`
|
2231
|
+
# @return [String]
|
2232
|
+
attr_accessor :execution_status
|
2233
|
+
|
2234
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
2235
|
+
# ordersSetLineItemMetadataResponse".
|
2236
|
+
# Corresponds to the JSON property `kind`
|
2237
|
+
# @return [String]
|
2238
|
+
attr_accessor :kind
|
2239
|
+
|
2240
|
+
def initialize(**args)
|
2241
|
+
update!(**args)
|
2242
|
+
end
|
2243
|
+
|
2244
|
+
# Update properties of this object
|
2245
|
+
def update!(**args)
|
2246
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
2247
|
+
@kind = args[:kind] if args.key?(:kind)
|
2248
|
+
end
|
2249
|
+
end
|
2250
|
+
|
2067
2251
|
#
|
2068
2252
|
class OrdersShipLineItemsRequest
|
2069
2253
|
include Google::Apis::Core::Hashable
|
@@ -2142,6 +2326,79 @@ module Google
|
|
2142
2326
|
end
|
2143
2327
|
end
|
2144
2328
|
|
2329
|
+
#
|
2330
|
+
class OrdersUpdateLineItemShippingDetailsRequest
|
2331
|
+
include Google::Apis::Core::Hashable
|
2332
|
+
|
2333
|
+
# Updated delivery by date, in ISO 8601 format. If not specified only ship by
|
2334
|
+
# date is updated.
|
2335
|
+
# Corresponds to the JSON property `deliverByDate`
|
2336
|
+
# @return [String]
|
2337
|
+
attr_accessor :deliver_by_date
|
2338
|
+
|
2339
|
+
# The ID of the line item to set metadata. Either lineItemId or productId is
|
2340
|
+
# required.
|
2341
|
+
# Corresponds to the JSON property `lineItemId`
|
2342
|
+
# @return [String]
|
2343
|
+
attr_accessor :line_item_id
|
2344
|
+
|
2345
|
+
# The ID of the operation. Unique across all operations for a given order.
|
2346
|
+
# Corresponds to the JSON property `operationId`
|
2347
|
+
# @return [String]
|
2348
|
+
attr_accessor :operation_id
|
2349
|
+
|
2350
|
+
# The ID of the product to set metadata. This is the REST ID used in the
|
2351
|
+
# products service. Either lineItemId or productId is required.
|
2352
|
+
# Corresponds to the JSON property `productId`
|
2353
|
+
# @return [String]
|
2354
|
+
attr_accessor :product_id
|
2355
|
+
|
2356
|
+
# Updated ship by date, in ISO 8601 format. If not specified only deliver by
|
2357
|
+
# date is updated.
|
2358
|
+
# Corresponds to the JSON property `shipByDate`
|
2359
|
+
# @return [String]
|
2360
|
+
attr_accessor :ship_by_date
|
2361
|
+
|
2362
|
+
def initialize(**args)
|
2363
|
+
update!(**args)
|
2364
|
+
end
|
2365
|
+
|
2366
|
+
# Update properties of this object
|
2367
|
+
def update!(**args)
|
2368
|
+
@deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date)
|
2369
|
+
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
2370
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
2371
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
2372
|
+
@ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date)
|
2373
|
+
end
|
2374
|
+
end
|
2375
|
+
|
2376
|
+
#
|
2377
|
+
class OrdersUpdateLineItemShippingDetailsResponse
|
2378
|
+
include Google::Apis::Core::Hashable
|
2379
|
+
|
2380
|
+
# The status of the execution.
|
2381
|
+
# Corresponds to the JSON property `executionStatus`
|
2382
|
+
# @return [String]
|
2383
|
+
attr_accessor :execution_status
|
2384
|
+
|
2385
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
2386
|
+
# ordersUpdateLineItemShippingDetailsResponse".
|
2387
|
+
# Corresponds to the JSON property `kind`
|
2388
|
+
# @return [String]
|
2389
|
+
attr_accessor :kind
|
2390
|
+
|
2391
|
+
def initialize(**args)
|
2392
|
+
update!(**args)
|
2393
|
+
end
|
2394
|
+
|
2395
|
+
# Update properties of this object
|
2396
|
+
def update!(**args)
|
2397
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
2398
|
+
@kind = args[:kind] if args.key?(:kind)
|
2399
|
+
end
|
2400
|
+
end
|
2401
|
+
|
2145
2402
|
#
|
2146
2403
|
class OrdersUpdateMerchantOrderIdRequest
|
2147
2404
|
include Google::Apis::Core::Hashable
|