google-api-client 0.52.0 → 0.53.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/api-gateway/docs
26
26
  module ApigatewayV1beta
27
27
  VERSION = 'V1beta'
28
- REVISION = '20201203'
28
+ REVISION = '20201211'
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'
@@ -22,7 +22,7 @@ module Google
22
22
  module Apis
23
23
  module ApigatewayV1beta
24
24
 
25
- # A consumable API that can be used by multiple Gateways.
25
+ # An API that can be served by one or more Gateways.
26
26
  class ApigatewayApi
27
27
  include Google::Apis::Core::Hashable
28
28
 
@@ -102,6 +102,16 @@ module Google
102
102
  # @return [Google::Apis::ApigatewayV1beta::ApigatewayGatewayConfig]
103
103
  attr_accessor :gateway_config
104
104
 
105
+ # Immutable. The Google Cloud IAM Service Account that Gateways serving this
106
+ # config should use to authenticate to other services. This may either be the
107
+ # Service Account's email (``ACCOUNT_ID`@`PROJECT`.iam.gserviceaccount.com`) or
108
+ # its full resource name (`projects/`PROJECT`/accounts/`UNIQUE_ID``). This is
109
+ # most often used when the service is a GCP resource such as a Cloud Run Service
110
+ # or an IAP-secured service.
111
+ # Corresponds to the JSON property `gatewayServiceAccount`
112
+ # @return [String]
113
+ attr_accessor :gateway_service_account
114
+
105
115
  # Optional. gRPC service definition files. If specified, openapi_documents must
106
116
  # not be included.
107
117
  # Corresponds to the JSON property `grpcServices`
@@ -116,9 +126,9 @@ module Google
116
126
  attr_accessor :labels
117
127
 
118
128
  # Optional. Service Configuration files. At least one must be included when
119
- # using gRPC service definitions. See https: //cloud.google.com/endpoints/docs/
120
- # grpc/g // rpc-service-config#service_configuration_overview for the expected
121
- # file contents. If multiple files are specified, the files are merged with the
129
+ # using gRPC service definitions. See https://cloud.google.com/endpoints/docs/
130
+ # grpc/grpc-service-config#service_configuration_overview for the expected file
131
+ # contents. If multiple files are specified, the files are merged with the
122
132
  # following rules: * All singular scalar fields are merged using "last one wins"
123
133
  # semantics in the order of the files uploaded. * Repeated fields are
124
134
  # concatenated. * Singular embedded messages are merged using these rules for
@@ -164,6 +174,7 @@ module Google
164
174
  @create_time = args[:create_time] if args.key?(:create_time)
165
175
  @display_name = args[:display_name] if args.key?(:display_name)
166
176
  @gateway_config = args[:gateway_config] if args.key?(:gateway_config)
177
+ @gateway_service_account = args[:gateway_service_account] if args.key?(:gateway_service_account)
167
178
  @grpc_services = args[:grpc_services] if args.key?(:grpc_services)
168
179
  @labels = args[:labels] if args.key?(:labels)
169
180
  @managed_service_configs = args[:managed_service_configs] if args.key?(:managed_service_configs)
@@ -324,16 +335,16 @@ module Google
324
335
  include Google::Apis::Core::Hashable
325
336
 
326
337
  # Google Cloud IAM service account used to sign OIDC tokens for backends that
327
- # have authentication configured (https: //cloud.google.com/service-
328
- # infrastructur // e/docs/service-management/reference/rest/v1/services.configs#
338
+ # have authentication configured (https://cloud.google.com/service-
339
+ # infrastructure/docs/service-management/reference/rest/v1/services.configs#
329
340
  # backend). This may either be the Service Account's email (i.e. "`ACCOUNT_ID`@`
330
341
  # PROJECT`.iam.gserviceaccount.com") or its full resource name (i.e. "projects/`
331
342
  # PROJECT`/accounts/`UNIQUE_ID`"). This is most often used when the backend is a
332
343
  # GCP resource such as a Cloud Run Service or an IAP-secured service. Note that
333
344
  # this token is always sent as an authorization header bearer token. The
