google-api-client 0.24.2 → 0.24.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +68 -0
  3. data/README.md +9 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +5 -4
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +90 -87
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +17 -15
  7. data/generated/google/apis/admin_directory_v1.rb +1 -1
  8. data/generated/google/apis/admin_directory_v1/classes.rb +155 -0
  9. data/generated/google/apis/admin_directory_v1/representations.rb +82 -0
  10. data/generated/google/apis/alertcenter_v1beta1.rb +31 -0
  11. data/generated/google/apis/alertcenter_v1beta1/classes.rb +835 -0
  12. data/generated/google/apis/alertcenter_v1beta1/representations.rb +394 -0
  13. data/generated/google/apis/alertcenter_v1beta1/service.rb +302 -0
  14. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  15. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +37 -0
  16. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
  17. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +8 -1
  18. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  19. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -4
  20. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  21. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  22. data/generated/google/apis/androidpublisher_v2/service.rb +5 -1
  23. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  24. data/generated/google/apis/androidpublisher_v3/service.rb +5 -1
  25. data/generated/google/apis/appengine_v1.rb +1 -1
  26. data/generated/google/apis/appengine_v1/classes.rb +8 -1
  27. data/generated/google/apis/appengine_v1/representations.rb +1 -0
  28. data/generated/google/apis/appengine_v1beta.rb +1 -1
  29. data/generated/google/apis/appengine_v1beta/classes.rb +1 -1
  30. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  31. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +6 -5
  32. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +12 -10
  33. data/generated/google/apis/calendar_v3.rb +1 -1
  34. data/generated/google/apis/calendar_v3/service.rb +52 -18
  35. data/generated/google/apis/cloudasset_v1beta1.rb +34 -0
  36. data/generated/google/apis/cloudasset_v1beta1/classes.rb +798 -0
  37. data/generated/google/apis/cloudasset_v1beta1/representations.rb +263 -0
  38. data/generated/google/apis/cloudasset_v1beta1/service.rb +313 -0
  39. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1/classes.rb +42 -5
  41. data/generated/google/apis/cloudbuild_v1/representations.rb +6 -0
  42. data/generated/google/apis/cloudiot_v1.rb +1 -1
  43. data/generated/google/apis/cloudiot_v1/classes.rb +59 -0
  44. data/generated/google/apis/cloudiot_v1/representations.rb +28 -0
  45. data/generated/google/apis/cloudiot_v1/service.rb +94 -0
  46. data/generated/google/apis/composer_v1.rb +1 -1
  47. data/generated/google/apis/composer_v1/classes.rb +1 -0
  48. data/generated/google/apis/composer_v1beta1.rb +1 -1
  49. data/generated/google/apis/composer_v1beta1/classes.rb +34 -5
  50. data/generated/google/apis/composer_v1beta1/representations.rb +1 -0
  51. data/generated/google/apis/compute_alpha.rb +1 -1
  52. data/generated/google/apis/compute_alpha/classes.rb +227 -48
  53. data/generated/google/apis/compute_alpha/representations.rb +84 -1
  54. data/generated/google/apis/compute_alpha/service.rb +50 -10
  55. data/generated/google/apis/compute_beta.rb +1 -1
  56. data/generated/google/apis/compute_beta/classes.rb +593 -77
  57. data/generated/google/apis/compute_beta/representations.rb +224 -18
  58. data/generated/google/apis/compute_beta/service.rb +174 -3
  59. data/generated/google/apis/compute_v1.rb +1 -1
  60. data/generated/google/apis/compute_v1/classes.rb +41 -18
  61. data/generated/google/apis/compute_v1/representations.rb +3 -0
  62. data/generated/google/apis/content_v2.rb +1 -1
  63. data/generated/google/apis/content_v2/classes.rb +372 -119
  64. data/generated/google/apis/content_v2/representations.rb +157 -39
  65. data/generated/google/apis/content_v2/service.rb +101 -11
  66. data/generated/google/apis/content_v2sandbox.rb +1 -1
  67. data/generated/google/apis/content_v2sandbox/classes.rb +372 -119
  68. data/generated/google/apis/content_v2sandbox/representations.rb +157 -39
  69. data/generated/google/apis/content_v2sandbox/service.rb +90 -0
  70. data/generated/google/apis/customsearch_v1.rb +1 -1
  71. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  72. data/generated/google/apis/dataflow_v1b3/classes.rb +7 -0
  73. data/generated/google/apis/dataflow_v1b3/representations.rb +1 -0
  74. data/generated/google/apis/dataproc_v1.rb +1 -1
  75. data/generated/google/apis/dataproc_v1/classes.rb +12 -0
  76. data/generated/google/apis/dataproc_v1/representations.rb +2 -0
  77. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  78. data/generated/google/apis/dataproc_v1beta2/classes.rb +21 -6
  79. data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
  80. data/generated/google/apis/datastore_v1.rb +1 -1
  81. data/generated/google/apis/datastore_v1/classes.rb +2 -2
  82. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  83. data/generated/google/apis/datastore_v1beta3/classes.rb +2 -2
  84. data/generated/google/apis/dlp_v2.rb +1 -1
  85. data/generated/google/apis/dlp_v2/classes.rb +110 -5
  86. data/generated/google/apis/dlp_v2/representations.rb +17 -0
  87. data/generated/google/apis/dlp_v2/service.rb +41 -3
  88. data/generated/google/apis/file_v1beta1.rb +1 -1
  89. data/generated/google/apis/file_v1beta1/classes.rb +0 -234
  90. data/generated/google/apis/file_v1beta1/representations.rb +0 -79
  91. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  92. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +19 -1
  93. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +3 -0
  94. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -1
  95. data/generated/google/apis/firebasehosting_v1beta1.rb +43 -0
  96. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +767 -0
  97. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +337 -0
  98. data/generated/google/apis/firebasehosting_v1beta1/service.rb +502 -0
  99. data/generated/google/apis/firebaserules_v1.rb +1 -1
  100. data/generated/google/apis/firebaserules_v1/classes.rb +8 -0
  101. data/generated/google/apis/firebaserules_v1/representations.rb +1 -0
  102. data/generated/google/apis/firebaserules_v1/service.rb +1 -1
  103. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  104. data/generated/google/apis/firestore_v1beta2/service.rb +80 -80
  105. data/generated/google/apis/games_v1.rb +1 -1
  106. data/generated/google/apis/games_v1/service.rb +4 -1
  107. data/generated/google/apis/iam_v1.rb +1 -1
  108. data/generated/google/apis/iam_v1/classes.rb +3 -1
  109. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  110. data/generated/google/apis/iamcredentials_v1/service.rb +0 -10
  111. data/generated/google/apis/iap_v1beta1.rb +1 -1
  112. data/generated/google/apis/iap_v1beta1/service.rb +339 -0
  113. data/generated/google/apis/jobs_v2.rb +1 -1
  114. data/generated/google/apis/jobs_v2/classes.rb +45 -37
  115. data/generated/google/apis/jobs_v3.rb +1 -1
  116. data/generated/google/apis/jobs_v3/classes.rb +21 -18
  117. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  118. data/generated/google/apis/jobs_v3p1beta1/classes.rb +45 -20
  119. data/generated/google/apis/jobs_v3p1beta1/representations.rb +2 -0
  120. data/generated/google/apis/language_v1.rb +1 -1
  121. data/generated/google/apis/language_v1beta1.rb +1 -1
  122. data/generated/google/apis/language_v1beta2.rb +1 -1
  123. data/generated/google/apis/logging_v2.rb +1 -1
  124. data/generated/google/apis/logging_v2/classes.rb +12 -0
  125. data/generated/google/apis/logging_v2/representations.rb +1 -0
  126. data/generated/google/apis/logging_v2beta1.rb +1 -1
  127. data/generated/google/apis/logging_v2beta1/classes.rb +12 -0
  128. data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
  129. data/generated/google/apis/ml_v1.rb +1 -1
  130. data/generated/google/apis/ml_v1/classes.rb +2 -2
  131. data/generated/google/apis/monitoring_v3.rb +1 -1
  132. data/generated/google/apis/monitoring_v3/classes.rb +19 -17
  133. data/generated/google/apis/monitoring_v3/representations.rb +1 -2
  134. data/generated/google/apis/partners_v2.rb +1 -1
  135. data/generated/google/apis/partners_v2/classes.rb +18 -15
  136. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  137. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +18 -15
  138. data/generated/google/apis/redis_v1.rb +1 -1
  139. data/generated/google/apis/redis_v1/classes.rb +1 -1
  140. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  141. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1 -1
  142. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  143. data/generated/google/apis/servicemanagement_v1/classes.rb +2 -150
  144. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -42
  145. data/generated/google/apis/servicenetworking_v1beta.rb +38 -0
  146. data/generated/google/apis/servicenetworking_v1beta/classes.rb +3440 -0
  147. data/generated/google/apis/servicenetworking_v1beta/representations.rb +992 -0
  148. data/generated/google/apis/servicenetworking_v1beta/service.rb +227 -0
  149. data/generated/google/apis/serviceusage_v1.rb +1 -1
  150. data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
  151. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  152. data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
  153. data/generated/google/apis/serviceuser_v1.rb +1 -1
  154. data/generated/google/apis/serviceuser_v1/classes.rb +2 -150
  155. data/generated/google/apis/serviceuser_v1/representations.rb +0 -42
  156. data/generated/google/apis/spanner_v1.rb +1 -1
  157. data/generated/google/apis/spanner_v1/classes.rb +308 -30
  158. data/generated/google/apis/spanner_v1/representations.rb +17 -0
  159. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  160. data/generated/google/apis/streetviewpublish_v1/classes.rb +12 -0
  161. data/generated/google/apis/streetviewpublish_v1/representations.rb +1 -0
  162. data/generated/google/apis/testing_v1.rb +1 -1
  163. data/generated/google/apis/testing_v1/classes.rb +47 -0
  164. data/generated/google/apis/testing_v1/representations.rb +18 -0
  165. data/generated/google/apis/videointelligence_v1.rb +1 -1
  166. data/generated/google/apis/videointelligence_v1/classes.rb +676 -0
  167. data/generated/google/apis/videointelligence_v1/representations.rb +306 -0
  168. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  169. data/generated/google/apis/videointelligence_v1beta2/classes.rb +676 -0
  170. data/generated/google/apis/videointelligence_v1beta2/representations.rb +306 -0
  171. data/generated/google/apis/{videointelligence_v1beta1.rb → videointelligence_v1p1beta1.rb} +6 -6
  172. data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/classes.rb +885 -489
  173. data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/representations.rb +357 -194
  174. data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/service.rb +12 -12
  175. data/generated/google/apis/vision_v1.rb +1 -1
  176. data/generated/google/apis/vision_v1/classes.rb +1 -1
  177. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  178. data/generated/google/apis/vision_v1p1beta1/classes.rb +1 -1
  179. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  180. data/generated/google/apis/vision_v1p2beta1/classes.rb +1 -1
  181. data/generated/google/apis/youtube_partner_v1.rb +2 -2
  182. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  183. data/generated/google/apis/youtube_partner_v1/service.rb +1 -1
  184. data/lib/google/apis/version.rb +1 -1
  185. metadata +22 -6
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/compute/docs/reference/latest/
26
26
  module ComputeV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180828'
