google-cloud-vmware_engine-v1 0.1.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -351,13 +351,11 @@ module Google
351
351
  # # Call the list_private_clouds method.
352
352
  # result = client.list_private_clouds request
353
353
  #
354
- # # The returned object is of type Gapic::PagedEnumerable. You can
355
- # # iterate over all elements by calling #each, and the enumerable
356
- # # will lazily make API calls to fetch subsequent pages. Other
357
- # # methods are also available for managing paging directly.
358
- # result.each do |response|
354
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
355
+ # # over elements, and API calls will be issued to fetch pages as needed.
356
+ # result.each do |item|
359
357
  # # Each element is of type ::Google::Cloud::VmwareEngine::V1::PrivateCloud.
360
- # p response
358
+ # p item
361
359
  # end
362
360
  #
363
361
  def list_private_clouds request, options = nil
@@ -562,14 +560,14 @@ module Google
562
560
  # # Call the create_private_cloud method.
563
561
  # result = client.create_private_cloud request
564
562
  #
565
- # # The returned object is of type Gapic::Operation. You can use this
566
- # # object to check the status of an operation, cancel it, or wait
567
- # # for results. Here is how to block until completion:
563
+ # # The returned object is of type Gapic::Operation. You can use it to
564
+ # # check the status of an operation, cancel it, or wait for results.
565
+ # # Here is how to wait for a response.
568
566
  # result.wait_until_done! timeout: 60
569
567
  # if result.response?
570
568
  # p result.response
571
569
  # else
572
- # puts "Error!"
570
+ # puts "No response received."
573
571
  # end
574
572
  #
575
573
  def create_private_cloud request, options = nil
@@ -671,14 +669,14 @@ module Google
671
669
  # # Call the update_private_cloud method.
672
670
  # result = client.update_private_cloud request
673
671
  #
674
- # # The returned object is of type Gapic::Operation. You can use this
675
- # # object to check the status of an operation, cancel it, or wait
676
- # # for results. Here is how to block until completion:
672
+ # # The returned object is of type Gapic::Operation. You can use it to
673
+ # # check the status of an operation, cancel it, or wait for results.
674
+ # # Here is how to wait for a response.
677
675
  # result.wait_until_done! timeout: 60
678
676
  # if result.response?
679
677
  # p result.response
680
678
  # else
681
- # puts "Error!"
679
+ # puts "No response received."
682
680
  # end
683
681
  #
684
682
  def update_private_cloud request, options = nil
@@ -800,14 +798,14 @@ module Google
800
798
  # # Call the delete_private_cloud method.
801
799
  # result = client.delete_private_cloud request
802
800
  #
803
- # # The returned object is of type Gapic::Operation. You can use this
804
- # # object to check the status of an operation, cancel it, or wait
805
- # # for results. Here is how to block until completion:
801
+ # # The returned object is of type Gapic::Operation. You can use it to
802
+ # # check the status of an operation, cancel it, or wait for results.
803
+ # # Here is how to wait for a response.
806
804
  # result.wait_until_done! timeout: 60
807
805
  # if result.response?
808
806
  # p result.response
809
807
  # else
810
- # puts "Error!"
808
+ # puts "No response received."
811
809
  # end
812
810
  #
813
811
  def delete_private_cloud request, options = nil
@@ -903,14 +901,14 @@ module Google
903
901
  # # Call the undelete_private_cloud method.
904
902
  # result = client.undelete_private_cloud request
905
903
  #
906
- # # The returned object is of type Gapic::Operation. You can use this
907
- # # object to check the status of an operation, cancel it, or wait
908
- # # for results. Here is how to block until completion:
904
+ # # The returned object is of type Gapic::Operation. You can use it to
905
+ # # check the status of an operation, cancel it, or wait for results.
906
+ # # Here is how to wait for a response.
909
907
  # result.wait_until_done! timeout: 60
910
908
  # if result.response?
911
909
  # p result.response
912
910
  # else
913
- # puts "Error!"
911
+ # puts "No response received."
914
912
  # end
915
913
  #
916
914
  def undelete_private_cloud request, options = nil
