google-cloud-run-v2 0.4.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +4 -4
- data/lib/google/cloud/run/v2/condition_pb.rb +1 -0
- data/lib/google/cloud/run/v2/execution_pb.rb +79 -0
- data/lib/google/cloud/run/v2/execution_services_pb.rb +49 -0
- data/lib/google/cloud/run/v2/execution_template_pb.rb +29 -0
- data/lib/google/cloud/run/v2/executions/client.rb +635 -0
- data/lib/google/cloud/run/v2/executions/credentials.rb +47 -0
- data/lib/google/cloud/run/v2/executions/operations.rb +778 -0
- data/lib/google/cloud/run/v2/executions/paths.rb +73 -0
- data/lib/google/cloud/run/v2/executions.rb +50 -0
- data/lib/google/cloud/run/v2/job_pb.rb +105 -0
- data/lib/google/cloud/run/v2/job_services_pb.rb +65 -0
- data/lib/google/cloud/run/v2/jobs/client.rb +1259 -0
- data/lib/google/cloud/run/v2/jobs/credentials.rb +47 -0
- data/lib/google/cloud/run/v2/jobs/operations.rb +778 -0
- data/lib/google/cloud/run/v2/jobs/paths.rb +166 -0
- data/lib/google/cloud/run/v2/jobs.rb +50 -0
- data/lib/google/cloud/run/v2/k8s.min_pb.rb +6 -0
- data/lib/google/cloud/run/v2/revision_pb.rb +2 -0
- data/lib/google/cloud/run/v2/revision_services_pb.rb +2 -2
- data/lib/google/cloud/run/v2/revisions/client.rb +2 -2
- data/lib/google/cloud/run/v2/revisions/operations.rb +8 -0
- data/lib/google/cloud/run/v2/revisions.rb +1 -1
- data/lib/google/cloud/run/v2/service_services_pb.rb +2 -2
- data/lib/google/cloud/run/v2/services/client.rb +13 -10
- data/lib/google/cloud/run/v2/services/operations.rb +8 -0
- data/lib/google/cloud/run/v2/services.rb +1 -1
- data/lib/google/cloud/run/v2/task_pb.rb +82 -0
- data/lib/google/cloud/run/v2/task_services_pb.rb +47 -0
- data/lib/google/cloud/run/v2/task_template_pb.rb +36 -0
- data/lib/google/cloud/run/v2/tasks/client.rb +512 -0
- data/lib/google/cloud/run/v2/tasks/credentials.rb +47 -0
- data/lib/google/cloud/run/v2/tasks/paths.rb +77 -0
- data/lib/google/cloud/run/v2/tasks.rb +49 -0
- data/lib/google/cloud/run/v2/vendor_settings_pb.rb +6 -0
- data/lib/google/cloud/run/v2/version.rb +1 -1
- data/lib/google/cloud/run/v2.rb +6 -3
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +3 -3
- data/proto_docs/google/cloud/run/v2/condition.rb +4 -0
- data/proto_docs/google/cloud/run/v2/execution.rb +233 -0
- data/proto_docs/google/cloud/run/v2/execution_template.rb +87 -0
- data/proto_docs/google/cloud/run/v2/job.rb +316 -0
- data/proto_docs/google/cloud/run/v2/k8s.min.rb +42 -15
- data/proto_docs/google/cloud/run/v2/revision.rb +19 -13
- data/proto_docs/google/cloud/run/v2/revision_template.rb +10 -0
- data/proto_docs/google/cloud/run/v2/service.rb +52 -39
- data/proto_docs/google/cloud/run/v2/task.rb +232 -0
- data/proto_docs/google/cloud/run/v2/task_template.rb +66 -0
- data/proto_docs/google/cloud/run/v2/vendor_settings.rb +14 -1
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +35 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 062a1b37824e43d928f3ce958b6f1986212e581a5bd8a4c3d18e6dab84396d02
|
4
|
+
data.tar.gz: 775295c61ad5101077a044e720c3498207e3263ef157d55e9aef6732f4963534
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18c90186ac7b9a955910f24d4b99e68ffc98c83b35332a8bb462446e0c4c20d7adeab3eb7a999d6327ef086e055bee8551c907c997d95bc906690d0c1e76cfe6
|
7
|
+
data.tar.gz: e2f4be69e273dfb55922628f5176d25e2f96214589949973e1844e777dbb4a0103bbd632440b2552f0e01a6e2fd8d0976e322df9e4b22ded0cb471b34a29f368
|
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::
|
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::
|
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::
|
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::
|
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::
|
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::
|
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::
|
36
|
-
request = ::Google::Cloud::Run::V2::
|
37
|
-
response = client.
|
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)
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -62,6 +62,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
62
62
|
value :ACTIVE_REVISION_LIMIT_REACHED, 9
|
63
63
|
value :NO_DEPLOYMENT, 10
|
64
64
|
value :HEALTH_CHECK_SKIPPED, 11
|
65
|
+
value :MIN_INSTANCES_WARMING, 12
|
65
66
|
end
|
66
67
|
add_enum "google.cloud.run.v2.Condition.ExecutionReason" do
|
67
68
|
value :EXECUTION_REASON_UNDEFINED, 0
|
@@ -0,0 +1,79 @@
|
|
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 :cancelled_count, :int32, 24
|
60
|
+
optional :retried_count, :int32, 25
|
61
|
+
optional :log_uri, :string, 26
|
62
|
+
optional :etag, :string, 99
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
module Google
|
68
|
+
module Cloud
|
69
|
+
module Run
|
70
|
+
module V2
|
71
|
+
GetExecutionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.GetExecutionRequest").msgclass
|
72
|
+
ListExecutionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ListExecutionsRequest").msgclass
|
73
|
+
ListExecutionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ListExecutionsResponse").msgclass
|
74
|
+
DeleteExecutionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.DeleteExecutionRequest").msgclass
|
75
|
+
Execution = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.Execution").msgclass
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
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
|