28
+ REVISION = '20180916'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -3295,6 +3295,11 @@ module Google
3295
3295
  class CustomerEncryptionKey
3296
3296
  include Google::Apis::Core::Hashable
3297
3297
 
3298
+ # The name of the encryption key that is stored in Google Cloud KMS.
3299
+ # Corresponds to the JSON property `kmsKeyName`
3300
+ # @return [String]
3301
+ attr_accessor :kms_key_name
3302
+
3298
3303
  # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648
3299
3304
  # base64 to either encrypt or decrypt this resource.
3300
3305
  # Corresponds to the JSON property `rawKey`
@@ -3313,6 +3318,7 @@ module Google
3313
3318
 
3314
3319
  # Update properties of this object
3315
3320
  def update!(**args)
3321
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
3316
3322
  @raw_key = args[:raw_key] if args.key?(:raw_key)
3317
3323
  @sha256 = args[:sha256] if args.key?(:sha256)
3318
3324
  end
@@ -4902,7 +4908,7 @@ module Google
4902
4908
  # rule supports either IPv4 or IPv6.
4903
4909
  # When the load balancing scheme is INTERNAL_SELF_MANAGED, this must be a URL
4904
4910
  # reference to an existing Address resource ( internal regional static IP
4905
- # address).
4911
+ # address), with a purpose of GCE_END_POINT and address_type of INTERNAL.
4906
4912
  # When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP
