google-cloud-network_connectivity-v1 0.1.1 → 0.2.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: 31c5d8c3f32081a84a1788be4f7718af9c302b3376eb81ef64c0f305aeace8d8
4
- data.tar.gz: 200f1b7d55ca447a1f6349e0f7a0c757054da0660e6716968079e4d3e8b1257d
3
+ metadata.gz: 1e36ba6fa4ca0d179fd8ea83a7efdc1ab0ac13f8108450baa6c776e06bb1dfd8
4
+ data.tar.gz: f0bb6a5b699ed084ed312c7a27dca0caee43e0768122a9ee67c373bf4b7f632d
5
5
  SHA512:
6
- metadata.gz: e3c215ac655ec07b3dee9e9a017b4fdf362eb154784966bb6ab80a22dfdea1771119f23dcc8377ca3cad93b0f2688ca5d6cceec7f08a0759b9b0327903a9434f
7
- data.tar.gz: b797a1a022a2abfb48472ee174515c8d1ecad07ce6e64cf8cd6d7712540089bea7963a8c1f8a8b5f8f7b8c357595890bb18fd377a418d1fde8c6c8302b71b235
6
+ metadata.gz: 371c878493e56df8167f8e27d6218be4f889e744131456f181f1e5386a1f31e0505359b158ac650451803a1ce80e37b50a3bbdbe7d100d3c3d433314424cc9a2
7
+ data.tar.gz: 7de5e072aaa356a6481c522914debc9fc7ac2f7806dd58b78adf2a5f68728d5ac068a0b861f90f529c1895d8e47e7fe9d0384b3f31f96a3ac9a64a752fb9cf1a
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Network Connectivity V1 API
2
+ --title="Network Connectivity V1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
121
  *should* only be used during development.
122
122
 
123
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
124
- [dev-console]: https://console.cloud.google.com/project
125
-
126
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
127
-
128
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
129
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
130
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
131
-
132
123
  ## Creating a Service Account
133
124
 
134
125
  Google Cloud requires **Service Account Credentials** to
@@ -139,31 +130,22 @@ If you are not running this client within
139
130
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
140
131
  need a Google Developers service account.
141
132
 
142
- 1. Visit the [Google Developers Console][dev-console].
133
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
143
134
  2. Create a new project or click on an existing project.
144
- 3. Activate the slide-out navigation tray and select **API Manager**. From
135
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
145
136
  here, you will enable the APIs that your application requires.
146
137
 
147
- ![Enable the APIs that your application requires][enable-apis]
148
-
149
138
  *Note: You may need to enable billing in order to use these services.*
150
139
 
151
140
  4. Select **Credentials** from the side navigation.
152
141
 
153
- You should see a screen like one of the following.
154
-
155
- ![Create a new service account][create-new-service-account]
156
-
157
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
158
-
159
- Find the "Add credentials" drop down and select "Service account" to be
160
- guided through downloading a new JSON key file.
142
+ Find the "Create credentials" drop down near the top of the page, and select
143
+ "Service account" to be guided through downloading a new JSON key file.
161
144
 
162
145
  If you want to re-use an existing service account, you can easily generate a
163
- new key file. Just select the account you wish to re-use, and click "Generate
164
- new JSON key":
165
-
166
- ![Re-use an existing service account][reuse-service-account]
146
+ new key file. Just select the account you wish to re-use, click the pencil
147
+ tool on the right side to edit the service account, select the **Keys** tab,
148
+ and then select **Add Key**.
167
149
 
168
150
  The key file you download will be used by this library to authenticate API
169
151
  requests and should be stored in a secure location.
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::NetworkConnectivity::V1::ListHubsRequest.new # (reque
37
37
  response = client.list_hubs request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-network_connectivity-v1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/network-connectivity/docs)
@@ -154,6 +154,7 @@ module Google
154
154
 
155
155
  @operations_client = Operations.new do |config|
156
156
  config.credentials = credentials
157
+ config.quota_project = @quota_project_id
157
158
  config.endpoint = @config.endpoint
158
159
  end
159
160
 
@@ -212,6 +213,27 @@ module Google
212
213
  #
213
214
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
214
215
  #
