google-cloud-network_connectivity-v1 1.3.0 → 1.4.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.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +4 -4
  4. data/lib/google/cloud/network_connectivity/v1/cross_network_automation_service/client.rb +2413 -0
  5. data/lib/google/cloud/network_connectivity/v1/cross_network_automation_service/credentials.rb +51 -0
  6. data/lib/google/cloud/network_connectivity/v1/cross_network_automation_service/operations.rb +813 -0
  7. data/lib/google/cloud/network_connectivity/v1/cross_network_automation_service/paths.rb +195 -0
  8. data/lib/google/cloud/network_connectivity/v1/cross_network_automation_service.rb +50 -0
  9. data/lib/google/cloud/network_connectivity/v1/hub_service/client.rb +242 -0
  10. data/lib/google/cloud/network_connectivity/v1/policy_based_routing_service/client.rb +24 -17
  11. data/lib/google/cloud/network_connectivity/v1/version.rb +1 -1
  12. data/lib/google/cloud/network_connectivity/v1.rb +2 -1
  13. data/lib/google/cloud/networkconnectivity/v1/common_pb.rb +1 -1
  14. data/lib/google/cloud/networkconnectivity/v1/cross_network_automation_pb.rb +95 -0
  15. data/lib/google/cloud/networkconnectivity/v1/cross_network_automation_services_pb.rb +79 -0
  16. data/lib/google/cloud/networkconnectivity/v1/hub_pb.rb +5 -1
  17. data/lib/google/cloud/networkconnectivity/v1/hub_services_pb.rb +4 -0
  18. data/lib/google/cloud/networkconnectivity/v1/policy_based_routing_services_pb.rb +4 -4
  19. data/proto_docs/google/api/client.rb +14 -0
  20. data/proto_docs/google/cloud/networkconnectivity/v1/common.rb +4 -3
  21. data/proto_docs/google/cloud/networkconnectivity/v1/cross_network_automation.rb +1138 -0
  22. data/proto_docs/google/cloud/networkconnectivity/v1/hub.rb +142 -13
  23. data/proto_docs/google/cloud/networkconnectivity/v1/policy_based_routing.rb +74 -58
  24. data/proto_docs/google/rpc/error_details.rb +346 -0
  25. metadata +12 -3