334
345
  # audience of the OIDC token is configured in the associated Service Config in
335
- # the BackendRule option (https: //github.com/googleapis/googleapis/blob/ //
336
- # master/google/api/backend.proto#L125).
346
+ # the BackendRule option (https://github.com/googleapis/googleapis/blob/master/
347
+ # google/api/backend.proto#L125).
337
348
  # Corresponds to the JSON property `googleServiceAccount`
338
349
  # @return [String]
339
350
  attr_accessor :google_service_account
@@ -210,6 +210,7 @@ module Google
210
210
  property :display_name, as: 'displayName'
211
211
  property :gateway_config, as: 'gatewayConfig', class: Google::Apis::ApigatewayV1beta::ApigatewayGatewayConfig, decorator: Google::Apis::ApigatewayV1beta::ApigatewayGatewayConfig::Representation
212
212
 
213
+ property :gateway_service_account, as: 'gatewayServiceAccount'
213
214
  collection :grpc_services, as: 'grpcServices', class: Google::Apis::ApigatewayV1beta::ApigatewayApiConfigGrpcServiceDefinition, decorator: Google::Apis::ApigatewayV1beta::ApigatewayApiConfigGrpcServiceDefinition::Representation
214
215
 
215
216
  hash :labels, as: 'labels'
@@ -29,7 +29,7 @@ module Google
29
29
  # @see https://cloud.google.com/apigee-api-management/
30
30
  module ApigeeV1
31
31
  VERSION = 'V1'
32
- REVISION = '20201203'
32
+ REVISION = '20201210'
33
33
 
34
34
  # View and manage your data across Google Cloud Platform services
35
35
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -203,22 +203,22 @@ module Google
203
203
  end
204
204
  end
205
205
 
206
- # A reference to a certificate or key, certificate pair.
206
+ # Reference to a certificate or key/certificate pair.
207
207
  class GoogleCloudApigeeV1Alias
208
208
  include Google::Apis::Core::Hashable
209
209
 
210
- # The resource ID for this alias. Values must match regular expression `[^/]`1,
210
+ # Resource ID for this alias. Values must match the regular expression `[^/]`1,
211
211
  # 255``.
212
212
  # Corresponds to the JSON property `alias`
213
213
  # @return [String]
214
214
  attr_accessor :alias
215
215
 
216
- # The chain of certificates under this alias.
216
+ # Chain of certificates under this alias.
217
217
  # Corresponds to the JSON property `certsInfo`
218
218
  # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Certificate]
219
219
  attr_accessor :certs_info
220
220
 
221
- # The type of alias.
221
+ # Type of alias.
222
222
  # Corresponds to the JSON property `type`
223
223
  # @return [String]
224
224
  attr_accessor :type
@@ -1165,61 +1165,62 @@ module Google
1165
1165
  end
1166
1166
  end
1167
1167
 
1168
- # An X.509 certificate as defined in RFC 5280.
1168
+ # X.509 certificate as defined in RFC 5280.
1169
1169
  class GoogleCloudApigeeV1CertInfo
1170
1170
  include Google::Apis::Core::Hashable
1171
1171
 
1172
- # The X.509 basic constraints extension.
1172
+ # X.509 basic constraints extension.
1173
1173
  # Corresponds to the JSON property `basicConstraints`
1174
1174
  # @return [String]
1175
1175
  attr_accessor :basic_constraints
1176
1176
 
1177
- # The X.509 validity / notAfter in milliseconds since the epoch.
1177
+ # X.509 `notAfter` validity period in milliseconds since epoch.
1178
1178
  # Corresponds to the JSON property `expiryDate`
1179
1179
  # @return [Fixnum]
1180
1180
  attr_accessor :expiry_date
1181
1181
 
1182
- # "Yes" if certificate is valid, "No" if expired and "Not yet" if not yet valid.
1182
+ # Flag that specifies whether the certificate is valid. Flag is set to `Yes` if
1183
+ # the certificate is valid, `No` if expired, or `Not yet` if not yet valid.
1183
1184
  # Corresponds to the JSON property `isValid`
