Skip to content

Commit 3f8ab82

Browse files
feat: [google-cloud-memorystore] add Instance.Mode.CLUSTER_DISABLED value, and deprecate STANDALONE (#13508)
BEGIN_COMMIT_OVERRIDE feat: add Instance.Mode.CLUSTER_DISABLED value, and deprecate STANDALONE docs: A comment for enum value `STANDALONE` in enum `Mode` is changed END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. docs: A comment for enum value `STANDALONE` in enum `Mode` is changed PiperOrigin-RevId: 725134583 Source-Link: googleapis/googleapis@f6c7117 Source-Link: googleapis/googleapis-gen@7306b34 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1lbW9yeXN0b3JlLy5Pd2xCb3QueWFtbCIsImgiOiI3MzA2YjM0MzhiOTc3NzQ4N2VjNGE1MzhjMTkxNTVkNTFiY2RjNWMyIn0= BEGIN_NESTED_COMMIT feat: [google-cloud-memorystore] add Instance.Mode.CLUSTER_DISABLED value, and deprecate STANDALONE docs: A comment for enum value `STANDALONE` in enum `Mode` is changed PiperOrigin-RevId: 725131190 Source-Link: googleapis/googleapis@77857c7 Source-Link: googleapis/googleapis-gen@0133d5f Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1lbW9yeXN0b3JlLy5Pd2xCb3QueWFtbCIsImgiOiIwMTMzZDVmN2I0NWZmYjAzNjdiMzYxODk0ZWJlMTA4NDdiODI0OTRiIn0= END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 3e64234 commit 3f8ab82

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/google-cloud-memorystore/google/cloud/memorystore_v1/types/memorystore.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,16 @@ class Mode(proto.Enum):
244244
MODE_UNSPECIFIED (0):
245245
Mode is not specified.
246246
STANDALONE (1):
247-
Instance is in standalone mode.
247+
Deprecated: Use CLUSTER_DISABLED instead.
248248
CLUSTER (2):
249249
Instance is in cluster mode.
250+
CLUSTER_DISABLED (4):
251+
Cluster mode is disabled for the instance.
250252
"""
251253
MODE_UNSPECIFIED = 0
252254
STANDALONE = 1
253255
CLUSTER = 2
256+
CLUSTER_DISABLED = 4
254257

255258
class StateInfo(proto.Message):
256259
r"""Additional information about the state of the instance.

packages/google-cloud-memorystore/google/cloud/memorystore_v1beta/types/memorystore.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,16 @@ class Mode(proto.Enum):
244244
MODE_UNSPECIFIED (0):
245245
Mode is not specified.
246246
STANDALONE (1):
247-
Instance is in standalone mode.
247+
Deprecated: Use CLUSTER_DISABLED instead.
248248
CLUSTER (2):
249249
Instance is in cluster mode.
250+
CLUSTER_DISABLED (4):
251+
Cluster mode is disabled for the instance.
250252
"""
251253
MODE_UNSPECIFIED = 0
252254
STANDALONE = 1
253255
CLUSTER = 2
256+
CLUSTER_DISABLED = 4
254257

255258
class StateInfo(proto.Message):
256259
r"""Additional information about the state of the instance.

0 commit comments

Comments
 (0)