4907
4913
  # address belonging to the network/subnet configured for the forwarding rule. By
4908
4914
  # default, if this field is empty, an ephemeral internal IP address will be
@@ -5508,6 +5514,13 @@ module Google
5508
5514
  # @return [String]
5509
5515
  attr_accessor :request_path
5510
5516
 
5517
+ # The string to match anywhere in the first 1024 bytes of the response body. If
5518
+ # left empty (the default value), the status code determines health. The
5519
+ # response data can only be ASCII.
5520
+ # Corresponds to the JSON property `response`
5521
+ # @return [String]
5522
+ attr_accessor :response
5523
+
5511
5524
  def initialize(**args)
5512
5525
  update!(**args)
5513
5526
  end
@@ -5519,6 +5532,7 @@ module Google
5519
5532
  @port_name = args[:port_name] if args.key?(:port_name)
5520
5533
  @proxy_header = args[:proxy_header] if args.key?(:proxy_header)
5521
5534
  @request_path = args[:request_path] if args.key?(:request_path)
5535
+ @response = args[:response] if args.key?(:response)
5522
5536
  end
5523
5537
  end
5524
5538
 
@@ -5556,6 +5570,13 @@ module Google
5556
5570
  # @return [String]
5557
5571
  attr_accessor :request_path
5558
5572
 
5573
+ # The string to match anywhere in the first 1024 bytes of the response body. If
5574
+ # left empty (the default value), the status code determines health. The
5575
+ # response data can only be ASCII.
5576
+ # Corresponds to the JSON property `response`
5577
+ # @return [String]
5578
+ attr_accessor :response
5579
+
5559
5580
  def initialize(**args)
5560
5581
  update!(**args)
5561
5582
  end
@@ -5567,6 +5588,7 @@ module Google
5567
5588
  @port_name = args[:port_name] if args.key?(:port_name)
5568
5589
  @proxy_header = args[:proxy_header] if args.key?(:proxy_header)
5569
5590
  @request_path = args[:request_path] if args.key?(:request_path)
5591
+ @response = args[:response] if args.key?(:response)
5570
5592
  end
5571
5593
  end
5572
5594
 
@@ -10505,8 +10527,8 @@ module Google
10505
10527
  # @return [Fixnum]
10506
10528
  attr_accessor :license_code
10507
10529
 
10508
- # [Output Only] Name of the resource. The name is 1-63 characters long and
10509
- # complies with RFC1035.
10530
+ # Name of the resource. The name must be 1-63 characters long and comply with
10531
+ # RFC1035.
10510
10532
  # Corresponds to the JSON property `name`
10511
10533
  # @return [String]
10512
10534
  attr_accessor :name
@@ -11472,9 +11494,9 @@ module Google
11472
11494
  end
11473
11495
  end
11474
11496
 
11475
- # Represents a Network resource. Read Networks and Firewalls for more
11476
- # information. (== resource_for v1.networks ==) (== resource_for beta.networks ==
11477
- # )
11497
+ # Represents a Network resource. Read Virtual Private Cloud (VPC) Network
11498
+ # Overview for more information. (== resource_for v1.networks ==) (==
11499
+ # resource_for beta.networks ==)
11478
11500
  class Network
11479
11501
  include Google::Apis::Core::Hashable
11480
11502
 
@@ -11485,10 +11507,10 @@ module Google
11485
11507
  # @return [String]
11486
11508
  attr_accessor :i_pv4_range
11487
11509
 
11488
- # When set to true, the network is created in "auto subnet mode". When set to
11489
- # false, the network is in "custom subnet mode".
11490
- # In "auto subnet mode", a newly created network is assigned the default CIDR of
11491
- # 10.128.0.0/9 and it automatically creates one subnetwork per region.
11510
+ # When set to true, the VPC network is created in "auto" mode. When set to false,
11511
+ # the VPC network is created in "custom" mode.
11512
+ # An auto mode VPC network starts with one subnet per region. Each subnet has a
11513
+ # predetermined range as described in Auto mode VPC network IP ranges.
11492
11514
  # Corresponds to the JSON property `autoCreateSubnetworks`
11493
11515
  # @return [Boolean]
11494
11516
  attr_accessor :auto_create_subnetworks
@@ -11505,9 +11527,8 @@ module Google
11505
11527
  # @return [String]
11506
11528
  attr_accessor :description
