google-cloud-container-v1 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 +4 -4
- data/lib/google/cloud/container/v1/cluster_manager/client.rb +98 -2
- data/lib/google/cloud/container/v1/version.rb +1 -1
- data/lib/google/container/v1/cluster_service_pb.rb +37 -1193
- data/lib/google/container/v1/cluster_service_services_pb.rb +3 -0
- data/proto_docs/google/container/v1/cluster_service.rb +153 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8c4de1de52f5b54acb19940f6fc60b7abd6df91316a14d12395c01db5b823c2
|
4
|
+
data.tar.gz: aaf23e3607f46186c432abbfe2eda9943fe8a1a42df049a13b4c24222ec2f16e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 117b1c4a5425c8482895b8f45321a8d3fd6ae121cca67c154406720fe5924d44748c7039bd12c77937856a7d10a98d110e15327d76ccec265d5b03b514063150
|
7
|
+
data.tar.gz: 9c3e7b9fa92b367343c89a70ece7d3dd8ee81baffcd52ac1a48e7f41981da0a722332b37270b7d7426950014a80e5eb46f9ea8dd2f6804ce365c810a049a658e
|
@@ -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 ==
|
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
|
-
|
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
|