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
@@ -133,6 +133,9 @@ module Google
|
|
133
133
|
rpc :SetMaintenancePolicy, ::Google::Cloud::Container::V1::SetMaintenancePolicyRequest, ::Google::Cloud::Container::V1::Operation
|
134
134
|
# Lists subnetworks that are usable for creating clusters in a project.
|
135
135
|
rpc :ListUsableSubnetworks, ::Google::Cloud::Container::V1::ListUsableSubnetworksRequest, ::Google::Cloud::Container::V1::ListUsableSubnetworksResponse
|
136
|
+
# Checks the cluster compatibility with Autopilot mode, and returns a list of
|
137
|
+
# compatibility issues.
|
138
|
+
rpc :CheckAutopilotCompatibility, ::Google::Cloud::Container::V1::CheckAutopilotCompatibilityRequest, ::Google::Cloud::Container::V1::CheckAutopilotCompatibilityResponse
|
136
139
|
end
|
137
140
|
|
138
141
|
Stub = Service.rpc_stub_class
|
@@ -347,6 +347,9 @@ module Google
|
|
347
347
|
# @return [::Google::Cloud::Container::V1::EphemeralStorageLocalSsdConfig]
|
348
348
|
# Parameters for the node ephemeral storage using Local SSDs.
|
349
349
|
# If unspecified, ephemeral storage is backed by the boot disk.
|
350
|
+
# @!attribute [rw] sole_tenant_config
|
351
|
+
# @return [::Google::Cloud::Container::V1::SoleTenantConfig]
|
352
|
+
# Parameters for node pools to be backed by shared sole tenant node groups.
|
350
353
|
class NodeConfig
|
351
354
|
include ::Google::Protobuf::MessageExts
|
352
355
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -562,6 +565,46 @@ module Google
|
|
562
565
|
end
|
563
566
|
end
|
564
567
|
|
568
|
+
# SoleTenantConfig contains the NodeAffinities to specify what shared sole
|
569
|
+
# tenant node groups should back the node pool.
|
570
|
+
# @!attribute [rw] node_affinities
|
571
|
+
# @return [::Array<::Google::Cloud::Container::V1::SoleTenantConfig::NodeAffinity>]
|
572
|
+
# NodeAffinities used to match to a shared sole tenant node group.
|
573
|
+
class SoleTenantConfig
|
574
|
+
include ::Google::Protobuf::MessageExts
|
575
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
576
|
+
|
577
|
+
# Specifies the NodeAffinity key, values, and affinity operator according to
|
578
|
+
# [shared sole tenant node group
|
579
|
+
# affinities](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes#node_affinity_and_anti-affinity).
|
580
|
+
# @!attribute [rw] key
|
581
|
+
# @return [::String]
|
582
|
+
# Key for NodeAffinity.
|
583
|
+
# @!attribute [rw] operator
|
584
|
+
# @return [::Google::Cloud::Container::V1::SoleTenantConfig::NodeAffinity::Operator]
|
585
|
+
# Operator for NodeAffinity.
|
586
|
+
# @!attribute [rw] values
|
587
|
+
# @return [::Array<::String>]
|
588
|
+
# Values for NodeAffinity.
|
589
|
+
class NodeAffinity
|
590
|
+
include ::Google::Protobuf::MessageExts
|
591
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
592
|
+
|
593
|
+
# Operator allows user to specify affinity or anti-affinity for the
|
594
|
+
# given key values.
|
595
|
+
module Operator
|
596
|
+
# Invalid or unspecified affinity operator.
|
597
|
+
OPERATOR_UNSPECIFIED = 0
|
598
|
+
|
599
|
+
# Affinity operator.
|
600
|
+
IN = 1
|
601
|
+
|
602
|
+
# Anti-affinity operator.
|
603
|
+
NOT_IN = 2
|
604
|
+
end
|
605
|
+
end
|
606
|
+
end
|
607
|
+
|
565
608
|
# Kubernetes taint is composed of three fields: key, value, and effect. Effect
|
566
609
|
# can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
|
567
610
|
#
|
@@ -1516,6 +1559,9 @@ module Google
|
|
1516
1559
|
# @!attribute [rw] fleet
|
1517
1560
|
# @return [::Google::Cloud::Container::V1::Fleet]
|
1518
1561
|
# Fleet information for the cluster.
|
1562
|
+
# @!attribute [rw] enable_k8s_beta_apis
|
1563
|
+
# @return [::Google::Cloud::Container::V1::K8sBetaAPIConfig]
|
1564
|
+
# Beta APIs Config
|
1519
1565
|
class Cluster
|
1520
1566
|
include ::Google::Protobuf::MessageExts
|
1521
1567
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1559,6 +1605,15 @@ module Google
|
|
1559
1605
|
end
|
1560
1606
|
end
|
1561
1607
|
|
1608
|
+
# K8sBetaAPIConfig , configuration for beta APIs
|
1609
|
+
# @!attribute [rw] enabled_apis
|
1610
|
+
# @return [::Array<::String>]
|
1611
|
+
# Enabled k8s beta APIs.
|
1612
|
+
class K8sBetaAPIConfig
|
1613
|
+
include ::Google::Protobuf::MessageExts
|
1614
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1615
|
+
end
|
1616
|
+
|
1562
1617
|
# Node pool configs that apply to all auto-provisioned node pools
|
1563
1618
|
# in autopilot clusters and node auto-provisioning enabled clusters.
|
1564
1619
|
# @!attribute [rw] network_tags
|
@@ -1788,6 +1843,15 @@ module Google
|
|
1788
1843
|
# The additional pod ranges that are to be removed from the cluster.
|
1789
1844
|
# The pod ranges specified here must have been specified earlier in the
|
1790
1845
|
# 'additional_pod_ranges_config' argument.
|
1846
|
+
# @!attribute [rw] enable_k8s_beta_apis
|
1847
|
+
# @return [::Google::Cloud::Container::V1::K8sBetaAPIConfig]
|
1848
|
+
# Kubernetes open source beta apis enabled on the cluster. Only beta apis
|
1849
|
+
# @!attribute [rw] desired_enable_fqdn_network_policy
|
1850
|
+
# @return [::Boolean]
|
1851
|
+
# Enable/Disable FQDN Network Policy for the cluster.
|
1852
|
+
# @!attribute [rw] desired_k8s_beta_apis
|
1853
|
+
# @return [::Google::Cloud::Container::V1::K8sBetaAPIConfig]
|
1854
|
+
# Desired Beta APIs to be enabled for cluster.
|
1791
1855
|
class ClusterUpdate
|
1792
1856
|
include ::Google::Protobuf::MessageExts
|
1793
1857
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -2950,6 +3014,9 @@ module Google
|
|
2950
3014
|
# This checksum is computed by the server based on the value of node pool
|
2951
3015
|
# fields, and may be sent on update requests to ensure the client has an
|
2952
3016
|
# up-to-date value before proceeding.
|
3017
|
+
# @!attribute [rw] best_effort_provisioning
|
3018
|
+
# @return [::Google::Cloud::Container::V1::BestEffortProvisioning]
|
3019
|
+
# Enable best effort provisioning for nodes
|
2953
3020
|
class NodePool
|
2954
3021
|
include ::Google::Protobuf::MessageExts
|
2955
3022
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -3156,6 +3223,22 @@ module Google
|
|
3156
3223
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
3157
3224
|
end
|
3158
3225
|
|
3226
|
+
# Best effort provisioning.
|
3227
|
+
# @!attribute [rw] enabled
|
3228
|
+
# @return [::Boolean]
|
3229
|
+
# When this is enabled, cluster/node pool creations will ignore non-fatal
|
3230
|
+
# errors like stockout to best provision as many nodes as possible right now
|
3231
|
+
# and eventually bring up all target number of nodes
|
3232
|
+
# @!attribute [rw] min_provision_nodes
|
3233
|
+
# @return [::Integer]
|
3234
|
+
# Minimum number of nodes to be provisioned to be considered as succeeded,
|
3235
|
+
# and the rest of nodes will be provisioned gradually and eventually when
|
3236
|
+
# stockout issue has been resolved.
|
3237
|
+
class BestEffortProvisioning
|
3238
|
+
include ::Google::Protobuf::MessageExts
|
3239
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
3240
|
+
end
|
3241
|
+
|
3159
3242
|
# AutoUpgradeOptions defines the set of options for the user to control how
|
3160
3243
|
# the Auto Upgrades will proceed.
|
3161
3244
|
# @!attribute [rw] auto_upgrade_start_time
|
@@ -3955,6 +4038,9 @@ module Google
|
|
3955
4038
|
# @return [::Google::Cloud::Container::V1::GatewayAPIConfig]
|
3956
4039
|
# GatewayAPIConfig contains the desired config of Gateway API on this
|
3957
4040
|
# cluster.
|
4041
|
+
# @!attribute [rw] enable_fqdn_network_policy
|
4042
|
+
# @return [::Boolean]
|
4043
|
+
# Whether FQDN Network Policy is enabled on this cluster.
|
3958
4044
|
class NetworkConfig
|
3959
4045
|
include ::Google::Protobuf::MessageExts
|
3960
4046
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -4089,6 +4175,73 @@ module Google
|
|
4089
4175
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
4090
4176
|
end
|
4091
4177
|
|
4178
|
+
# CheckAutopilotCompatibilityRequest requests getting the blockers for the
|
4179
|
+
# given operation in the cluster.
|
4180
|
+
# @!attribute [rw] name
|
4181
|
+
# @return [::String]
|
4182
|
+
# The name (project, location, cluster) of the cluster to retrieve.
|
4183
|
+
# Specified in the format `projects/*/locations/*/clusters/*`.
|
4184
|
+
class CheckAutopilotCompatibilityRequest
|
4185
|
+
include ::Google::Protobuf::MessageExts
|
4186
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
4187
|
+
end
|
4188
|
+
|
4189
|
+
# AutopilotCompatibilityIssue contains information about a specific
|
4190
|
+
# compatibility issue with Autopilot mode.
|
4191
|
+
# @!attribute [rw] last_observation
|
4192
|
+
# @return [::Google::Protobuf::Timestamp]
|
4193
|
+
# The last time when this issue was observed.
|
4194
|
+
# @!attribute [rw] constraint_type
|
4195
|
+
# @return [::String]
|
4196
|
+
# The constraint type of the issue.
|
4197
|
+
# @!attribute [rw] incompatibility_type
|
4198
|
+
# @return [::Google::Cloud::Container::V1::AutopilotCompatibilityIssue::IssueType]
|
4199
|
+
# The incompatibility type of this issue.
|
4200
|
+
# @!attribute [rw] subjects
|
4201
|
+
# @return [::Array<::String>]
|
4202
|
+
# The name of the resources which are subject to this issue.
|
4203
|
+
# @!attribute [rw] documentation_url
|
4204
|
+
# @return [::String]
|
4205
|
+
# A URL to a public documnetation, which addresses resolving this issue.
|
4206
|
+
# @!attribute [rw] description
|
4207
|
+
# @return [::String]
|
4208
|
+
# The description of the issue.
|
4209
|
+
class AutopilotCompatibilityIssue
|
4210
|
+
include ::Google::Protobuf::MessageExts
|
4211
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
4212
|
+
|
4213
|
+
# The type of the reported issue.
|
4214
|
+
module IssueType
|
4215
|
+
# Default value, should not be used.
|
4216
|
+
UNSPECIFIED = 0
|
4217
|
+
|
4218
|
+
# Indicates that the issue is a known incompatibility between the
|
4219
|
+
# cluster and Autopilot mode.
|
4220
|
+
INCOMPATIBILITY = 1
|
4221
|
+
|
4222
|
+
# Indicates the issue is an incompatibility if customers take no further
|
4223
|
+
# action to resolve.
|
4224
|
+
ADDITIONAL_CONFIG_REQUIRED = 2
|
4225
|
+
|
4226
|
+
# Indicates the issue is not an incompatibility, but depending on the
|
4227
|
+
# workloads business logic, there is a potential that they won't work on
|
4228
|
+
# Autopilot.
|
4229
|
+
PASSED_WITH_OPTIONAL_CONFIG = 3
|
4230
|
+
end
|
4231
|
+
end
|
4232
|
+
|
4233
|
+
# CheckAutopilotCompatibilityResponse has a list of compatibility issues.
|
4234
|
+
# @!attribute [rw] issues
|
4235
|
+
# @return [::Array<::Google::Cloud::Container::V1::AutopilotCompatibilityIssue>]
|
4236
|
+
# The list of issues for the given operation.
|
4237
|
+
# @!attribute [rw] summary
|
4238
|
+
# @return [::String]
|
4239
|
+
# The summary of the autopilot compatibility response.
|
4240
|
+
class CheckAutopilotCompatibilityResponse
|
4241
|
+
include ::Google::Protobuf::MessageExts
|
4242
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
4243
|
+
end
|
4244
|
+
|
4092
4245
|
# ReleaseChannel indicates which release channel a cluster is
|
4093
4246
|
# subscribed to. Release channels are arranged in order of risk.
|
4094
4247
|
#
|
@@ -43,8 +43,12 @@ module Google
|
|
43
43
|
# if (any.is(Foo.class)) {
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
|
+
# // or ...
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
49
|
+
# }
|
46
50
|
#
|
47
|
-
#
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
48
52
|
#
|
49
53
|
# foo = Foo(...)
|
50
54
|
# any = Any()
|
@@ -54,7 +58,7 @@ module Google
|
|
54
58
|
# any.Unpack(foo)
|
55
59
|
# ...
|
56
60
|
#
|
57
|
-
#
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
58
62
|
#
|
59
63
|
# foo := &pb.Foo{...}
|
60
64
|
# any, err := anypb.New(foo)
|
@@ -73,9 +77,8 @@ module Google
|
|
73
77
|
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
74
78
|
# name "y.z".
|
75
79
|
#
|
76
|
-
#
|
77
80
|
# JSON
|
78
|
-
#
|
81
|
+
# ====
|
79
82
|
# The JSON representation of an `Any` value uses the regular
|
80
83
|
# representation of the deserialized, embedded message, with an
|
81
84
|
# additional field `@type` which contains the type URL. Example:
|
@@ -69,7 +69,6 @@ module Google
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
|
-
#
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
73
|
#
|
75
74
|
# Instant now = Instant.now();
|
@@ -78,7 +77,6 @@ module Google
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
78
|
# .setNanos(now.getNano()).build();
|
80
79
|
#
|
81
|
-
#
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
83
81
|
#
|
84
82
|
# timestamp = Timestamp()
|
@@ -108,7 +106,7 @@ module Google
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
111
|
-
# http://
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
113
111
|
# @!attribute [rw] seconds
|
114
112
|
# @return [::Integer]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-container-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.19.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.19.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|