google-cloud-bare_metal_solution-v2 0.2.0 → 0.3.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: 8579328ce08a72f485ce38fcaf59109b98adcd0eb91f9ba713c9c14aa912fd02
4
- data.tar.gz: 34199c6fe37c9f57b6f3081e739fdacb482dab9d5dcb8fe4f7b82512b802f3ea
3
+ metadata.gz: 4a1980c72b0342e92cde68a5b7deaeb57deb4ca9d4fb93e428b7f3d4d3a9a32f
4
+ data.tar.gz: b08e4096262bbb8c2482aef169b196f56832fb276ea65e08abc54f20637afcb7
5
5
  SHA512:
6
- metadata.gz: 6ac069d05f1b58da3c23e92d1147e8bfe62beb07a7f55ca0095de98eae7fb7b6b2350c491e2e9ee4eab2ebdc12979017a1936242b0e49c1baabc13ecfbd4c032
7
- data.tar.gz: 0d3b20047e59b89b20bc5571f017211a7cb9d05c21e1b73c9082cdd7053b8c248133fa44c2d384bbd70b15528a858c187688abdd60819f3f9d168ba9fb37d668
6
+ metadata.gz: 9627ceefe9f7284c35ef713ee13cffe43510f7202158580f94587a0e46479e0c779ac10818e813de310c7491a08c4678294275fea06e99a4a020fbdd1bc4553c
7
+ data.tar.gz: 39f85cb4913751613156004628156dec1c6488a5dc1be02f5859c75afed1ec77aa383349876de672b3748e63767682729fa115de374852999b55daa00cb7dc11
data/AUTHENTICATION.md CHANGED
@@ -112,7 +112,7 @@ credentials are discovered.
112
112
  To configure your system for this, simply:
113
113
 
114
114
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
115
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
115
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
116
116
  3. Write code as if already authenticated.
117
117
 
118
118
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Bare Metal Solution V2 API
2
2
 
3
- API Client library for the Bare Metal Solution V2 API
3
+ Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center.
4
4
 
5
5
  Bare Metal Solution is a managed solution that provides purpose-built HPE or Atos bare-metal servers in regional extensions that are connected to Google Cloud by a managed, high-performance connection with a low-latency network fabric.
6
6
 
@@ -46,7 +46,7 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
50
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
@@ -19,7 +19,7 @@
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/baremetalsolution/v2/baremetalsolution_pb"
21
21
  require "google/cloud/location"
22
- require "google/iam/v1/iam_policy"
22
+ require "google/iam/v1"
23
23
 
24
24
  module Google
25
25
  module Cloud
@@ -242,13 +242,11 @@ module Google
242
242
  # # Call the list_instances method.
243
243
  # result = client.list_instances request
244
244
  #
245
- # # The returned object is of type Gapic::PagedEnumerable. You can
246
- # # iterate over all elements by calling #each, and the enumerable
247
- # # will lazily make API calls to fetch subsequent pages. Other
248
- # # methods are also available for managing paging directly.
249
- # result.each do |response|
245
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
246
+ # # over elements, and API calls will be issued to fetch pages as needed.
247
+ # result.each do |item|
250
248
  # # Each element is of type ::Google::Cloud::BareMetalSolution::V2::Instance.
251
- # p response
249
+ # p item
252
250
  # end
253
251
  #
254
252
  def list_instances request, options = nil
@@ -428,14 +426,14 @@ module Google
428
426
  # # Call the update_instance method.
429
427
  # result = client.update_instance request
430
428
  #
431
- # # The returned object is of type Gapic::Operation. You can use this
432
- # # object to check the status of an operation, cancel it, or wait
433
- # # for results. Here is how to block until completion:
429
+ # # The returned object is of type Gapic::Operation. You can use it to
430
+ # # check the status of an operation, cancel it, or wait for results.
431
+ # # Here is how to wait for a response.
434
432
  # result.wait_until_done! timeout: 60
435
433
  # if result.response?
436
434
  # p result.response
437
435
  # else
438
- # puts "Error!"
436
+ # puts "No response received."
439
437
  # end
440
438
  #
441
439
  def update_instance request, options = nil
@@ -522,14 +520,14 @@ module Google
522
520
  # # Call the reset_instance method.
523
521
  # result = client.reset_instance request
524
522
  #
525
- # # The returned object is of type Gapic::Operation. You can use this
526
- # # object to check the status of an operation, cancel it, or wait
527
- # # for results. Here is how to block until completion:
523
+ # # The returned object is of type Gapic::Operation. You can use it to
524
+ # # check the status of an operation, cancel it, or wait for results.
525
+ # # Here is how to wait for a response.
528
526
  # result.wait_until_done! timeout: 60
