google-cloud-edge_container-v1 0.a → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/cloud/edge_container/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/edge_container/v1/edge_container/client.rb +2486 -0
- data/lib/google/cloud/edge_container/v1/edge_container/credentials.rb +47 -0
- data/lib/google/cloud/edge_container/v1/edge_container/operations.rb +809 -0
- data/lib/google/cloud/edge_container/v1/edge_container/paths.rb +172 -0
- data/lib/google/cloud/edge_container/v1/edge_container/rest/client.rb +2324 -0
- data/lib/google/cloud/edge_container/v1/edge_container/rest/operations.rb +902 -0
- data/lib/google/cloud/edge_container/v1/edge_container/rest/service_stub.rb +1255 -0
- data/lib/google/cloud/edge_container/v1/edge_container/rest.rb +55 -0
- data/lib/google/cloud/edge_container/v1/edge_container.rb +57 -0
- data/lib/google/cloud/edge_container/v1/rest.rb +38 -0
- data/lib/google/cloud/edge_container/v1/version.rb +7 -2
- data/lib/google/cloud/edge_container/v1.rb +45 -0
- data/lib/google/cloud/edgecontainer/v1/resources_pb.rb +92 -0
- data/lib/google/cloud/edgecontainer/v1/service_pb.rb +81 -0
- data/lib/google/cloud/edgecontainer/v1/service_services_pb.rb +84 -0
- data/lib/google-cloud-edge_container-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +420 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/edgecontainer/v1/resources.rb +881 -0
- data/proto_docs/google/cloud/edgecontainer/v1/service.rb +475 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +96 -10
@@ -0,0 +1,172 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 EdgeContainer
|
23
|
+
module V1
|
24
|
+
module EdgeContainer
|
25
|
+
# Path helper methods for the EdgeContainer API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Cluster resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/clusters/{cluster}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param cluster [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def cluster_path project:, location:, cluster:
|
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}/clusters/#{cluster}"
|
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 CryptoKeyVersion resource string.
|
69
|
+
#
|
70
|
+
# The resource will be in the following format:
|
71
|
+
#
|
72
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
|
73
|
+
#
|
74
|
+
# @param project [String]
|
75
|
+
# @param location [String]
|
76
|
+
# @param key_ring [String]
|
77
|
+
# @param crypto_key [String]
|
78
|
+
# @param crypto_key_version [String]
|
79
|
+
#
|
80
|
+
# @return [::String]
|
81
|
+
def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
|
82
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
83
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
84
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
85
|
+
raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"
|
86
|
+
|
87
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
|
88
|
+
end
|
89
|
+
|
90
|
+
##
|
91
|
+
# Create a fully-qualified Location resource string.
|
92
|
+
#
|
93
|
+
# The resource will be in the following format:
|
94
|
+
#
|
95
|
+
# `projects/{project}/locations/{location}`
|
96
|
+
#
|
97
|
+
# @param project [String]
|
98
|
+
# @param location [String]
|
99
|
+
#
|
100
|
+
# @return [::String]
|
101
|
+
def location_path project:, location:
|
102
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
103
|
+
|
104
|
+
"projects/#{project}/locations/#{location}"
|
105
|
+
end
|
106
|
+
|
107
|
+
##
|
108
|
+
# Create a fully-qualified Machine resource string.
|
109
|
+
#
|
110
|
+
# The resource will be in the following format:
|
111
|
+
#
|
112
|
+
# `projects/{project}/locations/{location}/machines/{machine}`
|
113
|
+
#
|
114
|
+
# @param project [String]
|
115
|
+
# @param location [String]
|
116
|
+
# @param machine [String]
|
117
|
+
#
|
118
|
+
# @return [::String]
|
119
|
+
def machine_path project:, location:, machine:
|
120
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
121
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
122
|
+
|
123
|
+
"projects/#{project}/locations/#{location}/machines/#{machine}"
|
124
|
+
end
|
125
|
+
|
126
|
+
##
|
127
|
+
# Create a fully-qualified NodePool resource string.
|
128
|
+
#
|
129
|
+
# The resource will be in the following format:
|
130
|
+
#
|
131
|
+
# `projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}`
|
132
|
+
#
|
133
|
+
# @param project [String]
|
134
|
+
# @param location [String]
|
135
|
+
# @param cluster [String]
|
136
|
+
# @param node_pool [String]
|
137
|
+
#
|
138
|
+
# @return [::String]
|
139
|
+
def node_pool_path project:, location:, cluster:, node_pool:
|
140
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
141
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
142
|
+
raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/"
|
143
|
+
|
144
|
+
"projects/#{project}/locations/#{location}/clusters/#{cluster}/nodePools/#{node_pool}"
|
145
|
+
end
|
146
|
+
|
147
|
+
##
|
148
|
+
# Create a fully-qualified VpnConnection resource string.
|
149
|
+
#
|
150
|
+
# The resource will be in the following format:
|
151
|
+
#
|
152
|
+
# `projects/{project}/locations/{location}/vpnConnections/{vpn_connection}`
|
153
|
+
#
|
154
|
+
# @param project [String]
|
155
|
+
# @param location [String]
|
156
|
+
# @param vpn_connection [String]
|
157
|
+
#
|
158
|
+
# @return [::String]
|
159
|
+
def vpn_connection_path project:, location:, vpn_connection:
|
160
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
161
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
162
|
+
|
163
|
+
"projects/#{project}/locations/#{location}/vpnConnections/#{vpn_connection}"
|
164
|
+
end
|
165
|
+
|
166
|
+
extend self
|
167
|
+
end
|
168
|
+
end
|
169
|
+
end
|
170
|
+
end
|
171
|
+
end
|
172
|
+
end
|