google-cloud-compute 1.11.2 → 1.12.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: 75f33517b93f854a5e30d7bc82e3263ff48a23499bffa8a63d824ea20d9cbead
4
- data.tar.gz: 8c260fb644f32c22f7bd714bfb4887c1fd7feb98b38b0db5b03f7f718167f3c3
3
+ metadata.gz: 9eb1c4dabd4aa091d4f1de0f7c5b28baecdaec5ae2fe019c0704fbb2c8026292
4
+ data.tar.gz: 1070052de377f795e56c6ce0f7c1fd6008acd723f88cdf0dc831ab8803c928c3
5
5
  SHA512:
6
- metadata.gz: 5a884d08253ede2bfa16a1140a582f0c3e87e814807dcb29a7be980016148169df4862648265cf7f1b7bfd217dcf156ee0a6eae79db6936f7b0dd382cb764ffb
7
- data.tar.gz: d9234dad9fe0cb7f9ef2e849d864cf82090e3a1896b0200fd9fbd42f0b8776ea4fbeb7175d969bdf453cda9d13648e54fef62dd466f1556b5916df67a1260bb6
6
+ metadata.gz: 3010cdd1768cb7a5ef92763e32859e77d95d26d14e52971cf7f26c1e787d2dc0e51824695aa65e071b802759945449e36188be0f7681961eeb2af23b861da5d4
7
+ data.tar.gz: dc32cbd3abe2764e266bd2743cf0d355bb0ac8cc88a7fc5258a7a3f326a8352b456d3e194b6b1ce8ad21c4bc1cc1f980e95cf8d4bf67b2e947103d99f09867be
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Compute
23
- VERSION = "1.11.2"
23
+ VERSION = "1.12.0"
24
24
  end
25
25
  end
26
26
  end
@@ -2944,6 +2944,69 @@ module Google
2944
2944
  false
2945
2945
  end
2946
2946
 
2947
+ ##
2948
+ # Create a new client object for OrganizationSecurityPolicies.
2949
+ #
2950
+ # By default, this returns an instance of
2951
+ # [Google::Cloud::Compute::V1::OrganizationSecurityPolicies::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-OrganizationSecurityPolicies-Rest-Client)
2952
+ # for a REST client for version V1 of the API.
2953
+ # However, you can specify a different API version by passing it in the
2954
+ # `version` parameter. If the OrganizationSecurityPolicies service is
2955
+ # supported by that API version, and the corresponding gem is available, the
2956
+ # appropriate versioned client will be returned.
2957
+ #
2958
+ # Raises an exception if the currently installed versioned client gem for the
2959
+ # given API version does not support the OrganizationSecurityPolicies service.
2960
+ # You can determine whether the method will succeed by calling
2961
+ # {Google::Cloud::Compute.organization_security_policies_available?}.
2962
+ #
2963
+ # ## About OrganizationSecurityPolicies
2964
+ #
2965
+ # The OrganizationSecurityPolicies API.
2966
+ #
2967
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2968
+ # Defaults to `:v1`.
2969
+ # @return [::Object] A client object for the specified version.
2970
+ #
2971
+ def self.organization_security_policies version: :v1, &block
2972
+ require "google/cloud/compute/#{version.to_s.downcase}"
2973
+
2974
+ package_name = Google::Cloud::Compute
2975
+ .constants
2976
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2977
+ .first
2978
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:OrganizationSecurityPolicies)
2979
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2980
+ end
2981
+
2982
+ ##
2983
+ # Determines whether the OrganizationSecurityPolicies service is supported by the current client.
2984
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.organization_security_policies}.
2985
+ # If false, that method will raise an exception. This could happen if the given
2986
+ # API version does not exist or does not support the OrganizationSecurityPolicies service,
2987
+ # or if the versioned client gem needs an update to support the OrganizationSecurityPolicies service.
2988
+ #
2989
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2990
+ # Defaults to `:v1`.
2991
+ # @return [boolean] Whether the service is available.
2992
+ #
2993
+ def self.organization_security_policies_available? version: :v1
2994
+ require "google/cloud/compute/#{version.to_s.downcase}"
2995
+ package_name = Google::Cloud::Compute
2996
+ .constants
2997
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2998
+ .first
2999
+ return false unless package_name
3000
+ service_module = Google::Cloud::Compute.const_get package_name
3001
+ return false unless service_module.const_defined? :OrganizationSecurityPolicies
3002
+ service_module = service_module.const_get :OrganizationSecurityPolicies
3003
+ return false unless service_module.const_defined? :Rest
3004
+ service_module = service_module.const_get :Rest
3005
+ service_module.const_defined? :Client
3006
+ rescue ::LoadError
3007
+ false
3008
+ end
3009
+
2947
3010
  ##
