google-api-client 0.52.0 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (264) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +0 -14
  3. data/CHANGELOG.md +6 -0
  4. data/OVERVIEW.md +36 -27
  5. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  6. data/generated/google/apis/accesscontextmanager_v1/classes.rb +326 -0
  7. data/generated/google/apis/accesscontextmanager_v1/representations.rb +139 -0
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/service.rb +2 -2
  10. data/generated/google/apis/analyticsadmin_v1alpha.rb +2 -2
  11. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +8 -0
  12. data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +1 -0
  13. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +12 -1
  14. data/{lib/google/apis/core/logging.rb → generated/google/apis/apigateway_v1.rb} +14 -10
  15. data/generated/google/apis/apigateway_v1/classes.rb +1116 -0
  16. data/generated/google/apis/apigateway_v1/representations.rb +442 -0
  17. data/generated/google/apis/apigateway_v1/service.rb +1172 -0
  18. data/generated/google/apis/apigateway_v1beta.rb +1 -1
  19. data/generated/google/apis/apigateway_v1beta/classes.rb +19 -8
  20. data/generated/google/apis/apigateway_v1beta/representations.rb +1 -0
  21. data/generated/google/apis/apigee_v1.rb +1 -1
  22. data/generated/google/apis/apigee_v1/classes.rb +24 -22
  23. data/generated/google/apis/apigee_v1/service.rb +50 -48
  24. data/generated/google/apis/artifactregistry_v1.rb +38 -0
  25. data/generated/google/apis/artifactregistry_v1/classes.rb +242 -0
  26. data/generated/google/apis/artifactregistry_v1/representations.rb +116 -0
  27. data/generated/google/apis/artifactregistry_v1/service.rb +210 -0
  28. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  29. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +0 -120
  30. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +0 -62
  31. data/generated/google/apis/artifactregistry_v1beta2.rb +1 -1
  32. data/generated/google/apis/artifactregistry_v1beta2/classes.rb +0 -120
  33. data/generated/google/apis/artifactregistry_v1beta2/representations.rb +0 -62
  34. data/generated/google/apis/chat_v1.rb +1 -1
  35. data/generated/google/apis/chat_v1/service.rb +132 -0
  36. data/generated/google/apis/cloudasset_v1.rb +1 -1
  37. data/generated/google/apis/cloudasset_v1/classes.rb +326 -0
  38. data/generated/google/apis/cloudasset_v1/representations.rb +139 -0
  39. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  40. data/generated/google/apis/cloudasset_v1beta1/classes.rb +326 -0
  41. data/generated/google/apis/cloudasset_v1beta1/representations.rb +139 -0
  42. data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
  43. data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +326 -0
  44. data/generated/google/apis/cloudasset_v1p5beta1/representations.rb +139 -0
  45. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  46. data/generated/google/apis/cloudbuild_v1/classes.rb +3 -3
  47. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  48. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +3 -3
  49. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  50. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +3 -3
  51. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  52. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1 -1
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +0 -26
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +0 -24
  56. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +0 -26
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +0 -24
  59. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +0 -26
  61. data/generated/google/apis/cloudresourcemanager_v2/representations.rb +0 -24
  62. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  63. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +0 -26
  64. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +0 -24
  65. data/generated/google/apis/container_v1.rb +1 -1
  66. data/generated/google/apis/container_v1/classes.rb +7 -7
  67. data/generated/google/apis/container_v1beta1.rb +1 -1
  68. data/generated/google/apis/container_v1beta1/classes.rb +7 -7
  69. data/generated/google/apis/content_v2_1.rb +1 -1
  70. data/generated/google/apis/content_v2_1/classes.rb +434 -0
  71. data/generated/google/apis/content_v2_1/representations.rb +187 -0
  72. data/generated/google/apis/content_v2_1/service.rb +116 -0
  73. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  74. data/generated/google/apis/datacatalog_v1beta1/classes.rb +6 -0
  75. data/generated/google/apis/datacatalog_v1beta1/representations.rb +1 -0
  76. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  77. data/generated/google/apis/datalabeling_v1beta1.rb +1 -1
  78. data/generated/google/apis/dataproc_v1.rb +1 -1
  79. data/generated/google/apis/dataproc_v1/classes.rb +29 -1
  80. data/generated/google/apis/dataproc_v1/representations.rb +14 -0
  81. data/generated/google/apis/dataproc_v1/service.rb +42 -0
  82. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  83. data/generated/google/apis/dataproc_v1beta2/classes.rb +29 -1
  84. data/generated/google/apis/dataproc_v1beta2/representations.rb +14 -0
  85. data/generated/google/apis/dataproc_v1beta2/service.rb +42 -0
  86. data/generated/google/apis/dialogflow_v2.rb +1 -1
  87. data/generated/google/apis/dialogflow_v2/classes.rb +4041 -678
  88. data/generated/google/apis/dialogflow_v2/representations.rb +1851 -298
  89. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  90. data/generated/google/apis/dialogflow_v2beta1/classes.rb +4047 -684
  91. data/generated/google/apis/dialogflow_v2beta1/representations.rb +1862 -309
  92. data/generated/google/apis/dialogflow_v3.rb +1 -1
  93. data/generated/google/apis/dialogflow_v3/classes.rb +3120 -311
  94. data/generated/google/apis/dialogflow_v3/representations.rb +2002 -617
  95. data/generated/google/apis/dialogflow_v3/service.rb +408 -0
  96. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  97. data/generated/google/apis/dialogflow_v3beta1/classes.rb +5145 -2336
  98. data/generated/google/apis/dialogflow_v3beta1/representations.rb +1729 -344
  99. data/generated/google/apis/dialogflow_v3beta1/service.rb +408 -0
  100. data/generated/google/apis/dlp_v2.rb +1 -1
  101. data/generated/google/apis/dlp_v2/service.rb +3 -9
  102. data/generated/google/apis/documentai_v1beta2.rb +1 -1
  103. data/generated/google/apis/documentai_v1beta2/classes.rb +5 -92
  104. data/generated/google/apis/documentai_v1beta2/representations.rb +2 -15
  105. data/generated/google/apis/documentai_v1beta3.rb +1 -1
  106. data/generated/google/apis/documentai_v1beta3/classes.rb +5 -92
  107. data/generated/google/apis/documentai_v1beta3/representations.rb +2 -15
  108. data/generated/google/apis/gameservices_v1.rb +1 -1
  109. data/generated/google/apis/gameservices_v1/service.rb +14 -14
  110. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  111. data/generated/google/apis/gameservices_v1beta/service.rb +14 -14
  112. data/generated/google/apis/localservices_v1.rb +4 -1
  113. data/generated/google/apis/manufacturers_v1.rb +1 -1
  114. data/generated/google/apis/manufacturers_v1/classes.rb +2 -2
  115. data/generated/google/apis/monitoring_v3.rb +1 -1
  116. data/generated/google/apis/monitoring_v3/classes.rb +2 -2
  117. data/generated/google/apis/notebooks_v1.rb +1 -1
  118. data/generated/google/apis/notebooks_v1/classes.rb +13 -0
  119. data/generated/google/apis/notebooks_v1/representations.rb +12 -0
  120. data/generated/google/apis/notebooks_v1/service.rb +34 -0
  121. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  122. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +0 -37
  123. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +0 -18
  124. data/generated/google/apis/recommendationengine_v1beta1.rb +1 -1
  125. data/generated/google/apis/recommendationengine_v1beta1/service.rb +2 -1
  126. data/generated/google/apis/securitycenter_v1.rb +1 -1
  127. data/generated/google/apis/securitycenter_v1/classes.rb +18 -10
  128. data/generated/google/apis/securitycenter_v1/representations.rb +1 -0
  129. data/generated/google/apis/securitycenter_v1/service.rb +30 -30
  130. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  131. data/generated/google/apis/securitycenter_v1beta1/classes.rb +7 -0
  132. data/generated/google/apis/securitycenter_v1beta1/representations.rb +1 -0
  133. data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
  134. data/generated/google/apis/securitycenter_v1beta2/classes.rb +7 -0
  135. data/generated/google/apis/securitycenter_v1beta2/representations.rb +1 -0
  136. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  137. data/generated/google/apis/servicemanagement_v1/classes.rb +11 -10
  138. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  139. data/generated/google/apis/sqladmin_v1beta4/classes.rb +7 -7
  140. data/generated/google/apis/sqladmin_v1beta4/service.rb +4 -1
  141. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  142. data/generated/google/apis/storagetransfer_v1/classes.rb +25 -0
  143. data/generated/google/apis/storagetransfer_v1/representations.rb +3 -0
  144. data/generated/google/apis/webmasters_v3/classes.rb +8 -0
  145. data/generated/google/apis/webmasters_v3/representations.rb +1 -0
  146. data/generated/google/apis/youtube_v3.rb +1 -1
  147. data/generated/google/apis/youtube_v3/classes.rb +18 -143
  148. data/generated/google/apis/youtube_v3/representations.rb +0 -57
  149. data/generated/google/apis/youtube_v3/service.rb +0 -43
  150. data/lib/google/apis/version.rb +1 -23
  151. metadata +27 -263
  152. data/.github/CONTRIBUTING.md +0 -31
  153. data/.github/ISSUE_TEMPLATE/bug_report.md +0 -36
  154. data/.github/ISSUE_TEMPLATE/feature_request.md +0 -21
  155. data/.github/ISSUE_TEMPLATE/support_request.md +0 -7
  156. data/.github/workflows/autoapprove.yml +0 -49
  157. data/.github/workflows/release-please.yml +0 -57
  158. data/.gitignore +0 -23
  159. data/.kokoro/build.bat +0 -11
  160. data/.kokoro/build.sh +0 -4
  161. data/.kokoro/continuous/common.cfg +0 -25
  162. data/.kokoro/continuous/linux.cfg +0 -25
  163. data/.kokoro/continuous/osx.cfg +0 -8
  164. data/.kokoro/continuous/post.cfg +0 -30
  165. data/.kokoro/continuous/windows.cfg +0 -29
  166. data/.kokoro/osx.sh +0 -4
  167. data/.kokoro/presubmit/common.cfg +0 -24
  168. data/.kokoro/presubmit/linux.cfg +0 -24
  169. data/.kokoro/presubmit/osx.cfg +0 -8
  170. data/.kokoro/presubmit/windows.cfg +0 -29
  171. data/.kokoro/release.cfg +0 -94
  172. data/.kokoro/trampoline.bat +0 -10
  173. data/.kokoro/trampoline.sh +0 -4
  174. data/.repo-metadata.json +0 -5
  175. data/.rspec +0 -2
  176. data/.rubocop.yml +0 -12
  177. data/.rubocop_todo.yml +0 -63
  178. data/CODE_OF_CONDUCT.md +0 -43
  179. data/Gemfile +0 -55
  180. data/MIGRATING.md +0 -215
  181. data/README.md +0 -402
  182. data/Rakefile +0 -131
  183. data/api_list_config.yaml +0 -9
  184. data/api_names.yaml +0 -1082
  185. data/bin/generate-api +0 -194
  186. data/docs/api-keys.md +0 -20
  187. data/docs/auth.md +0 -53
  188. data/docs/client-secrets.md +0 -69
  189. data/docs/getting-started.md +0 -340
  190. data/docs/installation.md +0 -0
  191. data/docs/logging.md +0 -34
  192. data/docs/media-upload.md +0 -25
  193. data/docs/oauth-installed.md +0 -191
  194. data/docs/oauth-server.md +0 -133
  195. data/docs/oauth-web.md +0 -280
  196. data/docs/oauth.md +0 -268
  197. data/docs/pagination.md +0 -29
  198. data/docs/performance.md +0 -25
  199. data/google-api-client.gemspec +0 -36
  200. data/lib/google/api_client/auth/installed_app.rb +0 -143
  201. data/lib/google/api_client/auth/key_utils.rb +0 -94
  202. data/lib/google/api_client/auth/storage.rb +0 -104
  203. data/lib/google/api_client/auth/storages/file_store.rb +0 -57
  204. data/lib/google/api_client/auth/storages/redis_store.rb +0 -59
  205. data/lib/google/api_client/client_secrets.rb +0 -176
  206. data/lib/google/apis.rb +0 -58
  207. data/lib/google/apis/core/api_command.rb +0 -209
  208. data/lib/google/apis/core/base_service.rb +0 -447
  209. data/lib/google/apis/core/batch.rb +0 -236
  210. data/lib/google/apis/core/composite_io.rb +0 -97
  211. data/lib/google/apis/core/download.rb +0 -118
  212. data/lib/google/apis/core/hashable.rb +0 -44
  213. data/lib/google/apis/core/http_command.rb +0 -447
  214. data/lib/google/apis/core/json_representation.rb +0 -153
  215. data/lib/google/apis/core/multipart.rb +0 -135
  216. data/lib/google/apis/core/upload.rb +0 -273
  217. data/lib/google/apis/errors.rb +0 -89
  218. data/lib/google/apis/generator.rb +0 -71
  219. data/lib/google/apis/generator/annotator.rb +0 -339
  220. data/lib/google/apis/generator/helpers.rb +0 -76
  221. data/lib/google/apis/generator/model.rb +0 -187
  222. data/lib/google/apis/generator/template.rb +0 -124
  223. data/lib/google/apis/generator/templates/_class.tmpl +0 -43
  224. data/lib/google/apis/generator/templates/_method.tmpl +0 -92
  225. data/lib/google/apis/generator/templates/_representation.tmpl +0 -51
  226. data/lib/google/apis/generator/templates/_representation_stub.tmpl +0 -17
  227. data/lib/google/apis/generator/templates/_representation_type.tmpl +0 -10
  228. data/lib/google/apis/generator/templates/classes.rb.tmpl +0 -29
  229. data/lib/google/apis/generator/templates/module.rb.tmpl +0 -40
  230. data/lib/google/apis/generator/templates/representations.rb.tmpl +0 -32
  231. data/lib/google/apis/generator/templates/service.rb.tmpl +0 -61
  232. data/lib/google/apis/options.rb +0 -116
  233. data/rakelib/devsite/devsite_builder.rb +0 -126
  234. data/rakelib/devsite/link_checker.rb +0 -64
  235. data/rakelib/devsite/repo_metadata.rb +0 -56
  236. data/rakelib/metrics.rake +0 -22
  237. data/rakelib/rubocop.rake +0 -10
  238. data/rakelib/spec.rake +0 -11
  239. data/rakelib/yard.rake +0 -11
  240. data/samples/cli/.env +0 -4
  241. data/samples/cli/Gemfile +0 -7
  242. data/samples/cli/README.md +0 -51
  243. data/samples/cli/google-api-samples +0 -32
  244. data/samples/cli/lib/base_cli.rb +0 -95
  245. data/samples/cli/lib/samples/adsense.rb +0 -99
  246. data/samples/cli/lib/samples/analytics.rb +0 -80
  247. data/samples/cli/lib/samples/androidpublisher.rb +0 -47
  248. data/samples/cli/lib/samples/bigquery.rb +0 -101
  249. data/samples/cli/lib/samples/calendar.rb +0 -83
  250. data/samples/cli/lib/samples/drive.rb +0 -82
  251. data/samples/cli/lib/samples/gmail.rb +0 -157
  252. data/samples/cli/lib/samples/pubsub.rb +0 -114
  253. data/samples/cli/lib/samples/sheets.rb +0 -61
  254. data/samples/cli/lib/samples/translate.rb +0 -44
  255. data/samples/cli/lib/samples/vision.rb +0 -69
  256. data/samples/cli/lib/samples/you_tube.rb +0 -47
  257. data/samples/web/Gemfile +0 -9
  258. data/samples/web/README.md +0 -44
  259. data/samples/web/app.rb +0 -120
  260. data/samples/web/views/calendar.erb +0 -34
  261. data/samples/web/views/drive.erb +0 -33
  262. data/samples/web/views/home.erb +0 -34
  263. data/samples/web/views/layout.erb +0 -40
  264. data/synth.py +0 -40
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/container-engine/
27
27
  module ContainerV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20201127'