@@ -0,0 +1,346 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 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 Rpc
22
+ # Describes the cause of the error with structured details.
23
+ #
24
+ # Example of an error when contacting the "pubsub.googleapis.com" API when it
25
+ # is not enabled:
26
+ #
27
+ # { "reason": "API_DISABLED"
28
+ # "domain": "googleapis.com"
29
+ # "metadata": {
30
+ # "resource": "projects/123",
31
+ # "service": "pubsub.googleapis.com"
32
+ # }
33
+ # }
34
+ #
35
+ # This response indicates that the pubsub.googleapis.com API is not enabled.
36
+ #
37
+ # Example of an error that is returned when attempting to create a Spanner
38
+ # instance in a region that is out of stock:
39
+ #
40
+ # { "reason": "STOCKOUT"
41
+ # "domain": "spanner.googleapis.com",
42
+ # "metadata": {
43
+ # "availableRegions": "us-central1,us-east2"
44
+ # }
45
+ # }
46
+ # @!attribute [rw] reason
47
+ # @return [::String]
48
+ # The reason of the error. This is a constant value that identifies the
49
+ # proximate cause of the error. Error reasons are unique within a particular
50
+ # domain of errors. This should be at most 63 characters and match a
51
+ # regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
52
+ # UPPER_SNAKE_CASE.
53
+ # @!attribute [rw] domain
54
+ # @return [::String]
55
+ # The logical grouping to which the "reason" belongs. The error domain
56
+ # is typically the registered service name of the tool or product that
57
+ # generates the error. Example: "pubsub.googleapis.com". If the error is
58
+ # generated by some common infrastructure, the error domain must be a
59
+ # globally unique value that identifies the infrastructure. For Google API
60
+ # infrastructure, the error domain is "googleapis.com".
61
+ # @!attribute [rw] metadata
62
+ # @return [::Google::Protobuf::Map{::String => ::String}]
63
+ # Additional structured details about this error.
64
+ #
65
+ # Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should
66
+ # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
67
+ # length. When identifying the current value of an exceeded limit, the units
68
+ # should be contained in the key, not the value. For example, rather than
69
+ # `{"instanceLimit": "100/request"}`, should be returned as,
70
+ # `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of
71
+ # instances that can be created in a single (batch) request.
72
+ class ErrorInfo
73
+ include ::Google::Protobuf::MessageExts
74
+ extend ::Google::Protobuf::MessageExts::ClassMethods
75
+
76
+ # @!attribute [rw] key
77
+ # @return [::String]
78
+ # @!attribute [rw] value
79
+ # @return [::String]
80
+ class MetadataEntry
81
+ include ::Google::Protobuf::MessageExts
82
+ extend ::Google::Protobuf::MessageExts::ClassMethods
83
+ end
84
+ end
85
+
86
+ # Describes when the clients can retry a failed request. Clients could ignore
87
+ # the recommendation here or retry when this information is missing from error
88
+ # responses.
89
+ #
90
+ # It's always recommended that clients should use exponential backoff when
91
+ # retrying.
92
+ #
93
+ # Clients should wait until `retry_delay` amount of time has passed since
94
+ # receiving the error response before retrying. If retrying requests also
95
+ # fail, clients should use an exponential backoff scheme to gradually increase
96
+ # the delay between retries based on `retry_delay`, until either a maximum
97
+ # number of retries have been reached or a maximum retry delay cap has been
98
+ # reached.
99
+ # @!attribute [rw] retry_delay
100
+ # @return [::Google::Protobuf::Duration]
101
+ # Clients should wait at least this long between retrying the same request.
102
+ class RetryInfo
103
+ include ::Google::Protobuf::MessageExts
104
+ extend ::Google::Protobuf::MessageExts::ClassMethods
105
+ end
106
+
107
+ # Describes additional debugging info.
108
+ # @!attribute [rw] stack_entries
109
+ # @return [::Array<::String>]
110
+ # The stack trace entries indicating where the error occurred.
111
+ # @!attribute [rw] detail
112
+ # @return [::String]
113
+ # Additional debugging information provided by the server.
114
+ class DebugInfo
115
+ include ::Google::Protobuf::MessageExts
116
+ extend ::Google::Protobuf::MessageExts::ClassMethods
117
+ end
118
+
119
+ # Describes how a quota check failed.
120
+ #
121
+ # For example if a daily limit was exceeded for the calling project,
122
+ # a service could respond with a QuotaFailure detail containing the project
123
+ # id and the description of the quota limit that was exceeded. If the
124
+ # calling project hasn't enabled the service in the developer console, then
125
+ # a service could respond with the project id and set `service_disabled`
126
+ # to true.
127
+ #
128
+ # Also see RetryInfo and Help types for other details about handling a
129
+ # quota failure.
130
+ # @!attribute [rw] violations
131
+ # @return [::Array<::Google::Rpc::QuotaFailure::Violation>]
132
+ # Describes all quota violations.
133
+ class QuotaFailure
134
+ include ::Google::Protobuf::MessageExts
135
+ extend ::Google::Protobuf::MessageExts::ClassMethods
136
+
137
+ # A message type used to describe a single quota violation. For example, a
138
+ # daily quota or a custom quota that was exceeded.
139
+ # @!attribute [rw] subject
140
+ # @return [::String]
141
+ # The subject on which the quota check failed.
142
+ # For example, "clientip:<ip address of client>" or "project:<Google
143
+ # developer project id>".
144
+ # @!attribute [rw] description
145
+ # @return [::String]
146
+ # A description of how the quota check failed. Clients can use this
147
+ # description to find more about the quota configuration in the service's
148
+ # public documentation, or find the relevant quota limit to adjust through
149
+ # developer console.
150
+ #
151
+ # For example: "Service disabled" or "Daily Limit for read operations
152
+ # exceeded".
153
+ class Violation
154
+ include ::Google::Protobuf::MessageExts
155
+ extend ::Google::Protobuf::MessageExts::ClassMethods
156
+ end
157
+ end
158
+
159
+ # Describes what preconditions have failed.
160
+ #
161
+ # For example, if an RPC failed because it required the Terms of Service to be
162
+ # acknowledged, it could list the terms of service violation in the
163
+ # PreconditionFailure message.
164
+ # @!attribute [rw] violations
165
+ # @return [::Array<::Google::Rpc::PreconditionFailure::Violation>]
166
+ # Describes all precondition violations.
167
+ class PreconditionFailure
168
+ include ::Google::Protobuf::MessageExts
169
+ extend ::Google::Protobuf::MessageExts::ClassMethods
170
+
171
+ # A message type used to describe a single precondition failure.
172
+ # @!attribute [rw] type
173
+ # @return [::String]
174
+ # The type of PreconditionFailure. We recommend using a service-specific
175
+ # enum type to define the supported precondition violation subjects. For
176
+ # example, "TOS" for "Terms of Service violation".
177
+ # @!attribute [rw] subject
178
+ # @return [::String]
179
+ # The subject, relative to the type, that failed.
180
+ # For example, "google.com/cloud" relative to the "TOS" type would indicate
181
+ # which terms of service is being referenced.
182
+ # @!attribute [rw] description
183
+ # @return [::String]
184
+ # A description of how the precondition failed. Developers can use this
185
+ # description to understand how to fix the failure.
186
+ #
187
+ # For example: "Terms of service not accepted".
188
+ class Violation
189
+ include ::Google::Protobuf::MessageExts
190
+ extend ::Google::Protobuf::MessageExts::ClassMethods
191
+ end
192
+ end
193
+
194
+ # Describes violations in a client request. This error type focuses on the
195
+ # syntactic aspects of the request.
196
+ # @!attribute [rw] field_violations
197
+ # @return [::Array<::Google::Rpc::BadRequest::FieldViolation>]
198
+ # Describes all violations in a client request.
199
+ class BadRequest
200
+ include ::Google::Protobuf::MessageExts
201
+ extend ::Google::Protobuf::MessageExts::ClassMethods
202
+
203
+ # A message type used to describe a single bad request field.
204
+ # @!attribute [rw] field
205
+ # @return [::String]
206
+ # A path that leads to a field in the request body. The value will be a
207
+ # sequence of dot-separated identifiers that identify a protocol buffer
208
+ # field.
209
+ #
210
+ # Consider the following:
211
+ #
212
+ # message CreateContactRequest {
213
+ # message EmailAddress {
214
+ # enum Type {
215
+ # TYPE_UNSPECIFIED = 0;
216
+ # HOME = 1;
217
+ # WORK = 2;
218
+ # }
219
+ #
220
+ # optional string email = 1;
221
+ # repeated EmailType type = 2;
222
+ # }
223
+ #
224
+ # string full_name = 1;
225
+ # repeated EmailAddress email_addresses = 2;
226
+ # }
227
+ #
228
+ # In this example, in proto `field` could take one of the following values:
229
+ #
230
+ # * `full_name` for a violation in the `full_name` value
231
+ # * `email_addresses[1].email` for a violation in the `email` field of the
232
+ # first `email_addresses` message
233
+ # * `email_addresses[3].type[2]` for a violation in the second `type`
234
+ # value in the third `email_addresses` message.
235
+ #
236
+ # In JSON, the same values are represented as:
237
+ #
238
+ # * `fullName` for a violation in the `fullName` value
239
+ # * `emailAddresses[1].email` for a violation in the `email` field of the
240
+ # first `emailAddresses` message
241
+ # * `emailAddresses[3].type[2]` for a violation in the second `type`
242
+ # value in the third `emailAddresses` message.
243
+ # @!attribute [rw] description
244
+ # @return [::String]
245
+ # A description of why the request element is bad.
246
+ # @!attribute [rw] reason
247
+ # @return [::String]
248
+ # The reason of the field-level error. This is a constant value that
249
+ # identifies the proximate cause of the field-level error. It should
250
+ # uniquely identify the type of the FieldViolation within the scope of the
251
+ # google.rpc.ErrorInfo.domain. This should be at most 63
252
+ # characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`,
253
+ # which represents UPPER_SNAKE_CASE.
254
+ # @!attribute [rw] localized_message
255
+ # @return [::Google::Rpc::LocalizedMessage]
256
+ # Provides a localized error message for field-level errors that is safe to
257
+ # return to the API consumer.
258
+ class FieldViolation
259
+ include ::Google::Protobuf::MessageExts
260
+ extend ::Google::Protobuf::MessageExts::ClassMethods
261
+ end
262
+ end
263
+
264
+ # Contains metadata about the request that clients can attach when filing a bug
265
+ # or providing other forms of feedback.
266
+ # @!attribute [rw] request_id
267
+ # @return [::String]
268
+ # An opaque string that should only be interpreted by the service generating
269
+ # it. For example, it can be used to identify requests in the service's logs.
270
+ # @!attribute [rw] serving_data
271
+ # @return [::String]
272
+ # Any data that was used to serve this request. For example, an encrypted
273
+ # stack trace that can be sent back to the service provider for debugging.
274
+ class RequestInfo
275
+ include ::Google::Protobuf::MessageExts
276
+ extend ::Google::Protobuf::MessageExts::ClassMethods
277
+ end
278
+
279
+ # Describes the resource that is being accessed.
280
+ # @!attribute [rw] resource_type
281
+ # @return [::String]
282
+ # A name for the type of resource being accessed, e.g. "sql table",
283
+ # "cloud storage bucket", "file", "Google calendar"; or the type URL
284
+ # of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
285
+ # @!attribute [rw] resource_name
286
+ # @return [::String]
287
+ # The name of the resource being accessed. For example, a shared calendar
288
+ # name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
289
+ # error is
290
+ # [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
291
+ # @!attribute [rw] owner
292
+ # @return [::String]
293
+ # The owner of the resource (optional).
294
+ # For example, "user:<owner email>" or "project:<Google developer project
295
+ # id>".
296
+ # @!attribute [rw] description
297
+ # @return [::String]
298
+ # Describes what error is encountered when accessing this resource.
299
+ # For example, updating a cloud project may require the `writer` permission
300
+ # on the developer console project.
301
+ class ResourceInfo
302
+ include ::Google::Protobuf::MessageExts
303
+ extend ::Google::Protobuf::MessageExts::ClassMethods
304
+ end
305
+
306
+ # Provides links to documentation or for performing an out of band action.
307
+ #
308
+ # For example, if a quota check failed with an error indicating the calling
309
+ # project hasn't enabled the accessed service, this can contain a URL pointing
310
+ # directly to the right place in the developer console to flip the bit.
311
+ # @!attribute [rw] links
312
+ # @return [::Array<::Google::Rpc::Help::Link>]
313
+ # URL(s) pointing to additional information on handling the current error.
314
+ class Help
315
+ include ::Google::Protobuf::MessageExts
316
+ extend ::Google::Protobuf::MessageExts::ClassMethods
317
+
318
+ # Describes a URL link.
319
+ # @!attribute [rw] description
320
+ # @return [::String]
321
+ # Describes what the link offers.
322
+ # @!attribute [rw] url
323
+ # @return [::String]
324
+ # The URL of the link.
325
+ class Link
326
+ include ::Google::Protobuf::MessageExts
327
+ extend ::Google::Protobuf::MessageExts::ClassMethods
328
+ end
329
+ end
330
+
331
+ # Provides a localized error message that is safe to return to the user
332
+ # which can be attached to an RPC error.
333
+ # @!attribute [rw] locale
334
+ # @return [::String]
335
+ # The locale used following the specification defined at
336
+ # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
337
+ # Examples are: "en-US", "fr-CH", "es-MX"
338
+ # @!attribute [rw] message
339
+ # @return [::String]
340
+ # The localized error message in the above locale.
341
+ class LocalizedMessage
342
+ include ::Google::Protobuf::MessageExts
343
+ extend ::Google::Protobuf::MessageExts::ClassMethods
344
+ end
345
+ end
346
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-network_connectivity-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-29 00:00:00.000000000 Z
10
+ date: 2025-03-25 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: gapic-common
@@ -100,6 +100,11 @@ files:
100
100
  - README.md
