google-cloud-bare_metal_solution-v2 0.9.0 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a890ccd7da5fbd131017305e097324e2f1d38bdb88cadb216d82c50cd671ddcc
4
- data.tar.gz: 14b6786d179b60850fd29f954ed76b1c747e64f5fb99518c3377f5ac22646c2d
3
+ metadata.gz: 57d0415fbc74fc719b11f5829e5db7a5fe4ffdb5f02c67bb63a86d49ef984613
4
+ data.tar.gz: ec193bfd39a25a73cb1516262559e4db581de799b08d61c9939c643aa252c853
5
5
  SHA512:
6
- metadata.gz: b63ff6d8b77b5ee6bc606fa9e72d9cc1b264089c4d97e4747b5d6e7ee2ae3dc29f3acb5dedb4fb029d2b8731ffeae22631a4e38fe7ba9b86de0d176f5fd33503
7
- data.tar.gz: 5c2b8e3e7378601c46eeed683215e150a4a31e7d9f511d2801ab0b9ce0aeac6e542c4623012dcebe8f5d7444a5ecc0e10c1b814e9a0dc6d959aa5f45600bc844
6
+ metadata.gz: 67e792cf585f0383a5d12a124472b2e63d9bb7387bdf484d7c25dd11c00f68aed1e6b991593fedd3b9727312ef7cabd513d8684c4986ab9219adbfa65351fe89
7
+ data.tar.gz: 61719a044e730df78ab7ffe4f7e1199f03712d72329b83d1392f26e9a8b897a9c98a92f9c41d82171acc3ff0276dca6327c95b44cc9eff74c09ff1af8cad463a
data/README.md CHANGED
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
86
86
 
87
87
  ## Supported Ruby Versions
88
88
 
89
- This library is supported on Ruby 2.7+.
89
+ This library is supported on Ruby 3.0+.
90
90
 
91
91
  Google provides official support for Ruby versions that are actively supported
92
92
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -4373,6 +4373,13 @@ module Google
4373
4373
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
4374
4374
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
4375
4375
  # * (`nil`) indicating no credentials
4376
+ #
4377
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
4378
+ # external source for authentication to Google Cloud, you must validate it before
4379
+ # providing it to a Google API client library. Providing an unvalidated credential
4380
+ # configuration to Google APIs can compromise the security of your systems and data.
4381
+ # For more information, refer to [Validate credential configurations from external
4382
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
4376
4383
  # @return [::Object]
4377
4384
  # @!attribute [rw] scope
4378
4385
  # The OAuth scopes
@@ -640,6 +640,13 @@ module Google
640
640
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
641
641
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
642
642
  # * (`nil`) indicating no credentials
643
+ #
644
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
645
+ # external source for authentication to Google Cloud, you must validate it before
646
+ # providing it to a Google API client library. Providing an unvalidated credential
647
+ # configuration to Google APIs can compromise the security of your systems and data.
648
+ # For more information, refer to [Validate credential configurations from external
649
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
643
650
  # @return [::Object]
644
651
  # @!attribute [rw] scope
645
652
  # The OAuth scopes
@@ -260,10 +260,10 @@ module Google
260
260
  # @param filter [::String]
261
261
  # List filter.
262
262
  # @yield [result, operation] Access the result along with the TransportOperation object
263
- # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListInstancesResponse]
263
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::Instance>]
264
264
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
265
265
  #
266
- # @return [::Google::Cloud::BareMetalSolution::V2::ListInstancesResponse]
266
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::Instance>]
267
267
  #
268
268
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
269
269
  #
@@ -315,7 +315,9 @@ module Google
315
315
  retry_policy: @config.retry_policy
316
316
 
317
317
  @bare_metal_solution_stub.list_instances request, options do |result, operation|
318
+ result = ::Gapic::Rest::PagedEnumerable.new @bare_metal_solution_stub, :list_instances, "instances", request, result, options
318
319
  yield result, operation if block_given?
320
+ throw :response, result
319
321
  end
320
322
  rescue ::Gapic::Rest::Error => e
321
323
  raise ::Google::Cloud::Error.from_error(e)
@@ -1388,10 +1390,10 @@ module Google
1388
1390
  # @param filter [::String]
1389
1391
  # List filter.
1390
1392
  # @yield [result, operation] Access the result along with the TransportOperation object
1391
- # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse]
1393
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::Volume>]
1392
1394
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1393
1395
  #
1394
- # @return [::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse]
1396
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::Volume>]
1395
1397
  #
1396
1398
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1397
1399
  #
@@ -1443,7 +1445,9 @@ module Google
1443
1445
  retry_policy: @config.retry_policy
1444
1446
 
1445
1447
  @bare_metal_solution_stub.list_volumes request, options do |result, operation|
1448
+ result = ::Gapic::Rest::PagedEnumerable.new @bare_metal_solution_stub, :list_volumes, "volumes", request, result, options
1446
1449
  yield result, operation if block_given?
1450
+ throw :response, result
1447
1451
  end
1448
1452
  rescue ::Gapic::Rest::Error => e
1449
1453
  raise ::Google::Cloud::Error.from_error(e)
@@ -1908,10 +1912,10 @@ module Google
1908
1912
  # @param filter [::String]
1909
1913
  # List filter.
1910
1914
  # @yield [result, operation] Access the result along with the TransportOperation object
1911
- # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse]
1915
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::Network>]
1912
1916
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1913
1917
  #
1914
- # @return [::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse]
1918
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::Network>]
1915
1919
  #
1916
1920
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1917
1921
  #
@@ -1963,7 +1967,9 @@ module Google
1963
1967
  retry_policy: @config.retry_policy
1964
1968
 
1965
1969
  @bare_metal_solution_stub.list_networks request, options do |result, operation|
1970
+ result = ::Gapic::Rest::PagedEnumerable.new @bare_metal_solution_stub, :list_networks, "networks", request, result, options
1966
1971
  yield result, operation if block_given?
1972
+ throw :response, result
1967
1973
  end
1968
1974
  rescue ::Gapic::Rest::Error => e
1969
1975
  raise ::Google::Cloud::Error.from_error(e)
@@ -2576,10 +2582,10 @@ module Google
2576
2582
  # @param page_token [::String]
2577
2583
  # A token identifying a page of results from the server.
2578
2584
  # @yield [result, operation] Access the result along with the TransportOperation object
2579
- # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListVolumeSnapshotsResponse]
2585
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot>]
2580
2586
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
2581
2587
  #
2582
- # @return [::Google::Cloud::BareMetalSolution::V2::ListVolumeSnapshotsResponse]
2588
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot>]
2583
2589
  #
2584
2590
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2585
2591
  #
@@ -2631,7 +2637,9 @@ module Google
2631
2637
  retry_policy: @config.retry_policy
2632
2638
 
2633
2639
  @bare_metal_solution_stub.list_volume_snapshots request, options do |result, operation|
2640
+ result = ::Gapic::Rest::PagedEnumerable.new @bare_metal_solution_stub, :list_volume_snapshots, "volume_snapshots", request, result, options
2634
2641
  yield result, operation if block_given?
2642
+ throw :response, result
2635
2643
  end
2636
2644
  rescue ::Gapic::Rest::Error => e
2637
2645
  raise ::Google::Cloud::Error.from_error(e)
@@ -2741,10 +2749,10 @@ module Google
2741
2749
  # @param page_token [::String]
2742
2750
  # A token identifying a page of results from the server.
2743
2751
  # @yield [result, operation] Access the result along with the TransportOperation object
2744
- # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListLunsResponse]
2752
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::Lun>]
2745
2753
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
2746
2754
  #
2747
- # @return [::Google::Cloud::BareMetalSolution::V2::ListLunsResponse]
2755
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::Lun>]
2748
2756
  #
2749
2757
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2750
2758
  #
@@ -2796,7 +2804,9 @@ module Google
2796
2804
  retry_policy: @config.retry_policy
2797
2805
 
2798
2806
  @bare_metal_solution_stub.list_luns request, options do |result, operation|
2807
+ result = ::Gapic::Rest::PagedEnumerable.new @bare_metal_solution_stub, :list_luns, "luns", request, result, options
2799
2808
  yield result, operation if block_given?
2809
+ throw :response, result
2800
2810
  end
2801
2811
  rescue ::Gapic::Rest::Error => e
2802
2812
  raise ::Google::Cloud::Error.from_error(e)
@@ -2996,10 +3006,10 @@ module Google
2996
3006
  # @param filter [::String]
2997
3007
  # List filter.
2998
3008
  # @yield [result, operation] Access the result along with the TransportOperation object
2999
- # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse]
3009
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::NfsShare>]
3000
3010
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
3001
3011
  #
3002
- # @return [::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse]
3012
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::NfsShare>]
3003
3013
  #
3004
3014
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3005
3015
  #
@@ -3051,7 +3061,9 @@ module Google
3051
3061
  retry_policy: @config.retry_policy
3052
3062
 
3053
3063
  @bare_metal_solution_stub.list_nfs_shares request, options do |result, operation|
3064
+ result = ::Gapic::Rest::PagedEnumerable.new @bare_metal_solution_stub, :list_nfs_shares, "nfs_shares", request, result, options
3054
3065
  yield result, operation if block_given?
3066
+ throw :response, result
3055
3067
  end
3056
3068
  rescue ::Gapic::Rest::Error => e
3057
3069
  raise ::Google::Cloud::Error.from_error(e)
@@ -4045,6 +4057,13 @@ module Google
4045
4057
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
4046
4058
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
4047
4059
  # * (`nil`) indicating no credentials
4060
+ #
4061
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
4062
+ # external source for authentication to Google Cloud, you must validate it before
4063
+ # providing it to a Google API client library. Providing an unvalidated credential
4064
+ # configuration to Google APIs can compromise the security of your systems and data.
4065
+ # For more information, refer to [Validate credential configurations from external
4066
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
4048
4067
  # @return [::Object]
4049
4068
  # @!attribute [rw] scope
4050
4069
  # The OAuth scopes
@@ -502,6 +502,13 @@ module Google
502
502
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
503
503
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
504
504
  # * (`nil`) indicating no credentials
505
+ #
506
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
507
+ # external source for authentication to Google Cloud, you must validate it before
508
+ # providing it to a Google API client library. Providing an unvalidated credential
509
+ # configuration to Google APIs can compromise the security of your systems and data.
510
+ # For more information, refer to [Validate credential configurations from external
511
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
505
512
  # @return [::Object]
506
513
  # @!attribute [rw] scope
507
514
  # The OAuth scopes
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module BareMetalSolution
23
23
  module V2
24
- VERSION = "0.9.0"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -409,6 +409,14 @@ module Google
409
409
  # @return [::Array<::String>]
410
410
  # An allowlist of the fully qualified names of RPCs that should be included
411
411
  # on public client surfaces.
412
+ # @!attribute [rw] generate_omitted_as_internal
413
+ # @return [::Boolean]
414
+ # Setting this to true indicates to the client generators that methods
415
+ # that would be excluded from the generation should instead be generated
416
+ # in a way that indicates these methods should not be consumed by
417
+ # end users. How this is expressed is up to individual language
418
+ # implementations to decide. Some examples may be: added annotations,
419
+ # obfuscated identifiers, or other language idiomatic patterns.
412
420
  class SelectiveGapicGeneration
413
421
  include ::Google::Protobuf::MessageExts
414
422
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -152,12 +152,18 @@ module Google
152
152
  # @!attribute [rw] server_count
153
153
  # @return [::Integer]
154
154
  # Server count.
155
+ #
156
+ # Note: The following fields are mutually exclusive: `server_count`, `network_bandwidth`, `storage_gib`. If a field in that set is populated, all other fields in the set will automatically be cleared.
155
157
  # @!attribute [rw] network_bandwidth
156
158
  # @return [::Integer]
157
159
  # Network bandwidth, Gbps
160
+ #
161
+ # Note: The following fields are mutually exclusive: `network_bandwidth`, `server_count`, `storage_gib`. If a field in that set is populated, all other fields in the set will automatically be cleared.
158
162
  # @!attribute [rw] storage_gib
159
163
  # @return [::Integer]
160
164
  # Storage size (GB).
165
+ #
166
+ # Note: The following fields are mutually exclusive: `storage_gib`, `server_count`, `network_bandwidth`. If a field in that set is populated, all other fields in the set will automatically be cleared.
161
167
  class ProvisioningQuota
162
168
  include ::Google::Protobuf::MessageExts
163
169
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -360,9 +366,13 @@ module Google
360
366
  # @return [::String]
361
367
  # Either a single machine, identified by an ID, or a comma-separated
362
368
  # list of machine IDs.
369
+ #
370
+ # Note: The following fields are mutually exclusive: `machine_id`, `cidr`. If a field in that set is populated, all other fields in the set will automatically be cleared.
363
371
  # @!attribute [rw] cidr
364
372
  # @return [::String]
365
373
  # A CIDR range.
374
+ #
375
+ # Note: The following fields are mutually exclusive: `cidr`, `machine_id`. If a field in that set is populated, all other fields in the set will automatically be cleared.
366
376
  # @!attribute [rw] permissions
367
377
  # @return [::Google::Cloud::BareMetalSolution::V2::VolumeConfig::NfsExport::Permissions]
368
378
  # Export permissions.
@@ -40,6 +40,8 @@ module Google
40
40
  # @!attribute [rw] error
41
41
  # @return [::Google::Rpc::Status]
42
42
  # The error result of the operation in case of failure or cancellation.
43
+ #
44
+ # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
43
45
  # @!attribute [rw] response
44
46
  # @return [::Google::Protobuf::Any]
45
47
  # The normal, successful response of the operation. If the original
@@ -50,6 +52,8 @@ module Google
50
52
  # is the original method name. For example, if the original method name
51
53
  # is `TakeSnapshot()`, the inferred response type is
52
54
  # `TakeSnapshotResponse`.
55
+ #
56
+ # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
53
57
  class Operation
54
58
  include ::Google::Protobuf::MessageExts
55
59
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-bare_metal_solution-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
10
+ date: 2025-02-07 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: gapic-common
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.24.0
18
+ version: 0.25.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.24.0
28
+ version: 0.25.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -153,7 +152,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
153
152
  licenses:
154
153
  - Apache-2.0
155
154
  metadata: {}
156
- post_install_message:
157
155
  rdoc_options: []
158
156
  require_paths:
159
157
  - lib
@@ -161,15 +159,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
159
  requirements:
162
160
  - - ">="
163
161
  - !ruby/object:Gem::Version
164
- version: '2.7'
162
+ version: '3.0'
165
163
  required_rubygems_version: !ruby/object:Gem::Requirement
166
164
  requirements:
167
165
  - - ">="
168
166
  - !ruby/object:Gem::Version
169
167
  version: '0'
170
168
  requirements: []
171
- rubygems_version: 3.5.23
172
- signing_key:
169
+ rubygems_version: 3.6.3
173
170
  specification_version: 4
174
171
  summary: Provides ways to manage Bare Metal Solution hardware installed in a regional
175
172
  extension located near a Google Cloud data center.