google-cloud-network_services-v1 0.a → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/network_services/v1/bindings_override.rb +279 -0
  6. data/lib/google/cloud/network_services/v1/dep_service/client.rb +1503 -0
  7. data/lib/google/cloud/network_services/v1/dep_service/credentials.rb +47 -0
  8. data/lib/google/cloud/network_services/v1/dep_service/operations.rb +809 -0
  9. data/lib/google/cloud/network_services/v1/dep_service/paths.rb +88 -0
  10. data/lib/google/cloud/network_services/v1/dep_service/rest/client.rb +1414 -0
  11. data/lib/google/cloud/network_services/v1/dep_service/rest/operations.rb +902 -0
  12. data/lib/google/cloud/network_services/v1/dep_service/rest/service_stub.rb +663 -0
  13. data/lib/google/cloud/network_services/v1/dep_service/rest.rb +54 -0
  14. data/lib/google/cloud/network_services/v1/dep_service.rb +56 -0
  15. data/lib/google/cloud/network_services/v1/network_services/client.rb +4383 -0
  16. data/lib/google/cloud/network_services/v1/network_services/credentials.rb +47 -0
  17. data/lib/google/cloud/network_services/v1/network_services/operations.rb +809 -0
  18. data/lib/google/cloud/network_services/v1/network_services/paths.rb +278 -0
  19. data/lib/google/cloud/network_services/v1/network_services/rest/client.rb +4093 -0
  20. data/lib/google/cloud/network_services/v1/network_services/rest/operations.rb +902 -0
  21. data/lib/google/cloud/network_services/v1/network_services/rest/service_stub.rb +2385 -0
  22. data/lib/google/cloud/network_services/v1/network_services/rest.rb +52 -0
  23. data/lib/google/cloud/network_services/v1/network_services.rb +54 -0
  24. data/lib/google/cloud/network_services/v1/rest.rb +39 -0
  25. data/lib/google/cloud/network_services/v1/version.rb +7 -2
  26. data/lib/google/cloud/network_services/v1.rb +46 -0
  27. data/lib/google/cloud/networkservices/v1/common_pb.rb +51 -0
  28. data/lib/google/cloud/networkservices/v1/dep_pb.rb +75 -0
  29. data/lib/google/cloud/networkservices/v1/dep_services_pb.rb +64 -0
  30. data/lib/google/cloud/networkservices/v1/endpoint_policy_pb.rb +58 -0
  31. data/lib/google/cloud/networkservices/v1/gateway_pb.rb +56 -0
  32. data/lib/google/cloud/networkservices/v1/grpc_route_pb.rb +69 -0
  33. data/lib/google/cloud/networkservices/v1/http_route_pb.rb +74 -0
  34. data/lib/google/cloud/networkservices/v1/mesh_pb.rb +55 -0
  35. data/lib/google/cloud/networkservices/v1/network_services_pb.rb +53 -0
  36. data/lib/google/cloud/networkservices/v1/network_services_services_pb.rb +120 -0
  37. data/lib/google/cloud/networkservices/v1/service_binding_pb.rb +52 -0
  38. data/lib/google/cloud/networkservices/v1/tcp_route_pb.rb +59 -0
  39. data/lib/google/cloud/networkservices/v1/tls_route_pb.rb +59 -0
  40. data/lib/google-cloud-network_services-v1.rb +21 -0
  41. data/proto_docs/README.md +4 -0
  42. data/proto_docs/google/api/client.rb +399 -0
  43. data/proto_docs/google/api/field_behavior.rb +85 -0
  44. data/proto_docs/google/api/field_info.rb +65 -0
  45. data/proto_docs/google/api/launch_stage.rb +71 -0
  46. data/proto_docs/google/api/resource.rb +222 -0
  47. data/proto_docs/google/cloud/networkservices/v1/common.rb +147 -0
  48. data/proto_docs/google/cloud/networkservices/v1/dep.rb +569 -0
  49. data/proto_docs/google/cloud/networkservices/v1/endpoint_policy.rb +194 -0
  50. data/proto_docs/google/cloud/networkservices/v1/gateway.rb +187 -0
  51. data/proto_docs/google/cloud/networkservices/v1/grpc_route.rb +430 -0
  52. data/proto_docs/google/cloud/networkservices/v1/http_route.rb +670 -0
  53. data/proto_docs/google/cloud/networkservices/v1/mesh.rb +155 -0
  54. data/proto_docs/google/cloud/networkservices/v1/service_binding.rb +131 -0
  55. data/proto_docs/google/cloud/networkservices/v1/tcp_route.rb +247 -0
  56. data/proto_docs/google/cloud/networkservices/v1/tls_route.rb +219 -0
  57. data/proto_docs/google/longrunning/operations.rb +164 -0
  58. data/proto_docs/google/protobuf/any.rb +145 -0
  59. data/proto_docs/google/protobuf/duration.rb +98 -0
  60. data/proto_docs/google/protobuf/empty.rb +34 -0
  61. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  62. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  63. data/proto_docs/google/rpc/status.rb +48 -0
  64. data/proto_docs/google/type/expr.rb +75 -0
  65. metadata +144 -10
@@ -0,0 +1,278 @@
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 NetworkServices
23
+ module V1
24
+ module NetworkServices
25
+ # Path helper methods for the NetworkServices API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified AuthorizationPolicy resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/authorizationPolicies/{authorization_policy}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param authorization_policy [String]
37
+ #
38
+ # @return [::String]
39
+ def authorization_policy_path project:, location:, authorization_policy:
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}/authorizationPolicies/#{authorization_policy}"
44
+ end
45
+
46
+ ##
47
+ # Create a fully-qualified BackendService resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/backendServices/{backend_service}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param backend_service [String]
56
+ #
57
+ # @return [::String]
58
+ def backend_service_path project:, location:, backend_service:
59
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
60
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
61
+
62
+ "projects/#{project}/locations/#{location}/backendServices/#{backend_service}"
63
+ end
64
+
65
+ ##
66
+ # Create a fully-qualified ClientTlsPolicy resource string.
67
+ #
68
+ # The resource will be in the following format:
69
+ #
70
+ # `projects/{project}/locations/{location}/clientTlsPolicies/{client_tls_policy}`
71
+ #
72
+ # @param project [String]
73
+ # @param location [String]
74
+ # @param client_tls_policy [String]
75
+ #
76
+ # @return [::String]
77
+ def client_tls_policy_path project:, location:, client_tls_policy:
78
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
79
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
80
+
81
+ "projects/#{project}/locations/#{location}/clientTlsPolicies/#{client_tls_policy}"
82
+ end
83
+
84
+ ##
85
+ # Create a fully-qualified EndpointPolicy resource string.
86
+ #
87
+ # The resource will be in the following format:
88
+ #
89
+ # `projects/{project}/locations/{location}/endpointPolicies/{endpoint_policy}`
90
+ #
91
+ # @param project [String]
92
+ # @param location [String]
93
+ # @param endpoint_policy [String]
94
+ #
95
+ # @return [::String]
96
+ def endpoint_policy_path project:, location:, endpoint_policy:
97
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
98
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
99
+
100
+ "projects/#{project}/locations/#{location}/endpointPolicies/#{endpoint_policy}"
101
+ end
102
+
103
+ ##
104
+ # Create a fully-qualified Gateway resource string.
105
+ #
106
+ # The resource will be in the following format:
107
+ #
108
+ # `projects/{project}/locations/{location}/gateways/{gateway}`
109
+ #
110
+ # @param project [String]
111
+ # @param location [String]
112
+ # @param gateway [String]
113
+ #
114
+ # @return [::String]
115
+ def gateway_path project:, location:, gateway:
116
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
117
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
118
+
119
+ "projects/#{project}/locations/#{location}/gateways/#{gateway}"
120
+ end
121
+
122
+ ##
123
+ # Create a fully-qualified GrpcRoute resource string.
124
+ #
125
+ # The resource will be in the following format:
126
+ #
127
+ # `projects/{project}/locations/{location}/grpcRoutes/{grpc_route}`
128
+ #
129
+ # @param project [String]
130
+ # @param location [String]
131
+ # @param grpc_route [String]
132
+ #
133
+ # @return [::String]
134
+ def grpc_route_path project:, location:, grpc_route:
135
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
136
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
137
+
138
+ "projects/#{project}/locations/#{location}/grpcRoutes/#{grpc_route}"
139
+ end
140
+
141
+ ##
142
+ # Create a fully-qualified HttpRoute resource string.
143
+ #
144
+ # The resource will be in the following format:
145
+ #
146
+ # `projects/{project}/locations/{location}/httpRoutes/{http_route}`
147
+ #
148
+ # @param project [String]
149
+ # @param location [String]
150
+ # @param http_route [String]
151
+ #
152
+ # @return [::String]
153
+ def http_route_path project:, location:, http_route:
154
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
155
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
156
+
157
+ "projects/#{project}/locations/#{location}/httpRoutes/#{http_route}"
158
+ end
159
+
160
+ ##
161
+ # Create a fully-qualified Location resource string.
162
+ #
163
+ # The resource will be in the following format:
164
+ #
165
+ # `projects/{project}/locations/{location}`
166
+ #
167
+ # @param project [String]
168
+ # @param location [String]
169
+ #
170
+ # @return [::String]
171
+ def location_path project:, location:
172
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
173
+
174
+ "projects/#{project}/locations/#{location}"
175
+ end
176
+
177
+ ##
178
+ # Create a fully-qualified Mesh resource string.
179
+ #
180
+ # The resource will be in the following format:
181
+ #
182
+ # `projects/{project}/locations/{location}/meshes/{mesh}`
183
+ #
184
+ # @param project [String]
185
+ # @param location [String]
186
+ # @param mesh [String]
187
+ #
188
+ # @return [::String]
189
+ def mesh_path project:, location:, mesh:
190
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
191
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
192
+
193
+ "projects/#{project}/locations/#{location}/meshes/#{mesh}"
194
+ end
195
+
196
+ ##
197
+ # Create a fully-qualified ServerTlsPolicy resource string.
198
+ #
199
+ # The resource will be in the following format:
200
+ #
201
+ # `projects/{project}/locations/{location}/serverTlsPolicies/{server_tls_policy}`
202
+ #
203
+ # @param project [String]
204
+ # @param location [String]
205
+ # @param server_tls_policy [String]
206
+ #
207
+ # @return [::String]
208
+ def server_tls_policy_path project:, location:, server_tls_policy:
209
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
210
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
211
+
212
+ "projects/#{project}/locations/#{location}/serverTlsPolicies/#{server_tls_policy}"
213
+ end
214
+
215
+ ##
216
+ # Create a fully-qualified ServiceBinding resource string.
217
+ #
218
+ # The resource will be in the following format:
219
+ #
220
+ # `projects/{project}/locations/{location}/serviceBindings/{service_binding}`
221
+ #
222
+ # @param project [String]
223
+ # @param location [String]
224
+ # @param service_binding [String]
225
+ #
226
+ # @return [::String]
227
+ def service_binding_path project:, location:, service_binding:
228
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
229
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
230
+
231
+ "projects/#{project}/locations/#{location}/serviceBindings/#{service_binding}"
232
+ end
233
+
234
+ ##
235
+ # Create a fully-qualified TcpRoute resource string.
236
+ #
237
+ # The resource will be in the following format:
238
+ #
239
+ # `projects/{project}/locations/{location}/tcpRoutes/{tcp_route}`
240
+ #
241
+ # @param project [String]
242
+ # @param location [String]
243
+ # @param tcp_route [String]
244
+ #
245
+ # @return [::String]
246
+ def tcp_route_path project:, location:, tcp_route:
247
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
248
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
249
+
250
+ "projects/#{project}/locations/#{location}/tcpRoutes/#{tcp_route}"
251
+ end
252
+
253
+ ##
254
+ # Create a fully-qualified TlsRoute resource string.
255
+ #
256
+ # The resource will be in the following format:
257
+ #
258
+ # `projects/{project}/locations/{location}/tlsRoutes/{tls_route}`
259
+ #
260
+ # @param project [String]
261
+ # @param location [String]
262
+ # @param tls_route [String]
263
+ #
264
+ # @return [::String]
265
+ def tls_route_path project:, location:, tls_route:
266
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
267
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
268
+
269
+ "projects/#{project}/locations/#{location}/tlsRoutes/#{tls_route}"
270
+ end
271
+
272
+ extend self
273
+ end
274
+ end
275
+ end
276
+ end
277
+ end
278
+ end