101
101
  - lib/google-cloud-network_connectivity-v1.rb
102
102
  - lib/google/cloud/network_connectivity/v1.rb
103
+ - lib/google/cloud/network_connectivity/v1/cross_network_automation_service.rb
104
+ - lib/google/cloud/network_connectivity/v1/cross_network_automation_service/client.rb
105
+ - lib/google/cloud/network_connectivity/v1/cross_network_automation_service/credentials.rb
106
+ - lib/google/cloud/network_connectivity/v1/cross_network_automation_service/operations.rb
107
+ - lib/google/cloud/network_connectivity/v1/cross_network_automation_service/paths.rb
103
108
  - lib/google/cloud/network_connectivity/v1/hub_service.rb
104
109
  - lib/google/cloud/network_connectivity/v1/hub_service/client.rb
105
110
  - lib/google/cloud/network_connectivity/v1/hub_service/credentials.rb
@@ -112,6 +117,8 @@ files:
112
117
  - lib/google/cloud/network_connectivity/v1/policy_based_routing_service/paths.rb
113
118
  - lib/google/cloud/network_connectivity/v1/version.rb
114
119
  - lib/google/cloud/networkconnectivity/v1/common_pb.rb
120
+ - lib/google/cloud/networkconnectivity/v1/cross_network_automation_pb.rb
121
+ - lib/google/cloud/networkconnectivity/v1/cross_network_automation_services_pb.rb
115
122
  - lib/google/cloud/networkconnectivity/v1/hub_pb.rb
