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: e99cad720c3fac5f9ecad4240c25ebd6b851371f1b2e02a4ddedf27fabf4a652
4
- data.tar.gz: 8325495db8446004fe94b23d894101936b885dc35dbd9c8f5aff595a21c9f110
3
+ metadata.gz: 58e9647e2b82289d784e55c215eb22f6ef921339489b379934caaf03fce28118
4
+ data.tar.gz: 4014024a26cb2bfcc01f40ee1d35d1dc386bae0472f87586607af09318cba613
5
5
  SHA512:
6
- metadata.gz: e896513dac1b49670e6ca39f7f4a77f72e8549938bf1af51b809f7da990d0e4c4a4d293141ee72cf7c0dafbecf13307649ababdfb97e435b8d1bf6ad3e495453
7
- data.tar.gz: 206de23cd5e5e31f87b6d37e6875fa3eba204b3055ec8c4c9aa0990aaac472332233e58f46a10f8dfb91c1cddec13480b5be11684e7ddbac426eedc07e7b9bce
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
- # # iterate over all elements by calling #each, and the enumerable
230
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
425
- # # object to check the status of an operation, cancel it, or wait
426
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
540
- # # object to check the status of an operation, cancel it, or wait
541
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
648
- # # object to check the status of an operation, cancel it, or wait
649
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
751
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
946
- # # object to check the status of an operation, cancel it, or wait
947
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1060
- # # object to check the status of an operation, cancel it, or wait
1061
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1168
- # # object to check the status of an operation, cancel it, or wait
1169
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
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 "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module NetworkConnectivity
23
23
  module V1
24
- VERSION = "0.4.1"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end
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.1
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-01 00:00:00.000000000 Z
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.16.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.16.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.1
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.1
100
+ version: 1.26.3
61
101
  - !ruby/object:Gem::Dependency
62
102
  name: minitest
63
103
  requirement: !ruby/object:Gem::Requirement