@@ -1031,13 +1029,11 @@ module Google
1031
1029
  # # Call the list_clusters method.
1032
1030
  # result = client.list_clusters request
1033
1031
  #
1034
- # # The returned object is of type Gapic::PagedEnumerable. You can
1035
- # # iterate over all elements by calling #each, and the enumerable
1036
- # # will lazily make API calls to fetch subsequent pages. Other
1037
- # # methods are also available for managing paging directly.
1038
- # result.each do |response|
1032
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1033
+ # # over elements, and API calls will be issued to fetch pages as needed.
1034
+ # result.each do |item|
1039
1035
  # # Each element is of type ::Google::Cloud::VmwareEngine::V1::Cluster.
1040
- # p response
1036
+ # p item
1041
1037
  # end
1042
1038
  #
1043
1039
  def list_clusters request, options = nil
@@ -1239,14 +1235,14 @@ module Google
1239
1235
  # # Call the create_cluster method.
1240
1236
  # result = client.create_cluster request
1241
1237
  #
1242
- # # The returned object is of type Gapic::Operation. You can use this
1243
- # # object to check the status of an operation, cancel it, or wait
1244
- # # for results. Here is how to block until completion:
1238
+ # # The returned object is of type Gapic::Operation. You can use it to
1239
+ # # check the status of an operation, cancel it, or wait for results.
1240
+ # # Here is how to wait for a response.
1245
1241
  # result.wait_until_done! timeout: 60
1246
1242
  # if result.response?
1247
1243
  # p result.response
1248
1244
  # else
1249
- # puts "Error!"
1245
+ # puts "No response received."
1250
1246
  # end
1251
1247
  #
1252
1248
  def create_cluster request, options = nil
@@ -1351,14 +1347,14 @@ module Google
1351
1347
  # # Call the update_cluster method.
1352
1348
  # result = client.update_cluster request
1353
1349
  #
1354
- # # The returned object is of type Gapic::Operation. You can use this
1355
- # # object to check the status of an operation, cancel it, or wait
1356
- # # for results. Here is how to block until completion:
1350
+ # # The returned object is of type Gapic::Operation. You can use it to
1351
+ # # check the status of an operation, cancel it, or wait for results.
1352
+ # # Here is how to wait for a response.
1357
1353
  # result.wait_until_done! timeout: 60
1358
1354
  # if result.response?
1359
1355
  # p result.response
1360
1356
  # else
1361
- # puts "Error!"
1357
+ # puts "No response received."
1362
1358
  # end
1363
1359
  #
1364
1360
  def update_cluster request, options = nil
@@ -1454,14 +1450,14 @@ module Google
1454
1450
  # # Call the delete_cluster method.
1455
1451
  # result = client.delete_cluster request
1456
1452
  #
1457
- # # The returned object is of type Gapic::Operation. You can use this
1458
- # # object to check the status of an operation, cancel it, or wait
1459
- # # for results. Here is how to block until completion:
1453
+ # # The returned object is of type Gapic::Operation. You can use it to
1454
+ # # check the status of an operation, cancel it, or wait for results.
1455
+ # # Here is how to wait for a response.
1460
1456
  # result.wait_until_done! timeout: 60
1461
1457
  # if result.response?
1462
1458
  # p result.response
1463
1459
  # else
1464
- # puts "Error!"
1460
+ # puts "No response received."
1465
1461
  # end
1466
1462
  #
1467
1463
  def delete_cluster request, options = nil
@@ -1563,13 +1559,11 @@ module Google
1563
1559
  # # Call the list_subnets method.
1564
1560
  # result = client.list_subnets request
1565
1561
  #
1566
- # # The returned object is of type Gapic::PagedEnumerable. You can
1567
- # # iterate over all elements by calling #each, and the enumerable
1568
- # # will lazily make API calls to fetch subsequent pages. Other
1569
- # # methods are also available for managing paging directly.
1570
- # result.each do |response|
1562
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1563
+ # # over elements, and API calls will be issued to fetch pages as needed.
1564
+ # result.each do |item|
1571
1565
  # # Each element is of type ::Google::Cloud::VmwareEngine::V1::Subnet.
1572
- # p response
1566
+ # p item
1573
1567
  # end
1574
1568
  #
1575
1569
  def list_subnets request, options = nil
@@ -1696,13 +1690,11 @@ module Google
1696
1690
  # # Call the list_node_types method.
1697
1691
  # result = client.list_node_types request
1698
1692
  #
1699
- # # The returned object is of type Gapic::PagedEnumerable. You can
1700
- # # iterate over all elements by calling #each, and the enumerable
1701
- # # will lazily make API calls to fetch subsequent pages. Other
1702
- # # methods are also available for managing paging directly.
1703
- # result.each do |response|
1693
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1694
+ # # over elements, and API calls will be issued to fetch pages as needed.
1695
+ # result.each do |item|
1704
1696
  # # Each element is of type ::Google::Cloud::VmwareEngine::V1::NodeType.
1705
- # p response
1697
+ # p item
1706
1698
  # end
1707
1699
  #
1708
1700
  def list_node_types request, options = nil
@@ -2077,14 +2069,14 @@ module Google
2077
2069
  # # Call the reset_nsx_credentials method.
2078
2070
  # result = client.reset_nsx_credentials request
2079
2071
  #
2080
- # # The returned object is of type Gapic::Operation. You can use this
2081
- # # object to check the status of an operation, cancel it, or wait
2082
- # # for results. Here is how to block until completion:
2072
+ # # The returned object is of type Gapic::Operation. You can use it to
2073
+ # # check the status of an operation, cancel it, or wait for results.
2074
+ # # Here is how to wait for a response.
2083
2075
  # result.wait_until_done! timeout: 60
2084
2076
  # if result.response?
2085
2077
  # p result.response
2086
2078
  # else
2087
- # puts "Error!"
2079
+ # puts "No response received."
2088
2080
  # end
2089
2081
  #
2090
2082
  def reset_nsx_credentials request, options = nil
@@ -2190,14 +2182,14 @@ module Google
2190
2182
  # # Call the reset_vcenter_credentials method.
2191
2183
  # result = client.reset_vcenter_credentials request
2192
2184
  #
2193
- # # The returned object is of type Gapic::Operation. You can use this
2194
- # # object to check the status of an operation, cancel it, or wait
2195
- # # for results. Here is how to block until completion:
2185
+ # # The returned object is of type Gapic::Operation. You can use it to
2186
+ # # check the status of an operation, cancel it, or wait for results.
2187
+ # # Here is how to wait for a response.
2196
2188
  # result.wait_until_done! timeout: 60
2197
2189
  # if result.response?
2198
2190
  # p result.response
2199
2191
  # else
2200
- # puts "Error!"
2192
+ # puts "No response received."
2201
2193
  # end
2202
2194
  #
2203
2195
  def reset_vcenter_credentials request, options = nil
@@ -2317,14 +2309,14 @@ module Google
2317
2309
  # # Call the create_hcx_activation_key method.
2318
2310
  # result = client.create_hcx_activation_key request
2319
2311
  #
2320
- # # The returned object is of type Gapic::Operation. You can use this
2321
- # # object to check the status of an operation, cancel it, or wait
2322
- # # for results. Here is how to block until completion:
2312
+ # # The returned object is of type Gapic::Operation. You can use it to
2313
+ # # check the status of an operation, cancel it, or wait for results.
2314
+ # # Here is how to wait for a response.
2323
2315
  # result.wait_until_done! timeout: 60
2324
2316
  # if result.response?
2325
2317
  # p result.response
2326
2318
  # else
2327
- # puts "Error!"
2319
+ # puts "No response received."
2328
2320
  # end
2329
2321
  #
2330
2322
  def create_hcx_activation_key request, options = nil
@@ -2427,13 +2419,11 @@ module Google
2427
2419
  # # Call the list_hcx_activation_keys method.
2428
2420
  # result = client.list_hcx_activation_keys request
2429
2421
  #
2430
- # # The returned object is of type Gapic::PagedEnumerable. You can
2431
- # # iterate over all elements by calling #each, and the enumerable
2432
- # # will lazily make API calls to fetch subsequent pages. Other
2433
- # # methods are also available for managing paging directly.
2434
- # result.each do |response|
2422
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2423
+ # # over elements, and API calls will be issued to fetch pages as needed.
2424
+ # result.each do |item|
2435
2425
  # # Each element is of type ::Google::Cloud::VmwareEngine::V1::HcxActivationKey.
2436
- # p response
2426
+ # p item
2437
2427
  # end
2438
2428
  #
2439
2429
  def list_hcx_activation_keys request, options = nil
@@ -2744,13 +2734,11 @@ module Google
2744
2734
  # # Call the list_network_policies method.
2745
2735
  # result = client.list_network_policies request
2746
2736
  #
2747
- # # The returned object is of type Gapic::PagedEnumerable. You can
2748
- # # iterate over all elements by calling #each, and the enumerable
2749
- # # will lazily make API calls to fetch subsequent pages. Other
2750
- # # methods are also available for managing paging directly.
2751
- # result.each do |response|
2737
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2738
+ # # over elements, and API calls will be issued to fetch pages as needed.
2739
+ # result.each do |item|
2752
2740
  # # Each element is of type ::Google::Cloud::VmwareEngine::V1::NetworkPolicy.
2753
- # p response
2741
+ # p item
2754
2742
  # end
2755
2743
  #
2756
2744
  def list_network_policies request, options = nil
@@ -2873,14 +2861,14 @@ module Google
2873
2861
  # # Call the create_network_policy method.
2874
2862
  # result = client.create_network_policy request
2875
2863
  #
2876
- # # The returned object is of type Gapic::Operation. You can use this
2877
- # # object to check the status of an operation, cancel it, or wait
2878
- # # for results. Here is how to block until completion:
2864
+ # # The returned object is of type Gapic::Operation. You can use it to
2865
+ # # check the status of an operation, cancel it, or wait for results.
2866
+ # # Here is how to wait for a response.
2879
2867
  # result.wait_until_done! timeout: 60
2880
2868
  # if result.response?
2881
2869
  # p result.response
2882
2870
  # else
2883
- # puts "Error!"
2871
+ # puts "No response received."
2884
2872
  # end
2885
2873
  #
2886
2874
  def create_network_policy request, options = nil
@@ -2998,14 +2986,14 @@ module Google
2998
2986
  # # Call the update_network_policy method.
2999
2987
  # result = client.update_network_policy request
3000
2988
  #
3001
- # # The returned object is of type Gapic::Operation. You can use this
3002
- # # object to check the status of an operation, cancel it, or wait
3003
- # # for results. Here is how to block until completion:
2989
+ # # The returned object is of type Gapic::Operation. You can use it to
2990
+ # # check the status of an operation, cancel it, or wait for results.
2991
+ # # Here is how to wait for a response.
3004
2992
  # result.wait_until_done! timeout: 60
3005
2993
  # if result.response?
3006
2994
  # p result.response
3007
2995
  # else
3008
- # puts "Error!"
2996
+ # puts "No response received."
3009
2997
  # end
3010
2998
  #
3011
2999
  def update_network_policy request, options = nil
@@ -3112,14 +3100,14 @@ module Google
3112
3100
  # # Call the delete_network_policy method.
3113
3101
  # result = client.delete_network_policy request
3114
3102
  #
3115
- # # The returned object is of type Gapic::Operation. You can use this
3116
- # # object to check the status of an operation, cancel it, or wait
3117
- # # for results. Here is how to block until completion:
3103
+ # # The returned object is of type Gapic::Operation. You can use it to
3104
+ # # check the status of an operation, cancel it, or wait for results.
3105
+ # # Here is how to wait for a response.
3118
3106
  # result.wait_until_done! timeout: 60
3119
3107
  # if result.response?
3120
3108
  # p result.response
3121
3109
  # else
3122
- # puts "Error!"
3110
+ # puts "No response received."
3123
3111
  # end
3124
3112
  #
3125
3113
  def delete_network_policy request, options = nil
@@ -3243,14 +3231,14 @@ module Google
3243
3231
  # # Call the create_vmware_engine_network method.
3244
3232
  # result = client.create_vmware_engine_network request
3245
3233
  #
3246
- # # The returned object is of type Gapic::Operation. You can use this
3247
- # # object to check the status of an operation, cancel it, or wait
3248
- # # for results. Here is how to block until completion:
3234
+ # # The returned object is of type Gapic::Operation. You can use it to
3235
+ # # check the status of an operation, cancel it, or wait for results.
3236
+ # # Here is how to wait for a response.
3249
3237
  # result.wait_until_done! timeout: 60
3250
3238
  # if result.response?
3251
3239
  # p result.response
3252
3240
  # else
3253
- # puts "Error!"
3241
+ # puts "No response received."
3254
3242
  # end
3255
3243
  #
3256
3244
  def create_vmware_engine_network request, options = nil
@@ -3360,14 +3348,14 @@ module Google
3360
3348
  # # Call the update_vmware_engine_network method.
3361
3349
  # result = client.update_vmware_engine_network request
3362
3350
  #
3363
- # # The returned object is of type Gapic::Operation. You can use this
3364
- # # object to check the status of an operation, cancel it, or wait
3365
- # # for results. Here is how to block until completion:
3351
+ # # The returned object is of type Gapic::Operation. You can use it to
3352
+ # # check the status of an operation, cancel it, or wait for results.
3353
+ # # Here is how to wait for a response.
3366
3354
  # result.wait_until_done! timeout: 60
3367
3355
  # if result.response?
3368
3356
  # p result.response
3369
3357
  # else
3370
- # puts "Error!"
3358
+ # puts "No response received."
3371
3359
  # end
3372
3360
  #
3373
3361
  def update_vmware_engine_network request, options = nil
@@ -3480,14 +3468,14 @@ module Google
3480
3468
  # # Call the delete_vmware_engine_network method.
3481
3469
  # result = client.delete_vmware_engine_network request
3482
3470
  #
3483
- # # The returned object is of type Gapic::Operation. You can use this
3484
- # # object to check the status of an operation, cancel it, or wait
3485
- # # for results. Here is how to block until completion:
3471
+ # # The returned object is of type Gapic::Operation. You can use it to
3472
+ # # check the status of an operation, cancel it, or wait for results.
3473
+ # # Here is how to wait for a response.
3486
3474
  # result.wait_until_done! timeout: 60
3487
3475
  # if result.response?
3488
3476
  # p result.response
3489
3477
  # else
3490
- # puts "Error!"
3478
+ # puts "No response received."
3491
3479
  # end
3492
3480
  #
3493
3481
  def delete_vmware_engine_network request, options = nil
@@ -3711,13 +3699,11 @@ module Google
3711
3699
  # # Call the list_vmware_engine_networks method.
3712
3700
  # result = client.list_vmware_engine_networks request
3713
3701
  #
3714
- # # The returned object is of type Gapic::PagedEnumerable. You can
3715
- # # iterate over all elements by calling #each, and the enumerable
3716
- # # will lazily make API calls to fetch subsequent pages. Other
3717
- # # methods are also available for managing paging directly.
3718
- # result.each do |response|
3702
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3703
+ # # over elements, and API calls will be issued to fetch pages as needed.
3704
+ # result.each do |item|
3719
3705
  # # Each element is of type ::Google::Cloud::VmwareEngine::V1::VmwareEngineNetwork.
3720
- # p response
3706
+ # p item
3721
3707
  # end
3722
3708
  #
3723
3709
  def list_vmware_engine_networks request, options = nil
@@ -3800,9 +3786,9 @@ module Google
3800
3786
  # * (`String`) The path to a service account key file in JSON format
3801
3787
  # * (`Hash`) A service account key as a Hash
3802
3788
  # * (`Google::Auth::Credentials`) A googleauth credentials object
3803
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
3789
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
3804
3790
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
3805
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
3791
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
3806
3792
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
3807
3793
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
3808
3794
  # * (`nil`) indicating no credentials
@@ -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
@@ -622,9 +620,9 @@ module Google
622
620
  # * (`String`) The path to a service account key file in JSON format
623
621
  # * (`Hash`) A service account key as a Hash
624
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
625
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
626
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
627
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
628
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
629
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
630
628
  # * (`nil`) indicating no credentials