116
123
  - lib/google/cloud/networkconnectivity/v1/hub_services_pb.rb
117
124
  - lib/google/cloud/networkconnectivity/v1/policy_based_routing_pb.rb
@@ -123,6 +130,7 @@ files:
123
130
  - proto_docs/google/api/launch_stage.rb
124
131
  - proto_docs/google/api/resource.rb
125
132
  - proto_docs/google/cloud/networkconnectivity/v1/common.rb
133
+ - proto_docs/google/cloud/networkconnectivity/v1/cross_network_automation.rb
126
134
  - proto_docs/google/cloud/networkconnectivity/v1/hub.rb
127
135
  - proto_docs/google/cloud/networkconnectivity/v1/policy_based_routing.rb
128
136
  - proto_docs/google/longrunning/operations.rb
@@ -131,6 +139,7 @@ files:
131
139
  - proto_docs/google/protobuf/empty.rb
132
140
  - proto_docs/google/protobuf/field_mask.rb
133
141
  - proto_docs/google/protobuf/timestamp.rb
142
+ - proto_docs/google/rpc/error_details.rb
134
143
  - proto_docs/google/rpc/status.rb
135
144
  - proto_docs/google/type/expr.rb
136
145
  homepage: https://github.com/googleapis/google-cloud-ruby
@@ -151,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
160
  - !ruby/object:Gem::Version
152
161
  version: '0'
153
162
  requirements: []
154
- rubygems_version: 3.6.2
163
+ rubygems_version: 3.6.5
155
164
  specification_version: 4
156
165
  summary: This API enables connectivity with and between Google Cloud resources.
157
166
  test_files: []