11507
11529
 
11508
- # A gateway address for default routing to other networks. This value is read
11509
- # only and is selected by the Google Compute Engine, typically as the first
11510
- # usable address in the IPv4Range.
11530
+ # [Output Only] The gateway address for default routing out of the network. This
11531
+ # value is read only and is selected by GCP.
11511
11532
  # Corresponds to the JSON property `gatewayIPv4`
11512
11533
  # @return [String]
11513
11534
  attr_accessor :gateway_i_pv4
@@ -11551,7 +11572,7 @@ module Google
11551
11572
  attr_accessor :self_link
11552
11573
 
11553
11574
  # [Output Only] Server-defined fully-qualified URLs for all subnetworks in this
11554
- # network.
11575
+ # VPC network.
11555
11576
  # Corresponds to the JSON property `subnetworks`
11556
11577
  # @return [Array<String>]
11557
11578
  attr_accessor :subnetworks
@@ -11849,9 +11870,9 @@ module Google
11849
11870
  include Google::Apis::Core::Hashable
11850
11871
 
11851
11872
  # The network-wide routing mode to use. If set to REGIONAL, this network's cloud
11852
- # routers will only advertise routes with subnetworks of this network in the
11853
- # same region as the router. If set to GLOBAL, this network's cloud routers will
11854
- # advertise routes with all subnetworks of this network, across regions.
11873
+ # routers will only advertise routes with subnets of this network in the same
11874
+ # region as the router. If set to GLOBAL, this network's cloud routers will
11875
+ # advertise routes with all subnets of this network, across regions.
11855
11876
  # Corresponds to the JSON property `routingMode`
11856
11877
  # @return [String]
11857
11878
  attr_accessor :routing_mode
@@ -17961,7 +17982,9 @@ module Google
17961
17982
  # @return [String]
17962
17983
  attr_accessor :description
17963
17984
 
17964
- # Whether to enable flow logging for this subnetwork.
17985
+ # Whether to enable flow logging for this subnetwork. If this field is not
17986
+ # explicitly set, it will not appear in get listings. If not set the default
17987
+ # behavior is to disable flow logging.
17965
17988
  # Corresponds to the JSON property `enableFlowLogs`
17966
17989
  # @return [Boolean]
17967
17990
  attr_accessor :enable_flow_logs
@@ -3932,6 +3932,7 @@ module Google
3932
3932
  class CustomerEncryptionKey
3933
3933
  # @private
3934
3934
  class Representation < Google::Apis::Core::JsonRepresentation
3935
+ property :kms_key_name, as: 'kmsKeyName'
3935
3936
  property :raw_key, as: 'rawKey'
3936
3937
  property :sha256, as: 'sha256'
3937
3938
  end
@@ -4450,6 +4451,7 @@ module Google
4450
4451
  property :port_name, as: 'portName'
4451
4452
  property :proxy_header, as: 'proxyHeader'
4452
4453
  property :request_path, as: 'requestPath'
4454
+ property :response, as: 'response'
4453
4455
  end
4454
4456
  end
4455
4457
 
@@ -4461,6 +4463,7 @@ module Google
4461
4463
  property :port_name, as: 'portName'
4462
4464
  property :proxy_header, as: 'proxyHeader'
4463
4465
  property :request_path, as: 'requestPath'
4466
+ property :response, as: 'response'
4464
4467
  end
4465
4468
  end
4466
4469
 
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/shopping-content
27
27
  module ContentV2
28
28
  VERSION = 'V2'
29
- REVISION = '20180914'
29
+ REVISION = '20181002'
30
30
 
31
31
  # Manage your product listings and accounts for Google Shopping
32
32
  AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
@@ -1560,6 +1560,31 @@ module Google
1560
1560
  end
1561
1561
  end
1562
1562
 
1563
+ #
1564
+ class CustomerReturnReason
1565
+ include Google::Apis::Core::Hashable
1566
+
1567
+ #
1568
+ # Corresponds to the JSON property `description`
1569
+ # @return [String]
1570
+ attr_accessor :description
1571
+
1572
+ #
1573
+ # Corresponds to the JSON property `reasonCode`
1574
+ # @return [String]
1575
+ attr_accessor :reason_code
1576
+
1577
+ def initialize(**args)
1578
+ update!(**args)
1579
+ end
1580
+
1581
+ # Update properties of this object
1582
+ def update!(**args)
1583
+ @description = args[:description] if args.key?(:description)
1584
+ @reason_code = args[:reason_code] if args.key?(:reason_code)
1585
+ end
1586
+ end
1587
+
1563
1588
  #
1564
1589
  class CutoffTime
1565
1590
  include Google::Apis::Core::Hashable
@@ -3697,6 +3722,104 @@ module Google
3697
3722
  end
3698
3723
  end
3699
3724
 
