google-cloud-bare_metal_solution-v2 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +7 -7
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/client.rb +57 -67
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/operations.rb +15 -14
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/client.rb +1795 -0
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/operations.rb +793 -0
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/service_stub.rb +1237 -0
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest.rb +61 -0
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution.rb +7 -1
- data/lib/google/cloud/bare_metal_solution/v2/bindings_override.rb +102 -0
- data/lib/google/cloud/bare_metal_solution/v2/rest.rb +38 -0
- data/lib/google/cloud/bare_metal_solution/v2/version.rb +1 -1
- data/lib/google/cloud/bare_metal_solution/v2.rb +7 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +26 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a1980c72b0342e92cde68a5b7deaeb57deb4ca9d4fb93e428b7f3d4d3a9a32f
|
4
|
+
data.tar.gz: b08e4096262bbb8c2482aef169b196f56832fb276ea65e08abc54f20637afcb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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/
|
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.
|
@@ -76,14 +76,14 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
76
76
|
|
77
77
|
## Supported Ruby Versions
|
78
78
|
|
79
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
80
80
|
|
81
81
|
Google provides official support for Ruby versions that are actively supported
|
82
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
83
|
-
in security maintenance, and not end of life.
|
84
|
-
|
85
|
-
|
86
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
87
87
|
|
88
88
|
## Which client should I use?
|
89
89
|
|
@@ -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
|
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
|
-
# #
|
247
|
-
#
|
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
|
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
|
432
|
-
# #
|
433
|
-
# #
|
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 "
|
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
|
526
|
-
# #
|
527
|
-
# #
|
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 "
|
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
|
619
|
-
# #
|
620
|
-
# #
|
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 "
|
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
|
712
|
-
# #
|
713
|
-
# #
|
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 "
|
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
|
807
|
-
# #
|
808
|
-
# #
|
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 "
|
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
|
-
# #
|
908
|
-
#
|
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
|
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
|
1095
|
-
# #
|
1096
|
-
# #
|
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 "
|
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
|
1190
|
-
# #
|
1191
|
-
# #
|
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 "
|
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
|
-
# #
|
1291
|
-
#
|
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
|
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
|
1560
|
-
# #
|
1561
|
-
# #
|
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 "
|
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
|
-
# #
|
1744
|
-
#
|
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
|
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
|
-
# #
|
1928
|
-
#
|
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
|
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
|
2026
|
-
# #
|
2027
|
-
# #
|
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 "
|
2022
|
+
# puts "No response received."
|
2033
2023
|
# end
|
2034
2024
|
#
|
2035
2025
|
def update_nfs_share request, options = nil
|
@@ -95,6 +95,9 @@ module Google
|
|
95
95
|
channel_args: @config.channel_args,
|
96
96
|
interceptors: @config.interceptors
|
97
97
|
)
|
98
|
+
|
99
|
+
# Used by an LRO wrapper for some methods of this service
|
100
|
+
@operations_client = self
|
98
101
|
end
|
99
102
|
|
100
103
|
# Service calls
|
@@ -155,13 +158,11 @@ module Google
|
|
155
158
|
# # Call the list_operations method.
|
156
159
|
# result = client.list_operations request
|
157
160
|
#
|
158
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
-
# #
|
160
|
-
#
|
161
|
-
# # methods are also available for managing paging directly.
|
162
|
-
# 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|
|
163
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
-
# p
|
165
|
+
# p item
|
165
166
|
# end
|
166
167
|
#
|
167
168
|
def list_operations request, options = nil
|
@@ -250,14 +251,14 @@ module Google
|
|
250
251
|
# # Call the get_operation method.
|
251
252
|
# result = client.get_operation request
|
252
253
|
#
|
253
|
-
# # The returned object is of type Gapic::Operation. You can use
|
254
|
-
# #
|
255
|
-
# #
|
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.
|
256
257
|
# result.wait_until_done! timeout: 60
|
257
258
|
# if result.response?
|
258
259
|
# p result.response
|
259
260
|
# else
|
260
|
-
# puts "
|
261
|
+
# puts "No response received."
|
261
262
|
# end
|
262
263
|
#
|
263
264
|
def get_operation request, options = nil
|
@@ -537,14 +538,14 @@ module Google
|
|
537
538
|
# # Call the wait_operation method.
|
538
539
|
# result = client.wait_operation request
|
539
540
|
#
|
540
|
-
# # The returned object is of type Gapic::Operation. You can use
|
541
|
-
# #
|
542
|
-
# #
|
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.
|
543
544
|
# result.wait_until_done! timeout: 60
|
544
545
|
# if result.response?
|
545
546
|
# p result.response
|
546
547
|
# else
|
547
|
-
# puts "
|
548
|
+
# puts "No response received."
|
548
549
|
# end
|
549
550
|
#
|
550
551
|
def wait_operation request, options = nil
|