216
+ # @example Basic example
217
+ # require "google/cloud/network_connectivity/v1"
218
+ #
219
+ # # Create a client object. The client can be reused for multiple calls.
220
+ # client = Google::Cloud::NetworkConnectivity::V1::HubService::Client.new
221
+ #
222
+ # # Create a request. To set request fields, pass in keyword arguments.
223
+ # request = Google::Cloud::NetworkConnectivity::V1::ListHubsRequest.new
224
+ #
225
+ # # Call the list_hubs method.
226
+ # result = client.list_hubs request
227
+ #
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|
233
+ # # Each element is of type ::Google::Cloud::NetworkConnectivity::V1::Hub.
234
+ # p response
235
+ # end
236
+ #
215
237
  def list_hubs request, options = nil
216
238
  raise ::ArgumentError, "request must be provided" if request.nil?
217
239
 
@@ -229,9 +251,11 @@ module Google
229
251
  gapic_version: ::Google::Cloud::NetworkConnectivity::V1::VERSION
230
252
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
231
253
 
232
- header_params = {
233
- "parent" => request.parent
234
- }
254
+ header_params = {}
255
+ if request.parent
256
+ header_params["parent"] = request.parent
257
+ end
258
+
235
259
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
236
260
  metadata[:"x-goog-request-params"] ||= request_params_header
237
261
 
@@ -281,6 +305,21 @@ module Google
281
305
  #
282
306
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
283
307
  #
308
+ # @example Basic example
309
+ # require "google/cloud/network_connectivity/v1"
310
+ #
311
+ # # Create a client object. The client can be reused for multiple calls.
312
+ # client = Google::Cloud::NetworkConnectivity::V1::HubService::Client.new
313
+ #
314
+ # # Create a request. To set request fields, pass in keyword arguments.
315
+ # request = Google::Cloud::NetworkConnectivity::V1::GetHubRequest.new
316
+ #
317
+ # # Call the get_hub method.
318
+ # result = client.get_hub request
319
+ #
320
+ # # The returned object is of type Google::Cloud::NetworkConnectivity::V1::Hub.
321
+ # p result
322
+ #
284
323
  def get_hub request, options = nil
285
324
  raise ::ArgumentError, "request must be provided" if request.nil?
286
325
 
@@ -298,9 +337,11 @@ module Google
298
337
  gapic_version: ::Google::Cloud::NetworkConnectivity::V1::VERSION
299
338
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
300
339
 
301
- header_params = {
302
- "name" => request.name
303
- }
340
+ header_params = {}
341
+ if request.name
342
+ header_params["name"] = request.name
343
+ end
344
+
304
345
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
305
346
  metadata[:"x-goog-request-params"] ||= request_params_header
306
347
 
@@ -341,7 +382,7 @@ module Google
341
382
  # @param parent [::String]
342
383
  # Required. The parent resource.
343
384
  # @param hub_id [::String]
344
- # Optional. A unique identifier for the hub.
385
+ # Required. A unique identifier for the hub.
345
386
  # @param hub [::Google::Cloud::NetworkConnectivity::V1::Hub, ::Hash]
346
387
  # Required. The initial values for a new hub.
347
388
  # @param request_id [::String]
@@ -368,6 +409,28 @@ module Google
368
409
  #
369
410
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
370
411
  #
412
+ # @example Basic example
413
+ # require "google/cloud/network_connectivity/v1"
414
+ #
415
+ # # Create a client object. The client can be reused for multiple calls.
416
+ # client = Google::Cloud::NetworkConnectivity::V1::HubService::Client.new
417
+ #
418
+ # # Create a request. To set request fields, pass in keyword arguments.
419
+ # request = Google::Cloud::NetworkConnectivity::V1::CreateHubRequest.new
420
+ #
421
+ # # Call the create_hub method.
422
+ # result = client.create_hub request
423
+ #
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:
427
+ # result.wait_until_done! timeout: 60
428
+ # if result.response?
429
+ # p result.response
430
+ # else
431
+ # puts "Error!"
432
+ # end
433
+ #
371
434
  def create_hub request, options = nil
372
435
  raise ::ArgumentError, "request must be provided" if request.nil?
373
436
 
@@ -385,9 +448,11 @@ module Google
385
448
  gapic_version: ::Google::Cloud::NetworkConnectivity::V1::VERSION
386
449
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
387
450
 
388
- header_params = {
389
- "parent" => request.parent
390
- }
451
+ header_params = {}
452
+ if request.parent
453
+ header_params["parent"] = request.parent
454
+ end
455
+
391
456
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
392
457
  metadata[:"x-goog-request-params"] ||= request_params_header
