google-cloud-compute 1.17.0 → 1.18.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: 37f7b4f55ec42bff9069bd6ebc1989bf6f79bfecf589cb4b5e6717ec786b5383
4
- data.tar.gz: 893b2c7092136844783de46a1efdd1ec329884c09fd7d86d6604cafae85a7fa4
3
+ metadata.gz: b79069bb920d326626183541c808f7ae0593441601242ad72d3ddc9386aa5cbc
4
+ data.tar.gz: a530f141a731f2c6e53c77490b75b6de40c4ea57e511729e725e456171a4b252
5
5
  SHA512:
6
- metadata.gz: 8c784cfac5059ad694f6e4bdde861da3433d6fb33f6192f165a7d7b69847a33886ab8dd8afd5d6732574dfed93df6f5962da9ceb6f4afd3b810c12bd32fa48d2
7
- data.tar.gz: ee5af3cd99fef7d8dafb8cc63f6d084014bd8fe4e4ae44e28aa12767c11aaffa514613862505fadc5b9e444a095b68f3b2181251a8fd4ca23a78aa6326352574
6
+ metadata.gz: 4ac1b39a2d0dc03f00c8c6cf0cc796b114f4426d8a611fb433aef5fcdd009b2262af79c79509d61a1034a0d722c515b164e15819bb4979441957e0a1b4890d7c
7
+ data.tar.gz: 03b426d26a6eded4b5fcc2642321a8430aca23f3bfd6c091c165d00bfd29174934a0579a77fe6d7031d461f1ab70198f2602791af5c4b8b407f747474582fc06
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Compute
23
- VERSION = "1.17.0"
23
+ VERSION = "1.18.0"
24
24
  end
25
25
  end
26
26
  end
@@ -1306,6 +1306,69 @@ module Google
1306
1306
  false
1307
1307
  end
1308
1308
 
1309
+ ##
1310
+ # Create a new client object for GlobalVmExtensionPolicies.
1311
+ #
1312
+ # By default, this returns an instance of
1313
+ # [Google::Cloud::Compute::V1::GlobalVmExtensionPolicies::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-GlobalVmExtensionPolicies-Rest-Client)
1314
+ # for a REST client for version V1 of the API.
1315
+ # However, you can specify a different API version by passing it in the
1316
+ # `version` parameter. If the GlobalVmExtensionPolicies service is
1317
+ # supported by that API version, and the corresponding gem is available, the
1318
+ # appropriate versioned client will be returned.
1319
+ #
1320
+ # Raises an exception if the currently installed versioned client gem for the
1321
+ # given API version does not support the GlobalVmExtensionPolicies service.
1322
+ # You can determine whether the method will succeed by calling
1323
+ # {Google::Cloud::Compute.global_vm_extension_policies_available?}.
1324
+ #
1325
+ # ## About GlobalVmExtensionPolicies
1326
+ #
1327
+ # The GlobalVmExtensionPolicies API.
1328
+ #
1329
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1330
+ # Defaults to `:v1`.
1331
+ # @return [::Object] A client object for the specified version.
1332
+ #
1333
+ def self.global_vm_extension_policies version: :v1, &block
1334
+ require "google/cloud/compute/#{version.to_s.downcase}"
1335
+
1336
+ package_name = Google::Cloud::Compute
1337
+ .constants
1338
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1339
+ .first
1340
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:GlobalVmExtensionPolicies)
1341
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1342
+ end
1343
+
1344
+ ##
1345
+ # Determines whether the GlobalVmExtensionPolicies service is supported by the current client.
1346
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.global_vm_extension_policies}.
1347
+ # If false, that method will raise an exception. This could happen if the given
1348
+ # API version does not exist or does not support the GlobalVmExtensionPolicies service,
1349
+ # or if the versioned client gem needs an update to support the GlobalVmExtensionPolicies service.
1350
+ #
1351
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1352
+ # Defaults to `:v1`.
1353
+ # @return [boolean] Whether the service is available.
1354
+ #
1355
+ def self.global_vm_extension_policies_available? version: :v1
1356
+ require "google/cloud/compute/#{version.to_s.downcase}"
1357
+ package_name = Google::Cloud::Compute
1358
+ .constants
1359
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1360
+ .first
1361
+ return false unless package_name
1362
+ service_module = Google::Cloud::Compute.const_get package_name
1363
+ return false unless service_module.const_defined? :GlobalVmExtensionPolicies
1364
+ service_module = service_module.const_get :GlobalVmExtensionPolicies
1365
+ return false unless service_module.const_defined? :Rest
1366
+ service_module = service_module.const_get :Rest
1367
+ service_module.const_defined? :Client
1368
+ rescue ::LoadError
1369
+ false
1370
+ end
1371
+
1309
1372
  ##
1310
1373
  # Create a new client object for HealthChecks.
1311
1374
  #
@@ -5968,6 +6031,132 @@ module Google
5968
6031
  false
5969
6032
  end
5970
6033
 