529
527
  # if result.response?
530
528
  # p result.response
531
529
  # else
532
- # puts "Error!"
530
+ # puts "No response received."
533
531
  # end
534
532
  #
535
533
  def reset_instance request, options = nil
@@ -615,14 +613,14 @@ module Google
615
613
  # # Call the start_instance method.
616
614
  # result = client.start_instance request
617
615
  #
618
- # # The returned object is of type Gapic::Operation. You can use this
619
- # # object to check the status of an operation, cancel it, or wait
620
- # # for results. Here is how to block until completion:
616
+ # # The returned object is of type Gapic::Operation. You can use it to
617
+ # # check the status of an operation, cancel it, or wait for results.
618
+ # # Here is how to wait for a response.
621
619
  # result.wait_until_done! timeout: 60
622
620
  # if result.response?
623
621
  # p result.response
624
622
  # else
625
- # puts "Error!"
623
+ # puts "No response received."
626
624
  # end
627
625
  #
628
626
  def start_instance request, options = nil
@@ -708,14 +706,14 @@ module Google
708
706
  # # Call the stop_instance method.
709
707
  # result = client.stop_instance request
710
708
  #
711
- # # The returned object is of type Gapic::Operation. You can use this
712
- # # object to check the status of an operation, cancel it, or wait
713
- # # for results. Here is how to block until completion:
709
+ # # The returned object is of type Gapic::Operation. You can use it to
710
+ # # check the status of an operation, cancel it, or wait for results.
711
+ # # Here is how to wait for a response.
714
712
  # result.wait_until_done! timeout: 60
715
713
  # if result.response?
716
714
  # p result.response
717
715
  # else
718
- # puts "Error!"
716
+ # puts "No response received."
719
717
  # end
720
718
  #
721
719
  def stop_instance request, options = nil
@@ -803,14 +801,14 @@ module Google
803
801
  # # Call the detach_lun method.
804
802
  # result = client.detach_lun request
805
803
  #
806
- # # The returned object is of type Gapic::Operation. You can use this
807
- # # object to check the status of an operation, cancel it, or wait
808
- # # for results. Here is how to block until completion:
804
+ # # The returned object is of type Gapic::Operation. You can use it to
805
+ # # check the status of an operation, cancel it, or wait for results.
806
+ # # Here is how to wait for a response.
809
807
  # result.wait_until_done! timeout: 60
810
808
  # if result.response?
811
809
  # p result.response
812
810
  # else
813
- # puts "Error!"
811
+ # puts "No response received."
814
812
  # end
815
813
  #
816
814
  def detach_lun request, options = nil
@@ -903,13 +901,11 @@ module Google
903
901
  # # Call the list_volumes method.
904
902
  # result = client.list_volumes request
905
903
  #
906
- # # The returned object is of type Gapic::PagedEnumerable. You can
907
- # # iterate over all elements by calling #each, and the enumerable
908
- # # will lazily make API calls to fetch subsequent pages. Other
909
- # # methods are also available for managing paging directly.
910
- # result.each do |response|
904
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
905
+ # # over elements, and API calls will be issued to fetch pages as needed.
906
+ # result.each do |item|
911
907
  # # Each element is of type ::Google::Cloud::BareMetalSolution::V2::Volume.
912
- # p response
908
+ # p item
913
909
  # end
914
910
  #
915
911
  def list_volumes request, options = nil
@@ -1091,14 +1087,14 @@ module Google
1091
1087
  # # Call the update_volume method.
1092
1088
  # result = client.update_volume request
1093
1089
  #
1094
- # # The returned object is of type Gapic::Operation. You can use this
1095
- # # object to check the status of an operation, cancel it, or wait
1096
- # # for results. Here is how to block until completion:
1090
+ # # The returned object is of type Gapic::Operation. You can use it to
1091
+ # # check the status of an operation, cancel it, or wait for results.
1092
+ # # Here is how to wait for a response.
1097
1093
  # result.wait_until_done! timeout: 60
1098
1094
  # if result.response?
1099
1095
  # p result.response
1100
1096
  # else
1101
- # puts "Error!"
1097
+ # puts "No response received."
1102
1098
  # end
1103
1099
  #
1104
1100
  def update_volume request, options = nil
@@ -1186,14 +1182,14 @@ module Google
1186
1182
  # # Call the resize_volume method.
1187
1183
  # result = client.resize_volume request
1188
1184
  #
1189
- # # The returned object is of type Gapic::Operation. You can use this
1190
- # # object to check the status of an operation, cancel it, or wait
1191
- # # for results. Here is how to block until completion:
1185
+ # # The returned object is of type Gapic::Operation. You can use it to
1186
+ # # check the status of an operation, cancel it, or wait for results.
1187
+ # # Here is how to wait for a response.
1192
1188
  # result.wait_until_done! timeout: 60
1193
1189
  # if result.response?
1194
1190
  # p result.response
1195
1191
  # else
1196
- # puts "Error!"
1192
+ # puts "No response received."
1197
1193
  # end
1198
1194
  #
1199
1195
  def resize_volume request, options = nil
@@ -1286,13 +1282,11 @@ module Google
1286
1282
  # # Call the list_networks method.
1287
1283
  # result = client.list_networks request
1288
1284
  #
1289
- # # The returned object is of type Gapic::PagedEnumerable. You can
1290
- # # iterate over all elements by calling #each, and the enumerable
1291
- # # will lazily make API calls to fetch subsequent pages. Other
1292
- # # methods are also available for managing paging directly.
1293
- # result.each do |response|
1285
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1286
+ # # over elements, and API calls will be issued to fetch pages as needed.
1287
+ # result.each do |item|
1294
1288
  # # Each element is of type ::Google::Cloud::BareMetalSolution::V2::Network.
1295
- # p response
1289
+ # p item
1296
1290
  # end
1297
1291
  #
1298
1292
  def list_networks request, options = nil
@@ -1556,14 +1550,14 @@ module Google
1556
1550
  # # Call the update_network method.
1557
1551
  # result = client.update_network request
1558
1552
  #
1559
- # # The returned object is of type Gapic::Operation. You can use this
1560
- # # object to check the status of an operation, cancel it, or wait
1561
- # # for results. Here is how to block until completion:
1553
+ # # The returned object is of type Gapic::Operation. You can use it to
1554
+ # # check the status of an operation, cancel it, or wait for results.
1555
+ # # Here is how to wait for a response.
1562
1556
  # result.wait_until_done! timeout: 60
1563
1557
  # if result.response?
1564
1558
  # p result.response
1565
1559
  # else
1566
- # puts "Error!"
1560
+ # puts "No response received."
1567
1561
  # end
1568
1562
  #
1569
1563
  def update_network request, options = nil
@@ -1739,13 +1733,11 @@ module Google
1739
1733
  # # Call the list_luns method.
1740
1734
  # result = client.list_luns request
1741
1735
  #
1742
- # # The returned object is of type Gapic::PagedEnumerable. You can
1743
- # # iterate over all elements by calling #each, and the enumerable
1744
- # # will lazily make API calls to fetch subsequent pages. Other
1745
- # # methods are also available for managing paging directly.
1746
- # result.each do |response|
1736
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1737
+ # # over elements, and API calls will be issued to fetch pages as needed.
1738
+ # result.each do |item|
1747
1739
  # # Each element is of type ::Google::Cloud::BareMetalSolution::V2::Lun.
1748
- # p response
1740
+ # p item
1749
1741
  # end
1750
1742
  #
1751
1743
  def list_luns request, options = nil
@@ -1923,13 +1915,11 @@ module Google
1923
1915
  # # Call the list_nfs_shares method.
1924
1916
  # result = client.list_nfs_shares request
1925
1917
  #
1926
- # # The returned object is of type Gapic::PagedEnumerable. You can
1927
- # # iterate over all elements by calling #each, and the enumerable
1928
- # # will lazily make API calls to fetch subsequent pages. Other
1929
- # # methods are also available for managing paging directly.
1930
- # result.each do |response|
1918
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1919
+ # # over elements, and API calls will be issued to fetch pages as needed.
1920
+ # result.each do |item|
1931
1921
  # # Each element is of type ::Google::Cloud::BareMetalSolution::V2::NfsShare.
1932
- # p response
1922
+ # p item
1933
1923
  # end
1934
1924
  #
1935
1925
  def list_nfs_shares request, options = nil
@@ -2022,14 +2012,14 @@ module Google
2022
2012
  # # Call the update_nfs_share method.
2023
2013
  # result = client.update_nfs_share request
2024
2014
  #
2025
- # # The returned object is of type Gapic::Operation. You can use this
2026
- # # object to check the status of an operation, cancel it, or wait
2027
- # # for results. Here is how to block until completion:
2015
+ # # The returned object is of type Gapic::Operation. You can use it to
2016
+ # # check the status of an operation, cancel it, or wait for results.
2017
+ # # Here is how to wait for a response.
2028
2018
  # result.wait_until_done! timeout: 60
2029
2019
  # if result.response?
2030
2020
  # p result.response
2031
2021
  # else
2032
- # puts "Error!"
2022
+ # puts "No response received."
2033
2023
  # end
2034
2024
  #
2035
2025
  def update_nfs_share 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