google-cloud-network_connectivity-v1 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58e9647e2b82289d784e55c215eb22f6ef921339489b379934caaf03fce28118
|
4
|
+
data.tar.gz: 4014024a26cb2bfcc01f40ee1d35d1dc386bae0472f87586607af09318cba613
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 771781aa565fb95bf6b7b6049c48e118d01134a4546648650e0c48b708eaba95d2f7f98a7b4866928452874c25c4a5ef2c31b0e810010518682b2c16c532e611
|
7
|
+
data.tar.gz: 6be6b8df7ed480a22f1fe37ccbec6e020edad863a93cc978efa39fb40180fe85ae1325b99a70d25e4565e376759182aa1bae746ea8dbfdddaa08118f0c9903dd
|
@@ -18,6 +18,8 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/networkconnectivity/v1/hub_pb"
|
21
|
+
require "google/cloud/location"
|
22
|
+
require "google/iam/v1"
|
21
23
|
|
22
24
|
module Google
|
23
25
|
module Cloud
|
@@ -158,6 +160,18 @@ module Google
|
|
158
160
|
config.endpoint = @config.endpoint
|
159
161
|
end
|
160
162
|
|
163
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
164
|
+
config.credentials = credentials
|
165
|
+
config.quota_project = @quota_project_id
|
166
|
+
config.endpoint = @config.endpoint
|
167
|
+
end
|
168
|
+
|
169
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
170
|
+
config.credentials = credentials
|
171
|
+
config.quota_project = @quota_project_id
|
172
|
+
config.endpoint = @config.endpoint
|
173
|
+
end
|
174
|
+
|
161
175
|
@hub_service_stub = ::Gapic::ServiceStub.new(
|
162
176
|
::Google::Cloud::NetworkConnectivity::V1::HubService::Stub,
|
163
177
|
credentials: credentials,
|
@@ -174,6 +188,20 @@ module Google
|
|
174
188
|
#
|
175
189
|
attr_reader :operations_client
|
176
190
|
|
191
|
+
##
|
192
|
+
# Get the associated client for mix-in of the Locations.
|
193
|
+
#
|
194
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
195
|
+
#
|
196
|
+
attr_reader :location_client
|
197
|
+
|
198
|
+
##
|
199
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
200
|
+
#
|
201
|
+
# @return [Google::Iam::V1::IAMPolicy::Client]
|
202
|
+
#
|
203
|
+
attr_reader :iam_policy_client
|
204
|
+
|
177
205
|
# Service calls
|
178
206
|
|
179
207
|
##
|
@@ -225,13 +253,11 @@ module Google
|
|
225
253
|
# # Call the list_hubs method.
|
226
254
|
# result = client.list_hubs request
|
227
255
|
#
|
228
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
229
|
-
# #
|
230
|
-
#
|
231
|
-
# # methods are also available for managing paging directly.
|
232
|
-
# result.each do |response|
|
256
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
257
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
258
|
+
# result.each do |item|
|
233
259
|
# # Each element is of type ::Google::Cloud::NetworkConnectivity::V1::Hub.
|
234
|
-
# p
|
260
|
+
# p item
|
235
261
|
# end
|
236
262
|
#
|
237
263
|
def list_hubs request, options = nil
|
@@ -421,14 +447,14 @@ module Google
|
|
421
447
|
# # Call the create_hub method.
|
422
448
|
# result = client.create_hub request
|
423
449
|
#
|
424
|
-
# # The returned object is of type Gapic::Operation. You can use
|
425
|
-
# #
|
426
|
-
# #
|
450
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
451
|
+
# # check the status of an operation, cancel it, or wait for results.
|
452
|
+
# # Here is how to wait for a response.
|
427
453
|
# result.wait_until_done! timeout: 60
|
428
454
|
# if result.response?
|
429
455
|
# p result.response
|
430
456
|
# else
|
431
|
-
# puts "
|
457
|
+
# puts "No response received."
|
432
458
|
# end
|
433
459
|
#
|
434
460
|
def create_hub request, options = nil
|
@@ -536,14 +562,14 @@ module Google
|
|
536
562
|
# # Call the update_hub method.
|
537
563
|
# result = client.update_hub request
|
538
564
|
#
|
539
|
-
# # The returned object is of type Gapic::Operation. You can use
|
540
|
-
# #
|
541
|
-
# #
|
565
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
566
|
+
# # check the status of an operation, cancel it, or wait for results.
|
567
|
+
# # Here is how to wait for a response.
|
542
568
|
# result.wait_until_done! timeout: 60
|
543
569
|
# if result.response?
|
544
570
|
# p result.response
|
545
571
|
# else
|
546
|
-
# puts "
|
572
|
+
# puts "No response received."
|
547
573
|
# end
|
548
574
|
#
|
549
575
|
def update_hub request, options = nil
|
@@ -644,14 +670,14 @@ module Google
|
|
644
670
|
# # Call the delete_hub method.
|
645
671
|
# result = client.delete_hub request
|
646
672
|
#
|
647
|
-
# # The returned object is of type Gapic::Operation. You can use
|
648
|
-
# #
|
649
|
-
# #
|
673
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
674
|
+
# # check the status of an operation, cancel it, or wait for results.
|
675
|
+
# # Here is how to wait for a response.
|
650
676
|
# result.wait_until_done! timeout: 60
|
651
677
|
# if result.response?
|
652
678
|
# p result.response
|
653
679
|
# else
|
654
|
-
# puts "
|
680
|
+
# puts "No response received."
|
655
681
|
# end
|
656
682
|
#
|
657
683
|
def delete_hub request, options = nil
|
@@ -746,13 +772,11 @@ module Google
|
|
746
772
|
# # Call the list_spokes method.
|
747
773
|
# result = client.list_spokes request
|
748
774
|
#
|
749
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
750
|
-
# #
|
751
|
-
#
|
752
|
-
# # methods are also available for managing paging directly.
|
753
|
-
# result.each do |response|
|
775
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
776
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
777
|
+
# result.each do |item|
|
754
778
|
# # Each element is of type ::Google::Cloud::NetworkConnectivity::V1::Spoke.
|
755
|
-
# p
|
779
|
+
# p item
|
756
780
|
# end
|
757
781
|
#
|
758
782
|
def list_spokes request, options = nil
|
@@ -942,14 +966,14 @@ module Google
|
|
942
966
|
# # Call the create_spoke method.
|
943
967
|
# result = client.create_spoke request
|
944
968
|
#
|
945
|
-
# # The returned object is of type Gapic::Operation. You can use
|
946
|
-
# #
|
947
|
-
# #
|
969
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
970
|
+
# # check the status of an operation, cancel it, or wait for results.
|
971
|
+
# # Here is how to wait for a response.
|
948
972
|
# result.wait_until_done! timeout: 60
|
949
973
|
# if result.response?
|
950
974
|
# p result.response
|
951
975
|
# else
|
952
|
-
# puts "
|
976
|
+
# puts "No response received."
|
953
977
|
# end
|
954
978
|
#
|
955
979
|
def create_spoke request, options = nil
|
@@ -1056,14 +1080,14 @@ module Google
|
|
1056
1080
|
# # Call the update_spoke method.
|
1057
1081
|
# result = client.update_spoke request
|
1058
1082
|
#
|
1059
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1060
|
-
# #
|
1061
|
-
# #
|
1083
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1084
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1085
|
+
# # Here is how to wait for a response.
|
1062
1086
|
# result.wait_until_done! timeout: 60
|
1063
1087
|
# if result.response?
|
1064
1088
|
# p result.response
|
1065
1089
|
# else
|
1066
|
-
# puts "
|
1090
|
+
# puts "No response received."
|
1067
1091
|
# end
|
1068
1092
|
#
|
1069
1093
|
def update_spoke request, options = nil
|
@@ -1164,14 +1188,14 @@ module Google
|
|
1164
1188
|
# # Call the delete_spoke method.
|
1165
1189
|
# result = client.delete_spoke request
|
1166
1190
|
#
|
1167
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1168
|
-
# #
|
1169
|
-
# #
|
1191
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1192
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1193
|
+
# # Here is how to wait for a response.
|
1170
1194
|
# result.wait_until_done! timeout: 60
|
1171
1195
|
# if result.response?
|
1172
1196
|
# p result.response
|
1173
1197
|
# else
|
1174
|
-
# puts "
|
1198
|
+
# puts "No response received."
|
1175
1199
|
# end
|
1176
1200
|
#
|
1177
1201
|
def delete_spoke request, options = nil
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
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.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.17.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.17.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -44,20 +44,60 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: google-cloud-location
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.4'
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 2.a
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0.4'
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 2.a
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: google-iam-v1
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0.4'
|
74
|
+
- - "<"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 2.a
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0.4'
|
84
|
+
- - "<"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 2.a
|
47
87
|
- !ruby/object:Gem::Dependency
|
48
88
|
name: google-style
|
49
89
|
requirement: !ruby/object:Gem::Requirement
|
50
90
|
requirements:
|
51
91
|
- - "~>"
|
52
92
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.26.
|
93
|
+
version: 1.26.3
|
54
94
|
type: :development
|
55
95
|
prerelease: false
|
56
96
|
version_requirements: !ruby/object:Gem::Requirement
|
57
97
|
requirements:
|
58
98
|
- - "~>"
|
59
99
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.26.
|
100
|
+
version: 1.26.3
|
61
101
|
- !ruby/object:Gem::Dependency
|
62
102
|
name: minitest
|
63
103
|
requirement: !ruby/object:Gem::Requirement
|