3725
+ #
3726
+ class MerchantOrderReturn
3727
+ include Google::Apis::Core::Hashable
3728
+
3729
+ #
3730
+ # Corresponds to the JSON property `creationDate`
3731
+ # @return [String]
3732
+ attr_accessor :creation_date
3733
+
3734
+ #
3735
+ # Corresponds to the JSON property `merchantOrderId`
3736
+ # @return [String]
3737
+ attr_accessor :merchant_order_id
3738
+
3739
+ #
3740
+ # Corresponds to the JSON property `orderId`
3741
+ # @return [String]
3742
+ attr_accessor :order_id
3743
+
3744
+ #
3745
+ # Corresponds to the JSON property `orderReturnId`
3746
+ # @return [String]
3747
+ attr_accessor :order_return_id
3748
+
3749
+ #
3750
+ # Corresponds to the JSON property `returnItems`
3751
+ # @return [Array<Google::Apis::ContentV2::MerchantOrderReturnItem>]
3752
+ attr_accessor :return_items
3753
+
3754
+ #
3755
+ # Corresponds to the JSON property `returnShipments`
3756
+ # @return [Array<Google::Apis::ContentV2::ReturnShipment>]
3757
+ attr_accessor :return_shipments
3758
+
3759
+ def initialize(**args)
3760
+ update!(**args)
3761
+ end
3762
+
3763
+ # Update properties of this object
3764
+ def update!(**args)
3765
+ @creation_date = args[:creation_date] if args.key?(:creation_date)
3766
+ @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
3767
+ @order_id = args[:order_id] if args.key?(:order_id)
3768
+ @order_return_id = args[:order_return_id] if args.key?(:order_return_id)
3769
+ @return_items = args[:return_items] if args.key?(:return_items)
3770
+ @return_shipments = args[:return_shipments] if args.key?(:return_shipments)
3771
+ end
3772
+ end
3773
+
3774
+ #
3775
+ class MerchantOrderReturnItem
3776
+ include Google::Apis::Core::Hashable
3777
+
3778
+ #
3779
+ # Corresponds to the JSON property `customerReturnReason`
3780
+ # @return [Google::Apis::ContentV2::CustomerReturnReason]
3781
+ attr_accessor :customer_return_reason
3782
+
3783
+ #
3784
+ # Corresponds to the JSON property `itemId`
3785
+ # @return [String]
3786
+ attr_accessor :item_id
3787
+
3788
+ #
3789
+ # Corresponds to the JSON property `merchantReturnReason`
3790
+ # @return [Google::Apis::ContentV2::RefundReason]
3791
+ attr_accessor :merchant_return_reason
3792
+
3793
+ #
3794
+ # Corresponds to the JSON property `product`
3795
+ # @return [Google::Apis::ContentV2::OrderLineItemProduct]
3796
+ attr_accessor :product
3797
+
3798
+ #
3799
+ # Corresponds to the JSON property `returnShipmentIds`
3800
+ # @return [Array<String>]
3801
+ attr_accessor :return_shipment_ids
3802
+
3803
+ #
3804
+ # Corresponds to the JSON property `state`
3805
+ # @return [String]
3806
+ attr_accessor :state
3807
+
3808
+ def initialize(**args)
3809
+ update!(**args)
3810
+ end
3811
+
3812
+ # Update properties of this object
3813
+ def update!(**args)
3814
+ @customer_return_reason = args[:customer_return_reason] if args.key?(:customer_return_reason)
3815
+ @item_id = args[:item_id] if args.key?(:item_id)
3816
+ @merchant_return_reason = args[:merchant_return_reason] if args.key?(:merchant_return_reason)
3817
+ @product = args[:product] if args.key?(:product)
3818
+ @return_shipment_ids = args[:return_shipment_ids] if args.key?(:return_shipment_ids)
3819
+ @state = args[:state] if args.key?(:state)
3820
+ end
3821
+ end
3822
+
3700
3823
  #
3701
3824
  class Order
3702
3825
  include Google::Apis::Core::Hashable
@@ -3770,10 +3893,10 @@ module Google
3770
3893
  # @return [String]
3771
3894
  attr_accessor :placed_date
3772
3895
 
3773
- # The details of the merchant provided promotions applied to the order. More
3774
- # details about the program are here.
3896
+ # Deprecated. The details of the merchant provided promotions applied to the
3897
+ # order. More details about the program are here.
3775
3898
  # Corresponds to the JSON property `promotions`
3776
- # @return [Array<Google::Apis::ContentV2::OrderPromotion>]
3899
+ # @return [Array<Google::Apis::ContentV2::OrderLegacyPromotion>]
3777
3900
  attr_accessor :promotions
3778
3901
 
3779
3902
  # Refunds for the order.
@@ -3953,8 +4076,7 @@ module Google
3953
4076
  class OrderCustomer
3954
4077
  include Google::Apis::Core::Hashable
3955
4078
 
3956
- # Email address that should be used for order related communications. In certain
3957
- # cases this might not be a real users email, but a proxy email.
4079
+ # Deprecated.
3958
4080
  # Corresponds to the JSON property `email`
3959
4081
  # @return [String]
3960
4082
  attr_accessor :email
@@ -4047,6 +4169,114 @@ module Google
4047
4169
  end
4048
4170
  end
4049
4171
 