393
458
 
@@ -458,6 +523,28 @@ module Google
458
523
  #
459
524
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
460
525
  #
526
+ # @example Basic example
527
+ # require "google/cloud/network_connectivity/v1"
528
+ #
529
+ # # Create a client object. The client can be reused for multiple calls.
530
+ # client = Google::Cloud::NetworkConnectivity::V1::HubService::Client.new
531
+ #
532
+ # # Create a request. To set request fields, pass in keyword arguments.
533
+ # request = Google::Cloud::NetworkConnectivity::V1::UpdateHubRequest.new
534
+ #
535
+ # # Call the update_hub method.
536
+ # result = client.update_hub request
537
+ #
538
+ # # The returned object is of type Gapic::Operation. You can use this
539
+ # # object to check the status of an operation, cancel it, or wait
540
+ # # for results. Here is how to block until completion:
541
+ # result.wait_until_done! timeout: 60
542
+ # if result.response?
543
+ # p result.response
544
+ # else
545
+ # puts "Error!"
546
+ # end
547
+ #
461
548
  def update_hub request, options = nil
462
549
  raise ::ArgumentError, "request must be provided" if request.nil?
463
550
 
@@ -475,9 +562,11 @@ module Google
475
562
  gapic_version: ::Google::Cloud::NetworkConnectivity::V1::VERSION
476
563
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
477
564
 
478
- header_params = {
479
- "hub.name" => request.hub.name
480
- }
565
+ header_params = {}
566
+ if request.hub&.name
567
+ header_params["hub.name"] = request.hub.name
568
+ end
569
+
481
570
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
482
571
  metadata[:"x-goog-request-params"] ||= request_params_header
483
572
 
@@ -542,6 +631,28 @@ module Google
542
631
  #
543
632
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
544
633
  #
634
+ # @example Basic example
635
+ # require "google/cloud/network_connectivity/v1"
636
+ #
637
+ # # Create a client object. The client can be reused for multiple calls.
638
+ # client = Google::Cloud::NetworkConnectivity::V1::HubService::Client.new
639
+ #
640
+ # # Create a request. To set request fields, pass in keyword arguments.
641
+ # request = Google::Cloud::NetworkConnectivity::V1::DeleteHubRequest.new
642
+ #
643
+ # # Call the delete_hub method.
644
+ # result = client.delete_hub request
645
+ #
646
+ # # The returned object is of type Gapic::Operation. You can use this
647
+ # # object to check the status of an operation, cancel it, or wait
648
+ # # for results. Here is how to block until completion:
649
+ # result.wait_until_done! timeout: 60
650
+ # if result.response?
651
+ # p result.response
652
+ # else
653
+ # puts "Error!"
654
+ # end
655
+ #
545
656
  def delete_hub request, options = nil
546
657
  raise ::ArgumentError, "request must be provided" if request.nil?
547
658
 
@@ -559,9 +670,11 @@ module Google
559
670
  gapic_version: ::Google::Cloud::NetworkConnectivity::V1::VERSION
560
671
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
561
672
 
562
- header_params = {
563
- "name" => request.name
564
- }
673
+ header_params = {}
674
+ if request.name
675
+ header_params["name"] = request.name
676
+ end
677
+
565
678
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
566
679
  metadata[:"x-goog-request-params"] ||= request_params_header
567
680
 
@@ -619,6 +732,27 @@ module Google
619
732
  #
620
733
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
621
734
  #
735
+ # @example Basic example
736
+ # require "google/cloud/network_connectivity/v1"
737
+ #
738
+ # # Create a client object. The client can be reused for multiple calls.
739
+ # client = Google::Cloud::NetworkConnectivity::V1::HubService::Client.new
740
+ #
741
+ # # Create a request. To set request fields, pass in keyword arguments.
742
+ # request = Google::Cloud::NetworkConnectivity::V1::ListSpokesRequest.new
743
+ #
744
+ # # Call the list_spokes method.
745
+ # result = client.list_spokes request
746
+ #
747
+ # # The returned object is of type Gapic::PagedEnumerable. You can
748
+ # # iterate over all elements by calling #each, and the enumerable
749
+ # # will lazily make API calls to fetch subsequent pages. Other
750
+ # # methods are also available for managing paging directly.
751
+ # result.each do |response|
752
+ # # Each element is of type ::Google::Cloud::NetworkConnectivity::V1::Spoke.
753
+ # p response
754
+ # end
755
+ #
622
756
  def list_spokes request, options = nil
