google-cloud-network_connectivity-v1 0.1.0 → 0.1.4
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/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/lib/google/cloud/network_connectivity/v1/hub_service/client.rb +256 -220
- data/lib/google/cloud/network_connectivity/v1/hub_service/operations.rb +115 -12
- data/lib/google/cloud/network_connectivity/v1/hub_service/paths.rb +17 -0
- data/lib/google/cloud/network_connectivity/v1/version.rb +1 -1
- data/lib/google/cloud/networkconnectivity/v1/common_pb.rb +2 -2
- data/lib/google/cloud/networkconnectivity/v1/hub_pb.rb +7 -12
- data/lib/google/cloud/networkconnectivity/v1/hub_services_pb.rb +1 -8
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/networkconnectivity/v1/common.rb +1 -1
- data/proto_docs/google/cloud/networkconnectivity/v1/hub.rb +29 -73
- metadata +3 -3
@@ -143,6 +143,27 @@ module Google
|
|
143
143
|
#
|
144
144
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
145
145
|
#
|
146
|
+
# @example Basic example
|
147
|
+
# require "google/longrunning"
|
148
|
+
#
|
149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
150
|
+
# client = Google::Longrunning::Operations::Client.new
|
151
|
+
#
|
152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
153
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
154
|
+
#
|
155
|
+
# # Call the list_operations method.
|
156
|
+
# result = client.list_operations request
|
157
|
+
#
|
158
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
+
# # iterate over all elements by calling #each, and the enumerable
|
160
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
161
|
+
# # methods are also available for managing paging directly.
|
162
|
+
# result.each do |response|
|
163
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
+
# p response
|
165
|
+
# end
|
166
|
+
#
|
146
167
|
def list_operations request, options = nil
|
147
168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
148
169
|
|
@@ -160,9 +181,11 @@ module Google
|
|
160
181
|
gapic_version: ::Google::Cloud::NetworkConnectivity::V1::VERSION
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
183
|
|
163
|
-
header_params = {
|
164
|
-
|
165
|
-
|
184
|
+
header_params = {}
|
185
|
+
if request.name
|
186
|
+
header_params["name"] = request.name
|
187
|
+
end
|
188
|
+
|
166
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
167
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
168
191
|
|
@@ -215,6 +238,28 @@ module Google
|
|
215
238
|
#
|
216
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
217
240
|
#
|
241
|
+
# @example Basic example
|
242
|
+
# require "google/longrunning"
|
243
|
+
#
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
245
|
+
# client = Google::Longrunning::Operations::Client.new
|
246
|
+
#
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
248
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
249
|
+
#
|
250
|
+
# # Call the get_operation method.
|
251
|
+
# result = client.get_operation request
|
252
|
+
#
|
253
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
254
|
+
# # object to check the status of an operation, cancel it, or wait
|
255
|
+
# # for results. Here is how to block until completion:
|
256
|
+
# result.wait_until_done! timeout: 60
|
257
|
+
# if result.response?
|
258
|
+
# p result.response
|
259
|
+
# else
|
260
|
+
# puts "Error!"
|
261
|
+
# end
|
262
|
+
#
|
218
263
|
def get_operation request, options = nil
|
219
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
265
|
|
@@ -232,9 +277,11 @@ module Google
|
|
232
277
|
gapic_version: ::Google::Cloud::NetworkConnectivity::V1::VERSION
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
279
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.name
|
282
|
+
header_params["name"] = request.name
|
283
|
+
end
|
284
|
+
|
238
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
287
|
|
@@ -287,6 +334,21 @@ module Google
|
|
287
334
|
#
|
288
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
289
336
|
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/longrunning"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Longrunning::Operations::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
345
|
+
#
|
346
|
+
# # Call the delete_operation method.
|
347
|
+
# result = client.delete_operation request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
350
|
+
# p result
|
351
|
+
#
|
290
352
|
def delete_operation request, options = nil
|
291
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
354
|
|
@@ -304,9 +366,11 @@ module Google
|
|
304
366
|
gapic_version: ::Google::Cloud::NetworkConnectivity::V1::VERSION
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
368
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
369
|
+
header_params = {}
|
370
|
+
if request.name
|
371
|
+
header_params["name"] = request.name
|
372
|
+
end
|
373
|
+
|
310
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
376
|
|
@@ -364,6 +428,21 @@ module Google
|
|
364
428
|
#
|
365
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
366
430
|
#
|
431
|
+
# @example Basic example
|
432
|
+
# require "google/longrunning"
|
433
|
+
#
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
435
|
+
# client = Google::Longrunning::Operations::Client.new
|
436
|
+
#
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
438
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
439
|
+
#
|
440
|
+
# # Call the cancel_operation method.
|
441
|
+
# result = client.cancel_operation request
|
442
|
+
#
|
443
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
444
|
+
# p result
|
445
|
+
#
|
367
446
|
def cancel_operation request, options = nil
|
368
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
448
|
|
@@ -381,9 +460,11 @@ module Google
|
|
381
460
|
gapic_version: ::Google::Cloud::NetworkConnectivity::V1::VERSION
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
462
|
|
384
|
-
header_params = {
|
385
|
-
|
386
|
-
|
463
|
+
header_params = {}
|
464
|
+
if request.name
|
465
|
+
header_params["name"] = request.name
|
466
|
+
end
|
467
|
+
|
387
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
388
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
389
470
|
|
@@ -444,6 +525,28 @@ module Google
|
|
444
525
|
#
|
445
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
446
527
|
#
|
528
|
+
# @example Basic example
|
529
|
+
# require "google/longrunning"
|
530
|
+
#
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
532
|
+
# client = Google::Longrunning::Operations::Client.new
|
533
|
+
#
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
535
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
536
|
+
#
|
537
|
+
# # Call the wait_operation method.
|
538
|
+
# result = client.wait_operation request
|
539
|
+
#
|
540
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
541
|
+
# # object to check the status of an operation, cancel it, or wait
|
542
|
+
# # for results. Here is how to block until completion:
|
543
|
+
# result.wait_until_done! timeout: 60
|
544
|
+
# if result.response?
|
545
|
+
# p result.response
|
546
|
+
# else
|
547
|
+
# puts "Error!"
|
548
|
+
# end
|
549
|
+
#
|
447
550
|
def wait_operation request, options = nil
|
448
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
552
|
|
@@ -96,6 +96,23 @@ module Google
|
|
96
96
|
"projects/#{project}/locations/#{location}"
|
97
97
|
end
|
98
98
|
|
99
|
+
##
|
100
|
+
# Create a fully-qualified Network resource string.
|
101
|
+
#
|
102
|
+
# The resource will be in the following format:
|
103
|
+
#
|
104
|
+
# `projects/{project}/global/networks/{resource_id}`
|
105
|
+
#
|
106
|
+
# @param project [String]
|
107
|
+
# @param resource_id [String]
|
108
|
+
#
|
109
|
+
# @return [::String]
|
110
|
+
def network_path project:, resource_id:
|
111
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
112
|
+
|
113
|
+
"projects/#{project}/global/networks/#{resource_id}"
|
114
|
+
end
|
115
|
+
|
99
116
|
##
|
100
117
|
# Create a fully-qualified Spoke resource string.
|
101
118
|
#
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/networkconnectivity/v1/common.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/protobuf/timestamp_pb'
|
8
6
|
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/cloud/networkconnectivity/v1/common.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.cloud.networkconnectivity.v1.OperationMetadata" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/networkconnectivity/v1/hub.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
|
|
10
8
|
require 'google/longrunning/operations_pb'
|
11
9
|
require 'google/protobuf/field_mask_pb'
|
12
10
|
require 'google/protobuf/timestamp_pb'
|
11
|
+
require 'google/protobuf'
|
12
|
+
|
13
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
14
|
add_file("google/cloud/networkconnectivity/v1/hub.proto", :syntax => :proto3) do
|
15
15
|
add_message "google.cloud.networkconnectivity.v1.Hub" do
|
@@ -20,6 +20,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
20
20
|
optional :description, :string, 5
|
21
21
|
optional :unique_id, :string, 8
|
22
22
|
optional :state, :enum, 9, "google.cloud.networkconnectivity.v1.State"
|
23
|
+
repeated :routing_vpcs, :message, 10, "google.cloud.networkconnectivity.v1.RoutingVPC"
|
24
|
+
end
|
25
|
+
add_message "google.cloud.networkconnectivity.v1.RoutingVPC" do
|
26
|
+
optional :uri, :string, 1
|
23
27
|
end
|
24
28
|
add_message "google.cloud.networkconnectivity.v1.Spoke" do
|
25
29
|
optional :name, :string, 1
|
@@ -94,14 +98,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
94
98
|
optional :name, :string, 1
|
95
99
|
optional :request_id, :string, 2
|
96
100
|
end
|
97
|
-
add_message "google.cloud.networkconnectivity.v1.DeactivateSpokeRequest" do
|
98
|
-
optional :name, :string, 1
|
99
|
-
optional :request_id, :string, 2
|
100
|
-
end
|
101
|
-
add_message "google.cloud.networkconnectivity.v1.ActivateSpokeRequest" do
|
102
|
-
optional :name, :string, 1
|
103
|
-
optional :request_id, :string, 2
|
104
|
-
end
|
105
101
|
add_message "google.cloud.networkconnectivity.v1.LinkedVpnTunnels" do
|
106
102
|
repeated :uris, :string, 1
|
107
103
|
optional :site_to_site_data_transfer, :bool, 2
|
@@ -132,6 +128,7 @@ module Google
|
|
132
128
|
module NetworkConnectivity
|
133
129
|
module V1
|
134
130
|
Hub = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.Hub").msgclass
|
131
|
+
RoutingVPC = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.RoutingVPC").msgclass
|
135
132
|
Spoke = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.Spoke").msgclass
|
136
133
|
ListHubsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListHubsRequest").msgclass
|
137
134
|
ListHubsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListHubsResponse").msgclass
|
@@ -145,8 +142,6 @@ module Google
|
|
145
142
|
CreateSpokeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.CreateSpokeRequest").msgclass
|
146
143
|
UpdateSpokeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.UpdateSpokeRequest").msgclass
|
147
144
|
DeleteSpokeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.DeleteSpokeRequest").msgclass
|
148
|
-
DeactivateSpokeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.DeactivateSpokeRequest").msgclass
|
149
|
-
ActivateSpokeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ActivateSpokeRequest").msgclass
|
150
145
|
LinkedVpnTunnels = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.LinkedVpnTunnels").msgclass
|
151
146
|
LinkedInterconnectAttachments = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments").msgclass
|
152
147
|
LinkedRouterApplianceInstances = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances").msgclass
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# through a simple, centralized connectivity management model.
|
30
30
|
class Service
|
31
31
|
|
32
|
-
include GRPC::GenericService
|
32
|
+
include ::GRPC::GenericService
|
33
33
|
|
34
34
|
self.marshal_class_method = :encode
|
35
35
|
self.unmarshal_class_method = :decode
|
@@ -53,13 +53,6 @@ module Google
|
|
53
53
|
rpc :CreateSpoke, ::Google::Cloud::NetworkConnectivity::V1::CreateSpokeRequest, ::Google::Longrunning::Operation
|
54
54
|
# Updates the parameters of the specified spoke.
|
55
55
|
rpc :UpdateSpoke, ::Google::Cloud::NetworkConnectivity::V1::UpdateSpokeRequest, ::Google::Longrunning::Operation
|
56
|
-
# Deactivates the specified spoke. Deactivating keeps the spoke information
|
57
|
-
# for future re-activation, but disconnects the Google Cloud network from
|
58
|
-
# non-Google-Cloud network.
|
59
|
-
rpc :DeactivateSpoke, ::Google::Cloud::NetworkConnectivity::V1::DeactivateSpokeRequest, ::Google::Longrunning::Operation
|
60
|
-
# Activates the specified spoke. Activating reconnects the Google Cloud
|
61
|
-
# network with the non-Google-Cloud network.
|
62
|
-
rpc :ActivateSpoke, ::Google::Cloud::NetworkConnectivity::V1::ActivateSpokeRequest, ::Google::Longrunning::Operation
|
63
56
|
# Deletes the specified spoke.
|
64
57
|
rpc :DeleteSpoke, ::Google::Cloud::NetworkConnectivity::V1::DeleteSpokeRequest, ::Google::Longrunning::Operation
|
65
58
|
end
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
@@ -40,7 +40,7 @@ module Google
|
|
40
40
|
# @!attribute [r] requested_cancellation
|
41
41
|
# @return [::Boolean]
|
42
42
|
# Output only. Identifies whether the user has requested cancellation
|
43
|
-
# of the operation. Operations that have
|
43
|
+
# of the operation. Operations that have been cancelled successfully
|
44
44
|
# have [Operation.error][] value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
|
45
45
|
# corresponding to `Code.CANCELLED`.
|
46
46
|
# @!attribute [r] api_version
|
@@ -21,8 +21,8 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module NetworkConnectivity
|
23
23
|
module V1
|
24
|
-
# A hub is
|
25
|
-
#
|
24
|
+
# A hub is a collection of spokes. A single hub can contain spokes from
|
25
|
+
# multiple regions. However, all of a hub's spokes must be associated with
|
26
26
|
# resources that reside in the same VPC network.
|
27
27
|
# @!attribute [rw] name
|
28
28
|
# @return [::String]
|
@@ -51,6 +51,14 @@ module Google
|
|
51
51
|
# @!attribute [r] state
|
52
52
|
# @return [::Google::Cloud::NetworkConnectivity::V1::State]
|
53
53
|
# Output only. The current lifecycle state of this hub.
|
54
|
+
# @!attribute [rw] routing_vpcs
|
55
|
+
# @return [::Array<::Google::Cloud::NetworkConnectivity::V1::RoutingVPC>]
|
56
|
+
# The VPC network associated with this hub's spokes. All of the VPN tunnels,
|
57
|
+
# VLAN attachments, and router appliance instances referenced by this hub's
|
58
|
+
# spokes must belong to this VPC network.
|
59
|
+
#
|
60
|
+
# This field is read-only. Network Connectivity Center automatically
|
61
|
+
# populates it based on the set of spokes attached to the hub.
|
54
62
|
class Hub
|
55
63
|
include ::Google::Protobuf::MessageExts
|
56
64
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -65,6 +73,16 @@ module Google
|
|
65
73
|
end
|
66
74
|
end
|
67
75
|
|
76
|
+
# RoutingVPC contains information about the VPC network that is associated with
|
77
|
+
# a hub's spokes.
|
78
|
+
# @!attribute [rw] uri
|
79
|
+
# @return [::String]
|
80
|
+
# The URI of the VPC network.
|
81
|
+
class RoutingVPC
|
82
|
+
include ::Google::Protobuf::MessageExts
|
83
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
84
|
+
end
|
85
|
+
|
68
86
|
# A spoke represents a connection between your Google Cloud network resources
|
69
87
|
# and a non-Google-Cloud network.
|
70
88
|
#
|
@@ -95,7 +113,7 @@ module Google
|
|
95
113
|
# An optional description of the spoke.
|
96
114
|
# @!attribute [rw] hub
|
97
115
|
# @return [::String]
|
98
|
-
# Immutable. The
|
116
|
+
# Immutable. The name of the hub that this spoke is attached to.
|
99
117
|
# @!attribute [rw] linked_vpn_tunnels
|
100
118
|
# @return [::Google::Cloud::NetworkConnectivity::V1::LinkedVpnTunnels]
|
101
119
|
# VPN tunnels that are associated with the spoke.
|
@@ -179,7 +197,7 @@ module Google
|
|
179
197
|
# Required. The parent resource.
|
180
198
|
# @!attribute [rw] hub_id
|
181
199
|
# @return [::String]
|
182
|
-
#
|
200
|
+
# Required. A unique identifier for the hub.
|
183
201
|
# @!attribute [rw] hub
|
184
202
|
# @return [::Google::Cloud::NetworkConnectivity::V1::Hub]
|
185
203
|
# Required. The initial values for a new hub.
|
@@ -313,7 +331,7 @@ module Google
|
|
313
331
|
# Required. The parent resource.
|
314
332
|
# @!attribute [rw] spoke_id
|
315
333
|
# @return [::String]
|
316
|
-
#
|
334
|
+
# Required. Unique id for the spoke to create.
|
317
335
|
# @!attribute [rw] spoke
|
318
336
|
# @return [::Google::Cloud::NetworkConnectivity::V1::Spoke]
|
319
337
|
# Required. The initial values for a new spoke.
|
@@ -395,56 +413,6 @@ module Google
|
|
395
413
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
396
414
|
end
|
397
415
|
|
398
|
-
# The request for {::Google::Cloud::NetworkConnectivity::V1::HubService::Client#deactivate_spoke HubService.DeactivateSpoke}.
|
399
|
-
# @!attribute [rw] name
|
400
|
-
# @return [::String]
|
401
|
-
# Required. The name of the spoke to deactivate.
|
402
|
-
# @!attribute [rw] request_id
|
403
|
-
# @return [::String]
|
404
|
-
# Optional. A unique request ID (optional). If you specify this ID, you can use it
|
405
|
-
# in cases when you need to retry your request. When you need to retry, this
|
406
|
-
# ID lets the server know that it can ignore the request if it has already
|
407
|
-
# been completed. The server guarantees that for at least 60 minutes after
|
408
|
-
# the first request.
|
409
|
-
#
|
410
|
-
# For example, consider a situation where you make an initial request and
|
411
|
-
# the request times out. If you make the request again with the same request
|
412
|
-
# ID, the server can check to see whether the original operation
|
413
|
-
# was received. If it was, the server ignores the second request. This
|
414
|
-
# behavior prevents clients from mistakenly creating duplicate commitments.
|
415
|
-
#
|
416
|
-
# The request ID must be a valid UUID, with the exception that zero UUID is
|
417
|
-
# not supported (00000000-0000-0000-0000-000000000000).
|
418
|
-
class DeactivateSpokeRequest
|
419
|
-
include ::Google::Protobuf::MessageExts
|
420
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
421
|
-
end
|
422
|
-
|
423
|
-
# The request for {::Google::Cloud::NetworkConnectivity::V1::HubService::Client#activate_spoke HubService.ActivateSpoke}.
|
424
|
-
# @!attribute [rw] name
|
425
|
-
# @return [::String]
|
426
|
-
# Required. The name of the spoke to activate.
|
427
|
-
# @!attribute [rw] request_id
|
428
|
-
# @return [::String]
|
429
|
-
# Optional. A unique request ID (optional). If you specify this ID, you can use it
|
430
|
-
# in cases when you need to retry your request. When you need to retry, this
|
431
|
-
# ID lets the server know that it can ignore the request if it has already
|
432
|
-
# been completed. The server guarantees that for at least 60 minutes after
|
433
|
-
# the first request.
|
434
|
-
#
|
435
|
-
# For example, consider a situation where you make an initial request and
|
436
|
-
# the request times out. If you make the request again with the same request
|
437
|
-
# ID, the server can check to see whether the original operation
|
438
|
-
# was received. If it was, the server ignores the second request. This
|
439
|
-
# behavior prevents clients from mistakenly creating duplicate commitments.
|
440
|
-
#
|
441
|
-
# The request ID must be a valid UUID, with the exception that zero UUID is
|
442
|
-
# not supported (00000000-0000-0000-0000-000000000000).
|
443
|
-
class ActivateSpokeRequest
|
444
|
-
include ::Google::Protobuf::MessageExts
|
445
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
446
|
-
end
|
447
|
-
|
448
416
|
# A collection of Cloud VPN tunnel resources. These resources should be
|
449
417
|
# redundant HA VPN tunnels that all advertise the same prefixes to Google
|
450
418
|
# Cloud. Alternatively, in a passive/active configuration, all tunnels
|
@@ -455,12 +423,8 @@ module Google
|
|
455
423
|
# @!attribute [rw] site_to_site_data_transfer
|
456
424
|
# @return [::Boolean]
|
457
425
|
# A value that controls whether site-to-site data transfer is enabled for
|
458
|
-
# these resources.
|
459
|
-
#
|
460
|
-
# transfer enabled. If false, the spoke associated with these resources
|
461
|
-
# provides connectivity only between the external site and Google Cloud. In
|
462
|
-
# regions where data transfer is unsupported, you cannot set this field
|
463
|
-
# to true.
|
426
|
+
# these resources. This field is set to false by default, but you must set it
|
427
|
+
# to true. Note that data transfer is available only in supported locations.
|
464
428
|
class LinkedVpnTunnels
|
465
429
|
include ::Google::Protobuf::MessageExts
|
466
430
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -476,12 +440,8 @@ module Google
|
|
476
440
|
# @!attribute [rw] site_to_site_data_transfer
|
477
441
|
# @return [::Boolean]
|
478
442
|
# A value that controls whether site-to-site data transfer is enabled for
|
479
|
-
# these resources.
|
480
|
-
#
|
481
|
-
# transfer enabled. If false, the spoke associated with these resources
|
482
|
-
# provides connectivity only between the external site and Google Cloud. In
|
483
|
-
# regions where data transfer is unsupported, you cannot set this field
|
484
|
-
# to true.
|
443
|
+
# these resources. This field is set to false by default, but you must set it
|
444
|
+
# to true. Note that data transfer is available only in supported locations.
|
485
445
|
class LinkedInterconnectAttachments
|
486
446
|
include ::Google::Protobuf::MessageExts
|
487
447
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -496,12 +456,8 @@ module Google
|
|
496
456
|
# @!attribute [rw] site_to_site_data_transfer
|
497
457
|
# @return [::Boolean]
|
498
458
|
# A value that controls whether site-to-site data transfer is enabled for
|
499
|
-
# these resources.
|
500
|
-
#
|
501
|
-
# transfer enabled. If false, the spoke associated with these resources
|
502
|
-
# provides connectivity only between the external site and Google Cloud. In
|
503
|
-
# regions where data transfer is unsupported, you cannot set this field
|
504
|
-
# to true.
|
459
|
+
# these resources. This field is set to false by default, but you must set it
|
460
|
+
# to true. Note that data transfer is available only in supported locations.
|
505
461
|
class LinkedRouterApplianceInstances
|
506
462
|
include ::Google::Protobuf::MessageExts
|
507
463
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-network_connectivity-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
213
|
- !ruby/object:Gem::Version
|
214
214
|
version: '0'
|
215
215
|
requirements: []
|
216
|
-
rubygems_version: 3.
|
216
|
+
rubygems_version: 3.3.4
|
217
217
|
signing_key:
|
218
218
|
specification_version: 4
|
219
219
|
summary: API Client library for the Network Connectivity V1 API
|