4172
+ #
4173
+ class OrderLegacyPromotion
4174
+ include Google::Apis::Core::Hashable
4175
+
4176
+ #
4177
+ # Corresponds to the JSON property `benefits`
4178
+ # @return [Array<Google::Apis::ContentV2::OrderLegacyPromotionBenefit>]
4179
+ attr_accessor :benefits
4180
+
4181
+ # The date and time frame when the promotion is active and ready for validation
4182
+ # review. Note that the promotion live time may be delayed for a few hours due
4183
+ # to the validation review.
4184
+ # Start date and end date are separated by a forward slash (/). The start date
4185
+ # is specified by the format (YYYY-MM-DD), followed by the letter ?T?, the time
4186
+ # of the day when the sale starts (in Greenwich Mean Time, GMT), followed by an
4187
+ # expression of the time zone for the sale. The end date is in the same format.
4188
+ # Corresponds to the JSON property `effectiveDates`
4189
+ # @return [String]
4190
+ attr_accessor :effective_dates
4191
+
4192
+ # Optional. The text code that corresponds to the promotion when applied on the
4193
+ # retailer?s website.
4194
+ # Corresponds to the JSON property `genericRedemptionCode`
4195
+ # @return [String]
4196
+ attr_accessor :generic_redemption_code
4197
+
4198
+ # The unique ID of the promotion.
4199
+ # Corresponds to the JSON property `id`
4200
+ # @return [String]
4201
+ attr_accessor :id
4202
+
4203
+ # The full title of the promotion.
4204
+ # Corresponds to the JSON property `longTitle`
4205
+ # @return [String]
4206
+ attr_accessor :long_title
4207
+
4208
+ # Whether the promotion is applicable to all products or only specific products.
4209
+ # Corresponds to the JSON property `productApplicability`
4210
+ # @return [String]
4211
+ attr_accessor :product_applicability
4212
+
4213
+ # Indicates that the promotion is valid online.
4214
+ # Corresponds to the JSON property `redemptionChannel`
4215
+ # @return [String]
4216
+ attr_accessor :redemption_channel
4217
+
4218
+ def initialize(**args)
4219
+ update!(**args)
4220
+ end
4221
+
4222
+ # Update properties of this object
4223
+ def update!(**args)
4224
+ @benefits = args[:benefits] if args.key?(:benefits)
4225
+ @effective_dates = args[:effective_dates] if args.key?(:effective_dates)
4226
+ @generic_redemption_code = args[:generic_redemption_code] if args.key?(:generic_redemption_code)
4227
+ @id = args[:id] if args.key?(:id)
4228
+ @long_title = args[:long_title] if args.key?(:long_title)
4229
+ @product_applicability = args[:product_applicability] if args.key?(:product_applicability)
4230
+ @redemption_channel = args[:redemption_channel] if args.key?(:redemption_channel)
4231
+ end
4232
+ end
4233
+
4234
+ #
4235
+ class OrderLegacyPromotionBenefit
4236
+ include Google::Apis::Core::Hashable
4237
+
4238
+ # The discount in the order price when the promotion is applied.
4239
+ # Corresponds to the JSON property `discount`
4240
+ # @return [Google::Apis::ContentV2::Price]
4241
+ attr_accessor :discount
4242
+
4243
+ # The OfferId(s) that were purchased in this order and map to this specific
4244
+ # benefit of the promotion.
4245
+ # Corresponds to the JSON property `offerIds`
4246
+ # @return [Array<String>]
4247
+ attr_accessor :offer_ids
4248
+
4249
+ # Further describes the benefit of the promotion. Note that we will expand on
4250
+ # this enumeration as we support new promotion sub-types.
4251
+ # Corresponds to the JSON property `subType`
4252
+ # @return [String]
4253
+ attr_accessor :sub_type
4254
+
4255
+ # The impact on tax when the promotion is applied.
4256
+ # Corresponds to the JSON property `taxImpact`
4257
+ # @return [Google::Apis::ContentV2::Price]
4258
+ attr_accessor :tax_impact
4259
+
4260
+ # Describes whether the promotion applies to products (e.g. 20% off) or to
4261
+ # shipping (e.g. Free Shipping).
4262
+ # Corresponds to the JSON property `type`
4263
+ # @return [String]
4264
+ attr_accessor :type
4265
+
4266
+ def initialize(**args)
4267
+ update!(**args)
4268
+ end
4269
+
4270
+ # Update properties of this object
4271
+ def update!(**args)
4272
+ @discount = args[:discount] if args.key?(:discount)
4273
+ @offer_ids = args[:offer_ids] if args.key?(:offer_ids)
4274
+ @sub_type = args[:sub_type] if args.key?(:sub_type)
4275
+ @tax_impact = args[:tax_impact] if args.key?(:tax_impact)
4276
+ @type = args[:type] if args.key?(:type)
4277
+ end
4278
+ end
4279
+
4050
4280
  #
4051
4281
  class OrderLineItem
4052
4282
  include Google::Apis::Core::Hashable
@@ -4467,114 +4697,6 @@ module Google
4467
4697
  end
4468
4698
  end
4469
4699
 