1184
1185
  # @return [String]
1185
1186
  attr_accessor :is_valid
1186
1187
 
1187
- # The X.509 issuer.
1188
+ # X.509 issuer.
1188
1189
  # Corresponds to the JSON property `issuer`
1189
1190
  # @return [String]
1190
1191
  attr_accessor :issuer
1191
1192
 
1192
- # The public key component of the X.509 subject public key info.
1193
+ # Public key component of the X.509 subject public key info.
1193
1194
  # Corresponds to the JSON property `publicKey`
1194
1195
  # @return [String]
1195
1196
  attr_accessor :public_key
1196
1197
 
1197
- # The X.509 serial number.
1198
+ # X.509 serial number.
1198
1199
  # Corresponds to the JSON property `serialNumber`
1199
1200
  # @return [String]
1200
1201
  attr_accessor :serial_number
1201
1202
 
1202
- # The X.509 signatureAlgorithm.
1203
+ # X.509 signatureAlgorithm.
1203
1204
  # Corresponds to the JSON property `sigAlgName`
1204
1205
  # @return [String]
1205
1206
  attr_accessor :sig_alg_name
1206
1207
 
1207
- # The X.509 subject.
1208
+ # X.509 subject.
1208
1209
  # Corresponds to the JSON property `subject`
1209
1210
  # @return [String]
1210
1211
  attr_accessor :subject
1211
1212
 
1212
- # The X.509 subject alternative names (SANs) extension.
1213
+ # X.509 subject alternative names (SANs) extension.
1213
1214
  # Corresponds to the JSON property `subjectAlternativeNames`
1214
1215
  # @return [Array<String>]
1215
1216
  attr_accessor :subject_alternative_names
1216
1217
 
1217
- # The X.509 validity / notBefore in milliseconds since the epoch.
1218
+ # X.509 `notBefore` validity period in milliseconds since epoch.
1218
1219
  # Corresponds to the JSON property `validFrom`
1219
1220
  # @return [Fixnum]
1220
1221
  attr_accessor :valid_from
1221
1222
 
1222
- # The X.509 version.
1223
+ # X.509 version.
1223
1224
  # Corresponds to the JSON property `version`
1224
1225
  # @return [Fixnum]
1225
1226
  attr_accessor :version
@@ -1248,7 +1249,7 @@ module Google
1248
1249
  class GoogleCloudApigeeV1Certificate
1249
1250
  include Google::Apis::Core::Hashable
1250
1251
 
1251
- # The chain of certificates under this name.
1252
+ # Chain of certificates under this name.
1252
1253
  # Corresponds to the JSON property `certInfo`
1253
1254
  # @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1CertInfo>]
1254
1255
  attr_accessor :cert_info
@@ -3107,8 +3108,9 @@ module Google
3107
3108
  # @return [String]
3108
3109
  attr_accessor :description
3109
3110
 
3110
- # Optional. Customer Managed Encryption Key (CMEK) used for disk & volume
3111
- # encryption.
3111
+ # Customer Managed Encryption Key (CMEK) used for disk and volume encryption.
3112
+ # Required for Apigee paid subscriptions only. Use the following format: `
3113
+ # projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`
3112
3114
  # Corresponds to the JSON property `diskEncryptionKeyName`
3113
3115
  # @return [String]
3114
3116
  attr_accessor :disk_encryption_key_name
@@ -3349,16 +3351,16 @@ module Google
3349
3351
  end
3350
3352
  end
3351
3353
 
3352
- # A datastore for Certificates and Aliases
3354
+ # Datastore for Certificates and Aliases.
3353
3355
  class GoogleCloudApigeeV1Keystore
3354
3356
  include Google::Apis::Core::Hashable
3355
3357
 
3356
- # Output only. The aliases in this keystore.
3358
+ # Output only. Aliases in this keystore.
3357
3359
  # Corresponds to the JSON property `aliases`
3358
3360
  # @return [Array<String>]
3359
3361
  attr_accessor :aliases
3360
3362
 
3361
- # Required. The resource ID for this keystore. Values must match the regular
3363
+ # Required. Resource ID for this keystore. Values must match the regular
3362
3364
  # expression `[\w[:space:]-.]`1,255``.
3363
3365
  # Corresponds to the JSON property `name`
3364
3366
  # @return [String]
@@ -4365,16 +4365,16 @@ module Google
4365
4365
  execute_or_queue_command(command, &block)
4366
4366
  end
4367
4367
 
4368
- # Creates a keystore or truststore: * Keystore: Contains certificates and their
4369
- # associated keys. * Truststore: Contains trusted certificates used to validate
4368
+ # Creates a keystore or truststore. - Keystore: Contains certificates and their
4369
+ # associated keys. - Truststore: Contains trusted certificates used to validate
4370
4370
  # a server's certificate. These certificates are typically self-signed
4371
4371
  # certificates or certificates that are not signed by a trusted CA.
4372
4372
  # @param [String] parent
4373
- # Required. The name of the environment in which to create the keystore. Must be
4374
- # of the form `organizations/`organization`/environments/`environment``.
4373
+ # Required. Name of the environment in which to create the keystore. Use the
4374
+ # following format in your request: `organizations/`org`/environments/`env``
4375
4375
  # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Keystore] google_cloud_apigee_v1_keystore_object
4376
4376
  # @param [String] name
4377
- # Optional. Overrides the value in Keystore.
4377
+ # Optional. Name of the keystore. Overrides the value in Keystore.
4378
4378
  # @param [String] fields
4379
4379
  # Selector specifying which fields to include in a partial response.
4380
4380
  # @param [String] quota_user
@@ -4407,8 +4407,8 @@ module Google
4407
4407
 
4408
4408
  # Deletes a keystore or truststore.
4409
4409
  # @param [String] name
4410
- # Required. The name of keystore to delete. Must be of the form `organizations/`
4411
- # organization`/environments/`environment`/keystores/`keystore``.
4410
+ # Required. Name of the keystore. Use the following format in your request: `
4411
+ # organizations/`org`/environments/`env`/keystores/`keystore``
4412
4412
  # @param [String] fields
4413
4413
  # Selector specifying which fields to include in a partial response.
4414
4414
  # @param [String] quota_user
@@ -4438,8 +4438,8 @@ module Google
4438
4438
 
4439
4439
  # Gets a keystore or truststore.
4440
4440
  # @param [String] name
4441
- # Required. The name of keystore. Must be of the form `organizations/`
4442
- # organization`/environments/`environment`/keystores/`keystore``.
4441
+ # Required. Name of the keystore. Use the following format in your request: `
4442
+ # organizations/`org`/environments/`env`/keystores/`keystore``.
4443
4443
  # @param [String] fields
4444
4444
  # Selector specifying which fields to include in a partial response.
4445
4445
  # @param [String] quota_user
@@ -4467,39 +4467,40 @@ module Google
4467
4467
  execute_or_queue_command(command, &block)
4468
4468
  end
4469
4469
 
4470
- # Creates an alias from a key, certificate pair. The structure of the request is
4471
- # controlled by the `format` query parameter: * `keycertfile` - Separate PEM-
4472
- # encoded key and certificate files are uploaded. The request must have `Content-
4473
- # Type: multipart/form-data` and include fields `keyFile` and `certFile`. If
4474
- # uploading to a truststore, omit `keyFile`. A `password` field should be
4475
- # provided for encrypted keys. * `pkcs12` - A PKCS12 file is uploaded. The
4476
- # request must have `Content-Type: multipart/form-data` with the file provided
4477
- # in the `file` field and a `password` field if the file is encrypted. * `
4478
- # selfsignedcert` - A new private key and certificate are generated. The request
4479
- # must have `Content-Type: application/json` and a body of
4480
- # CertificateGenerationSpec.
4470
+ # Creates an alias from a key/certificate pair. The structure of the request is
4471
+ # controlled by the `format` query parameter: - `keycertfile` - Separate PEM-
4472
+ # encoded key and certificate files are uploaded. Set `Content-Type: multipart/
4473
+ # form-data` and include the `keyFile`, `certFile`, and `password` (if keys are
4474
+ # encrypted) fields in the request body. If uploading to a truststore, omit `
4475
+ # keyFile`. - `pkcs12` - A PKCS12 file is uploaded. Set `Content-Type: multipart/
4476
+ # form-data`, provide the file in the `file` field, and include the `password`
4477
+ # field if the file is encrypted in the request body. - `selfsignedcert` - A new
4478
+ # private key and certificate are generated. Set `Content-Type: application/json`
4479
+ # and include CertificateGenerationSpec in the request body.
4481
4480
  # @param [String] parent
4482
- # Required. The name of the keystore. Must be of the form `organizations/`
4483
- # organization`/environments/`environment`/keystores/`keystore``.
4481
+ # Required. Name of the keystore. Use the following format in your request: `
4482
+ # organizations/`org`/environments/`env`/keystores/`keystore``.
4484
4483
  # @param [Google::Apis::ApigeeV1::GoogleApiHttpBody] google_api_http_body_object
4485
4484
  # @param [String] _password
4486
- # DEPRECATED: For improved security, send the password in the body instead of
4487
- # using this query param. To send it in the body, use a multipart/form-data part
4488
- # with name "password". The password for the private key file, if it exists.
4485
+ # DEPRECATED: For improved security, specify the password in the request body
4486
+ # instead of using the query parameter. To specify the password in the request
4487
+ # body, set `Content-type: multipart/form-data` part with name `password`.
4488
+ # Password for the private key file, if required.
4489
4489
  # @param [String] alias_
4490
- # The alias for the key, certificate pair. Values must match regular expression `
4491
- # [\w\s-.]`1,255``. This must be provided for all formats except 'selfsignedcert'
4492
- # ; self-signed certs may specify the alias in either this parameter or the JSON
4490
+ # Alias for the key/certificate pair. Values must match the regular expression `[
4491
+ # \w\s-.]`1,255``. This must be provided for all formats except `selfsignedcert`;
4492
+ # self-signed certs may specify the alias in either this parameter or the JSON
4493
4493
  # body.
4494
4494
  # @param [String] format
4495
- # Required. The format of the data. Must be either `selfsignedcert`, `
4496
- # keycertfile`, or `pkcs12`.
4495
+ # Required. Format of the data. Valid values include: `selfsignedcert`, `
4496
+ # keycertfile`, or `pkcs12`
4497
4497
  # @param [Boolean] ignore_expiry_validation
4498
- # If `true`, no expiry validation will be performed.
4498
+ # Flag that specifies whether to ignore expiry validation. If set to `true`, no
4499
+ # expiry validation will be performed.
4499
4500
  # @param [Boolean] ignore_newline_validation
4500
- # If `true`, do not throw an error when the file contains a chain with no
4501
- # newline between each certificate. By default, a newline is needed between each
4502
- # certificate in a chain.
4501
+ # Flag that specifies whether to ignore newline validation. If set to `true`, no
4502
+ # error is thrown when the file contains a certificate chain with no newline
4503
+ # between each certificate. Defaults to `false`.
4503
4504
  # @param [String] fields
4504
4505
  # Selector specifying which fields to include in a partial response.
4505
4506
  # @param [String] quota_user
@@ -4537,8 +4538,8 @@ module Google
4537
4538
  # Generates a PKCS #10 Certificate Signing Request for the private key in an
4538
4539
  # alias.
4539
4540
  # @param [String] name
4540
- # Required. The name of the alias. Must be of the form `organizations/`
4541
- # organization`/environments/`environment`/keystores/`keystore`/aliases/`alias``.
4541
+ # Required. Name of the alias. Use the following format in your request: `
4542
+ # organizations/`org`/environments/`env`/keystores/`keystore`/aliases/`alias``.
4542
4543
  # @param [String] fields
4543
4544
  # Selector specifying which fields to include in a partial response.
4544
4545
  # @param [String] quota_user
@@ -4568,8 +4569,8 @@ module Google
4568
4569
 
4569
4570
  # Deletes an alias.
4570
4571
  # @param [String] name
4571
- # Required. The name of the alias. Must be of the form `organizations/`
4572
- # organization`/environments/`environment`/keystores/`keystore`/aliases/`alias``.
4572
+ # Required. Name of the alias. Use the following format in your request: `
4573
+ # organizations/`org`/environments/`env`/keystores/`keystore`/aliases/`alias``.
4573
4574
  # @param [String] fields
4574
4575
  # Selector specifying which fields to include in a partial response.
4575
4576
  # @param [String] quota_user
@@ -4599,8 +4600,8 @@ module Google
4599
4600
 
4600
4601
  # Gets an alias.
4601
4602
  # @param [String] name
4602
- # Required. The name of the alias. Must be of the form `organizations/`
4603
- # organization`/environments/`environment`/keystores/`keystore`/aliases/`alias``.
4603
+ # Required. Name of the alias. Use the following format in your request: `
4604
+ # organizations/`org`/environments/`env`/keystores/`keystore`/aliases/`alias``.
4604
4605
  # @param [String] fields
4605
4606
  # Selector specifying which fields to include in a partial response.
4606
4607
  # @param [String] quota_user
@@ -4630,8 +4631,8 @@ module Google
4630
4631
 
4631
4632
  # Gets the certificate from an alias in PEM-encoded form.
4632
4633
  # @param [String] name
4633
- # Required. The name of the alias. Must be of the form `organizations/`
4634
- # organization`/environments/`environment`/keystores/`keystore`/aliases/`alias``.
4634
+ # Required. Name of the alias. Use the following format in your request: `
4635
+ # organizations/`org`/environments/`env`/keystores/`keystore`/aliases/`alias``.
4635
4636
  # @param [String] fields
4636
4637
  # Selector specifying which fields to include in a partial response.
4637
4638
  # @param [String] quota_user
@@ -4661,15 +4662,16 @@ module Google
4661
4662
 
4662
4663
  # Updates the certificate in an alias.
4663
4664
  # @param [String] name
4664
- # Required. The name of the alias. Must be of the form `organizations/`
4665
- # organization`/environments/`environment`/keystores/`keystore`/aliases/`alias``.
4665
+ # Required. Name of the alias. Use the following format in your request: `
4666
+ # organizations/`org`/environments/`env`/keystores/`keystore`/aliases/`alias``
4666
4667
  # @param [Google::Apis::ApigeeV1::GoogleApiHttpBody] google_api_http_body_object
4667
4668
  # @param [Boolean] ignore_expiry_validation
4668
- # Required. If `true`, no expiry validation will be performed.
4669
+ # Required. Flag that specifies whether to ignore expiry validation. If set to `
4670
+ # true`, no expiry validation will be performed.
4669
4671
  # @param [Boolean] ignore_newline_validation
4670
- # If `true`, do not throw an error when the file contains a chain with no
4671
- # newline between each certificate. By default, a newline is needed between each
4672
- # certificate in a chain.
4672
+ # Flag that specifies whether to ignore newline validation. If set to `true`, no
4673
+ # error is thrown when the file contains a certificate chain with no newline
4674
+ # between each certificate. Defaults to `false`.
4673
4675
  # @param [String] fields
4674
4676
  # Selector specifying which fields to include in a partial response.
4675
4677
  # @param [String] quota_user
@@ -0,0 +1,38 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/artifactregistry_v1/service.rb'
16
+ require 'google/apis/artifactregistry_v1/classes.rb'
17
+ require 'google/apis/artifactregistry_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Artifact Registry API
22
+ #
23
+ # Store and manage build artifacts in a scalable and integrated service built on
24
+ # Google infrastructure.
25
+ #
26
+ # @see https://cloud.google.com/artifacts/docs/
27
+ module ArtifactregistryV1
28
+ VERSION = 'V1'
29
+ REVISION = '20201215'
30
+
31
+ # View and manage your data across Google Cloud Platform services
32
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
+
34
+ # View your data across Google Cloud Platform services
35
+ AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,242 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module ArtifactregistryV1
24
+
25
+ # The request message for Operations.CancelOperation.
26
+ class CancelOperationRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ def initialize(**args)
30
+ update!(**args)
31
+ end
32
+
33
+ # Update properties of this object
34
+ def update!(**args)
35
+ end
36
+ end
37
+
38
+ # DockerImage represents a docker artifact.
39
+ class DockerImage
40
+ include Google::Apis::Core::Hashable
41
+
42
+ # Calculated size of the image.
43
+ # Corresponds to the JSON property `imageSizeBytes`
44
+ # @return [Fixnum]
45
+ attr_accessor :image_size_bytes
46
+
47
+ # Media type of this image, e.g. "application/vnd.docker.distribution.manifest.
48
+ # v2+json".
49
+ # Corresponds to the JSON property `mediaType`
50
+ # @return [String]
51
+ attr_accessor :media_type
52
+
53
+ # Required. registry_location, project_id, repository_name and image id forms a
54
+ # unique image name:`projects//locations//repository//dockerimages/`. For
55
+ # example, "projects/test-project/locations/us-west4/repositories/test-repo/
56
+ # dockerimages/ nginx@sha256:
57
+ # e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", where "us-
58
+ # west4" is the registry_location, "test-project" is the project_id, "test-repo"
59
+ # is the repository_name and "nginx@sha256:
60
+ # e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf" is the image'
61
+ # s digest.
62
+ # Corresponds to the JSON property `name`
63
+ # @return [String]
64
+ attr_accessor :name
65
+
66
+ # Tags attached to this image.
67
+ # Corresponds to the JSON property `tags`
68
+ # @return [Array<String>]
69
+ attr_accessor :tags
70
+
71
+ # Time the image was uploaded.
72
+ # Corresponds to the JSON property `uploadTime`
73
+ # @return [String]
74
+ attr_accessor :upload_time
75
+
76
+ # Required. URL to access the image. Example: us-west4-docker.pkg.dev/test-
77
+ # project/test-repo/nginx@sha256:
78
+ # e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf
79
+ # Corresponds to the JSON property `uri`
80
+ # @return [String]
81
+ attr_accessor :uri
82
+
83
+ def initialize(**args)
84
+ update!(**args)
85
+ end
86
+
87
+ # Update properties of this object
88
+ def update!(**args)
89
+ @image_size_bytes = args[:image_size_bytes] if args.key?(:image_size_bytes)
90
+ @media_type = args[:media_type] if args.key?(:media_type)
91
+ @name = args[:name] if args.key?(:name)
92
+ @tags = args[:tags] if args.key?(:tags)
93
+ @upload_time = args[:upload_time] if args.key?(:upload_time)
94
+ @uri = args[:uri] if args.key?(:uri)
95
+ end
96
+ end
97
+
98
+ # A generic empty message that you can re-use to avoid defining duplicated empty
99
+ # messages in your APIs. A typical example is to use it as the request or the
100
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
101
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
102
+ # `Empty` is empty JSON object ````.
103
+ class Empty
104
+ include Google::Apis::Core::Hashable
105
+
106
+ def initialize(**args)
107
+ update!(**args)
108
+ end
109
+
110
+ # Update properties of this object
111
+ def update!(**args)
112
+ end
113
+ end
114
+
115
+ # The response message for Operations.ListOperations.
116
+ class ListOperationsResponse
117
+ include Google::Apis::Core::Hashable
118
+
119
+ # The standard List next-page token.
120
+ # Corresponds to the JSON property `nextPageToken`
121
+ # @return [String]
122
+ attr_accessor :next_page_token
123
+
124
+ # A list of operations that matches the specified filter in the request.
125
+ # Corresponds to the JSON property `operations`
126
+ # @return [Array<Google::Apis::ArtifactregistryV1::Operation>]
127
+ attr_accessor :operations
128
+
129
+ def initialize(**args)
130
+ update!(**args)
131
+ end
132
+
133
+ # Update properties of this object
134
+ def update!(**args)
135
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
136
+ @operations = args[:operations] if args.key?(:operations)
137
+ end
138
+ end
139
+
140
+ # This resource represents a long-running operation that is the result of a
141
+ # network API call.
142
+ class Operation
143
+ include Google::Apis::Core::Hashable
144
+
145
+ # If the value is `false`, it means the operation is still in progress. If `true`
146
+ # , the operation is completed, and either `error` or `response` is available.
147
+ # Corresponds to the JSON property `done`
148
+ # @return [Boolean]
149
+ attr_accessor :done
150
+ alias_method :done?, :done
151
+
152
+ # The `Status` type defines a logical error model that is suitable for different
153
+ # programming environments, including REST APIs and RPC APIs. It is used by [
154
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
155
+ # data: error code, error message, and error details. You can find out more
156
+ # about this error model and how to work with it in the [API Design Guide](https:
157
+ # //cloud.google.com/apis/design/errors).
158
+ # Corresponds to the JSON property `error`
159
+ # @return [Google::Apis::ArtifactregistryV1::Status]
160
+ attr_accessor :error
161
+
162
+ # Service-specific metadata associated with the operation. It typically contains
163
+ # progress information and common metadata such as create time. Some services
164
+ # might not provide such metadata. Any method that returns a long-running
165
+ # operation should document the metadata type, if any.
166
+ # Corresponds to the JSON property `metadata`
167
+ # @return [Hash<String,Object>]
168
+ attr_accessor :metadata
169
+
170
+ # The server-assigned name, which is only unique within the same service that
171
+ # originally returns it. If you use the default HTTP mapping, the `name` should
172
+ # be a resource name ending with `operations/`unique_id``.
173
+ # Corresponds to the JSON property `name`
174
+ # @return [String]
175
+ attr_accessor :name
176
+
177
+ # The normal response of the operation in case of success. If the original
178
+ # method returns no data on success, such as `Delete`, the response is `google.
179
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
180
+ # the response should be the resource. For other methods, the response should
181
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
182
+ # example, if the original method name is `TakeSnapshot()`, the inferred
183
+ # response type is `TakeSnapshotResponse`.
184
+ # Corresponds to the JSON property `response`
185
+ # @return [Hash<String,Object>]
186
+ attr_accessor :response
187
+
188
+ def initialize(**args)
189
+ update!(**args)
190
+ end
191
+
192
+ # Update properties of this object
193
+ def update!(**args)
194
+ @done = args[:done] if args.key?(:done)
195
+ @error = args[:error] if args.key?(:error)
196
+ @metadata = args[:metadata] if args.key?(:metadata)
197
+ @name = args[:name] if args.key?(:name)
198
+ @response = args[:response] if args.key?(:response)
199
+ end
200
+ end
201
+
202
+ # The `Status` type defines a logical error model that is suitable for different
203
+ # programming environments, including REST APIs and RPC APIs. It is used by [
204
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
205
+ # data: error code, error message, and error details. You can find out more
206
+ # about this error model and how to work with it in the [API Design Guide](https:
207
+ # //cloud.google.com/apis/design/errors).
208
+ class Status
209
+ include Google::Apis::Core::Hashable
210
+
211
+ # The status code, which should be an enum value of google.rpc.Code.
212
+ # Corresponds to the JSON property `code`
213
+ # @return [Fixnum]
214
+ attr_accessor :code
215
+
216
+ # A list of messages that carry the error details. There is a common set of
217
+ # message types for APIs to use.
218
+ # Corresponds to the JSON property `details`
219
+ # @return [Array<Hash<String,Object>>]
220
+ attr_accessor :details
221
+
222
+ # A developer-facing error message, which should be in English. Any user-facing
223
+ # error message should be localized and sent in the google.rpc.Status.details
224
+ # field, or localized by the client.
225
+ # Corresponds to the JSON property `message`
226
+ # @return [String]
227
+ attr_accessor :message
228
+
229
+ def initialize(**args)
230
+ update!(**args)
231
+ end
232
+
233
+ # Update properties of this object
234
+ def update!(**args)
235
+ @code = args[:code] if args.key?(:code)
236
+ @details = args[:details] if args.key?(:details)
237
+ @message = args[:message] if args.key?(:message)
238
+ end
239
+ end
240
+ end
241
+ end
242
+ end