29
+ REVISION = '20201209'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -4839,33 +4839,33 @@ module Google
4839
4839
  class UpgradeEvent
4840
4840
  include Google::Apis::Core::Hashable
4841
4841
 
4842
- # Required. The current version before the upgrade.
4842
+ # The current version before the upgrade.
4843
4843
  # Corresponds to the JSON property `currentVersion`
4844
4844
  # @return [String]
4845
4845
  attr_accessor :current_version
4846
4846
 
4847
- # Required. The operation associated with this upgrade.
4847
+ # The operation associated with this upgrade.
4848
4848
  # Corresponds to the JSON property `operation`
4849
4849
  # @return [String]
4850
4850
  attr_accessor :operation
4851
4851
 
4852
- # Required. The time when the operation was started.
4852
+ # The time when the operation was started.
4853
4853
  # Corresponds to the JSON property `operationStartTime`
4854
4854
  # @return [String]
4855
4855
  attr_accessor :operation_start_time
4856
4856
 
4857
- # Optional. Optional relative path to the resource. For example in node pool
4858
- # upgrades, the relative path of the node pool.
4857
+ # Optional relative path to the resource. For example in node pool upgrades, the
4858
+ # relative path of the node pool.
4859
4859
  # Corresponds to the JSON property `resource`
4860
4860
  # @return [String]
