google-cloud-run-v2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +149 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google/cloud/run/v2/condition_pb.rb +111 -0
  7. data/lib/google/cloud/run/v2/k8s.min_pb.rb +88 -0
  8. data/lib/google/cloud/run/v2/revision_pb.rb +81 -0
  9. data/lib/google/cloud/run/v2/revision_services_pb.rb +49 -0
  10. data/lib/google/cloud/run/v2/revision_template_pb.rb +39 -0
  11. data/lib/google/cloud/run/v2/revisions/client.rb +619 -0
  12. data/lib/google/cloud/run/v2/revisions/credentials.rb +47 -0
  13. data/lib/google/cloud/run/v2/revisions/operations.rb +767 -0
  14. data/lib/google/cloud/run/v2/revisions/paths.rb +73 -0
  15. data/lib/google/cloud/run/v2/revisions.rb +50 -0
  16. data/lib/google/cloud/run/v2/service_pb.rb +100 -0
  17. data/lib/google/cloud/run/v2/service_services_pb.rb +65 -0
  18. data/lib/google/cloud/run/v2/services/client.rb +1154 -0
  19. data/lib/google/cloud/run/v2/services/credentials.rb +47 -0
  20. data/lib/google/cloud/run/v2/services/operations.rb +767 -0
  21. data/lib/google/cloud/run/v2/services/paths.rb +166 -0
  22. data/lib/google/cloud/run/v2/services.rb +50 -0
  23. data/lib/google/cloud/run/v2/traffic_target_pb.rb +41 -0
  24. data/lib/google/cloud/run/v2/vendor_settings_pb.rb +56 -0
  25. data/lib/google/cloud/run/v2/version.rb +28 -0
  26. data/lib/google/cloud/run/v2.rb +41 -0
  27. data/lib/google-cloud-run-v2.rb +21 -0
  28. data/proto_docs/README.md +4 -0
  29. data/proto_docs/google/api/field_behavior.rb +71 -0
  30. data/proto_docs/google/api/launch_stage.rb +71 -0
  31. data/proto_docs/google/api/resource.rb +222 -0
  32. data/proto_docs/google/cloud/run/v2/condition.rb +260 -0
  33. data/proto_docs/google/cloud/run/v2/k8s.min.rb +290 -0
  34. data/proto_docs/google/cloud/run/v2/revision.rb +225 -0
  35. data/proto_docs/google/cloud/run/v2/revision_template.rb +98 -0
  36. data/proto_docs/google/cloud/run/v2/service.rb +307 -0
  37. data/proto_docs/google/cloud/run/v2/traffic_target.rb +81 -0
  38. data/proto_docs/google/cloud/run/v2/vendor_settings.rb +109 -0
  39. data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
  40. data/proto_docs/google/iam/v1/options.rb +50 -0
  41. data/proto_docs/google/iam/v1/policy.rb +418 -0
  42. data/proto_docs/google/longrunning/operations.rb +164 -0
  43. data/proto_docs/google/protobuf/any.rb +141 -0
  44. data/proto_docs/google/protobuf/duration.rb +98 -0
  45. data/proto_docs/google/protobuf/empty.rb +36 -0
  46. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  47. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  48. data/proto_docs/google/rpc/status.rb +46 -0
  49. data/proto_docs/google/type/expr.rb +75 -0
  50. metadata +253 -0
@@ -0,0 +1,88 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/run/v2/k8s.min.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_file("google/cloud/run/v2/k8s.min.proto", :syntax => :proto3) do
11
+ add_message "google.cloud.run.v2.Container" do
12
+ optional :name, :string, 1
13
+ optional :image, :string, 2
14
+ repeated :command, :string, 3
15
+ repeated :args, :string, 4
16
+ repeated :env, :message, 5, "google.cloud.run.v2.EnvVar"
17
+ optional :resources, :message, 6, "google.cloud.run.v2.ResourceRequirements"
18
+ repeated :ports, :message, 7, "google.cloud.run.v2.ContainerPort"
19
+ repeated :volume_mounts, :message, 8, "google.cloud.run.v2.VolumeMount"
20
+ end
21
+ add_message "google.cloud.run.v2.ResourceRequirements" do
22
+ map :limits, :string, :string, 1
23
+ optional :cpu_idle, :bool, 2
24
+ end
25
+ add_message "google.cloud.run.v2.EnvVar" do
26
+ optional :name, :string, 1
27
+ oneof :values do
28
+ optional :value, :string, 2
29
+ optional :value_source, :message, 3, "google.cloud.run.v2.EnvVarSource"
30
+ end
31
+ end
32
+ add_message "google.cloud.run.v2.EnvVarSource" do
33
+ optional :secret_key_ref, :message, 1, "google.cloud.run.v2.SecretKeySelector"
34
+ end
35
+ add_message "google.cloud.run.v2.SecretKeySelector" do
36
+ optional :secret, :string, 1
37
+ optional :version, :string, 2
38
+ end
39
+ add_message "google.cloud.run.v2.ContainerPort" do
40
+ optional :name, :string, 1
41
+ optional :container_port, :int32, 3
42
+ end
43
+ add_message "google.cloud.run.v2.VolumeMount" do
44
+ optional :name, :string, 1
45
+ optional :mount_path, :string, 3
46
+ end
47
+ add_message "google.cloud.run.v2.Volume" do
48
+ optional :name, :string, 1
49
+ oneof :volume_type do
50
+ optional :secret, :message, 2, "google.cloud.run.v2.SecretVolumeSource"
51
+ optional :cloud_sql_instance, :message, 3, "google.cloud.run.v2.CloudSqlInstance"
52
+ end
53
+ end
54
+ add_message "google.cloud.run.v2.SecretVolumeSource" do
55
+ optional :secret, :string, 1
56
+ repeated :items, :message, 2, "google.cloud.run.v2.VersionToPath"
57
+ optional :default_mode, :int32, 3
58
+ end
59
+ add_message "google.cloud.run.v2.VersionToPath" do
60
+ optional :path, :string, 1
61
+ optional :version, :string, 2
62
+ optional :mode, :int32, 3
63
+ end
64
+ add_message "google.cloud.run.v2.CloudSqlInstance" do
65
+ repeated :connections, :string, 1
66
+ end
67
+ end
68
+ end
69
+
70
+ module Google
71
+ module Cloud
72
+ module Run
73
+ module V2
74
+ Container = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.Container").msgclass
75
+ ResourceRequirements = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ResourceRequirements").msgclass
76
+ EnvVar = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.EnvVar").msgclass
77
+ EnvVarSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.EnvVarSource").msgclass
78
+ SecretKeySelector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.SecretKeySelector").msgclass
79
+ ContainerPort = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ContainerPort").msgclass
80
+ VolumeMount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.VolumeMount").msgclass
81
+ Volume = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.Volume").msgclass
82
+ SecretVolumeSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.SecretVolumeSource").msgclass
83
+ VersionToPath = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.VersionToPath").msgclass
84
+ CloudSqlInstance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.CloudSqlInstance").msgclass
85
+ end
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,81 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/run/v2/revision.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/k8s.min_pb'
13
+ require 'google/cloud/run/v2/vendor_settings_pb'
14
+ require 'google/longrunning/operations_pb'
15
+ require 'google/protobuf/duration_pb'
16
+ require 'google/protobuf/timestamp_pb'
17
+
18
+ Google::Protobuf::DescriptorPool.generated_pool.build do
19
+ add_file("google/cloud/run/v2/revision.proto", :syntax => :proto3) do
20
+ add_message "google.cloud.run.v2.GetRevisionRequest" do
21
+ optional :name, :string, 1
22
+ end
23
+ add_message "google.cloud.run.v2.ListRevisionsRequest" do
24
+ optional :parent, :string, 1
25
+ optional :page_size, :int32, 2
26
+ optional :page_token, :string, 3
27
+ optional :show_deleted, :bool, 4
28
+ end
29
+ add_message "google.cloud.run.v2.ListRevisionsResponse" do
30
+ repeated :revisions, :message, 1, "google.cloud.run.v2.Revision"
31
+ optional :next_page_token, :string, 2
32
+ end
33
+ add_message "google.cloud.run.v2.DeleteRevisionRequest" do
34
+ optional :name, :string, 1
35
+ optional :validate_only, :bool, 2
36
+ optional :etag, :string, 3
37
+ end
38
+ add_message "google.cloud.run.v2.Revision" do
39
+ optional :name, :string, 1
40
+ optional :uid, :string, 2
41
+ optional :generation, :int64, 3
42
+ map :labels, :string, :string, 4
43
+ map :annotations, :string, :string, 5
44
+ optional :create_time, :message, 6, "google.protobuf.Timestamp"
45
+ optional :update_time, :message, 7, "google.protobuf.Timestamp"
46
+ optional :delete_time, :message, 8, "google.protobuf.Timestamp"
47
+ optional :expire_time, :message, 9, "google.protobuf.Timestamp"
48
+ optional :launch_stage, :enum, 10, "google.api.LaunchStage"
49
+ optional :service, :string, 11
50
+ optional :scaling, :message, 12, "google.cloud.run.v2.RevisionScaling"
51
+ optional :vpc_access, :message, 13, "google.cloud.run.v2.VpcAccess"
52
+ optional :container_concurrency, :int32, 14
53
+ optional :timeout, :message, 15, "google.protobuf.Duration"
54
+ optional :service_account, :string, 16
55
+ repeated :containers, :message, 17, "google.cloud.run.v2.Container"
56
+ repeated :volumes, :message, 18, "google.cloud.run.v2.Volume"
57
+ optional :confidential, :bool, 19
58
+ optional :execution_environment, :enum, 20, "google.cloud.run.v2.ExecutionEnvironment"
59
+ optional :encryption_key, :string, 21
60
+ optional :reconciling, :bool, 30
61
+ repeated :conditions, :message, 31, "google.cloud.run.v2.Condition"
62
+ optional :observed_generation, :int64, 32
63
+ optional :log_uri, :string, 33
64
+ optional :etag, :string, 99
65
+ end
66
+ end
67
+ end
68
+
69
+ module Google
70
+ module Cloud
71
+ module Run
72
+ module V2
73
+ GetRevisionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.GetRevisionRequest").msgclass
74
+ ListRevisionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ListRevisionsRequest").msgclass
75
+ ListRevisionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ListRevisionsResponse").msgclass
76
+ DeleteRevisionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.DeleteRevisionRequest").msgclass
77
+ Revision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.Revision").msgclass
78
+ end
79
+ end
80
+ end
81
+ end
@@ -0,0 +1,49 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/run/v2/revision.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/revision_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Run
25
+ module V2
26
+ module Revisions
27
+ # Cloud Run Revision 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.Revisions'
35
+
36
+ # Gets information about a Revision.
37
+ rpc :GetRevision, ::Google::Cloud::Run::V2::GetRevisionRequest, ::Google::Cloud::Run::V2::Revision
38
+ # List Revisions from a given Service, or from a given location.
39
+ rpc :ListRevisions, ::Google::Cloud::Run::V2::ListRevisionsRequest, ::Google::Cloud::Run::V2::ListRevisionsResponse
40
+ # Delete a Revision.
41
+ rpc :DeleteRevision, ::Google::Cloud::Run::V2::DeleteRevisionRequest, ::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,39 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/run/v2/revision_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/revision_template.proto", :syntax => :proto3) do
13
+ add_message "google.cloud.run.v2.RevisionTemplate" do
14
+ optional :revision, :string, 1
15
+ map :labels, :string, :string, 2
16
+ map :annotations, :string, :string, 3
17
+ optional :scaling, :message, 4, "google.cloud.run.v2.RevisionScaling"
18
+ optional :vpc_access, :message, 6, "google.cloud.run.v2.VpcAccess"
19
+ optional :container_concurrency, :int32, 7
20
+ optional :timeout, :message, 8, "google.protobuf.Duration"
21
+ optional :service_account, :string, 9
22
+ repeated :containers, :message, 10, "google.cloud.run.v2.Container"
23
+ repeated :volumes, :message, 11, "google.cloud.run.v2.Volume"
24
+ optional :confidential, :bool, 12
25
+ optional :execution_environment, :enum, 13, "google.cloud.run.v2.ExecutionEnvironment"
26
+ optional :encryption_key, :string, 14
27
+ end
28
+ end
29
+ end
30
+
31
+ module Google
32
+ module Cloud
33
+ module Run
34
+ module V2
35
+ RevisionTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.RevisionTemplate").msgclass
36
+ end
37
+ end
38
+ end
39
+ end