google-cloud-run-v2 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +3 -3
  4. data/lib/google/cloud/run/v2/execution_pb.rb +76 -0
  5. data/lib/google/cloud/run/v2/execution_services_pb.rb +49 -0
  6. data/lib/google/cloud/run/v2/execution_template_pb.rb +29 -0
  7. data/lib/google/cloud/run/v2/executions/client.rb +635 -0
  8. data/lib/google/cloud/run/v2/executions/credentials.rb +47 -0
  9. data/lib/google/cloud/run/v2/executions/operations.rb +770 -0
  10. data/lib/google/cloud/run/v2/executions/paths.rb +73 -0
  11. data/lib/google/cloud/run/v2/executions.rb +50 -0
  12. data/lib/google/cloud/run/v2/job_pb.rb +104 -0
  13. data/lib/google/cloud/run/v2/job_services_pb.rb +65 -0
  14. data/lib/google/cloud/run/v2/jobs/client.rb +1259 -0
  15. data/lib/google/cloud/run/v2/jobs/credentials.rb +47 -0
  16. data/lib/google/cloud/run/v2/jobs/operations.rb +770 -0
  17. data/lib/google/cloud/run/v2/jobs/paths.rb +166 -0
  18. data/lib/google/cloud/run/v2/jobs.rb +50 -0
  19. data/lib/google/cloud/run/v2/k8s.min_pb.rb +6 -0
  20. data/lib/google/cloud/run/v2/revision_services_pb.rb +2 -2
  21. data/lib/google/cloud/run/v2/revisions/client.rb +2 -2
  22. data/lib/google/cloud/run/v2/service_services_pb.rb +2 -2
  23. data/lib/google/cloud/run/v2/services/client.rb +13 -10
  24. data/lib/google/cloud/run/v2/task_pb.rb +81 -0
  25. data/lib/google/cloud/run/v2/task_services_pb.rb +47 -0
  26. data/lib/google/cloud/run/v2/task_template_pb.rb +36 -0
  27. data/lib/google/cloud/run/v2/tasks/client.rb +512 -0
  28. data/lib/google/cloud/run/v2/tasks/credentials.rb +47 -0
  29. data/lib/google/cloud/run/v2/tasks/paths.rb +77 -0
  30. data/lib/google/cloud/run/v2/tasks.rb +49 -0
  31. data/lib/google/cloud/run/v2/version.rb +1 -1
  32. data/lib/google/cloud/run/v2.rb +4 -1
  33. data/proto_docs/google/cloud/run/v2/execution.rb +223 -0
  34. data/proto_docs/google/cloud/run/v2/execution_template.rb +76 -0
  35. data/proto_docs/google/cloud/run/v2/job.rb +308 -0
  36. data/proto_docs/google/cloud/run/v2/k8s.min.rb +29 -7
  37. data/proto_docs/google/cloud/run/v2/service.rb +11 -8
  38. data/proto_docs/google/cloud/run/v2/task.rb +229 -0
  39. data/proto_docs/google/cloud/run/v2/task_template.rb +66 -0
  40. data/proto_docs/google/cloud/run/v2/vendor_settings.rb +2 -1
  41. metadata +29 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a37b489155da1d8766a45a844fc55d7d49a3abebee914a83d5c8115306a9f6d
4
- data.tar.gz: 6184eb9fb9fa7dca712e6d365006a7a0e486bcb572e0633c0a2451eaa34f4579
3
+ metadata.gz: e8a4a4211fa3c66d3988fbf411e9e975b5058fc596619427724baf4b11e3ec15
4
+ data.tar.gz: aee71deba3ae25c34bf93921d990c7bf904b2c9d95316a799823de2f9c20fa45
5
5
  SHA512:
6
- metadata.gz: 5830e0dd70ea15f36e82d50ab5b66ce81e6c48b335b02e593359cf84e78a6ad871ed6070ebc278a3e16b9f17a35dbc75ac77c51eda8f34bef1de5d0837b613eb
7
- data.tar.gz: 5159409c5c7f947d87081a76c6108a91a852fa64c50ef2169be7f7518200601e6ec4273b73c551bab4cff8506aabf79788c411fa8fdf9c650bbf5b52cf390252
6
+ metadata.gz: 524c972c4f15312049511e1326d9c3d522b91178b449ce10f59ea3add53770d7272116c51370cf42cf76ccc81bda20aa76ea0ebb26f25871aec2d1fb3672c4aa
7
+ data.tar.gz: a3b5b7ee2ed34e1d6f27b79e0ef7d906f696ca92afe3c2d082a77ca65fd5626dd9c7dfc7275401dda71e453f1f68687119045f37c47896ad0744f49f2d9f1a91
data/AUTHENTICATION.md CHANGED
@@ -27,7 +27,7 @@ export GOOGLE_CLOUD_CREDENTIALS=path/to/keyfile.json
27
27
  ```ruby
28
28
  require "google/cloud/run/v2"
29
29
 
30
- client = ::Google::Cloud::Run::V2::Revisions::Client.new
30
+ client = ::Google::Cloud::Run::V2::Executions::Client.new
31
31
  ```
32
32
 
33
33
  ## Credential Lookup
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
64
64
 
65
65
  The environment variables that google-cloud-run-v2
66
66
  checks for credentials are configured on the service Credentials class (such as
67
- {::Google::Cloud::Run::V2::Revisions::Credentials}):
67
+ {::Google::Cloud::Run::V2::Executions::Credentials}):
68
68
 
69
69
  * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
70
70
  * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
@@ -75,7 +75,7 @@ require "google/cloud/run/v2"
75
75
 
76
76
  ENV["GOOGLE_CLOUD_CREDENTIALS"] = "path/to/keyfile.json"
77
77
 
78
- client = ::Google::Cloud::Run::V2::Revisions::Client.new
78
+ client = ::Google::Cloud::Run::V2::Executions::Client.new
79
79
  ```
80
80
 
81
81
  ### Configuration
@@ -86,7 +86,7 @@ it in an environment variable. Either on an individual client initialization:
86
86
  ```ruby
87
87
  require "google/cloud/run/v2"
88
88
 
89
- client = ::Google::Cloud::Run::V2::Revisions::Client.new do |config|
89
+ client = ::Google::Cloud::Run::V2::Executions::Client.new do |config|
90
90
  config.credentials = "path/to/keyfile.json"
91
91
  end
92
92
  ```
@@ -96,11 +96,11 @@ Or globally for all clients:
96
96
  ```ruby
97
97
  require "google/cloud/run/v2"
98
98
 
99
- ::Google::Cloud::Run::V2::Revisions::Client.configure do |config|
99
+ ::Google::Cloud::Run::V2::Executions::Client.configure do |config|
100
100
  config.credentials = "path/to/keyfile.json"
101
101
  end
102
102
 
103
- client = ::Google::Cloud::Run::V2::Revisions::Client.new
103
+ client = ::Google::Cloud::Run::V2::Executions::Client.new
104
104
  ```
105
105
 
106
106
  ### Cloud SDK
data/README.md CHANGED
@@ -32,9 +32,9 @@ In order to use this library, you first need to go through the following steps:
32
32
  ```ruby
33
33
  require "google/cloud/run/v2"
34
34
 
35
- client = ::Google::Cloud::Run::V2::Revisions::Client.new
36
- request = ::Google::Cloud::Run::V2::GetRevisionRequest.new # (request fields as keyword arguments...)
37
- response = client.get_revision request
35
+ client = ::Google::Cloud::Run::V2::Executions::Client.new
36
+ request = ::Google::Cloud::Run::V2::GetExecutionRequest.new # (request fields as keyword arguments...)
37
+ response = client.get_execution request
38
38
  ```
39
39
 
40
40
  View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-run-v2/latest)
@@ -0,0 +1,76 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/run/v2/execution.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/launch_stage_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/cloud/run/v2/condition_pb'
12
+ require 'google/cloud/run/v2/task_template_pb'
13
+ require 'google/longrunning/operations_pb'
14
+ require 'google/protobuf/timestamp_pb'
15
+
16
+ Google::Protobuf::DescriptorPool.generated_pool.build do
17
+ add_file("google/cloud/run/v2/execution.proto", :syntax => :proto3) do
18
+ add_message "google.cloud.run.v2.GetExecutionRequest" do
19
+ optional :name, :string, 1
20
+ end
21
+ add_message "google.cloud.run.v2.ListExecutionsRequest" do
22
+ optional :parent, :string, 1
23
+ optional :page_size, :int32, 2
24
+ optional :page_token, :string, 3
25
+ optional :show_deleted, :bool, 4
26
+ end
27
+ add_message "google.cloud.run.v2.ListExecutionsResponse" do
28
+ repeated :executions, :message, 1, "google.cloud.run.v2.Execution"
29
+ optional :next_page_token, :string, 2
30
+ end
31
+ add_message "google.cloud.run.v2.DeleteExecutionRequest" do
32
+ optional :name, :string, 1
33
+ optional :validate_only, :bool, 2
34
+ optional :etag, :string, 3
35
+ end
36
+ add_message "google.cloud.run.v2.Execution" do
37
+ optional :name, :string, 1
38
+ optional :uid, :string, 2
39
+ optional :generation, :int64, 3
40
+ map :labels, :string, :string, 4
41
+ map :annotations, :string, :string, 5
42
+ optional :create_time, :message, 6, "google.protobuf.Timestamp"
43
+ optional :start_time, :message, 22, "google.protobuf.Timestamp"
44
+ optional :completion_time, :message, 7, "google.protobuf.Timestamp"
45
+ optional :update_time, :message, 8, "google.protobuf.Timestamp"
46
+ optional :delete_time, :message, 9, "google.protobuf.Timestamp"
47
+ optional :expire_time, :message, 10, "google.protobuf.Timestamp"
48
+ optional :launch_stage, :enum, 11, "google.api.LaunchStage"
49
+ optional :job, :string, 12
50
+ optional :parallelism, :int32, 13
51
+ optional :task_count, :int32, 14
52
+ optional :template, :message, 15, "google.cloud.run.v2.TaskTemplate"
53
+ optional :reconciling, :bool, 16
54
+ repeated :conditions, :message, 17, "google.cloud.run.v2.Condition"
55
+ optional :observed_generation, :int64, 18
56
+ optional :running_count, :int32, 19
57
+ optional :succeeded_count, :int32, 20
58
+ optional :failed_count, :int32, 21
59
+ optional :etag, :string, 99
60
+ end
61
+ end
62
+ end
63
+
64
+ module Google
65
+ module Cloud
66
+ module Run
67
+ module V2
68
+ GetExecutionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.GetExecutionRequest").msgclass
69
+ ListExecutionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ListExecutionsRequest").msgclass
70
+ ListExecutionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ListExecutionsResponse").msgclass
71
+ DeleteExecutionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.DeleteExecutionRequest").msgclass
72
+ Execution = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.Execution").msgclass
73
+ end
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,49 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/run/v2/execution.proto for package 'google.cloud.run.v2'
3
+ # Original file comments:
4
+ # Copyright 2022 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/run/v2/execution_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Run
25
+ module V2
26
+ module Executions
27
+ # Cloud Run Execution Control Plane API.
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.run.v2.Executions'
35
+
36
+ # Gets information about an Execution.
37
+ rpc :GetExecution, ::Google::Cloud::Run::V2::GetExecutionRequest, ::Google::Cloud::Run::V2::Execution
38
+ # Lists Executions from a Job.
39
+ rpc :ListExecutions, ::Google::Cloud::Run::V2::ListExecutionsRequest, ::Google::Cloud::Run::V2::ListExecutionsResponse
40
+ # Deletes an Execution.
41
+ rpc :DeleteExecution, ::Google::Cloud::Run::V2::DeleteExecutionRequest, ::Google::Longrunning::Operation
42
+ end
43
+
44
+ Stub = Service.rpc_stub_class
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,29 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/run/v2/execution_template.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/cloud/run/v2/task_template_pb'
8
+
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_file("google/cloud/run/v2/execution_template.proto", :syntax => :proto3) do
11
+ add_message "google.cloud.run.v2.ExecutionTemplate" do
12
+ map :labels, :string, :string, 1
13
+ map :annotations, :string, :string, 2
14
+ optional :parallelism, :int32, 3
15
+ optional :task_count, :int32, 4
16
+ optional :template, :message, 5, "google.cloud.run.v2.TaskTemplate"
17
+ end
18
+ end
19
+ end
20
+
21
+ module Google
22
+ module Cloud
23
+ module Run
24
+ module V2
25
+ ExecutionTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ExecutionTemplate").msgclass
26
+ end
27
+ end
28
+ end
29
+ end