google-cloud-container-v1beta1 0.21.1 → 0.23.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 +4 -4
- data/lib/google/cloud/container/v1beta1/cluster_manager/client.rb +98 -2
- data/lib/google/cloud/container/v1beta1/version.rb +1 -1
- data/lib/google/container/v1beta1/cluster_service_pb.rb +47 -1325
- data/lib/google/container/v1beta1/cluster_service_services_pb.rb +3 -0
- data/proto_docs/google/container/v1beta1/cluster_service.rb +303 -1
- 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: 4f8fba5af1667740dac691d12844e63da31e161490b77c222fe4146b74230a94
|
4
|
+
data.tar.gz: 9ce583aff407e43bfff82837ce5ac654eba195dd210f2e6a42de3057aa215a5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1017bc67b24e6b4a1f2877ad5556966145dfe4a188beadf34bba9ea820f47ac0fca87edfda164065645ce877d2d5cddeffd01d1d28f396075e3d5ee3a944054a
|
7
|
+
data.tar.gz: f487f55530e029e40dc7dc8092f7a5298f022bcfb79dc9242faa9c60607d6a6e49fa07762ccda60ec03b51074336a46479699be4ee02e0496bf5d76a1e3391a9
|
@@ -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 ==
|
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
|
-
|
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
|
|