google-cloud-run-v2 0.3.1 → 0.5.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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +3 -3
- data/lib/google/cloud/run/v2/condition_pb.rb +1 -0
- data/lib/google/cloud/run/v2/execution_pb.rb +76 -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 +770 -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 +104 -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 +770 -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 +34 -0
- data/lib/google/cloud/run/v2/revision_services_pb.rb +2 -2
- data/lib/google/cloud/run/v2/revisions/client.rb +16 -2
- data/lib/google/cloud/run/v2/service_services_pb.rb +2 -2
- data/lib/google/cloud/run/v2/services/client.rb +28 -9
- data/lib/google/cloud/run/v2/task_pb.rb +81 -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/version.rb +1 -1
- data/lib/google/cloud/run/v2.rb +4 -1
- data/proto_docs/google/cloud/run/v2/condition.rb +3 -0
- data/proto_docs/google/cloud/run/v2/execution.rb +223 -0
- data/proto_docs/google/cloud/run/v2/execution_template.rb +76 -0
- data/proto_docs/google/cloud/run/v2/job.rb +308 -0
- data/proto_docs/google/cloud/run/v2/k8s.min.rb +120 -6
- data/proto_docs/google/cloud/run/v2/service.rb +12 -7
- data/proto_docs/google/cloud/run/v2/task.rb +229 -0
- data/proto_docs/google/cloud/run/v2/task_template.rb +66 -0
- data/proto_docs/google/cloud/run/v2/vendor_settings.rb +2 -1
- metadata +51 -4
@@ -0,0 +1,166 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Run
|
23
|
+
module V2
|
24
|
+
module Jobs
|
25
|
+
# Path helper methods for the Jobs API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Connector resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/connectors/{connector}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param connector [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def connector_path project:, location:, connector:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/#{location}/connectors/#{connector}"
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Create a fully-qualified CryptoKey resource string.
|
48
|
+
#
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
|
52
|
+
#
|
53
|
+
# @param project [String]
|
54
|
+
# @param location [String]
|
55
|
+
# @param key_ring [String]
|
56
|
+
# @param crypto_key [String]
|
57
|
+
#
|
58
|
+
# @return [::String]
|
59
|
+
def crypto_key_path project:, location:, key_ring:, crypto_key:
|
60
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
61
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
62
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
63
|
+
|
64
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
|
65
|
+
end
|
66
|
+
|
67
|
+
##
|
68
|
+
# Create a fully-qualified Execution resource string.
|
69
|
+
#
|
70
|
+
# The resource will be in the following format:
|
71
|
+
#
|
72
|
+
# `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`
|
73
|
+
#
|
74
|
+
# @param project [String]
|
75
|
+
# @param location [String]
|
76
|
+
# @param job [String]
|
77
|
+
# @param execution [String]
|
78
|
+
#
|
79
|
+
# @return [::String]
|
80
|
+
def execution_path project:, location:, job:, execution:
|
81
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
82
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
83
|
+
raise ::ArgumentError, "job cannot contain /" if job.to_s.include? "/"
|
84
|
+
|
85
|
+
"projects/#{project}/locations/#{location}/jobs/#{job}/executions/#{execution}"
|
86
|
+
end
|
87
|
+
|
88
|
+
##
|
89
|
+
# Create a fully-qualified Job resource string.
|
90
|
+
#
|
91
|
+
# The resource will be in the following format:
|
92
|
+
#
|
93
|
+
# `projects/{project}/locations/{location}/jobs/{job}`
|
94
|
+
#
|
95
|
+
# @param project [String]
|
96
|
+
# @param location [String]
|
97
|
+
# @param job [String]
|
98
|
+
#
|
99
|
+
# @return [::String]
|
100
|
+
def job_path project:, location:, job:
|
101
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
102
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
103
|
+
|
104
|
+
"projects/#{project}/locations/#{location}/jobs/#{job}"
|
105
|
+
end
|
106
|
+
|
107
|
+
##
|
108
|
+
# Create a fully-qualified Location resource string.
|
109
|
+
#
|
110
|
+
# The resource will be in the following format:
|
111
|
+
#
|
112
|
+
# `projects/{project}/locations/{location}`
|
113
|
+
#
|
114
|
+
# @param project [String]
|
115
|
+
# @param location [String]
|
116
|
+
#
|
117
|
+
# @return [::String]
|
118
|
+
def location_path project:, location:
|
119
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
120
|
+
|
121
|
+
"projects/#{project}/locations/#{location}"
|
122
|
+
end
|
123
|
+
|
124
|
+
##
|
125
|
+
# Create a fully-qualified Secret resource string.
|
126
|
+
#
|
127
|
+
# The resource will be in the following format:
|
128
|
+
#
|
129
|
+
# `projects/{project}/secrets/{secret}`
|
130
|
+
#
|
131
|
+
# @param project [String]
|
132
|
+
# @param secret [String]
|
133
|
+
#
|
134
|
+
# @return [::String]
|
135
|
+
def secret_path project:, secret:
|
136
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
137
|
+
|
138
|
+
"projects/#{project}/secrets/#{secret}"
|
139
|
+
end
|
140
|
+
|
141
|
+
##
|
142
|
+
# Create a fully-qualified SecretVersion resource string.
|
143
|
+
#
|
144
|
+
# The resource will be in the following format:
|
145
|
+
#
|
146
|
+
# `projects/{project}/secrets/{secret}/versions/{version}`
|
147
|
+
#
|
148
|
+
# @param project [String]
|
149
|
+
# @param secret [String]
|
150
|
+
# @param version [String]
|
151
|
+
#
|
152
|
+
# @return [::String]
|
153
|
+
def secret_version_path project:, secret:, version:
|
154
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
155
|
+
raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/"
|
156
|
+
|
157
|
+
"projects/#{project}/secrets/#{secret}/versions/#{version}"
|
158
|
+
end
|
159
|
+
|
160
|
+
extend self
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/run/v2/version"
|
24
|
+
|
25
|
+
require "google/cloud/run/v2/jobs/credentials"
|
26
|
+
require "google/cloud/run/v2/jobs/paths"
|
27
|
+
require "google/cloud/run/v2/jobs/operations"
|
28
|
+
require "google/cloud/run/v2/jobs/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module Run
|
33
|
+
module V2
|
34
|
+
##
|
35
|
+
# Cloud Run Job Control Plane API.
|
36
|
+
#
|
37
|
+
# To load this service and instantiate a client:
|
38
|
+
#
|
39
|
+
# require "google/cloud/run/v2/jobs"
|
40
|
+
# client = ::Google::Cloud::Run::V2::Jobs::Client.new
|
41
|
+
#
|
42
|
+
module Jobs
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
helper_path = ::File.join __dir__, "jobs", "helpers.rb"
|
50
|
+
require "google/cloud/run/v2/jobs/helpers" if ::File.file? helper_path
|
@@ -17,6 +17,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
17
17
|
optional :resources, :message, 6, "google.cloud.run.v2.ResourceRequirements"
|
18
18
|
repeated :ports, :message, 7, "google.cloud.run.v2.ContainerPort"
|
19
19
|
repeated :volume_mounts, :message, 8, "google.cloud.run.v2.VolumeMount"
|
20
|
+
optional :working_dir, :string, 9
|
21
|
+
optional :liveness_probe, :message, 10, "google.cloud.run.v2.Probe"
|
22
|
+
optional :startup_probe, :message, 11, "google.cloud.run.v2.Probe"
|
20
23
|
end
|
21
24
|
add_message "google.cloud.run.v2.ResourceRequirements" do
|
22
25
|
map :limits, :string, :string, 1
|
@@ -64,6 +67,32 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
64
67
|
add_message "google.cloud.run.v2.CloudSqlInstance" do
|
65
68
|
repeated :instances, :string, 1
|
66
69
|
end
|
70
|
+
add_message "google.cloud.run.v2.Probe" do
|
71
|
+
optional :initial_delay_seconds, :int32, 1
|
72
|
+
optional :timeout_seconds, :int32, 2
|
73
|
+
optional :period_seconds, :int32, 3
|
74
|
+
optional :failure_threshold, :int32, 4
|
75
|
+
oneof :probe_type do
|
76
|
+
optional :http_get, :message, 5, "google.cloud.run.v2.HTTPGetAction"
|
77
|
+
optional :tcp_socket, :message, 6, "google.cloud.run.v2.TCPSocketAction"
|
78
|
+
optional :grpc, :message, 7, "google.cloud.run.v2.GRPCAction"
|
79
|
+
end
|
80
|
+
end
|
81
|
+
add_message "google.cloud.run.v2.HTTPGetAction" do
|
82
|
+
optional :path, :string, 1
|
83
|
+
repeated :http_headers, :message, 4, "google.cloud.run.v2.HTTPHeader"
|
84
|
+
end
|
85
|
+
add_message "google.cloud.run.v2.HTTPHeader" do
|
86
|
+
optional :name, :string, 1
|
87
|
+
optional :value, :string, 2
|
88
|
+
end
|
89
|
+
add_message "google.cloud.run.v2.TCPSocketAction" do
|
90
|
+
optional :port, :int32, 1
|
91
|
+
end
|
92
|
+
add_message "google.cloud.run.v2.GRPCAction" do
|
93
|
+
optional :port, :int32, 1
|
94
|
+
optional :service, :string, 2
|
95
|
+
end
|
67
96
|
end
|
68
97
|
end
|
69
98
|
|
@@ -82,6 +111,11 @@ module Google
|
|
82
111
|
SecretVolumeSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.SecretVolumeSource").msgclass
|
83
112
|
VersionToPath = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.VersionToPath").msgclass
|
84
113
|
CloudSqlInstance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.CloudSqlInstance").msgclass
|
114
|
+
Probe = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.Probe").msgclass
|
115
|
+
HTTPGetAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.HTTPGetAction").msgclass
|
116
|
+
HTTPHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.HTTPHeader").msgclass
|
117
|
+
TCPSocketAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.TCPSocketAction").msgclass
|
118
|
+
GRPCAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.GRPCAction").msgclass
|
85
119
|
end
|
86
120
|
end
|
87
121
|
end
|
@@ -35,9 +35,9 @@ module Google
|
|
35
35
|
|
36
36
|
# Gets information about a Revision.
|
37
37
|
rpc :GetRevision, ::Google::Cloud::Run::V2::GetRevisionRequest, ::Google::Cloud::Run::V2::Revision
|
38
|
-
#
|
38
|
+
# Lists Revisions from a given Service, or from a given location.
|
39
39
|
rpc :ListRevisions, ::Google::Cloud::Run::V2::ListRevisionsRequest, ::Google::Cloud::Run::V2::ListRevisionsResponse
|
40
|
-
#
|
40
|
+
# Deletes a Revision.
|
41
41
|
rpc :DeleteRevision, ::Google::Cloud::Run::V2::DeleteRevisionRequest, ::Google::Longrunning::Operation
|
42
42
|
end
|
43
43
|
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/run/v2/revision_pb"
|
21
|
+
require "google/cloud/location"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -139,6 +140,12 @@ module Google
|
|
139
140
|
config.endpoint = @config.endpoint
|
140
141
|
end
|
141
142
|
|
143
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
144
|
+
config.credentials = credentials
|
145
|
+
config.quota_project = @quota_project_id
|
146
|
+
config.endpoint = @config.endpoint
|
147
|
+
end
|
148
|
+
|
142
149
|
@revisions_stub = ::Gapic::ServiceStub.new(
|
143
150
|
::Google::Cloud::Run::V2::Revisions::Stub,
|
144
151
|
credentials: credentials,
|
@@ -155,6 +162,13 @@ module Google
|
|
155
162
|
#
|
156
163
|
attr_reader :operations_client
|
157
164
|
|
165
|
+
##
|
166
|
+
# Get the associated client for mix-in of the Locations.
|
167
|
+
#
|
168
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
169
|
+
#
|
170
|
+
attr_reader :location_client
|
171
|
+
|
158
172
|
# Service calls
|
159
173
|
|
160
174
|
##
|
@@ -248,7 +262,7 @@ module Google
|
|
248
262
|
end
|
249
263
|
|
250
264
|
##
|
251
|
-
#
|
265
|
+
# Lists Revisions from a given Service, or from a given location.
|
252
266
|
#
|
253
267
|
# @overload list_revisions(request, options = nil)
|
254
268
|
# Pass arguments to `list_revisions` via a request object, either of type
|
@@ -353,7 +367,7 @@ module Google
|
|
353
367
|
end
|
354
368
|
|
355
369
|
##
|
356
|
-
#
|
370
|
+
# Deletes a Revision.
|
357
371
|
#
|
358
372
|
# @overload delete_revision(request, options = nil)
|
359
373
|
# Pass arguments to `delete_revision` via a request object, either of type
|
@@ -37,7 +37,7 @@ module Google
|
|
37
37
|
rpc :CreateService, ::Google::Cloud::Run::V2::CreateServiceRequest, ::Google::Longrunning::Operation
|
38
38
|
# Gets information about a Service.
|
39
39
|
rpc :GetService, ::Google::Cloud::Run::V2::GetServiceRequest, ::Google::Cloud::Run::V2::Service
|
40
|
-
#
|
40
|
+
# Lists Services.
|
41
41
|
rpc :ListServices, ::Google::Cloud::Run::V2::ListServicesRequest, ::Google::Cloud::Run::V2::ListServicesResponse
|
42
42
|
# Updates a Service.
|
43
43
|
rpc :UpdateService, ::Google::Cloud::Run::V2::UpdateServiceRequest, ::Google::Longrunning::Operation
|
@@ -45,7 +45,7 @@ module Google
|
|
45
45
|
# This will cause the Service to stop serving traffic and will delete all
|
46
46
|
# revisions.
|
47
47
|
rpc :DeleteService, ::Google::Cloud::Run::V2::DeleteServiceRequest, ::Google::Longrunning::Operation
|
48
|
-
#
|
48
|
+
# Gets the IAM Access Control policy currently in effect for the given
|
49
49
|
# Cloud Run Service. This result does not include any inherited policies.
|
50
50
|
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
51
51
|
# Sets the IAM Access control policy for the specified Service. Overwrites
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/run/v2/service_pb"
|
21
|
+
require "google/cloud/location"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -155,6 +156,12 @@ module Google
|
|
155
156
|
config.endpoint = @config.endpoint
|
156
157
|
end
|
157
158
|
|
159
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
160
|
+
config.credentials = credentials
|
161
|
+
config.quota_project = @quota_project_id
|
162
|
+
config.endpoint = @config.endpoint
|
163
|
+
end
|
164
|
+
|
158
165
|
@services_stub = ::Gapic::ServiceStub.new(
|
159
166
|
::Google::Cloud::Run::V2::Services::Stub,
|
160
167
|
credentials: credentials,
|
@@ -171,6 +178,13 @@ module Google
|
|
171
178
|
#
|
172
179
|
attr_reader :operations_client
|
173
180
|
|
181
|
+
##
|
182
|
+
# Get the associated client for mix-in of the Locations.
|
183
|
+
#
|
184
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
185
|
+
#
|
186
|
+
attr_reader :location_client
|
187
|
+
|
174
188
|
# Service calls
|
175
189
|
|
176
190
|
##
|
@@ -193,12 +207,14 @@ module Google
|
|
193
207
|
#
|
194
208
|
# @param parent [::String]
|
195
209
|
# Required. The location and project in which this service should be created.
|
196
|
-
# Format: projects/\\{
|
210
|
+
# Format: projects/\\{project}/locations/\\{location}, where \\{project} can be
|
211
|
+
# project id or number. Only lowercase characters, digits, and hyphens.
|
197
212
|
# @param service [::Google::Cloud::Run::V2::Service, ::Hash]
|
198
213
|
# Required. The Service instance to create.
|
199
214
|
# @param service_id [::String]
|
200
|
-
# Required. The unique identifier for the Service.
|
201
|
-
#
|
215
|
+
# Required. The unique identifier for the Service. It must begin with letter,
|
216
|
+
# and cannot end with hyphen; must contain fewer than 50 characters.
|
217
|
+
# The name of the service becomes \\{parent}/services/\\{service_id}.
|
202
218
|
# @param validate_only [::Boolean]
|
203
219
|
# Indicates that the request should be validated and default values
|
204
220
|
# populated, without persisting the request or creating any resources.
|
@@ -298,7 +314,8 @@ module Google
|
|
298
314
|
#
|
299
315
|
# @param name [::String]
|
300
316
|
# Required. The full name of the Service.
|
301
|
-
# Format: projects/\\{
|
317
|
+
# Format: projects/\\{project}/locations/\\{location}/services/\\{service}, where
|
318
|
+
# \\{project} can be project id or number.
|
302
319
|
#
|
303
320
|
# @yield [response, operation] Access the result along with the RPC operation
|
304
321
|
# @yieldparam response [::Google::Cloud::Run::V2::Service]
|
@@ -368,7 +385,7 @@ module Google
|
|
368
385
|
end
|
369
386
|
|
370
387
|
##
|
371
|
-
#
|
388
|
+
# Lists Services.
|
372
389
|
#
|
373
390
|
# @overload list_services(request, options = nil)
|
374
391
|
# Pass arguments to `list_services` via a request object, either of type
|
@@ -387,8 +404,9 @@ module Google
|
|
387
404
|
#
|
388
405
|
# @param parent [::String]
|
389
406
|
# Required. The location and project to list resources on.
|
390
|
-
# Location must be a valid GCP region, and
|
391
|
-
# Format: projects/\\{
|
407
|
+
# Location must be a valid GCP region, and cannot be the "-" wildcard.
|
408
|
+
# Format: projects/\\{project}/locations/\\{location}, where \\{project} can be
|
409
|
+
# project id or number.
|
392
410
|
# @param page_size [::Integer]
|
393
411
|
# Maximum number of Services to return in this call.
|
394
412
|
# @param page_token [::String]
|
@@ -596,7 +614,8 @@ module Google
|
|
596
614
|
#
|
597
615
|
# @param name [::String]
|
598
616
|
# Required. The full name of the Service.
|
599
|
-
# Format: projects/\\{
|
617
|
+
# Format: projects/\\{project}/locations/\\{location}/services/\\{service}, where
|
618
|
+
# \\{project} can be project id or number.
|
600
619
|
# @param validate_only [::Boolean]
|
601
620
|
# Indicates that the request should be validated without actually
|
602
621
|
# deleting any resources.
|
@@ -680,7 +699,7 @@ module Google
|
|
680
699
|
end
|
681
700
|
|
682
701
|
##
|
683
|
-
#
|
702
|
+
# Gets the IAM Access Control policy currently in effect for the given
|
684
703
|
# Cloud Run Service. This result does not include any inherited policies.
|
685
704
|
#
|
686
705
|
# @overload get_iam_policy(request, options = nil)
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/run/v2/task.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/resource_pb'
|
10
|
+
require 'google/cloud/run/v2/condition_pb'
|
11
|
+
require 'google/cloud/run/v2/k8s.min_pb'
|
12
|
+
require 'google/cloud/run/v2/vendor_settings_pb'
|
13
|
+
require 'google/protobuf/duration_pb'
|
14
|
+
require 'google/protobuf/timestamp_pb'
|
15
|
+
require 'google/rpc/status_pb'
|
16
|
+
|
17
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
18
|
+
add_file("google/cloud/run/v2/task.proto", :syntax => :proto3) do
|
19
|
+
add_message "google.cloud.run.v2.GetTaskRequest" do
|
20
|
+
optional :name, :string, 1
|
21
|
+
end
|
22
|
+
add_message "google.cloud.run.v2.ListTasksRequest" do
|
23
|
+
optional :parent, :string, 1
|
24
|
+
optional :page_size, :int32, 2
|
25
|
+
optional :page_token, :string, 3
|
26
|
+
optional :show_deleted, :bool, 4
|
27
|
+
end
|
28
|
+
add_message "google.cloud.run.v2.ListTasksResponse" do
|
29
|
+
repeated :tasks, :message, 1, "google.cloud.run.v2.Task"
|
30
|
+
optional :next_page_token, :string, 2
|
31
|
+
end
|
32
|
+
add_message "google.cloud.run.v2.Task" do
|
33
|
+
optional :name, :string, 1
|
34
|
+
optional :uid, :string, 2
|
35
|
+
optional :generation, :int64, 3
|
36
|
+
map :labels, :string, :string, 4
|
37
|
+
map :annotations, :string, :string, 5
|
38
|
+
optional :create_time, :message, 6, "google.protobuf.Timestamp"
|
39
|
+
optional :start_time, :message, 27, "google.protobuf.Timestamp"
|
40
|
+
optional :completion_time, :message, 7, "google.protobuf.Timestamp"
|
41
|
+
optional :update_time, :message, 8, "google.protobuf.Timestamp"
|
42
|
+
optional :delete_time, :message, 9, "google.protobuf.Timestamp"
|
43
|
+
optional :expire_time, :message, 10, "google.protobuf.Timestamp"
|
44
|
+
optional :job, :string, 12
|
45
|
+
optional :execution, :string, 13
|
46
|
+
repeated :containers, :message, 14, "google.cloud.run.v2.Container"
|
47
|
+
repeated :volumes, :message, 15, "google.cloud.run.v2.Volume"
|
48
|
+
optional :max_retries, :int32, 16
|
49
|
+
optional :timeout, :message, 17, "google.protobuf.Duration"
|
50
|
+
optional :service_account, :string, 18
|
51
|
+
optional :execution_environment, :enum, 20, "google.cloud.run.v2.ExecutionEnvironment"
|
52
|
+
optional :reconciling, :bool, 21
|
53
|
+
repeated :conditions, :message, 22, "google.cloud.run.v2.Condition"
|
54
|
+
optional :observed_generation, :int64, 23
|
55
|
+
optional :index, :int32, 24
|
56
|
+
optional :retried, :int32, 25
|
57
|
+
optional :last_attempt_result, :message, 26, "google.cloud.run.v2.TaskAttemptResult"
|
58
|
+
optional :encryption_key, :string, 28
|
59
|
+
optional :vpc_access, :message, 29, "google.cloud.run.v2.VpcAccess"
|
60
|
+
optional :etag, :string, 99
|
61
|
+
end
|
62
|
+
add_message "google.cloud.run.v2.TaskAttemptResult" do
|
63
|
+
optional :status, :message, 1, "google.rpc.Status"
|
64
|
+
optional :exit_code, :int32, 2
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
module Google
|
70
|
+
module Cloud
|
71
|
+
module Run
|
72
|
+
module V2
|
73
|
+
GetTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.GetTaskRequest").msgclass
|
74
|
+
ListTasksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ListTasksRequest").msgclass
|
75
|
+
ListTasksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ListTasksResponse").msgclass
|
76
|
+
Task = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.Task").msgclass
|
77
|
+
TaskAttemptResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.TaskAttemptResult").msgclass
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/run/v2/task.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/task_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Run
|
25
|
+
module V2
|
26
|
+
module Tasks
|
27
|
+
# Cloud Run Task 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.Tasks'
|
35
|
+
|
36
|
+
# Gets information about a Task.
|
37
|
+
rpc :GetTask, ::Google::Cloud::Run::V2::GetTaskRequest, ::Google::Cloud::Run::V2::Task
|
38
|
+
# Lists Tasks from an Execution of a Job.
|
39
|
+
rpc :ListTasks, ::Google::Cloud::Run::V2::ListTasksRequest, ::Google::Cloud::Run::V2::ListTasksResponse
|
40
|
+
end
|
41
|
+
|
42
|
+
Stub = Service.rpc_stub_class
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/run/v2/task_template.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/resource_pb'
|
7
|
+
require 'google/cloud/run/v2/k8s.min_pb'
|
8
|
+
require 'google/cloud/run/v2/vendor_settings_pb'
|
9
|
+
require 'google/protobuf/duration_pb'
|
10
|
+
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("google/cloud/run/v2/task_template.proto", :syntax => :proto3) do
|
13
|
+
add_message "google.cloud.run.v2.TaskTemplate" do
|
14
|
+
repeated :containers, :message, 1, "google.cloud.run.v2.Container"
|
15
|
+
repeated :volumes, :message, 2, "google.cloud.run.v2.Volume"
|
16
|
+
optional :timeout, :message, 4, "google.protobuf.Duration"
|
17
|
+
optional :service_account, :string, 5
|
18
|
+
optional :execution_environment, :enum, 6, "google.cloud.run.v2.ExecutionEnvironment"
|
19
|
+
optional :encryption_key, :string, 7
|
20
|
+
optional :vpc_access, :message, 8, "google.cloud.run.v2.VpcAccess"
|
21
|
+
oneof :retries do
|
22
|
+
optional :max_retries, :int32, 3
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
module Google
|
29
|
+
module Cloud
|
30
|
+
module Run
|
31
|
+
module V2
|
32
|
+
TaskTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.TaskTemplate").msgclass
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|