4470
- #
4471
- class OrderPromotion
4472
- include Google::Apis::Core::Hashable
4473
-
4474
- #
4475
- # Corresponds to the JSON property `benefits`
4476
- # @return [Array<Google::Apis::ContentV2::OrderPromotionBenefit>]
4477
- attr_accessor :benefits
4478
-
4479
- # The date and time frame when the promotion is active and ready for validation
4480
- # review. Note that the promotion live time may be delayed for a few hours due
4481
- # to the validation review.
4482
- # Start date and end date are separated by a forward slash (/). The start date
4483
- # is specified by the format (YYYY-MM-DD), followed by the letter ?T?, the time
4484
- # of the day when the sale starts (in Greenwich Mean Time, GMT), followed by an
4485
- # expression of the time zone for the sale. The end date is in the same format.
4486
- # Corresponds to the JSON property `effectiveDates`
4487
- # @return [String]
4488
- attr_accessor :effective_dates
4489
-
4490
- # Optional. The text code that corresponds to the promotion when applied on the
4491
- # retailer?s website.
4492
- # Corresponds to the JSON property `genericRedemptionCode`
4493
- # @return [String]
4494
- attr_accessor :generic_redemption_code
4495
-
4496
- # The unique ID of the promotion.
4497
- # Corresponds to the JSON property `id`
4498
- # @return [String]
4499
- attr_accessor :id
4500
-
4501
- # The full title of the promotion.
4502
- # Corresponds to the JSON property `longTitle`
4503
- # @return [String]
4504
- attr_accessor :long_title
4505
-
4506
- # Whether the promotion is applicable to all products or only specific products.
4507
- # Corresponds to the JSON property `productApplicability`
4508
- # @return [String]
4509
- attr_accessor :product_applicability
4510
-
4511
- # Indicates that the promotion is valid online.
4512
- # Corresponds to the JSON property `redemptionChannel`
4513
- # @return [String]
4514
- attr_accessor :redemption_channel
4515
-
4516
- def initialize(**args)
4517
- update!(**args)
4518
- end
4519
-
4520
- # Update properties of this object
4521
- def update!(**args)
4522
- @benefits = args[:benefits] if args.key?(:benefits)
4523
- @effective_dates = args[:effective_dates] if args.key?(:effective_dates)
4524
- @generic_redemption_code = args[:generic_redemption_code] if args.key?(:generic_redemption_code)
4525
- @id = args[:id] if args.key?(:id)
4526
- @long_title = args[:long_title] if args.key?(:long_title)
4527
- @product_applicability = args[:product_applicability] if args.key?(:product_applicability)
4528
- @redemption_channel = args[:redemption_channel] if args.key?(:redemption_channel)
4529
- end
4530
- end
4531
-
4532
- #
4533
- class OrderPromotionBenefit
4534
- include Google::Apis::Core::Hashable
4535
-
4536
- # The discount in the order price when the promotion is applied.
4537
- # Corresponds to the JSON property `discount`
4538
- # @return [Google::Apis::ContentV2::Price]
4539
- attr_accessor :discount
4540
-
4541
- # The OfferId(s) that were purchased in this order and map to this specific
4542
- # benefit of the promotion.
4543
- # Corresponds to the JSON property `offerIds`
4544
- # @return [Array<String>]
4545
- attr_accessor :offer_ids
4546
-
4547
- # Further describes the benefit of the promotion. Note that we will expand on
4548
- # this enumeration as we support new promotion sub-types.
4549
- # Corresponds to the JSON property `subType`
4550
- # @return [String]
4551
- attr_accessor :sub_type
4552
-
4553
- # The impact on tax when the promotion is applied.
4554
- # Corresponds to the JSON property `taxImpact`
4555
- # @return [Google::Apis::ContentV2::Price]
4556
- attr_accessor :tax_impact
4557
-
4558
- # Describes whether the promotion applies to products (e.g. 20% off) or to
4559
- # shipping (e.g. Free Shipping).
4560
- # Corresponds to the JSON property `type`
4561
- # @return [String]
4562
- attr_accessor :type
4563
-
4564
- def initialize(**args)
4565
- update!(**args)
4566
- end
4567
-
4568
- # Update properties of this object
4569
- def update!(**args)
4570
- @discount = args[:discount] if args.key?(:discount)
4571
- @offer_ids = args[:offer_ids] if args.key?(:offer_ids)
4572
- @sub_type = args[:sub_type] if args.key?(:sub_type)
4573
- @tax_impact = args[:tax_impact] if args.key?(:tax_impact)
4574
- @type = args[:type] if args.key?(:type)
4575
- end
4576
- end
4577
-
4578
4700
  #
4579
4701
  class OrderRefund
4580
4702
  include Google::Apis::Core::Hashable
@@ -5174,11 +5296,16 @@ module Google
5174
5296
  # @return [String]
5175
5297
  attr_accessor :charge_state
5176
5298
 
5177
- # Invoice ID from orderInvoice service that corresponds to the charge.
5299
+ # Deprecated. Please use invoiceIds instead.
5178
5300
  # Corresponds to the JSON property `invoiceId`
5179
5301
  # @return [String]
5180
5302
  attr_accessor :invoice_id
5181
5303
 
5304
+ # Invoice IDs from the orderinvoices service that correspond to the charge.
5305
+ # Corresponds to the JSON property `invoiceIds`
5306
+ # @return [Array<String>]
5307
+ attr_accessor :invoice_ids
5308
+
5182
5309
  def initialize(**args)
5183
5310
  update!(**args)
5184
5311
  end
@@ -5187,6 +5314,7 @@ module Google
5187
5314
  def update!(**args)
5188
5315
  @charge_state = args[:charge_state] if args.key?(:charge_state)
5189
5316
  @invoice_id = args[:invoice_id] if args.key?(:invoice_id)
5317
+ @invoice_ids = args[:invoice_ids] if args.key?(:invoice_ids)
5190
5318
  end
5191
5319
  end
5192
5320
 
@@ -5220,11 +5348,16 @@ module Google
5220
5348
  class OrderpaymentsNotifyRefundRequest
5221
5349
  include Google::Apis::Core::Hashable
5222
5350
 
5223
- # Invoice ID from orderInvoice service that corresponds to the charge.
5351
+ # Deprecated. Please use invoiceIds instead.
5224
5352
  # Corresponds to the JSON property `invoiceId`
5225
5353
  # @return [String]
5226
5354
  attr_accessor :invoice_id
5227
5355
 
5356
+ # Invoice IDs from the orderinvoices service that correspond to the refund.
5357
+ # Corresponds to the JSON property `invoiceIds`
5358
+ # @return [Array<String>]
5359
+ attr_accessor :invoice_ids
5360
+
5228
5361
  # Whether refund was successful.
5229
5362
  # Corresponds to the JSON property `refundState`
5230
5363
  # @return [String]
@@ -5237,6 +5370,7 @@ module Google
5237
5370
  # Update properties of this object
5238
5371
  def update!(**args)
5239
5372
  @invoice_id = args[:invoice_id] if args.key?(:invoice_id)
5373
+ @invoice_ids = args[:invoice_ids] if args.key?(:invoice_ids)
5240
5374
  @refund_state = args[:refund_state] if args.key?(:refund_state)
5241
5375
  end
5242
5376
  end
@@ -5331,6 +5465,38 @@ module Google
5331
5465
  end
5332
5466
  end
5333
5467
 
5468
+ #
5469
+ class OrderreturnsListResponse
5470
+ include Google::Apis::Core::Hashable
5471
+
5472
+ # Identifies what kind of resource this is. Value: the fixed string "content#
5473
+ # orderreturnsListResponse".
5474
+ # Corresponds to the JSON property `kind`
5475
+ # @return [String]
5476
+ attr_accessor :kind
5477
+
5478
+ # The token for the retrieval of the next page of returns.
5479
+ # Corresponds to the JSON property `nextPageToken`
5480
+ # @return [String]
5481
+ attr_accessor :next_page_token
5482
+
5483
+ #
5484
+ # Corresponds to the JSON property `resources`
5485
+ # @return [Array<Google::Apis::ContentV2::MerchantOrderReturn>]
5486
+ attr_accessor :resources
5487
+
5488
+ def initialize(**args)
5489
+ update!(**args)
5490
+ end
5491
+
5492
+ # Update properties of this object
5493
+ def update!(**args)
5494
+ @kind = args[:kind] if args.key?(:kind)
5495
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
5496
+ @resources = args[:resources] if args.key?(:resources)
5497
+ end
5498
+ end
5499
+
5334
5500
  #
5335
5501
  class OrdersAcknowledgeRequest
5336
5502
  include Google::Apis::Core::Hashable
@@ -9589,6 +9755,68 @@ module Google
9589
9755
  end
9590
9756
  end
9591
9757
 
9758
+ #
9759
+ class RefundReason
9760
+ include Google::Apis::Core::Hashable
9761
+
9762
+ #
9763
+ # Corresponds to the JSON property `description`
9764
+ # @return [String]
9765
+ attr_accessor :description
9766
+
9767
+ #
9768
+ # Corresponds to the JSON property `reasonCode`
9769
+ # @return [String]
9770
+ attr_accessor :reason_code
9771
+
9772
+ def initialize(**args)
9773
+ update!(**args)
9774
+ end
9775
+
9776
+ # Update properties of this object
9777
+ def update!(**args)
9778
+ @description = args[:description] if args.key?(:description)
9779
+ @reason_code = args[:reason_code] if args.key?(:reason_code)
9780
+ end
9781
+ end
9782
+
9783
+ #
9784
+ class ReturnShipment
9785
+ include Google::Apis::Core::Hashable
9786
+
9787
+ #
9788
+ # Corresponds to the JSON property `creationDate`
9789
+ # @return [String]
9790
+ attr_accessor :creation_date
9791
+
9792
+ #
9793
+ # Corresponds to the JSON property `returnMethodType`
9794
+ # @return [String]
9795
+ attr_accessor :return_method_type
9796
+
9797
+ #
9798
+ # Corresponds to the JSON property `shipmentId`
9799
+ # @return [String]
9800
+ attr_accessor :shipment_id
9801
+
9802
+ #
9803
+ # Corresponds to the JSON property `shipmentTrackingInfos`
9804
+ # @return [Array<Google::Apis::ContentV2::ShipmentTrackingInfo>]
9805
+ attr_accessor :shipment_tracking_infos
9806
+
9807
+ def initialize(**args)
9808
+ update!(**args)
9809
+ end
9810
+
9811
+ # Update properties of this object
9812
+ def update!(**args)
9813
+ @creation_date = args[:creation_date] if args.key?(:creation_date)
9814
+ @return_method_type = args[:return_method_type] if args.key?(:return_method_type)
9815
+ @shipment_id = args[:shipment_id] if args.key?(:shipment_id)
9816
+ @shipment_tracking_infos = args[:shipment_tracking_infos] if args.key?(:shipment_tracking_infos)
9817
+ end
9818
+ end
9819
+
9592
9820
  #
9593
9821
  class Row
9594
9822
  include Google::Apis::Core::Hashable
@@ -9747,6 +9975,31 @@ module Google
9747
9975
  end
9748
9976
  end
9749
9977
 
9978
+ #
9979
+ class ShipmentTrackingInfo
9980
+ include Google::Apis::Core::Hashable
9981
+
9982
+ #
9983
+ # Corresponds to the JSON property `carrier`
9984
+ # @return [String]
9985
+ attr_accessor :carrier
9986
+
9987
+ #
9988
+ # Corresponds to the JSON property `trackingNumber`
9989
+ # @return [String]
9990
+ attr_accessor :tracking_number
9991
+
9992
+ def initialize(**args)
9993
+ update!(**args)
9994
+ end
9995
+
9996
+ # Update properties of this object
9997
+ def update!(**args)
9998
+ @carrier = args[:carrier] if args.key?(:carrier)
9999
+ @tracking_number = args[:tracking_number] if args.key?(:tracking_number)
10000
+ end
10001
+ end
10002
+
9750
10003
  # The merchant account's shipping settings.
9751
10004
  class ShippingSettings
9752
10005
  include Google::Apis::Core::Hashable
@@ -10071,10 +10324,10 @@ module Google
10071
10324
  # @return [String]
10072
10325
  attr_accessor :predefined_delivery_address
10073
10326
 
10074
- # The details of the merchant provided promotions applied to the order. More
10075
- # details about the program are here.
10327
+ # Deprecated. The details of the merchant provided promotions applied to the
10328
+ # order. More details about the program are here.
10076
10329
  # Corresponds to the JSON property `promotions`
10077
- # @return [Array<Google::Apis::ContentV2::OrderPromotion>]
10330
+ # @return [Array<Google::Apis::ContentV2::OrderLegacyPromotion>]
10078
10331
  attr_accessor :promotions
10079
10332
 
10080
10333
  # The total cost of shipping for all items.
@@ -10116,7 +10369,7 @@ module Google
10116
10369
  class TestOrderCustomer
10117
10370
  include Google::Apis::Core::Hashable
10118
10371
 
10119
- # Email address of the customer.
10372
+ # Deprecated.
10120
10373
  # Corresponds to the JSON property `email`
10121
10374
  # @return [String]
10122
10375
  attr_accessor :email