623
757
  raise ::ArgumentError, "request must be provided" if request.nil?
624
758
 
@@ -636,9 +770,11 @@ module Google
636
770
  gapic_version: ::Google::Cloud::NetworkConnectivity::V1::VERSION
637
771
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
638
772
 
639
- header_params = {
640
- "parent" => request.parent
641
- }
773
+ header_params = {}
774
+ if request.parent
775
+ header_params["parent"] = request.parent
776
+ end
777
+
642
778
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
643
779
  metadata[:"x-goog-request-params"] ||= request_params_header
644
780
 
@@ -688,6 +824,21 @@ module Google
688
824
  #
689
825
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
690
826
  #
827
+ # @example Basic example
828
+ # require "google/cloud/network_connectivity/v1"
829
+ #
830
+ # # Create a client object. The client can be reused for multiple calls.
831
+ # client = Google::Cloud::NetworkConnectivity::V1::HubService::Client.new
832
+ #
833
+ # # Create a request. To set request fields, pass in keyword arguments.
834
+ # request = Google::Cloud::NetworkConnectivity::V1::GetSpokeRequest.new
835
+ #
836
+ # # Call the get_spoke method.
837
+ # result = client.get_spoke request
838
+ #
839
+ # # The returned object is of type Google::Cloud::NetworkConnectivity::V1::Spoke.
840
+ # p result
841
+ #
691
842
  def get_spoke request, options = nil
692
843
  raise ::ArgumentError, "request must be provided" if request.nil?
693
844
 
@@ -705,9 +856,11 @@ module Google
705
856
  gapic_version: ::Google::Cloud::NetworkConnectivity::V1::VERSION
706
857
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
707
858
 
708
- header_params = {
709
- "name" => request.name
710
- }
859
+ header_params = {}
860
+ if request.name
861
+ header_params["name"] = request.name
862
+ end
863
+
711
864
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
712
865
  metadata[:"x-goog-request-params"] ||= request_params_header
713
866
 
@@ -748,7 +901,7 @@ module Google
748
901
  # @param parent [::String]
749
902
  # Required. The parent resource.
750
903
  # @param spoke_id [::String]
751
- # Optional. Unique id for the spoke to create.
904
+ # Required. Unique id for the spoke to create.
752
905
  # @param spoke [::Google::Cloud::NetworkConnectivity::V1::Spoke, ::Hash]
753
906
  # Required. The initial values for a new spoke.
754
907
  # @param request_id [::String]
@@ -775,6 +928,28 @@ module Google
775
928
  #
776
929
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
777
930
  #
931
+ # @example Basic example
932
+ # require "google/cloud/network_connectivity/v1"
933
+ #
934
+ # # Create a client object. The client can be reused for multiple calls.
935
+ # client = Google::Cloud::NetworkConnectivity::V1::HubService::Client.new
936
+ #
937
+ # # Create a request. To set request fields, pass in keyword arguments.
938
+ # request = Google::Cloud::NetworkConnectivity::V1::CreateSpokeRequest.new
939
+ #
940
+ # # Call the create_spoke method.
941
+ # result = client.create_spoke request
942
+ #
943
+ # # The returned object is of type Gapic::Operation. You can use this
944
+ # # object to check the status of an operation, cancel it, or wait
945
+ # # for results. Here is how to block until completion:
946
+ # result.wait_until_done! timeout: 60
947
+ # if result.response?
948
+ # p result.response
949
+ # else
950
+ # puts "Error!"
951
+ # end
952
+ #
778
953
  def create_spoke request, options = nil
779
954
  raise ::ArgumentError, "request must be provided" if request.nil?
780
955
 
@@ -792,9 +967,11 @@ module Google
792
967
  gapic_version: ::Google::Cloud::NetworkConnectivity::V1::VERSION
793
968
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
794
969
 
795
- header_params = {
796
- "parent" => request.parent
797
- }
970
+ header_params = {}
971
+ if request.parent
972
+ header_params["parent"] = request.parent
973
+ end
974
+
798
975
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
799
976
  metadata[:"x-goog-request-params"] ||= request_params_header
800
977
 
@@ -865,6 +1042,28 @@ module Google
865
1042
  #
866
1043
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
867
1044
  #
1045
+ # @example Basic example
1046
+ # require "google/cloud/network_connectivity/v1"
1047
+ #
1048
+ # # Create a client object. The client can be reused for multiple calls.
1049
+ # client = Google::Cloud::NetworkConnectivity::V1::HubService::Client.new
1050
+ #
1051
+ # # Create a request. To set request fields, pass in keyword arguments.
1052
+ # request = Google::Cloud::NetworkConnectivity::V1::UpdateSpokeRequest.new
1053
+ #
1054
+ # # Call the update_spoke method.
1055
+ # result = client.update_spoke request
1056
+ #
1057
+ # # The returned object is of type Gapic::Operation. You can use this
1058
+ # # object to check the status of an operation, cancel it, or wait
1059
+ # # for results. Here is how to block until completion:
1060
+ # result.wait_until_done! timeout: 60
1061
+ # if result.response?
1062
+ # p result.response
1063
+ # else
1064
+ # puts "Error!"
1065
+ # end
1066
+ #
868
1067
  def update_spoke request, options = nil
869
1068
  raise ::ArgumentError, "request must be provided" if request.nil?
870
1069
 
@@ -882,9 +1081,11 @@ module Google
882
1081
  gapic_version: ::Google::Cloud::NetworkConnectivity::V1::VERSION
883
1082
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
884
1083
 
885
- header_params = {
886
- "spoke.name" => request.spoke.name
887
- }
1084
+ header_params = {}
1085
+ if request.spoke&.name
1086
+ header_params["spoke.name"] = request.spoke.name
1087
+ end
1088
+
888
1089
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
889
1090
  metadata[:"x-goog-request-params"] ||= request_params_header
890
1091
 
@@ -949,6 +1150,28 @@ module Google
949
1150
  #
950
1151
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
951
1152
  #
1153
+ # @example Basic example
1154
+ # require "google/cloud/network_connectivity/v1"
1155
+ #
1156
+ # # Create a client object. The client can be reused for multiple calls.
1157
+ # client = Google::Cloud::NetworkConnectivity::V1::HubService::Client.new
1158
+ #
1159
+ # # Create a request. To set request fields, pass in keyword arguments.
1160
+ # request = Google::Cloud::NetworkConnectivity::V1::DeleteSpokeRequest.new
1161
+ #
1162
+ # # Call the delete_spoke method.
1163
+ # result = client.delete_spoke request
1164
+ #
1165
+ # # The returned object is of type Gapic::Operation. You can use this
1166
+ # # object to check the status of an operation, cancel it, or wait
1167
+ # # for results. Here is how to block until completion:
1168
+ # result.wait_until_done! timeout: 60
1169
+ # if result.response?
1170
+ # p result.response
1171
+ # else
1172
+ # puts "Error!"
1173
+ # end
1174
+ #
952
1175
  def delete_spoke request, options = nil
953
1176
  raise ::ArgumentError, "request must be provided" if request.nil?
954
1177
 
@@ -966,9 +1189,11 @@ module Google
966
1189
  gapic_version: ::Google::Cloud::NetworkConnectivity::V1::VERSION
967
1190
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
968
1191
 
969
- header_params = {
970
- "name" => request.name
971
- }
1192
+ header_params = {}
1193
+ if request.name
1194
+ header_params["name"] = request.name
1195
+ end
1196
+
972
1197
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
973
1198
  metadata[:"x-goog-request-params"] ||= request_params_header
974
1199
 
@@ -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
- "name" => request.name
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
- "name" => request.name
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
- "name" => request.name
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
- "name" => request.name
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
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module NetworkConnectivity
23
23
  module V1
24
- VERSION = "0.1.1"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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
-
4
+ require 'google/api/annotations_pb'
6
5
  require 'google/api/field_behavior_pb'
7
6
  require 'google/protobuf/timestamp_pb'
8
- 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
@@ -24,6 +24,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
24
24
  end
25
25
  add_message "google.cloud.networkconnectivity.v1.RoutingVPC" do
26
26
  optional :uri, :string, 1
27
+ optional :required_for_new_site_to_site_data_transfer_spokes, :bool, 2
27
28
  end
28
29
  add_message "google.cloud.networkconnectivity.v1.Spoke" do
29
30
  optional :name, :string, 1
@@ -114,12 +115,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
114
115
  optional :virtual_machine, :string, 1
115
116
  optional :ip_address, :string, 3
116
117
  end
118
+ add_message "google.cloud.networkconnectivity.v1.LocationMetadata" do
119
+ repeated :location_features, :enum, 1, "google.cloud.networkconnectivity.v1.LocationFeature"
120
+ end
117
121
  add_enum "google.cloud.networkconnectivity.v1.State" do
118
122
  value :STATE_UNSPECIFIED, 0
119
123
  value :CREATING, 1
120
124
  value :ACTIVE, 2
121
125
  value :DELETING, 3
122
126
  end
127
+ add_enum "google.cloud.networkconnectivity.v1.LocationFeature" do
128
+ value :LOCATION_FEATURE_UNSPECIFIED, 0
129
+ value :SITE_TO_CLOUD_SPOKES, 1
130
+ value :SITE_TO_SITE_SPOKES, 2
131
+ end
123
132
  end
124
133
  end
125
134
 
@@ -146,7 +155,9 @@ module Google
146
155
  LinkedInterconnectAttachments = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments").msgclass
147
156
  LinkedRouterApplianceInstances = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances").msgclass
148
157
  RouterApplianceInstance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.RouterApplianceInstance").msgclass
158
+ LocationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.LocationMetadata").msgclass
149
159
  State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.State").enummodule
160
+ LocationFeature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.LocationFeature").enummodule
150
161
  end
151
162
  end
152
163
  end
@@ -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
@@ -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
- # name_descriptor: {
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
- # name_descriptor:
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
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
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
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
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
@@ -21,9 +21,11 @@ module Google
21
21
  module Cloud
22
22
  module NetworkConnectivity
23
23
  module V1
24
- # A hub is essentially a collection of spokes. A single hub can contain spokes
25
- # from multiple regions. However, all of a hub's spokes must be associated with
26
- # resources that reside in the same VPC network.
24
+ # A hub is a collection of spokes. A single hub can contain spokes from
25
+ # multiple regions. However, if any of a hub's spokes use the data transfer
26
+ # feature, the resources associated with those spokes must all reside in the
27
+ # same VPC network. Spokes that do not use data transfer can be associated
28
+ # with any VPC network in your project.
27
29
  # @!attribute [rw] name
28
30
  # @return [::String]
29
31
  # Immutable. The name of the hub. Hub names must be unique. They use the
@@ -53,9 +55,7 @@ module Google
53
55
  # Output only. The current lifecycle state of this hub.
54
56
  # @!attribute [rw] routing_vpcs
55
57
  # @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.
58
+ # The VPC networks associated with this hub's spokes.
59
59
  #
60
60
  # This field is read-only. Network Connectivity Center automatically
61
61
  # populates it based on the set of spokes attached to the hub.
@@ -73,11 +73,18 @@ module Google
73
73
  end
74
74
  end
75
75
 
76
- # RoutingsVPC contains information about a VPC network that is associated with
77
- # a hub's spokes.
76
+ # RoutingVPC contains information about the VPC networks that are associated
77
+ # with a hub's spokes.
78
78
  # @!attribute [rw] uri
79
79
  # @return [::String]
80
- # The URI of a VPC network.
80
+ # The URI of the VPC network.
81
+ # @!attribute [r] required_for_new_site_to_site_data_transfer_spokes
82
+ # @return [::Boolean]
83
+ # Output only. If true, indicates that this VPC network is currently associated with
84
+ # spokes that use the data transfer feature (spokes where the
85
+ # site_to_site_data_transfer field is set to true). If you create new spokes
86
+ # that use data transfer, they must be associated with this VPC network. At
87
+ # most, one VPC network will have this field set to true.
81
88
  class RoutingVPC
82
89
  include ::Google::Protobuf::MessageExts
83
90
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -113,7 +120,7 @@ module Google
113
120
  # An optional description of the spoke.
114
121
  # @!attribute [rw] hub
115
122
  # @return [::String]
116
- # Immutable. The URI of the hub that this spoke is attached to.
123
+ # Immutable. The name of the hub that this spoke is attached to.
117
124
  # @!attribute [rw] linked_vpn_tunnels
118
125
  # @return [::Google::Cloud::NetworkConnectivity::V1::LinkedVpnTunnels]
119
126
  # VPN tunnels that are associated with the spoke.
@@ -197,7 +204,7 @@ module Google
197
204
  # Required. The parent resource.
198
205
  # @!attribute [rw] hub_id