4861
4861
  attr_accessor :resource
4862
4862
 
4863
- # Required. The resource type that is upgrading.
4863
+ # The resource type that is upgrading.
4864
4864
  # Corresponds to the JSON property `resourceType`
4865
4865
  # @return [String]
4866
4866
  attr_accessor :resource_type
4867
4867
 
4868
- # Required. The target version for the upgrade.
4868
+ # The target version for the upgrade.
4869
4869
  # Corresponds to the JSON property `targetVersion`
4870
4870
  # @return [String]
4871
4871
  attr_accessor :target_version
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/shopping-content/v2/
26
26
  module ContentV2_1
27
27
  VERSION = 'V2_1'
28
- REVISION = '20201204'
28
+ REVISION = '20201211'
29
29
 
30
30
  # Manage your product listings and accounts for Google Shopping
31
31
  AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
@@ -2498,6 +2498,47 @@ module Google
2498
2498
  end
2499
2499
  end
2500
2500
 
2501
+ # Represents a whole or partial calendar date, such as a birthday. The time of
2502
+ # day and time zone are either specified elsewhere or are insignificant. The
2503
+ # date is relative to the Gregorian Calendar. This can represent one of the
2504
+ # following: * A full date, with non-zero year, month, and day values * A month
2505
+ # and day value, with a zero year, such as an anniversary * A year on its own,
2506
+ # with zero month and day values * A year and month value, with a zero day, such
2507
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
2508
+ # google.protobuf.Timestamp`.
2509
+ class Date
2510
+ include Google::Apis::Core::Hashable
2511
+
2512
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
2513
+ # specify a year by itself or a year and month where the day isn't significant.
2514
+ # Corresponds to the JSON property `day`
2515
+ # @return [Fixnum]
2516
+ attr_accessor :day
2517
+
2518
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
2519
+ # and day.
2520
+ # Corresponds to the JSON property `month`
2521
+ # @return [Fixnum]
2522
+ attr_accessor :month
2523
+
2524
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
2525
+ # year.
2526
+ # Corresponds to the JSON property `year`
2527
+ # @return [Fixnum]
2528
+ attr_accessor :year
2529
+
2530
+ def initialize(**args)
2531
+ update!(**args)
2532
+ end
2533
+
2534
+ # Update properties of this object
2535
+ def update!(**args)
2536
+ @day = args[:day] if args.key?(:day)
2537
+ @month = args[:month] if args.key?(:month)
2538
+ @year = args[:year] if args.key?(:year)
2539
+ end
2540
+ end
2541
+
2501
2542
  # Represents civil time (or occasionally physical time). This type can represent