6034
+ ##
6035
+ # Create a new client object for RolloutPlans.
6036
+ #
6037
+ # By default, this returns an instance of
6038
+ # [Google::Cloud::Compute::V1::RolloutPlans::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-RolloutPlans-Rest-Client)
6039
+ # for a REST client for version V1 of the API.
6040
+ # However, you can specify a different API version by passing it in the
6041
+ # `version` parameter. If the RolloutPlans service is
6042
+ # supported by that API version, and the corresponding gem is available, the
6043
+ # appropriate versioned client will be returned.
6044
+ #
6045
+ # Raises an exception if the currently installed versioned client gem for the
6046
+ # given API version does not support the RolloutPlans service.
6047
+ # You can determine whether the method will succeed by calling
6048
+ # {Google::Cloud::Compute.rollout_plans_available?}.
6049
+ #
6050
+ # ## About RolloutPlans
6051
+ #
6052
+ # The RolloutPlans API.
6053
+ #
6054
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
6055
+ # Defaults to `:v1`.
6056
+ # @return [::Object] A client object for the specified version.
6057
+ #
6058
+ def self.rollout_plans version: :v1, &block
6059
+ require "google/cloud/compute/#{version.to_s.downcase}"
6060
+
6061
+ package_name = Google::Cloud::Compute
6062
+ .constants
6063
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
6064
+ .first
6065
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RolloutPlans)
6066
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
6067
+ end
6068
+
6069
+ ##
6070
+ # Determines whether the RolloutPlans service is supported by the current client.
6071
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.rollout_plans}.
6072
+ # If false, that method will raise an exception. This could happen if the given
6073
+ # API version does not exist or does not support the RolloutPlans service,
6074
+ # or if the versioned client gem needs an update to support the RolloutPlans service.
6075
+ #
6076
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
6077
+ # Defaults to `:v1`.
6078
+ # @return [boolean] Whether the service is available.
6079
+ #
6080
+ def self.rollout_plans_available? version: :v1
6081
+ require "google/cloud/compute/#{version.to_s.downcase}"
6082
+ package_name = Google::Cloud::Compute
6083
+ .constants
6084
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
6085
+ .first
6086
+ return false unless package_name
6087
+ service_module = Google::Cloud::Compute.const_get package_name
6088
+ return false unless service_module.const_defined? :RolloutPlans
6089
+ service_module = service_module.const_get :RolloutPlans
6090
+ return false unless service_module.const_defined? :Rest
6091
+ service_module = service_module.const_get :Rest
6092
+ service_module.const_defined? :Client
6093
+ rescue ::LoadError
6094
+ false
6095
+ end
6096
+
6097
+ ##
6098
+ # Create a new client object for Rollouts.
6099
+ #
6100
+ # By default, this returns an instance of
6101
+ # [Google::Cloud::Compute::V1::Rollouts::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-Rollouts-Rest-Client)
6102
+ # for a REST client for version V1 of the API.
6103
+ # However, you can specify a different API version by passing it in the
6104
+ # `version` parameter. If the Rollouts service is
6105
+ # supported by that API version, and the corresponding gem is available, the
6106
+ # appropriate versioned client will be returned.
6107
+ #
6108
+ # Raises an exception if the currently installed versioned client gem for the
6109
+ # given API version does not support the Rollouts service.
6110
+ # You can determine whether the method will succeed by calling
6111
+ # {Google::Cloud::Compute.rollouts_available?}.
6112
+ #
6113
+ # ## About Rollouts
6114
+ #
6115
+ # The Rollouts API.
6116
+ #
6117
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
6118
+ # Defaults to `:v1`.
6119
+ # @return [::Object] A client object for the specified version.
6120
+ #
6121
+ def self.rollouts version: :v1, &block
6122
+ require "google/cloud/compute/#{version.to_s.downcase}"
6123
+
6124
+ package_name = Google::Cloud::Compute
6125
+ .constants
6126
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
6127
+ .first
6128
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Rollouts)
6129
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
6130
+ end
6131
+
6132
+ ##
6133
+ # Determines whether the Rollouts service is supported by the current client.
6134
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.rollouts}.
6135
+ # If false, that method will raise an exception. This could happen if the given
6136
+ # API version does not exist or does not support the Rollouts service,
6137
+ # or if the versioned client gem needs an update to support the Rollouts service.
6138
+ #
6139
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
6140
+ # Defaults to `:v1`.
6141
+ # @return [boolean] Whether the service is available.
6142
+ #
6143
+ def self.rollouts_available? version: :v1
6144
+ require "google/cloud/compute/#{version.to_s.downcase}"
6145
+ package_name = Google::Cloud::Compute
6146
+ .constants
6147
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
6148
+ .first
6149
+ return false unless package_name
6150
+ service_module = Google::Cloud::Compute.const_get package_name
6151
+ return false unless service_module.const_defined? :Rollouts
6152
+ service_module = service_module.const_get :Rollouts
6153
+ return false unless service_module.const_defined? :Rest
6154
+ service_module = service_module.const_get :Rest
6155
+ service_module.const_defined? :Client
6156
+ rescue ::LoadError
6157
+ false
6158
+ end
6159
+
5971
6160
  ##
5972
6161
  # Create a new client object for Routers.
5973
6162
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-compute
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.0
4
+ version: 1.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC