google-cloud-container-v1 0.21.1 → 0.23.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: 8c831106745baaaeb16a9a20c206a6a6db0c8142f0ae3069dcdc6b3224c3d186
4
- data.tar.gz: 2c9911ccbc8521f69e87ab6bfbacfc348333f4f12f3d37addab1c2458c5944fa
3
+ metadata.gz: '08f51afd855c382e70bb38fc6c1b482153083f8500578f2f67116ff672573d6a'
4
+ data.tar.gz: 1c6f6fcab265eb710b4095ff28c5ea8e70b8725559177a4578533dc86c36e000
5
5
  SHA512:
6
- metadata.gz: a0a6ec2b065744f5b2bc32f4024ad32c45d9ee23d7892b7201510ac6fb8f0799411adb36a793c161ec18e063d0d334fe9280f951e69b2a224cb79e0e60b2ee94
7
- data.tar.gz: 1f8059f9741e5bee5a92afc932f6ff7db240340db183986fbe49385e7c732cbeffc1c5ea7c765dd8ca30657d1bd4f2aadda1e8408e6475c12582340c2f87c33b
6
+ metadata.gz: b92dbfc1490d18dee4f4188cccb1aff74ca3eb7b444bae9ac4e9d2334fe62393d5b864960f90f3bd97a32ce195ecc2039cf98912a73209f081ceae56db123555
7
+ data.tar.gz: 05af9eb7b58e64e43600bcbb0d13483d3f80239e8a91a9a0a245428cc2414877f35c157881694e96dbb21fa8a192bf9e74c419bddc1c0ac5e24c7f2d1dc2f305
@@ -210,7 +210,7 @@ module Google
210
210
  credentials = @config.credentials
211
211
  # Use self-signed JWT if the endpoint is unchanged from default,
212
212
  # but only if the default endpoint does not have a region prefix.
213
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
213
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
214
214
  !@config.endpoint.split(".").first.include?("-")
215
215
  credentials ||= Credentials.default scope: @config.scope,
216
216
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -3649,6 +3649,93 @@ module Google
3649
3649
  raise ::Google::Cloud::Error.from_error(e)
3650
3650
  end
3651
3651
 
3652
+ ##
3653
+ # Checks the cluster compatibility with Autopilot mode, and returns a list of
3654
+ # compatibility issues.
3655
+ #
3656
+ # @overload check_autopilot_compatibility(request, options = nil)
3657
+ # Pass arguments to `check_autopilot_compatibility` via a request object, either of type
3658
+ # {::Google::Cloud::Container::V1::CheckAutopilotCompatibilityRequest} or an equivalent Hash.
3659
+ #
3660
+ # @param request [::Google::Cloud::Container::V1::CheckAutopilotCompatibilityRequest, ::Hash]
3661
+ # A request object representing the call parameters. Required. To specify no
3662
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3663
+ # @param options [::Gapic::CallOptions, ::Hash]
3664
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3665
+ #
3666
+ # @overload check_autopilot_compatibility(name: nil)
3667
+ # Pass arguments to `check_autopilot_compatibility` via keyword arguments. Note that at
3668
+ # least one keyword argument is required. To specify no parameters, or to keep all
3669
+ # the default parameter values, pass an empty Hash as a request object (see above).
3670
+ #
3671
+ # @param name [::String]
3672
+ # The name (project, location, cluster) of the cluster to retrieve.
3673
+ # Specified in the format `projects/*/locations/*/clusters/*`.
3674
+ #
3675
+ # @yield [response, operation] Access the result along with the RPC operation
3676
+ # @yieldparam response [::Google::Cloud::Container::V1::CheckAutopilotCompatibilityResponse]
3677
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3678
+ #
3679
+ # @return [::Google::Cloud::Container::V1::CheckAutopilotCompatibilityResponse]
3680
+ #
3681
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3682
+ #
3683
+ # @example Basic example
3684
+ # require "google/cloud/container/v1"
3685
+ #
3686
+ # # Create a client object. The client can be reused for multiple calls.
3687
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
3688
+ #
3689
+ # # Create a request. To set request fields, pass in keyword arguments.
3690
+ # request = Google::Cloud::Container::V1::CheckAutopilotCompatibilityRequest.new
3691
+ #
3692
+ # # Call the check_autopilot_compatibility method.
3693
+ # result = client.check_autopilot_compatibility request
3694
+ #
3695
+ # # The returned object is of type Google::Cloud::Container::V1::CheckAutopilotCompatibilityResponse.
3696
+ # p result
3697
+ #
3698
+ def check_autopilot_compatibility request, options = nil
3699
+ raise ::ArgumentError, "request must be provided" if request.nil?
3700
+
3701
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::CheckAutopilotCompatibilityRequest
3702
+
3703
+ # Converts hash and nil to an options object
3704
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3705
+
3706
+ # Customize the options with defaults
3707
+ metadata = @config.rpcs.check_autopilot_compatibility.metadata.to_h
3708
+
3709
+ # Set x-goog-api-client and x-goog-user-project headers
3710
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3711
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3712
+ gapic_version: ::Google::Cloud::Container::V1::VERSION
3713
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3714
+
3715
+ header_params = {}
3716
+ if request.name
3717
+ header_params["name"] = request.name
3718
+ end
3719
+
3720
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3721
+ metadata[:"x-goog-request-params"] ||= request_params_header
3722
+
3723
+ options.apply_defaults timeout: @config.rpcs.check_autopilot_compatibility.timeout,
3724
+ metadata: metadata,
3725
+ retry_policy: @config.rpcs.check_autopilot_compatibility.retry_policy
3726
+
3727
+ options.apply_defaults timeout: @config.timeout,
3728
+ metadata: @config.metadata,
3729
+ retry_policy: @config.retry_policy
3730
+
3731
+ @cluster_manager_stub.call_rpc :check_autopilot_compatibility, request, options: options do |response, operation|
3732
+ yield response, operation if block_given?
3733
+ return response
3734
+ end
3735
+ rescue ::GRPC::BadStatus => e
3736
+ raise ::Google::Cloud::Error.from_error(e)
3737
+ end
3738
+
3652
3739
  ##
3653
3740
  # Configuration class for the ClusterManager API.
3654
3741
  #
@@ -3731,7 +3818,9 @@ module Google
3731
3818
  class Configuration
3732
3819
  extend ::Gapic::Config
3733
3820
 
3734
- config_attr :endpoint, "container.googleapis.com", ::String
3821
+ DEFAULT_ENDPOINT = "container.googleapis.com"
3822
+
3823
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
3735
3824
  config_attr :credentials, nil do |value|
3736
3825
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3737
3826
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -3949,6 +4038,11 @@ module Google
3949
4038
  # @return [::Gapic::Config::Method]
3950
4039
  #
3951
4040
  attr_reader :list_usable_subnetworks
4041
+ ##
4042
+ # RPC-specific configuration for `check_autopilot_compatibility`
4043
+ # @return [::Gapic::Config::Method]
4044
+ #
4045
+ attr_reader :check_autopilot_compatibility
3952
4046
 
3953
4047
  # @private
3954
4048
  def initialize parent_rpcs = nil
@@ -4018,6 +4112,8 @@ module Google
4018
4112
  @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config
4019
4113
  list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks
4020
4114
  @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config
4115
+ check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility
4116
+ @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config
4021
4117
 
4022
4118
  yield self if block_given?
4023
4119
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Container
23
23
  module V1
24
- VERSION = "0.21.1"
24
+ VERSION = "0.23.0"
25
25
  end
26
26
  end
27
27
  end