2502
2543
  # a civil time in one of a few possible ways: * When utc_offset is set and
2503
2544
  # time_zone is unset: a civil time on a calendar day with a particular offset
@@ -2953,6 +2994,31 @@ module Google
2953
2994
  end
2954
2995
  end
2955
2996
 
2997
+ # Map of inapplicability details.
2998
+ class InapplicabilityDetails
2999
+ include Google::Apis::Core::Hashable
3000
+
3001
+ # Count of this inapplicable reason code.
3002
+ # Corresponds to the JSON property `inapplicableCount`
3003
+ # @return [Fixnum]
3004
+ attr_accessor :inapplicable_count
3005
+
3006
+ # Reason code this rule was not applicable.
3007
+ # Corresponds to the JSON property `inapplicableReason`
3008
+ # @return [String]
3009
+ attr_accessor :inapplicable_reason
3010
+
3011
+ def initialize(**args)
3012
+ update!(**args)
3013
+ end
3014
+
3015
+ # Update properties of this object
3016
+ def update!(**args)
3017
+ @inapplicable_count = args[:inapplicable_count] if args.key?(:inapplicable_count)
3018
+ @inapplicable_reason = args[:inapplicable_reason] if args.key?(:inapplicable_reason)
3019
+ end
3020
+ end
3021
+
2956
3022
  #
2957
3023
  class Installment
2958
3024
  include Google::Apis::Core::Hashable
@@ -3737,6 +3803,58 @@ module Google
3737
3803
  end
3738
3804
  end
3739
3805
 
3806
+ # Response message for the ListRepricingProductReports method.
3807
+ class ListRepricingProductReportsResponse
3808
+ include Google::Apis::Core::Hashable
3809
+
3810
+ # A token for retrieving the next page. Its absence means there is no subsequent
3811
+ # page.
3812
+ # Corresponds to the JSON property `nextPageToken`
3813
+ # @return [String]
3814
+ attr_accessor :next_page_token
3815
+
3816
+ # Periodic reports for the given Repricing product.
3817
+ # Corresponds to the JSON property `repricingProductReports`
3818
+ # @return [Array<Google::Apis::ContentV2_1::RepricingProductReport>]
3819
+ attr_accessor :repricing_product_reports
3820
+
3821
+ def initialize(**args)
3822
+ update!(**args)
3823
+ end
3824
+
3825
+ # Update properties of this object
3826
+ def update!(**args)
3827
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3828
+ @repricing_product_reports = args[:repricing_product_reports] if args.key?(:repricing_product_reports)
3829
+ end
3830
+ end
3831
+
3832
+ # Response message for the ListRepricingRuleReports method.
3833
+ class ListRepricingRuleReportsResponse
3834
+ include Google::Apis::Core::Hashable
3835
+
3836
+ # A token for retrieving the next page. Its absence means there is no subsequent
3837
+ # page.
3838
+ # Corresponds to the JSON property `nextPageToken`
3839
+ # @return [String]
3840
+ attr_accessor :next_page_token
3841
+
3842
+ # Daily reports for the given Repricing rule.
3843
+ # Corresponds to the JSON property `repricingRuleReports`
3844
+ # @return [Array<Google::Apis::ContentV2_1::RepricingRuleReport>]
3845
+ attr_accessor :repricing_rule_reports
3846
+
3847
+ def initialize(**args)
3848
+ update!(**args)
3849
+ end
3850
+
3851
+ # Update properties of this object
3852
+ def update!(**args)
3853
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3854
+ @repricing_rule_reports = args[:repricing_rule_reports] if args.key?(:repricing_rule_reports)
3855
+ end
3856
+ end
3857
+
3740
3858
  # Response message for the `ListRepricingRules` method.
3741
3859
  class ListRepricingRulesResponse
3742
3860
  include Google::Apis::Core::Hashable
@@ -7201,6 +7319,32 @@ module Google
7201
7319
  end
7202
7320
  end
7203
7321
 
7322
+ # ScheduledDeliveryDetails used to update the scheduled delivery order.
7323
+ class OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails
7324
+ include Google::Apis::Core::Hashable
7325
+
7326
+ # The phone number of the carrier fulfilling the delivery. The phone number
7327
+ # should be formatted as the international notation in
7328
+ # Corresponds to the JSON property `carrierPhoneNumber`
7329
+ # @return [String]
7330
+ attr_accessor :carrier_phone_number
7331
+
7332
+ # The date a shipment is scheduled for delivery, in ISO 8601 format.
7333
+ # Corresponds to the JSON property `scheduledDate`
7334
+ # @return [String]
7335
+ attr_accessor :scheduled_date
7336
+
7337
+ def initialize(**args)
7338
+ update!(**args)
7339
+ end
7340
+
7341
+ # Update properties of this object
7342
+ def update!(**args)
7343
+ @carrier_phone_number = args[:carrier_phone_number] if args.key?(:carrier_phone_number)
7344
+ @scheduled_date = args[:scheduled_date] if args.key?(:scheduled_date)
7345
+ end
7346
+ end
7347
+
7204
7348
  #
7205
7349
  class OrdersGetByMerchantOrderIdResponse
7206
7350
  include Google::Apis::Core::Hashable
@@ -8002,6 +8146,11 @@ module Google
8002
8146
  # @return [String]
8003
8147
  attr_accessor :ready_pickup_date
8004
8148
 
8149
+ # ScheduledDeliveryDetails used to update the scheduled delivery order.
8150
+ # Corresponds to the JSON property `scheduledDeliveryDetails`
8151
+ # @return [Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails]
8152
+ attr_accessor :scheduled_delivery_details
8153
+
8005
8154
  # The ID of the shipment.
8006
8155
  # Corresponds to the JSON property `shipmentId`
8007
8156
  # @return [String]
@@ -8035,6 +8184,7 @@ module Google
8035
8184
  @last_pickup_date = args[:last_pickup_date] if args.key?(:last_pickup_date)
8036
8185
  @operation_id = args[:operation_id] if args.key?(:operation_id)
8037
8186
  @ready_pickup_date = args[:ready_pickup_date] if args.key?(:ready_pickup_date)
8187
+ @scheduled_delivery_details = args[:scheduled_delivery_details] if args.key?(:scheduled_delivery_details)
8038
8188
  @shipment_id = args[:shipment_id] if args.key?(:shipment_id)
8039
8189
  @status = args[:status] if args.key?(:status)
8040
8190
  @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
@@ -10758,11 +10908,126 @@ module Google
10758
10908
  end
10759
10909
  end
10760
10910
 
10911
+ # Resource that represents a daily Repricing product report. Each report
10912
+ # contains stats for a single type of Repricing rule for a single product on a
10913
+ # given day. If there are multiple rules of the same type for the product on
10914
+ # that day, the report lists all the rules by rule ids, combines the stats, and
10915
+ # paginates the results by date. To retrieve the stats of a particular rule,
10916
+ # provide the rule_id in the request.
10917
+ class RepricingProductReport
10918
+ include Google::Apis::Core::Hashable
10919
+
10920
+ # Total count of Repricer applications. This value captures how many times the
10921
+ # rule of this type was applied to this product during this reporting period.
10922
+ # Corresponds to the JSON property `applicationCount`
10923
+ # @return [Fixnum]
10924
+ attr_accessor :application_count
10925
+
10926
+ # Stats specific to buybox winning rules for product report.
10927
+ # Corresponds to the JSON property `buyboxWinningProductStats`
10928
+ # @return [Google::Apis::ContentV2_1::RepricingProductReportBuyboxWinningProductStats]
10929
+ attr_accessor :buybox_winning_product_stats
10930
+
10931
+ # Represents a whole or partial calendar date, such as a birthday. The time of
10932
+ # day and time zone are either specified elsewhere or are insignificant. The
10933
+ # date is relative to the Gregorian Calendar. This can represent one of the
10934
+ # following: * A full date, with non-zero year, month, and day values * A month
10935
+ # and day value, with a zero year, such as an anniversary * A year on its own,
10936
+ # with zero month and day values * A year and month value, with a zero day, such
10937
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
10938
+ # google.protobuf.Timestamp`.
10939
+ # Corresponds to the JSON property `date`
10940
+ # @return [Google::Apis::ContentV2_1::Date]
10941
+ attr_accessor :date
10942
+
10943
+ # The price represented as a number and currency.
10944
+ # Corresponds to the JSON property `highWatermark`
10945
+ # @return [Google::Apis::ContentV2_1::PriceAmount]
10946
+ attr_accessor :high_watermark
10947
+
10948
+ # List of all reasons the rule did not apply to the product during the specified
10949
+ # reporting period.
10950
+ # Corresponds to the JSON property `inapplicabilityDetails`
10951
+ # @return [Array<Google::Apis::ContentV2_1::InapplicabilityDetails>]
10952
+ attr_accessor :inapplicability_details
10953
+
10954
+ # The price represented as a number and currency.
10955
+ # Corresponds to the JSON property `lowWatermark`
10956
+ # @return [Google::Apis::ContentV2_1::PriceAmount]
10957
+ attr_accessor :low_watermark
10958
+
10959
+ # Total unit count of impacted products ordered while the rule was active on the
10960
+ # date of the report. This count includes all orders that were started while the
10961
+ # rule was active, even if the rule was no longer active when the order was
10962
+ # completed.
10963
+ # Corresponds to the JSON property `orderItemCount`
10964
+ # @return [Fixnum]
10965
+ attr_accessor :order_item_count
10966
+
10967
+ # Ids of the Repricing rule for this report.
10968
+ # Corresponds to the JSON property `ruleIds`
10969
+ # @return [Array<String>]
10970
+ attr_accessor :rule_ids
10971
+
10972
+ # The price represented as a number and currency.
10973
+ # Corresponds to the JSON property `totalGmv`
10974
+ # @return [Google::Apis::ContentV2_1::PriceAmount]
10975
+ attr_accessor :total_gmv
10976
+
10977
+ # Type of the rule.
10978
+ # Corresponds to the JSON property `type`
10979
+ # @return [String]
10980
+ attr_accessor :type
10981
+
10982
+ def initialize(**args)
10983
+ update!(**args)
10984
+ end
10985
+
10986
+ # Update properties of this object
10987
+ def update!(**args)
10988
+ @application_count = args[:application_count] if args.key?(:application_count)
10989
+ @buybox_winning_product_stats = args[:buybox_winning_product_stats] if args.key?(:buybox_winning_product_stats)
10990
+ @date = args[:date] if args.key?(:date)
10991
+ @high_watermark = args[:high_watermark] if args.key?(:high_watermark)
10992
+ @inapplicability_details = args[:inapplicability_details] if args.key?(:inapplicability_details)
10993
+ @low_watermark = args[:low_watermark] if args.key?(:low_watermark)
10994
+ @order_item_count = args[:order_item_count] if args.key?(:order_item_count)
10995
+ @rule_ids = args[:rule_ids] if args.key?(:rule_ids)
10996
+ @total_gmv = args[:total_gmv] if args.key?(:total_gmv)
10997
+ @type = args[:type] if args.key?(:type)
10998
+ end
10999
+ end
11000
+
11001
+ # Stats specific to buybox winning rules for product report.
11002
+ class RepricingProductReportBuyboxWinningProductStats
11003
+ include Google::Apis::Core::Hashable
11004
+
11005
+ # Number of times this product won the buybox with these rules during this time
11006
+ # period.
11007
+ # Corresponds to the JSON property `buyboxWinsCount`
11008
+ # @return [Fixnum]
11009
+ attr_accessor :buybox_wins_count
11010
+
11011
+ def initialize(**args)
11012
+ update!(**args)
11013
+ end
11014
+
11015
+ # Update properties of this object
11016
+ def update!(**args)
11017
+ @buybox_wins_count = args[:buybox_wins_count] if args.key?(:buybox_wins_count)
11018
+ end
11019
+ end
11020
+
10761
11021
  # Represents a repricing rule. A repricing rule is used by shopping serving to
10762
11022
  # adjust transactable offer prices if conditions are met. Next ID: 24
10763
11023
  class RepricingRule
10764
11024
  include Google::Apis::Core::Hashable
10765
11025
 
11026
+ # A repricing rule that changes the sale price based on cost of goods sale.
11027
+ # Corresponds to the JSON property `cogsBasedRule`
11028
+ # @return [Google::Apis::ContentV2_1::RepricingRuleCostOfGoodsSaleRule]
11029
+ attr_accessor :cogs_based_rule
11030
+
10766
11031
  # Required. Immutable. CLDR country code (e.g. "US").
10767
11032
  # Corresponds to the JSON property `countryCode`
10768
11033
  # @return [String]
@@ -10820,6 +11085,11 @@ module Google
10820
11085
  # @return [String]
10821
11086
  attr_accessor :rule_id
10822
11087
 
11088
+ # Definition of stats based rule.
11089
+ # Corresponds to the JSON property `statsBasedRule`
11090
+ # @return [Google::Apis::ContentV2_1::RepricingRuleStatsBasedRule]
11091
+ attr_accessor :stats_based_rule
11092
+
10823
11093
  # The title for the rule.
10824
11094
  # Corresponds to the JSON property `title`
10825
11095
  # @return [String]
@@ -10836,6 +11106,7 @@ module Google
10836
11106
 
10837
11107
  # Update properties of this object
10838
11108
  def update!(**args)
11109
+ @cogs_based_rule = args[:cogs_based_rule] if args.key?(:cogs_based_rule)
10839
11110
  @country_code = args[:country_code] if args.key?(:country_code)
10840
11111
  @effective_time_period = args[:effective_time_period] if args.key?(:effective_time_period)
10841
11112
  @eligible_offer_matcher = args[:eligible_offer_matcher] if args.key?(:eligible_offer_matcher)
@@ -10844,11 +11115,38 @@ module Google
10844
11115
  @paused = args[:paused] if args.key?(:paused)
10845
11116
  @restriction = args[:restriction] if args.key?(:restriction)
10846
11117
  @rule_id = args[:rule_id] if args.key?(:rule_id)
11118
+ @stats_based_rule = args[:stats_based_rule] if args.key?(:stats_based_rule)
10847
11119
  @title = args[:title] if args.key?(:title)
10848
11120
  @type = args[:type] if args.key?(:type)
10849
11121
  end
10850
11122
  end
10851
11123
 
11124
+ # A repricing rule that changes the sale price based on cost of goods sale.
11125
+ class RepricingRuleCostOfGoodsSaleRule
11126
+ include Google::Apis::Core::Hashable
11127
+
11128
+ # The percent change against the COGS. Ex: 20 would mean to set the adjusted
11129
+ # price 1.2X of the COGS data.
11130
+ # Corresponds to the JSON property `percentageDelta`
11131
+ # @return [Fixnum]
11132
+ attr_accessor :percentage_delta
11133
+
11134
+ # The price delta against the COGS. E.g. 2 means $2 more of the COGS.
11135
+ # Corresponds to the JSON property `priceDelta`
11136
+ # @return [String]
11137
+ attr_accessor :price_delta
11138
+
11139
+ def initialize(**args)
11140
+ update!(**args)
11141
+ end
11142
+
11143
+ # Update properties of this object
11144
+ def update!(**args)
11145
+ @percentage_delta = args[:percentage_delta] if args.key?(:percentage_delta)
11146
+ @price_delta = args[:price_delta] if args.key?(:price_delta)
11147
+ end
11148
+ end
11149
+
10852
11150
  #
10853
11151
  class RepricingRuleEffectiveTime
10854
11152
  include Google::Apis::Core::Hashable
@@ -10968,6 +11266,108 @@ module Google
10968
11266
  end
10969
11267
  end
10970
11268
 
11269
+ # Resource that represents a daily Repricing rule report. Next ID: 11
11270
+ class RepricingRuleReport
11271
+ include Google::Apis::Core::Hashable
11272
+
11273
+ # Stats specific to buybox winning rules for rule report.
11274
+ # Corresponds to the JSON property `buyboxWinningRuleStats`
11275
+ # @return [Google::Apis::ContentV2_1::RepricingRuleReportBuyboxWinningRuleStats]
11276
+ attr_accessor :buybox_winning_rule_stats
11277
+
11278
+ # Represents a whole or partial calendar date, such as a birthday. The time of
11279
+ # day and time zone are either specified elsewhere or are insignificant. The
11280
+ # date is relative to the Gregorian Calendar. This can represent one of the
11281
+ # following: * A full date, with non-zero year, month, and day values * A month
11282
+ # and day value, with a zero year, such as an anniversary * A year on its own,
11283
+ # with zero month and day values * A year and month value, with a zero day, such
11284
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
11285
+ # google.protobuf.Timestamp`.
11286
+ # Corresponds to the JSON property `date`
11287
+ # @return [Google::Apis::ContentV2_1::Date]
11288
+ attr_accessor :date
11289
+
11290
+ # List of product ids that are impacted by this rule during this reporting
11291
+ # period. Out of stock products and products not searched for by customers are
11292
+ # examples of non-impacted products.
11293
+ # Corresponds to the JSON property `impactedProducts`
11294
+ # @return [Array<String>]
11295
+ attr_accessor :impacted_products
11296
+
11297
+ # List of all reasons the rule did not apply to the inapplicable products during
11298
+ # the specified reporting period.
11299
+ # Corresponds to the JSON property `inapplicabilityDetails`
11300
+ # @return [Array<Google::Apis::ContentV2_1::InapplicabilityDetails>]
11301
+ attr_accessor :inapplicability_details
11302
+
11303
+ # List of product ids that are inapplicable to this rule during this reporting
11304
+ # period. To get the inapplicable reason for a specific product, see
11305
+ # RepricingProductReport.
11306
+ # Corresponds to the JSON property `inapplicableProducts`
11307
+ # @return [Array<String>]
11308
+ attr_accessor :inapplicable_products
11309
+
11310
+ # Total unit count of impacted products ordered while the rule was active on the
11311
+ # date of the report. This count includes all orders that were started while the
11312
+ # rule was active, even if the rule was no longer active when the order was
11313
+ # completed.
11314
+ # Corresponds to the JSON property `orderItemCount`
11315
+ # @return [Fixnum]
11316
+ attr_accessor :order_item_count
11317
+
11318
+ # Id of the Repricing rule for this report.
11319
+ # Corresponds to the JSON property `ruleId`
11320
+ # @return [String]
11321
+ attr_accessor :rule_id
11322
+
11323
+ # The price represented as a number and currency.
11324
+ # Corresponds to the JSON property `totalGmv`
11325
+ # @return [Google::Apis::ContentV2_1::PriceAmount]
11326
+ attr_accessor :total_gmv
11327
+
11328
+ # Type of the rule.
11329
+ # Corresponds to the JSON property `type`
11330
+ # @return [String]
11331
+ attr_accessor :type
11332
+
11333
+ def initialize(**args)
11334
+ update!(**args)
11335
+ end
11336
+
11337
+ # Update properties of this object
11338
+ def update!(**args)
11339
+ @buybox_winning_rule_stats = args[:buybox_winning_rule_stats] if args.key?(:buybox_winning_rule_stats)
11340
+ @date = args[:date] if args.key?(:date)
11341
+ @impacted_products = args[:impacted_products] if args.key?(:impacted_products)
11342
+ @inapplicability_details = args[:inapplicability_details] if args.key?(:inapplicability_details)
11343
+ @inapplicable_products = args[:inapplicable_products] if args.key?(:inapplicable_products)
11344
+ @order_item_count = args[:order_item_count] if args.key?(:order_item_count)
11345
+ @rule_id = args[:rule_id] if args.key?(:rule_id)
11346
+ @total_gmv = args[:total_gmv] if args.key?(:total_gmv)
11347
+ @type = args[:type] if args.key?(:type)
11348
+ end
11349
+ end
11350
+
11351
+ # Stats specific to buybox winning rules for rule report.
11352
+ class RepricingRuleReportBuyboxWinningRuleStats
11353
+ include Google::Apis::Core::Hashable
11354
+
11355
+ # Number of unique products that won the buybox with this rule during this
11356
+ # period of time.
11357
+ # Corresponds to the JSON property `buyboxWonProductCount`
11358
+ # @return [Fixnum]
11359
+ attr_accessor :buybox_won_product_count
11360
+
11361
+ def initialize(**args)
11362
+ update!(**args)
11363
+ end
11364
+
11365
+ # Update properties of this object
11366
+ def update!(**args)
11367
+ @buybox_won_product_count = args[:buybox_won_product_count] if args.key?(:buybox_won_product_count)
11368
+ end
11369
+ end
11370
+
10971
11371
  # Definition of a rule restriction. At least one of the following needs to be
10972
11372
  # true: (1) use_auto_pricing_min_price is true (2) floor.price_delta exists (3)
10973
11373
  # floor.percentage_delta exists If floor.price_delta and floor.percentage_delta
@@ -11035,6 +11435,33 @@ module Google
11035
11435
  end
11036
11436
  end
11037
11437
 
11438
+ # Definition of stats based rule.
11439
+ class RepricingRuleStatsBasedRule
11440
+ include Google::Apis::Core::Hashable
11441
+
11442
+ # The percent change against the price target. Valid from 0 to 100 inclusively.
11443
+ # Corresponds to the JSON property `percentageDelta`
11444
+ # @return [Fixnum]
11445
+ attr_accessor :percentage_delta
11446
+
11447
+ # The price delta against the above price target. A positive value means the
11448
+ # price should be adjusted to be above statistical measure, and a negative value
11449
+ # means below. Currency code must not be included.
11450
+ # Corresponds to the JSON property `priceDelta`
11451
+ # @return [String]
11452
+ attr_accessor :price_delta
11453
+
11454
+ def initialize(**args)
11455
+ update!(**args)
11456
+ end
11457
+
11458
+ # Update properties of this object
11459
+ def update!(**args)
11460
+ @percentage_delta = args[:percentage_delta] if args.key?(:percentage_delta)
11461
+ @price_delta = args[:price_delta] if args.key?(:price_delta)
11462
+ end
11463
+ end
11464
+
11038
11465
  # Return address resource.
11039
11466
  class ReturnAddress
11040
11467
  include Google::Apis::Core::Hashable
@@ -12752,6 +13179,12 @@ module Google
12752
13179
  # @return [Google::Apis::ContentV2_1::TestOrderAddress]
12753
13180
  attr_accessor :address
12754
13181
 
13182
+ # Whether the order is scheduled delivery order.
13183
+ # Corresponds to the JSON property `isScheduledDelivery`
13184
+ # @return [Boolean]
13185
+ attr_accessor :is_scheduled_delivery
13186
+ alias_method :is_scheduled_delivery?, :is_scheduled_delivery
13187
+
12755
13188
  # The phone number of the person receiving the delivery.
12756
13189
  # Corresponds to the JSON property `phoneNumber`
12757
13190
  # @return [String]
@@ -12764,6 +13197,7 @@ module Google
12764
13197
  # Update properties of this object
12765
13198
  def update!(**args)
12766
13199
  @address = args[:address] if args.key?(:address)
13200
+ @is_scheduled_delivery = args[:is_scheduled_delivery] if args.key?(:is_scheduled_delivery)
12767
13201
  @phone_number = args[:phone_number] if args.key?(:phone_number)
12768
13202
  end
12769
13203
  end