2948
3011
  # Create a new client object for PacketMirrorings.
2949
3012
  #
@@ -3007,6 +3070,69 @@ module Google
3007
3070
  false
3008
3071
  end
3009
3072
 
3073
+ ##
3074
+ # Create a new client object for PreviewFeatures.
3075
+ #
3076
+ # By default, this returns an instance of
3077
+ # [Google::Cloud::Compute::V1::PreviewFeatures::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-PreviewFeatures-Rest-Client)
3078
+ # for a REST client for version V1 of the API.
3079
+ # However, you can specify a different API version by passing it in the
3080
+ # `version` parameter. If the PreviewFeatures service is
3081
+ # supported by that API version, and the corresponding gem is available, the
3082
+ # appropriate versioned client will be returned.
3083
+ #
3084
+ # Raises an exception if the currently installed versioned client gem for the
3085
+ # given API version does not support the PreviewFeatures service.
3086
+ # You can determine whether the method will succeed by calling
3087
+ # {Google::Cloud::Compute.preview_features_available?}.
3088
+ #
3089
+ # ## About PreviewFeatures
3090
+ #
3091
+ # The PreviewFeatures API.
3092
+ #
3093
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
3094
+ # Defaults to `:v1`.
3095
+ # @return [::Object] A client object for the specified version.
3096
+ #
3097
+ def self.preview_features version: :v1, &block
3098
+ require "google/cloud/compute/#{version.to_s.downcase}"
3099
+
3100
+ package_name = Google::Cloud::Compute
3101
+ .constants
3102
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
3103
+ .first
3104
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:PreviewFeatures)
3105
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
3106
+ end
3107
+
3108
+ ##
3109
+ # Determines whether the PreviewFeatures service is supported by the current client.
3110
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.preview_features}.
3111
+ # If false, that method will raise an exception. This could happen if the given
3112
+ # API version does not exist or does not support the PreviewFeatures service,
3113
+ # or if the versioned client gem needs an update to support the PreviewFeatures service.
3114
+ #
3115
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
3116
+ # Defaults to `:v1`.
3117
+ # @return [boolean] Whether the service is available.
3118
+ #
3119
+ def self.preview_features_available? version: :v1
3120
+ require "google/cloud/compute/#{version.to_s.downcase}"
3121
+ package_name = Google::Cloud::Compute
3122
+ .constants
3123
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
3124
+ .first
3125
+ return false unless package_name
3126
+ service_module = Google::Cloud::Compute.const_get package_name
3127
+ return false unless service_module.const_defined? :PreviewFeatures
3128
+ service_module = service_module.const_get :PreviewFeatures
3129
+ return false unless service_module.const_defined? :Rest
3130
+ service_module = service_module.const_get :Rest
3131
+ service_module.const_defined? :Client
3132
+ rescue ::LoadError
3133
+ false
3134
+ end
3135
+
3010
3136
  ##
3011
3137
  # Create a new client object for Projects.
3012
3138
  #
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.11.2
4
+ version: 1.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC