google-cloud-container-v1beta1 0.21.1 → 0.22.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: 7350894d4e4b23edecebc121358b5e77d79af1d6f3ee1c847d6697b055f807ee
4
- data.tar.gz: 4b619db0cf139aba60f5c57a059e13d81de3f8e8b01f3888b3776ebfdd48b108
3
+ metadata.gz: 244e34de28689c040b71aa3f550012769bc1e7daa8acd723d52326f5a82f5f73
4
+ data.tar.gz: d0dae60f0c0cf3912d58d1405c98ce077e60c0ed5b65b441c86fd4f2417a177c
5
5
  SHA512:
6
- metadata.gz: 3f7e87557ad6463010ad99b360f882cc90eb6997fc1e501fa3d323df3c08b969f827037cfc89982f98bc7f1ec7e64160d7b61ac4f1c1433ce7908aec1154c007
7
- data.tar.gz: c448b3c5dca6287cf1f3774b90afa440e1ba9e524f2324dc69a43a0724e106e01d02dd154c835e54653dd546ce76141f853f2f2464c959cd24178d26df82ed34
6
+ metadata.gz: 60d2edb16f9c44c45173c4d4b0480c63e47f94de10f298d82fccc99ddffee4e2fc47ce067f69afdf0694dccfb7668714f2269ae0a6520e300eac55336548ad35
7
+ data.tar.gz: '04589860bd7f54c6c7076bb799eb5f0b9b2168f86677be124a4b30da089de5dc0978af3c2882da229c7e6e16a26f633143ff402d8667f0bdcb6112ebe1772645'
@@ -220,7 +220,7 @@ module Google
220
220
  credentials = @config.credentials
221
221
  # Use self-signed JWT if the endpoint is unchanged from default,
222
222
  # but only if the default endpoint does not have a region prefix.
223
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
223
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
224
224
  !@config.endpoint.split(".").first.include?("-")
225
225
  credentials ||= Credentials.default scope: @config.scope,
226
226
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -3659,6 +3659,93 @@ module Google
3659
3659
  raise ::Google::Cloud::Error.from_error(e)
3660
3660
  end
3661
3661
 
3662
+ ##
3663
+ # Checks the cluster compatibility with Autopilot mode, and returns a list of
3664
+ # compatibility issues.
3665
+ #
3666
+ # @overload check_autopilot_compatibility(request, options = nil)
3667
+ # Pass arguments to `check_autopilot_compatibility` via a request object, either of type
3668
+ # {::Google::Cloud::Container::V1beta1::CheckAutopilotCompatibilityRequest} or an equivalent Hash.
3669
+ #
3670
+ # @param request [::Google::Cloud::Container::V1beta1::CheckAutopilotCompatibilityRequest, ::Hash]
3671
+ # A request object representing the call parameters. Required. To specify no
3672
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3673
+ # @param options [::Gapic::CallOptions, ::Hash]
3674
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3675
+ #
3676
+ # @overload check_autopilot_compatibility(name: nil)
3677
+ # Pass arguments to `check_autopilot_compatibility` via keyword arguments. Note that at
3678
+ # least one keyword argument is required. To specify no parameters, or to keep all
3679
+ # the default parameter values, pass an empty Hash as a request object (see above).
3680
+ #
3681
+ # @param name [::String]
3682
+ # The name (project, location, cluster) of the cluster to retrieve.
3683
+ # Specified in the format `projects/*/locations/*/clusters/*`.
3684
+ #
3685
+ # @yield [response, operation] Access the result along with the RPC operation
3686
+ # @yieldparam response [::Google::Cloud::Container::V1beta1::CheckAutopilotCompatibilityResponse]
3687
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3688
+ #
3689
+ # @return [::Google::Cloud::Container::V1beta1::CheckAutopilotCompatibilityResponse]
3690
+ #
3691
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3692
+ #
3693
+ # @example Basic example
3694
+ # require "google/cloud/container/v1beta1"
3695
+ #
3696
+ # # Create a client object. The client can be reused for multiple calls.
3697
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
3698
+ #
3699
+ # # Create a request. To set request fields, pass in keyword arguments.
3700
+ # request = Google::Cloud::Container::V1beta1::CheckAutopilotCompatibilityRequest.new
3701
+ #
3702
+ # # Call the check_autopilot_compatibility method.
3703
+ # result = client.check_autopilot_compatibility request
3704
+ #
3705
+ # # The returned object is of type Google::Cloud::Container::V1beta1::CheckAutopilotCompatibilityResponse.
3706
+ # p result
3707
+ #
3708
+ def check_autopilot_compatibility request, options = nil
3709
+ raise ::ArgumentError, "request must be provided" if request.nil?
3710
+
3711
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1beta1::CheckAutopilotCompatibilityRequest
3712
+
3713
+ # Converts hash and nil to an options object
3714
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3715
+
3716
+ # Customize the options with defaults
3717
+ metadata = @config.rpcs.check_autopilot_compatibility.metadata.to_h
3718
+
3719
+ # Set x-goog-api-client and x-goog-user-project headers
3720
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3721
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3722
+ gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
3723
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3724
+
3725
+ header_params = {}
3726
+ if request.name
3727
+ header_params["name"] = request.name
3728
+ end
3729
+
3730
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3731
+ metadata[:"x-goog-request-params"] ||= request_params_header
3732
+
3733
+ options.apply_defaults timeout: @config.rpcs.check_autopilot_compatibility.timeout,
3734
+ metadata: metadata,
3735
+ retry_policy: @config.rpcs.check_autopilot_compatibility.retry_policy
3736
+
3737
+ options.apply_defaults timeout: @config.timeout,
3738
+ metadata: @config.metadata,
3739
+ retry_policy: @config.retry_policy
3740
+
3741
+ @cluster_manager_stub.call_rpc :check_autopilot_compatibility, request, options: options do |response, operation|
3742
+ yield response, operation if block_given?
3743
+ return response
3744
+ end
3745
+ rescue ::GRPC::BadStatus => e
3746
+ raise ::Google::Cloud::Error.from_error(e)
3747
+ end
3748
+
3662
3749
  ##
3663
3750
  # Fetches locations that offer Google Kubernetes Engine.
3664
3751
  #
@@ -3827,7 +3914,9 @@ module Google
3827
3914
  class Configuration
3828
3915
  extend ::Gapic::Config
3829
3916
 
3830
- config_attr :endpoint, "container.googleapis.com", ::String
3917
+ DEFAULT_ENDPOINT = "container.googleapis.com"
3918
+
3919
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
3831
3920
  config_attr :credentials, nil do |value|
3832
3921
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3833
3922
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -4046,6 +4135,11 @@ module Google
4046
4135
  #
4047
4136
  attr_reader :list_usable_subnetworks
4048
4137
  ##
4138
+ # RPC-specific configuration for `check_autopilot_compatibility`
4139
+ # @return [::Gapic::Config::Method]
4140
+ #
4141
+ attr_reader :check_autopilot_compatibility
4142
+ ##
4049
4143
  # RPC-specific configuration for `list_locations`
4050
4144
  # @return [::Gapic::Config::Method]
4051
4145
  #
@@ -4119,6 +4213,8 @@ module Google
4119
4213
  @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config
4120
4214
  list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks
4121
4215
  @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config
4216
+ check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility
4217
+ @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config
4122
4218
  list_locations_config = parent_rpcs.list_locations if parent_rpcs.respond_to? :list_locations
4123
4219
  @list_locations = ::Gapic::Config::Method.new list_locations_config
4124
4220
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Container
23
23
  module V1beta1
24
- VERSION = "0.21.1"
24
+ VERSION = "0.22.0"
25
25
  end
26
26
  end
27
27
  end