199
206
  # @return [::String]
200
- # Optional. A unique identifier for the hub.
207
+ # Required. A unique identifier for the hub.
201
208
  # @!attribute [rw] hub
202
209
  # @return [::Google::Cloud::NetworkConnectivity::V1::Hub]
203
210
  # Required. The initial values for a new hub.
@@ -331,7 +338,7 @@ module Google
331
338
  # Required. The parent resource.
332
339
  # @!attribute [rw] spoke_id
333
340
  # @return [::String]
334
- # Optional. Unique id for the spoke to create.
341
+ # Required. Unique id for the spoke to create.
335
342
  # @!attribute [rw] spoke
336
343
  # @return [::Google::Cloud::NetworkConnectivity::V1::Spoke]
337
344
  # Required. The initial values for a new spoke.
@@ -423,8 +430,8 @@ module Google
423
430
  # @!attribute [rw] site_to_site_data_transfer
424
431
  # @return [::Boolean]
425
432
  # A value that controls whether site-to-site data transfer is enabled for
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.
433
+ # these resources. Data transfer is available only in [supported
434
+ # locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
428
435
  class LinkedVpnTunnels
429
436
  include ::Google::Protobuf::MessageExts
430
437
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -440,24 +447,25 @@ module Google
440
447
  # @!attribute [rw] site_to_site_data_transfer
441
448
  # @return [::Boolean]
442
449
  # A value that controls whether site-to-site data transfer is enabled for
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.
450
+ # these resources. Data transfer is available only in [supported
451
+ # locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
445
452
  class LinkedInterconnectAttachments
446
453
  include ::Google::Protobuf::MessageExts
447
454
  extend ::Google::Protobuf::MessageExts::ClassMethods
448
455
  end
449
456
 
450
- # A collection of router appliance instances. If you have multiple router
451
- # appliance instances connected to the same site, they should all be attached
452
- # to the same spoke.
457
+ # A collection of router appliance instances. If you configure multiple router
458
+ # appliance instances to receive data from the same set of sites outside of
459
+ # Google Cloud, we recommend that you associate those instances with the same
460
+ # spoke.
453
461
  # @!attribute [rw] instances
454
462
  # @return [::Array<::Google::Cloud::NetworkConnectivity::V1::RouterApplianceInstance>]
455
463
  # The list of router appliance instances.
456
464
  # @!attribute [rw] site_to_site_data_transfer
457
465
  # @return [::Boolean]
458
466
  # A value that controls whether site-to-site data transfer is enabled for
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.
467
+ # these resources. Data transfer is available only in [supported
468
+ # locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
461
469
  class LinkedRouterApplianceInstances
462
470
  include ::Google::Protobuf::MessageExts
463
471
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -478,6 +486,15 @@ module Google
478
486
  extend ::Google::Protobuf::MessageExts::ClassMethods
479
487
  end
480
488
 
489
+ # Metadata about locations
490
+ # @!attribute [rw] location_features
491
+ # @return [::Array<::Google::Cloud::NetworkConnectivity::V1::LocationFeature>]
492
+ # List of supported features
493
+ class LocationMetadata
494
+ include ::Google::Protobuf::MessageExts
495
+ extend ::Google::Protobuf::MessageExts::ClassMethods
496
+ end
497
+
481
498
  # The State enum represents the lifecycle stage of a Network Connectivity
482
499
  # Center resource.
483
500
  module State
@@ -493,6 +510,18 @@ module Google
493
510
  # The resource's Delete operation is in progress
494
511
  DELETING = 3
495
512
  end
513
+
514
+ # Supported features for a location
515
+ module LocationFeature
516
+ # No publicly supported feature in this location
517
+ LOCATION_FEATURE_UNSPECIFIED = 0
518
+
519
+ # Site-to-cloud spokes are supported in this location
520
+ SITE_TO_CLOUD_SPOKES = 1
521
+
522
+ # Site-to-site spokes are supported in this location
523
+ SITE_TO_SITE_SPOKES = 2
524
+ end
496
525
  end
497
526
  end
498
527
  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.1.1
4
+ version: 0.2.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: 2021-08-25 00:00:00.000000000 Z
11
+ date: 2022-02-16 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.2.17
216
+ rubygems_version: 3.3.5
217
217
  signing_key:
218
218
  specification_version: 4
219
219
  summary: API Client library for the Network Connectivity V1 API