Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(container): add 'list_usable_subnetworks' method; apply proto annotations (via synth) #9741

Merged
merged 1 commit into from
Nov 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion container/docs/_static/custom.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
div#python2-eol {
border-color: red;
border-width: medium;
}
}
1 change: 1 addition & 0 deletions container/docs/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "!layout.html" %}
{%- block content %}
{%- if theme_fixed_sidebar|lower == 'true' %}
Expand Down
475 changes: 297 additions & 178 deletions container/google/cloud/container_v1/gapic/cluster_manager_client.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
},
"methods": {
"ListClusters": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"GetCluster": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
Expand All @@ -33,140 +33,145 @@
"retry_params_name": "default",
},
"UpdateCluster": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"UpdateNodePool": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"SetNodePoolAutoscaling": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"SetLoggingService": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"SetMonitoringService": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"SetAddonsConfig": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"SetLocations": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"UpdateMaster": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"SetMasterAuth": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"DeleteCluster": {
"timeout_millis": 20000,
"retry_codes_name": "idempotent",
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"ListOperations": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"GetOperation": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"CancelOperation": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"GetServerConfig": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"ListNodePools": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"GetNodePool": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"CreateNodePool": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"DeleteNodePool": {
"timeout_millis": 20000,
"retry_codes_name": "idempotent",
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"RollbackNodePoolUpgrade": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"SetNodePoolManagement": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"SetLabels": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"SetLegacyAbac": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"StartIPRotation": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"CompleteIPRotation": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"SetNodePoolSize": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"SetNetworkPolicy": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"SetMaintenancePolicy": {
"timeout_millis": 20000,
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"ListUsableSubnetworks": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
},
}
}
Expand Down
84 changes: 84 additions & 0 deletions container/google/cloud/container_v1/gapic/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,23 @@ class Status(enum.IntEnum):
DEGRADED = 6


class DatabaseEncryption(object):
class State(enum.IntEnum):
"""
State of etcd encryption.
Attributes:
UNKNOWN (int): Should never be set
ENCRYPTED (int): Secrets in etcd are encrypted.
DECRYPTED (int): Secrets in etcd are stored in plain text (at etcd level) - this is
unrelated to GCE level full disk encryption.
"""

UNKNOWN = 0
ENCRYPTED = 1
DECRYPTED = 2


class NetworkPolicy(object):
class Provider(enum.IntEnum):
"""
Expand Down Expand Up @@ -93,6 +110,24 @@ class Status(enum.IntEnum):
ERROR = 6


class NodeTaint(object):
class Effect(enum.IntEnum):
"""
Possible values for Effect in taint.
Attributes:
EFFECT_UNSPECIFIED (int): Not set
NO_SCHEDULE (int): NoSchedule
PREFER_NO_SCHEDULE (int): PreferNoSchedule
NO_EXECUTE (int): NoExecute
"""

EFFECT_UNSPECIFIED = 0
NO_SCHEDULE = 1
PREFER_NO_SCHEDULE = 2
NO_EXECUTE = 3


class Operation(object):
class Status(enum.IntEnum):
"""
Expand Down Expand Up @@ -174,3 +209,52 @@ class Action(enum.IntEnum):
SET_PASSWORD = 1
GENERATE_PASSWORD = 2
SET_USERNAME = 3


class StatusCondition(object):
class Code(enum.IntEnum):
"""
Code for each condition
Attributes:
UNKNOWN (int): UNKNOWN indicates a generic condition.
GCE_STOCKOUT (int): GCE\_STOCKOUT indicates a Google Compute Engine stockout.
GKE_SERVICE_ACCOUNT_DELETED (int): GKE\_SERVICE\_ACCOUNT\_DELETED indicates that the user deleted their
robot service account.
GCE_QUOTA_EXCEEDED (int): Google Compute Engine quota was exceeded.
SET_BY_OPERATOR (int): Cluster state was manually changed by an SRE due to a system logic error.
CLOUD_KMS_KEY_ERROR (int): Unable to perform an encrypt operation against the CloudKMS key used for
etcd level encryption.
More codes TBA
"""

UNKNOWN = 0
GCE_STOCKOUT = 1
GKE_SERVICE_ACCOUNT_DELETED = 2
GCE_QUOTA_EXCEEDED = 3
SET_BY_OPERATOR = 4
CLOUD_KMS_KEY_ERROR = 7


class UsableSubnetworkSecondaryRange(object):
class Status(enum.IntEnum):
"""
Status shows the current usage of a secondary IP range.
Attributes:
UNKNOWN (int): UNKNOWN is the zero value of the Status enum. It's not a valid status.
UNUSED (int): UNUSED denotes that this range is unclaimed by any cluster.
IN_USE_SERVICE (int): IN\_USE\_SERVICE denotes that this range is claimed by a cluster for
services. It cannot be used for other clusters.
IN_USE_SHAREABLE_POD (int): IN\_USE\_SHAREABLE\_POD denotes this range was created by the network
admin and is currently claimed by a cluster for pods. It can only be
used by other clusters as a pod range.
IN_USE_MANAGED_POD (int): IN\_USE\_MANAGED\_POD denotes this range was created by GKE and is
claimed for pods. It cannot be used for other clusters.
"""

UNKNOWN = 0
UNUSED = 1
IN_USE_SERVICE = 2
IN_USE_SHAREABLE_POD = 3
IN_USE_MANAGED_POD = 4
Loading