google-cloud-run-v2 0.14.0 → 0.16.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 (44) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/run/v2/condition_pb.rb +2 -1
  3. data/lib/google/cloud/run/v2/execution_services_pb.rb +2 -1
  4. data/lib/google/cloud/run/v2/executions/client.rb +13 -5
  5. data/lib/google/cloud/run/v2/executions/operations.rb +13 -5
  6. data/lib/google/cloud/run/v2/executions/rest/client.rb +13 -5
  7. data/lib/google/cloud/run/v2/executions/rest/operations.rb +13 -5
  8. data/lib/google/cloud/run/v2/job_pb.rb +2 -2
  9. data/lib/google/cloud/run/v2/job_services_pb.rb +1 -1
  10. data/lib/google/cloud/run/v2/jobs/client.rb +25 -13
  11. data/lib/google/cloud/run/v2/jobs/operations.rb +13 -5
  12. data/lib/google/cloud/run/v2/jobs/rest/client.rb +25 -13
  13. data/lib/google/cloud/run/v2/jobs/rest/operations.rb +13 -5
  14. data/lib/google/cloud/run/v2/k8s.min_pb.rb +3 -1
  15. data/lib/google/cloud/run/v2/revision_pb.rb +3 -1
  16. data/lib/google/cloud/run/v2/revision_services_pb.rb +2 -1
  17. data/lib/google/cloud/run/v2/revision_template_pb.rb +2 -1
  18. data/lib/google/cloud/run/v2/revisions/client.rb +11 -4
  19. data/lib/google/cloud/run/v2/revisions/operations.rb +13 -5
  20. data/lib/google/cloud/run/v2/revisions/rest/client.rb +11 -4
  21. data/lib/google/cloud/run/v2/revisions/rest/operations.rb +13 -5
  22. data/lib/google/cloud/run/v2/service_pb.rb +3 -1
  23. data/lib/google/cloud/run/v2/service_services_pb.rb +1 -1
  24. data/lib/google/cloud/run/v2/services/client.rb +26 -13
  25. data/lib/google/cloud/run/v2/services/operations.rb +13 -5
  26. data/lib/google/cloud/run/v2/services/rest/client.rb +26 -13
  27. data/lib/google/cloud/run/v2/services/rest/operations.rb +13 -5
  28. data/lib/google/cloud/run/v2/status_pb.rb +42 -0
  29. data/lib/google/cloud/run/v2/task_template_pb.rb +2 -1
  30. data/lib/google/cloud/run/v2/tasks/client.rb +7 -2
  31. data/lib/google/cloud/run/v2/tasks/rest/client.rb +7 -2
  32. data/lib/google/cloud/run/v2/vendor_settings_pb.rb +2 -1
  33. data/lib/google/cloud/run/v2/version.rb +1 -1
  34. data/proto_docs/google/api/client.rb +4 -0
  35. data/proto_docs/google/cloud/run/v2/condition.rb +6 -6
  36. data/proto_docs/google/cloud/run/v2/job.rb +43 -4
  37. data/proto_docs/google/cloud/run/v2/k8s.min.rb +65 -28
  38. data/proto_docs/google/cloud/run/v2/revision.rb +3 -0
  39. data/proto_docs/google/cloud/run/v2/revision_template.rb +25 -21
  40. data/proto_docs/google/cloud/run/v2/service.rb +29 -20
  41. data/proto_docs/google/cloud/run/v2/status.rb +35 -0
  42. data/proto_docs/google/cloud/run/v2/task_template.rb +13 -12
  43. data/proto_docs/google/cloud/run/v2/vendor_settings.rb +34 -16
  44. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc1bc9826f6a4da7702d64de0c26b21bc3035cb460ce411d330af79074efdad1
4
- data.tar.gz: 05b0a04dfb4ad520c583e0028ac81a336520fb5a2a84c7e2e2c3dc8e000ac65e
3
+ metadata.gz: 510ba197b8ae273e23dc2017c9bcbab260549ed582d465919f576c1caaf3ae19
4
+ data.tar.gz: 75848f2e0df9430b09a21a29fab3aff07082de94b00e1120730e1e5629f71865
5
5
  SHA512:
6
- metadata.gz: b16bbef4543b676c298e26360650bcb8e0b1d164284e316759c872b1db1b824cee413f11fe604b7d957ed3ce29246f2398e74b3d8684ec3a163f76fd2971bd53
7
- data.tar.gz: 2afd7e3d724ec8da0ab6a8fb050467b05be728ce47748bdc69c7bdf3c366fb2aaf589a4f26b4bf9ae852e5719a316b037d2645dadf52df462ddf500567e6d9db
6
+ metadata.gz: b9b0bc4f853af9f7e060e23e0666e7179aae46f726ad23b362cb3d15d1505a8dc2ecd34d9e00a00b25a47c2bc00e5e059faeb01a7c9ce37b7657ce3ea8560871
7
+ data.tar.gz: fab1960f5e19fc176de2322087aadd291de48ecd9126971cc3430a20ddbbc6c154c9932af2880bdbd04c9c87415744e95e15acdefbe960c61b94792afc309742
@@ -4,10 +4,11 @@
4
4
 
5
5
  require 'google/protobuf'
6
6
 
7
+ require 'google/api/field_behavior_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
9
10
 
10
- descriptor_data = "\n#google/cloud/run/v2/condition.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9d\x0c\n\tCondition\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x33\n\x05state\x18\x02 \x01(\x0e\x32$.google.cloud.run.v2.Condition.State\x12\x0f\n\x07message\x18\x03 \x01(\t\x12\x38\n\x14last_transition_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x39\n\x08severity\x18\x05 \x01(\x0e\x32\'.google.cloud.run.v2.Condition.Severity\x12=\n\x06reason\x18\x06 \x01(\x0e\x32+.google.cloud.run.v2.Condition.CommonReasonH\x00\x12H\n\x0frevision_reason\x18\t \x01(\x0e\x32-.google.cloud.run.v2.Condition.RevisionReasonH\x00\x12J\n\x10\x65xecution_reason\x18\x0b \x01(\x0e\x32..google.cloud.run.v2.Condition.ExecutionReasonH\x00\"\x7f\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x43ONDITION_PENDING\x10\x01\x12\x19\n\x15\x43ONDITION_RECONCILING\x10\x02\x12\x14\n\x10\x43ONDITION_FAILED\x10\x03\x12\x17\n\x13\x43ONDITION_SUCCEEDED\x10\x04\"F\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\t\n\x05\x45RROR\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\x08\n\x04INFO\x10\x03\"\xb2\x03\n\x0c\x43ommonReason\x12\x1b\n\x17\x43OMMON_REASON_UNDEFINED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fREVISION_FAILED\x10\x03\x12\x1e\n\x1aPROGRESS_DEADLINE_EXCEEDED\x10\x04\x12\x15\n\x11\x43ONTAINER_MISSING\x10\x06\x12\x1f\n\x1b\x43ONTAINER_PERMISSION_DENIED\x10\x07\x12 \n\x1c\x43ONTAINER_IMAGE_UNAUTHORIZED\x10\x08\x12.\n*CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED\x10\t\x12$\n ENCRYPTION_KEY_PERMISSION_DENIED\x10\n\x12\x1f\n\x1b\x45NCRYPTION_KEY_CHECK_FAILED\x10\x0b\x12\x1f\n\x1bSECRETS_ACCESS_CHECK_FAILED\x10\x0c\x12\x19\n\x15WAITING_FOR_OPERATION\x10\r\x12\x13\n\x0fIMMEDIATE_RETRY\x10\x0e\x12\x13\n\x0fPOSTPONED_RETRY\x10\x0f\x12\x0c\n\x08INTERNAL\x10\x10\"\xca\x02\n\x0eRevisionReason\x12\x1d\n\x19REVISION_REASON_UNDEFINED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RESERVE\x10\x02\x12\x0b\n\x07RETIRED\x10\x03\x12\x0c\n\x08RETIRING\x10\x04\x12\x0e\n\nRECREATING\x10\x05\x12 \n\x1cHEALTH_CHECK_CONTAINER_ERROR\x10\x06\x12$\n CUSTOMIZED_PATH_RESPONSE_PENDING\x10\x07\x12!\n\x1dMIN_INSTANCES_NOT_PROVISIONED\x10\x08\x12!\n\x1d\x41\x43TIVE_REVISION_LIMIT_REACHED\x10\t\x12\x11\n\rNO_DEPLOYMENT\x10\n\x12\x18\n\x14HEALTH_CHECK_SKIPPED\x10\x0b\x12\x19\n\x15MIN_INSTANCES_WARMING\x10\x0c\"\x9b\x01\n\x0f\x45xecutionReason\x12\x1e\n\x1a\x45XECUTION_REASON_UNDEFINED\x10\x00\x12$\n JOB_STATUS_SERVICE_POLLING_ERROR\x10\x01\x12\x16\n\x12NON_ZERO_EXIT_CODE\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\x0e\n\nCANCELLING\x10\x04\x12\x0b\n\x07\x44\x45LETED\x10\x05\x42\t\n\x07reasonsBV\n\x17\x63om.google.cloud.run.v2B\x0e\x43onditionProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
11
+ descriptor_data = "\n#google/cloud/run/v2/condition.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xac\x0c\n\tCondition\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x33\n\x05state\x18\x02 \x01(\x0e\x32$.google.cloud.run.v2.Condition.State\x12\x0f\n\x07message\x18\x03 \x01(\t\x12\x38\n\x14last_transition_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x39\n\x08severity\x18\x05 \x01(\x0e\x32\'.google.cloud.run.v2.Condition.Severity\x12\x42\n\x06reason\x18\x06 \x01(\x0e\x32+.google.cloud.run.v2.Condition.CommonReasonB\x03\xe0\x41\x03H\x00\x12M\n\x0frevision_reason\x18\t \x01(\x0e\x32-.google.cloud.run.v2.Condition.RevisionReasonB\x03\xe0\x41\x03H\x00\x12O\n\x10\x65xecution_reason\x18\x0b \x01(\x0e\x32..google.cloud.run.v2.Condition.ExecutionReasonB\x03\xe0\x41\x03H\x00\"\x7f\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x43ONDITION_PENDING\x10\x01\x12\x19\n\x15\x43ONDITION_RECONCILING\x10\x02\x12\x14\n\x10\x43ONDITION_FAILED\x10\x03\x12\x17\n\x13\x43ONDITION_SUCCEEDED\x10\x04\"F\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\t\n\x05\x45RROR\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\x08\n\x04INFO\x10\x03\"\xb2\x03\n\x0c\x43ommonReason\x12\x1b\n\x17\x43OMMON_REASON_UNDEFINED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fREVISION_FAILED\x10\x03\x12\x1e\n\x1aPROGRESS_DEADLINE_EXCEEDED\x10\x04\x12\x15\n\x11\x43ONTAINER_MISSING\x10\x06\x12\x1f\n\x1b\x43ONTAINER_PERMISSION_DENIED\x10\x07\x12 \n\x1c\x43ONTAINER_IMAGE_UNAUTHORIZED\x10\x08\x12.\n*CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED\x10\t\x12$\n ENCRYPTION_KEY_PERMISSION_DENIED\x10\n\x12\x1f\n\x1b\x45NCRYPTION_KEY_CHECK_FAILED\x10\x0b\x12\x1f\n\x1bSECRETS_ACCESS_CHECK_FAILED\x10\x0c\x12\x19\n\x15WAITING_FOR_OPERATION\x10\r\x12\x13\n\x0fIMMEDIATE_RETRY\x10\x0e\x12\x13\n\x0fPOSTPONED_RETRY\x10\x0f\x12\x0c\n\x08INTERNAL\x10\x10\"\xca\x02\n\x0eRevisionReason\x12\x1d\n\x19REVISION_REASON_UNDEFINED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RESERVE\x10\x02\x12\x0b\n\x07RETIRED\x10\x03\x12\x0c\n\x08RETIRING\x10\x04\x12\x0e\n\nRECREATING\x10\x05\x12 \n\x1cHEALTH_CHECK_CONTAINER_ERROR\x10\x06\x12$\n CUSTOMIZED_PATH_RESPONSE_PENDING\x10\x07\x12!\n\x1dMIN_INSTANCES_NOT_PROVISIONED\x10\x08\x12!\n\x1d\x41\x43TIVE_REVISION_LIMIT_REACHED\x10\t\x12\x11\n\rNO_DEPLOYMENT\x10\n\x12\x18\n\x14HEALTH_CHECK_SKIPPED\x10\x0b\x12\x19\n\x15MIN_INSTANCES_WARMING\x10\x0c\"\x9b\x01\n\x0f\x45xecutionReason\x12\x1e\n\x1a\x45XECUTION_REASON_UNDEFINED\x10\x00\x12$\n JOB_STATUS_SERVICE_POLLING_ERROR\x10\x01\x12\x16\n\x12NON_ZERO_EXIT_CODE\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\x0e\n\nCANCELLING\x10\x04\x12\x0b\n\x07\x44\x45LETED\x10\x05\x42\t\n\x07reasonsBV\n\x17\x63om.google.cloud.run.v2B\x0e\x43onditionProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
11
12
 
12
13
  pool = Google::Protobuf::DescriptorPool.generated_pool
13
14
 
@@ -35,7 +35,8 @@ module Google
35
35
 
36
36
  # Gets information about an Execution.
37
37
  rpc :GetExecution, ::Google::Cloud::Run::V2::GetExecutionRequest, ::Google::Cloud::Run::V2::Execution
38
- # Lists Executions from a Job.
38
+ # Lists Executions from a Job. Results are sorted by creation time,
39
+ # descending.
39
40
  rpc :ListExecutions, ::Google::Cloud::Run::V2::ListExecutionsRequest, ::Google::Cloud::Run::V2::ListExecutionsResponse
40
41
  # Deletes an Execution.
41
42
  rpc :DeleteExecution, ::Google::Cloud::Run::V2::DeleteExecutionRequest, ::Google::Longrunning::Operation
@@ -31,6 +31,9 @@ module Google
31
31
  # Cloud Run Execution Control Plane API.
32
32
  #
33
33
  class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
34
37
  # @private
35
38
  DEFAULT_ENDPOINT_TEMPLATE = "run.$UNIVERSE_DOMAIN$"
36
39
 
@@ -247,10 +250,11 @@ module Google
247
250
  # Customize the options with defaults
248
251
  metadata = @config.rpcs.get_execution.metadata.to_h
249
252
 
250
- # Set x-goog-api-client and x-goog-user-project headers
253
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
251
254
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
252
255
  lib_name: @config.lib_name, lib_version: @config.lib_version,
253
256
  gapic_version: ::Google::Cloud::Run::V2::VERSION
257
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
254
258
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
255
259
 
256
260
  header_params = {}
@@ -278,7 +282,8 @@ module Google
278
282
  end
279
283
 
280
284
  ##
281
- # Lists Executions from a Job.
285
+ # Lists Executions from a Job. Results are sorted by creation time,
286
+ # descending.
282
287
  #
283
288
  # @overload list_executions(request, options = nil)
284
289
  # Pass arguments to `list_executions` via a request object, either of type
@@ -346,10 +351,11 @@ module Google
346
351
  # Customize the options with defaults
347
352
  metadata = @config.rpcs.list_executions.metadata.to_h
348
353
 
349
- # Set x-goog-api-client and x-goog-user-project headers
354
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
350
355
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
351
356
  lib_name: @config.lib_name, lib_version: @config.lib_version,
352
357
  gapic_version: ::Google::Cloud::Run::V2::VERSION
358
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
353
359
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
354
360
 
355
361
  header_params = {}
@@ -448,10 +454,11 @@ module Google
448
454
  # Customize the options with defaults
449
455
  metadata = @config.rpcs.delete_execution.metadata.to_h
450
456
 
451
- # Set x-goog-api-client and x-goog-user-project headers
457
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
452
458
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
453
459
  lib_name: @config.lib_name, lib_version: @config.lib_version,
454
460
  gapic_version: ::Google::Cloud::Run::V2::VERSION
461
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
455
462
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
456
463
 
457
464
  header_params = {}
@@ -550,10 +557,11 @@ module Google
550
557
  # Customize the options with defaults
551
558
  metadata = @config.rpcs.cancel_execution.metadata.to_h
552
559
 
553
- # Set x-goog-api-client and x-goog-user-project headers
560
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
554
561
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
555
562
  lib_name: @config.lib_name, lib_version: @config.lib_version,
556
563
  gapic_version: ::Google::Cloud::Run::V2::VERSION
564
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
557
565
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
558
566
 
559
567
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module Executions
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "run.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::Run::V2::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::Run::V2::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::Run::V2::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::Run::V2::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::Run::V2::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  header_params = {}
@@ -33,6 +33,9 @@ module Google
33
33
  # Cloud Run Execution Control Plane API.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "run.$UNIVERSE_DOMAIN$"
38
41
 
@@ -239,12 +242,13 @@ module Google
239
242
  # Customize the options with defaults
240
243
  call_metadata = @config.rpcs.get_execution.metadata.to_h
241
244
 
242
- # Set x-goog-api-client and x-goog-user-project headers
245
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
243
246
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
244
247
  lib_name: @config.lib_name, lib_version: @config.lib_version,
245
248
  gapic_version: ::Google::Cloud::Run::V2::VERSION,
246
249
  transports_version_send: [:rest]
247
250
 
251
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
248
252
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
249
253
 
250
254
  options.apply_defaults timeout: @config.rpcs.get_execution.timeout,
@@ -264,7 +268,8 @@ module Google
264
268
  end
265
269
 
266
270
  ##
267
- # Lists Executions from a Job.
271
+ # Lists Executions from a Job. Results are sorted by creation time,
272
+ # descending.
268
273
  #
269
274
  # @overload list_executions(request, options = nil)
270
275
  # Pass arguments to `list_executions` via a request object, either of type
@@ -331,12 +336,13 @@ module Google
331
336
  # Customize the options with defaults
332
337
  call_metadata = @config.rpcs.list_executions.metadata.to_h
333
338
 
334
- # Set x-goog-api-client and x-goog-user-project headers
339
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
335
340
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
336
341
  lib_name: @config.lib_name, lib_version: @config.lib_version,
337
342
  gapic_version: ::Google::Cloud::Run::V2::VERSION,
338
343
  transports_version_send: [:rest]
339
344
 
345
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
340
346
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
341
347
 
342
348
  options.apply_defaults timeout: @config.rpcs.list_executions.timeout,
@@ -426,12 +432,13 @@ module Google
426
432
  # Customize the options with defaults
427
433
  call_metadata = @config.rpcs.delete_execution.metadata.to_h
428
434
 
429
- # Set x-goog-api-client and x-goog-user-project headers
435
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
430
436
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
431
437
  lib_name: @config.lib_name, lib_version: @config.lib_version,
432
438
  gapic_version: ::Google::Cloud::Run::V2::VERSION,
433
439
  transports_version_send: [:rest]
434
440
 
441
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
435
442
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
436
443
 
437
444
  options.apply_defaults timeout: @config.rpcs.delete_execution.timeout,
@@ -521,12 +528,13 @@ module Google
521
528
  # Customize the options with defaults
522
529
  call_metadata = @config.rpcs.cancel_execution.metadata.to_h
523
530
 
524
- # Set x-goog-api-client and x-goog-user-project headers
531
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
525
532
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
526
533
  lib_name: @config.lib_name, lib_version: @config.lib_version,
527
534
  gapic_version: ::Google::Cloud::Run::V2::VERSION,
528
535
  transports_version_send: [:rest]
529
536
 
537
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
530
538
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
531
539
 
532
540
  options.apply_defaults timeout: @config.rpcs.cancel_execution.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "run.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::Run::V2::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::Run::V2::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::Run::V2::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::Run::V2::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -535,12 +542,13 @@ module Google
535
542
  # Customize the options with defaults
536
543
  call_metadata = @config.rpcs.wait_operation.metadata.to_h
537
544
 
538
- # Set x-goog-api-client and x-goog-user-project headers
545
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
539
546
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
540
547
  lib_name: @config.lib_name, lib_version: @config.lib_version,
541
548
  gapic_version: ::Google::Cloud::Run::V2::VERSION,
542
549
  transports_version_send: [:rest]
543
550
 
551
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
544
552
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
545
553
 
546
554
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -11,7 +11,6 @@ require 'google/api/launch_stage_pb'
11
11
  require 'google/api/resource_pb'
12
12
  require 'google/api/routing_pb'
13
13
  require 'google/cloud/run/v2/condition_pb'
14
- require 'google/cloud/run/v2/execution_pb'
15
14
  require 'google/cloud/run/v2/execution_template_pb'
16
15
  require 'google/cloud/run/v2/k8s.min_pb'
17
16
  require 'google/cloud/run/v2/vendor_settings_pb'
@@ -22,7 +21,7 @@ require 'google/protobuf/duration_pb'
22
21
  require 'google/protobuf/timestamp_pb'
23
22
 
24
23
 
25
- descriptor_data = "\n\x1dgoogle/cloud/run/v2/job.proto\x12\x13google.cloud.run.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\x1a\x18google/api/routing.proto\x1a#google/cloud/run/v2/condition.proto\x1a#google/cloud/run/v2/execution.proto\x1a,google/cloud/run/v2/execution_template.proto\x1a!google/cloud/run/v2/k8s.min.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9a\x01\n\x10\x43reateJobRequest\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\x12\x16run.googleapis.com/Job\x12*\n\x03job\x18\x02 \x01(\x0b\x32\x18.google.cloud.run.v2.JobB\x03\xe0\x41\x02\x12\x13\n\x06job_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"=\n\rGetJobRequest\x12,\n\x04name\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16run.googleapis.com/Job\"l\n\x10UpdateJobRequest\x12*\n\x03job\x18\x01 \x01(\x0b\x32\x18.google.cloud.run.v2.JobB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x15\n\rallow_missing\x18\x04 \x01(\x08\"~\n\x0fListJobsRequest\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\x12\x16run.googleapis.com/Job\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"S\n\x10ListJobsResponse\x12&\n\x04jobs\x18\x01 \x03(\x0b\x32\x18.google.cloud.run.v2.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"e\n\x10\x44\x65leteJobRequest\x12,\n\x04name\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16run.googleapis.com/Job\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x04 \x01(\t\"\xcc\x03\n\rRunJobRequest\x12,\n\x04name\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16run.googleapis.com/Job\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12?\n\toverrides\x18\x04 \x01(\x0b\x32,.google.cloud.run.v2.RunJobRequest.Overrides\x1a\xa6\x02\n\tOverrides\x12[\n\x13\x63ontainer_overrides\x18\x01 \x03(\x0b\x32>.google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride\x12\x17\n\ntask_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12*\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x1aw\n\x11\x43ontainerOverride\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\x04\x61rgs\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12(\n\x03\x65nv\x18\x03 \x03(\x0b\x32\x1b.google.cloud.run.v2.EnvVar\x12\x17\n\nclear_args\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xa6\t\n\x03Job\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ngeneration\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x06labels\x18\x04 \x03(\x0b\x32$.google.cloud.run.v2.Job.LabelsEntry\x12>\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32).google.cloud.run.v2.Job.AnnotationsEntry\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07\x63reator\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rlast_modifier\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x0e\n\x06\x63lient\x18\x0c \x01(\t\x12\x16\n\x0e\x63lient_version\x18\r \x01(\t\x12-\n\x0claunch_stage\x18\x0e \x01(\x0e\x32\x17.google.api.LaunchStage\x12\x46\n\x14\x62inary_authorization\x18\x0f \x01(\x0b\x32(.google.cloud.run.v2.BinaryAuthorization\x12=\n\x08template\x18\x10 \x01(\x0b\x32&.google.cloud.run.v2.ExecutionTemplateB\x03\xe0\x41\x02\x12 \n\x13observed_generation\x18\x11 \x01(\x03\x42\x03\xe0\x41\x03\x12?\n\x12terminal_condition\x18\x12 \x01(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12\x37\n\nconditions\x18\x13 \x03(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12\x1c\n\x0f\x65xecution_count\x18\x14 \x01(\x05\x42\x03\xe0\x41\x03\x12N\n\x18latest_created_execution\x18\x16 \x01(\x0b\x32\'.google.cloud.run.v2.ExecutionReferenceB\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x17 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzs\x18\x19 \x01(\x08\x42\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x63 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:R\xea\x41O\n\x16run.googleapis.com/Job\x12\x32projects/{project}/locations/{location}/jobs/{job}R\x01\x01\"\xab\x01\n\x12\x45xecutionReference\x12/\n\x04name\x18\x01 \x01(\tB!\xfa\x41\x1e\n\x1crun.googleapis.com/Execution\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x63ompletion_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\x8a\x0e\n\x04Jobs\x12\xdd\x01\n\tCreateJob\x12%.google.cloud.run.v2.CreateJobRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\xca\x41\n\n\x03Job\x12\x03Job\xda\x41\x11parent,job,job_id\x82\xd3\xe4\x93\x02/\"(/v2/{parent=projects/*/locations/*}/jobs:\x03job\x8a\xd3\xe4\x93\x02-\x12+\n\x06parent\x12!projects/*/locations/{location=*}\x12\xb3\x01\n\x06GetJob\x12\".google.cloud.run.v2.GetJobRequest\x1a\x18.google.cloud.run.v2.Job\"k\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v2/{name=projects/*/locations/*/jobs/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\x12\xc5\x01\n\x08ListJobs\x12$.google.cloud.run.v2.ListJobsRequest\x1a%.google.cloud.run.v2.ListJobsResponse\"l\xda\x41\x06parent\x82\xd3\xe4\x93\x02*\x12(/v2/{parent=projects/*/locations/*}/jobs\x8a\xd3\xe4\x93\x02-\x12+\n\x06parent\x12!projects/*/locations/{location=*}\x12\xd8\x01\n\tUpdateJob\x12%.google.cloud.run.v2.UpdateJobRequest\x1a\x1d.google.longrunning.Operation\"\x84\x01\xca\x41\n\n\x03Job\x12\x03Job\xda\x41\x03job\x82\xd3\xe4\x93\x02\x33\x32,/v2/{job.name=projects/*/locations/*/jobs/*}:\x03job\x8a\xd3\xe4\x93\x02\x32\x12\x30\n\x08job.name\x12$projects/*/locations/{location=*}/**\x12\xcb\x01\n\tDeleteJob\x12%.google.cloud.run.v2.DeleteJobRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\n\n\x03Job\x12\x03Job\xda\x41\x04name\x82\xd3\xe4\x93\x02**(/v2/{name=projects/*/locations/*/jobs/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\x12\xd9\x01\n\x06RunJob\x12\".google.cloud.run.v2.RunJobRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\xca\x41\x16\n\tExecution\x12\tExecution\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\",/v2/{name=projects/*/locations/*/jobs/*}:run:\x01*\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\x12\x8c\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"A\x82\xd3\xe4\x93\x02;\x12\x39/v2/{resource=projects/*/locations/*/jobs/*}:getIamPolicy\x12\x8f\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"D\x82\xd3\xe4\x93\x02>\"9/v2/{resource=projects/*/locations/*/jobs/*}:setIamPolicy:\x01*\x12\xb5\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"J\x82\xd3\xe4\x93\x02\x44\"?/v2/{resource=projects/*/locations/*/jobs/*}:testIamPermissions:\x01*\x1a\x46\xca\x41\x12run.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBP\n\x17\x63om.google.cloud.run.v2B\x08JobProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
24
+ descriptor_data = "\n\x1dgoogle/cloud/run/v2/job.proto\x12\x13google.cloud.run.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\x1a\x18google/api/routing.proto\x1a#google/cloud/run/v2/condition.proto\x1a,google/cloud/run/v2/execution_template.proto\x1a!google/cloud/run/v2/k8s.min.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9a\x01\n\x10\x43reateJobRequest\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\x12\x16run.googleapis.com/Job\x12*\n\x03job\x18\x02 \x01(\x0b\x32\x18.google.cloud.run.v2.JobB\x03\xe0\x41\x02\x12\x13\n\x06job_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"=\n\rGetJobRequest\x12,\n\x04name\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16run.googleapis.com/Job\"q\n\x10UpdateJobRequest\x12*\n\x03job\x18\x01 \x01(\x0b\x32\x18.google.cloud.run.v2.JobB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x1a\n\rallow_missing\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"~\n\x0fListJobsRequest\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\x12\x16run.googleapis.com/Job\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"S\n\x10ListJobsResponse\x12&\n\x04jobs\x18\x01 \x03(\x0b\x32\x18.google.cloud.run.v2.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"e\n\x10\x44\x65leteJobRequest\x12,\n\x04name\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16run.googleapis.com/Job\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x04 \x01(\t\"\xcc\x03\n\rRunJobRequest\x12,\n\x04name\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16run.googleapis.com/Job\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12?\n\toverrides\x18\x04 \x01(\x0b\x32,.google.cloud.run.v2.RunJobRequest.Overrides\x1a\xa6\x02\n\tOverrides\x12[\n\x13\x63ontainer_overrides\x18\x01 \x03(\x0b\x32>.google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride\x12\x17\n\ntask_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12*\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x1aw\n\x11\x43ontainerOverride\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\x04\x61rgs\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12(\n\x03\x65nv\x18\x03 \x03(\x0b\x32\x1b.google.cloud.run.v2.EnvVar\x12\x17\n\nclear_args\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xfa\t\n\x03Job\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ngeneration\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x06labels\x18\x04 \x03(\x0b\x32$.google.cloud.run.v2.Job.LabelsEntry\x12>\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32).google.cloud.run.v2.Job.AnnotationsEntry\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07\x63reator\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rlast_modifier\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x0e\n\x06\x63lient\x18\x0c \x01(\t\x12\x16\n\x0e\x63lient_version\x18\r \x01(\t\x12-\n\x0claunch_stage\x18\x0e \x01(\x0e\x32\x17.google.api.LaunchStage\x12\x46\n\x14\x62inary_authorization\x18\x0f \x01(\x0b\x32(.google.cloud.run.v2.BinaryAuthorization\x12=\n\x08template\x18\x10 \x01(\x0b\x32&.google.cloud.run.v2.ExecutionTemplateB\x03\xe0\x41\x02\x12 \n\x13observed_generation\x18\x11 \x01(\x03\x42\x03\xe0\x41\x03\x12?\n\x12terminal_condition\x18\x12 \x01(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12\x37\n\nconditions\x18\x13 \x03(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12\x1c\n\x0f\x65xecution_count\x18\x14 \x01(\x05\x42\x03\xe0\x41\x03\x12N\n\x18latest_created_execution\x18\x16 \x01(\x0b\x32\'.google.cloud.run.v2.ExecutionReferenceB\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x17 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzs\x18\x19 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1f\n\x15start_execution_token\x18\x1a \x01(\tH\x00\x12\x1d\n\x13run_execution_token\x18\x1b \x01(\tH\x00\x12\x11\n\x04\x65tag\x18\x63 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:R\xea\x41O\n\x16run.googleapis.com/Job\x12\x32projects/{project}/locations/{location}/jobs/{job}R\x01\x01\x42\x12\n\x10\x63reate_execution\"\xdf\x03\n\x12\x45xecutionReference\x12/\n\x04name\x18\x01 \x01(\tB!\xfa\x41\x1e\n\x1crun.googleapis.com/Execution\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x63ompletion_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x64\x65lete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12S\n\x11\x63ompletion_status\x18\x04 \x01(\x0e\x32\x38.google.cloud.run.v2.ExecutionReference.CompletionStatus\"\xab\x01\n\x10\x43ompletionStatus\x12!\n\x1d\x43OMPLETION_STATUS_UNSPECIFIED\x10\x00\x12\x17\n\x13\x45XECUTION_SUCCEEDED\x10\x01\x12\x14\n\x10\x45XECUTION_FAILED\x10\x02\x12\x15\n\x11\x45XECUTION_RUNNING\x10\x03\x12\x15\n\x11\x45XECUTION_PENDING\x10\x04\x12\x17\n\x13\x45XECUTION_CANCELLED\x10\x05\x32\x8a\x0e\n\x04Jobs\x12\xdd\x01\n\tCreateJob\x12%.google.cloud.run.v2.CreateJobRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\xca\x41\n\n\x03Job\x12\x03Job\xda\x41\x11parent,job,job_id\x82\xd3\xe4\x93\x02/\"(/v2/{parent=projects/*/locations/*}/jobs:\x03job\x8a\xd3\xe4\x93\x02-\x12+\n\x06parent\x12!projects/*/locations/{location=*}\x12\xb3\x01\n\x06GetJob\x12\".google.cloud.run.v2.GetJobRequest\x1a\x18.google.cloud.run.v2.Job\"k\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v2/{name=projects/*/locations/*/jobs/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\x12\xc5\x01\n\x08ListJobs\x12$.google.cloud.run.v2.ListJobsRequest\x1a%.google.cloud.run.v2.ListJobsResponse\"l\xda\x41\x06parent\x82\xd3\xe4\x93\x02*\x12(/v2/{parent=projects/*/locations/*}/jobs\x8a\xd3\xe4\x93\x02-\x12+\n\x06parent\x12!projects/*/locations/{location=*}\x12\xd8\x01\n\tUpdateJob\x12%.google.cloud.run.v2.UpdateJobRequest\x1a\x1d.google.longrunning.Operation\"\x84\x01\xca\x41\n\n\x03Job\x12\x03Job\xda\x41\x03job\x82\xd3\xe4\x93\x02\x33\x32,/v2/{job.name=projects/*/locations/*/jobs/*}:\x03job\x8a\xd3\xe4\x93\x02\x32\x12\x30\n\x08job.name\x12$projects/*/locations/{location=*}/**\x12\xcb\x01\n\tDeleteJob\x12%.google.cloud.run.v2.DeleteJobRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\n\n\x03Job\x12\x03Job\xda\x41\x04name\x82\xd3\xe4\x93\x02**(/v2/{name=projects/*/locations/*/jobs/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\x12\xd9\x01\n\x06RunJob\x12\".google.cloud.run.v2.RunJobRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\xca\x41\x16\n\tExecution\x12\tExecution\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\",/v2/{name=projects/*/locations/*/jobs/*}:run:\x01*\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\x12\x8c\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"A\x82\xd3\xe4\x93\x02;\x12\x39/v2/{resource=projects/*/locations/*/jobs/*}:getIamPolicy\x12\x8f\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"D\x82\xd3\xe4\x93\x02>\"9/v2/{resource=projects/*/locations/*/jobs/*}:setIamPolicy:\x01*\x12\xb5\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"J\x82\xd3\xe4\x93\x02\x44\"?/v2/{resource=projects/*/locations/*/jobs/*}:testIamPermissions:\x01*\x1a\x46\xca\x41\x12run.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBP\n\x17\x63om.google.cloud.run.v2B\x08JobProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
26
25
 
27
26
  pool = Google::Protobuf::DescriptorPool.generated_pool
28
27
 
@@ -69,6 +68,7 @@ module Google
69
68
  RunJobRequest::Overrides::ContainerOverride = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride").msgclass
70
69
  Job = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.Job").msgclass
71
70
  ExecutionReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ExecutionReference").msgclass
71
+ ExecutionReference::CompletionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ExecutionReference.CompletionStatus").enummodule
72
72
  end
73
73
  end
74
74
  end
@@ -37,7 +37,7 @@ module Google
37
37
  rpc :CreateJob, ::Google::Cloud::Run::V2::CreateJobRequest, ::Google::Longrunning::Operation
38
38
  # Gets information about a Job.
39
39
  rpc :GetJob, ::Google::Cloud::Run::V2::GetJobRequest, ::Google::Cloud::Run::V2::Job
40
- # Lists Jobs.
40
+ # Lists Jobs. Results are sorted by creation time, descending.
41
41
  rpc :ListJobs, ::Google::Cloud::Run::V2::ListJobsRequest, ::Google::Cloud::Run::V2::ListJobsResponse
42
42
  # Updates a Job.
43
43
  rpc :UpdateJob, ::Google::Cloud::Run::V2::UpdateJobRequest, ::Google::Longrunning::Operation
@@ -31,6 +31,9 @@ module Google
31
31
  # Cloud Run Job Control Plane API.
32
32
  #
33
33
  class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
34
37
  # @private
35
38
  DEFAULT_ENDPOINT_TEMPLATE = "run.$UNIVERSE_DOMAIN$"
36
39
 
@@ -261,10 +264,11 @@ module Google
261
264
  # Customize the options with defaults
262
265
  metadata = @config.rpcs.create_job.metadata.to_h
263
266
 
264
- # Set x-goog-api-client and x-goog-user-project headers
267
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
265
268
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
266
269
  lib_name: @config.lib_name, lib_version: @config.lib_version,
267
270
  gapic_version: ::Google::Cloud::Run::V2::VERSION
271
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
268
272
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
269
273
 
270
274
  header_params = {}
@@ -352,10 +356,11 @@ module Google
352
356
  # Customize the options with defaults
353
357
  metadata = @config.rpcs.get_job.metadata.to_h
354
358
 
355
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
356
360
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
357
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
358
362
  gapic_version: ::Google::Cloud::Run::V2::VERSION
363
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
359
364
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
360
365
 
361
366
  header_params = {}
@@ -386,7 +391,7 @@ module Google
386
391
  end
387
392
 
388
393
  ##
389
- # Lists Jobs.
394
+ # Lists Jobs. Results are sorted by creation time, descending.
390
395
  #
391
396
  # @overload list_jobs(request, options = nil)
392
397
  # Pass arguments to `list_jobs` via a request object, either of type
@@ -453,10 +458,11 @@ module Google
453
458
  # Customize the options with defaults
454
459
  metadata = @config.rpcs.list_jobs.metadata.to_h
455
460
 
456
- # Set x-goog-api-client and x-goog-user-project headers
461
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
457
462
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
458
463
  lib_name: @config.lib_name, lib_version: @config.lib_version,
459
464
  gapic_version: ::Google::Cloud::Run::V2::VERSION
465
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
460
466
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
461
467
 
462
468
  header_params = {}
@@ -511,9 +517,9 @@ module Google
511
517
  # Indicates that the request should be validated and default values
512
518
  # populated, without persisting the request or updating any resources.
513
519
  # @param allow_missing [::Boolean]
514
- # If set to true, and if the Job does not exist, it will create a new
515
- # one. Caller must have both create and update permissions for this call if
516
- # this is set to true.
520
+ # Optional. If set to true, and if the Job does not exist, it will create a
521
+ # new one. Caller must have both create and update permissions for this call
522
+ # if this is set to true.
517
523
  #
518
524
  # @yield [response, operation] Access the result along with the RPC operation
519
525
  # @yieldparam response [::Gapic::Operation]
@@ -556,10 +562,11 @@ module Google
556
562
  # Customize the options with defaults
557
563
  metadata = @config.rpcs.update_job.metadata.to_h
558
564
 
559
- # Set x-goog-api-client and x-goog-user-project headers
565
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
560
566
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
561
567
  lib_name: @config.lib_name, lib_version: @config.lib_version,
562
568
  gapic_version: ::Google::Cloud::Run::V2::VERSION
569
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
563
570
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
564
571
 
565
572
  header_params = {}
@@ -660,10 +667,11 @@ module Google
660
667
  # Customize the options with defaults
661
668
  metadata = @config.rpcs.delete_job.metadata.to_h
662
669
 
663
- # Set x-goog-api-client and x-goog-user-project headers
670
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
664
671
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
665
672
  lib_name: @config.lib_name, lib_version: @config.lib_version,
666
673
  gapic_version: ::Google::Cloud::Run::V2::VERSION
674
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
667
675
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
668
676
 
669
677
  header_params = {}
@@ -767,10 +775,11 @@ module Google
767
775
  # Customize the options with defaults
768
776
  metadata = @config.rpcs.run_job.metadata.to_h
769
777
 
770
- # Set x-goog-api-client and x-goog-user-project headers
778
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
771
779
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
772
780
  lib_name: @config.lib_name, lib_version: @config.lib_version,
773
781
  gapic_version: ::Google::Cloud::Run::V2::VERSION
782
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
774
783
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
775
784
 
776
785
  header_params = {}
@@ -861,10 +870,11 @@ module Google
861
870
  # Customize the options with defaults
862
871
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
863
872
 
864
- # Set x-goog-api-client and x-goog-user-project headers
873
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
865
874
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
866
875
  lib_name: @config.lib_name, lib_version: @config.lib_version,
867
876
  gapic_version: ::Google::Cloud::Run::V2::VERSION
877
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
868
878
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
869
879
 
870
880
  header_params = {}
@@ -959,10 +969,11 @@ module Google
959
969
  # Customize the options with defaults
960
970
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
961
971
 
962
- # Set x-goog-api-client and x-goog-user-project headers
972
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
963
973
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
964
974
  lib_name: @config.lib_name, lib_version: @config.lib_version,
965
975
  gapic_version: ::Google::Cloud::Run::V2::VERSION
976
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
966
977
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
967
978
 
968
979
  header_params = {}
@@ -1052,10 +1063,11 @@ module Google
1052
1063
  # Customize the options with defaults
1053
1064
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1054
1065
 
1055
- # Set x-goog-api-client and x-goog-user-project headers
1066
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1056
1067
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1057
1068
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1058
1069
  gapic_version: ::Google::Cloud::Run::V2::VERSION
1070
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1059
1071
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1060
1072
 
1061
1073
  header_params = {}