feat: Add new gcloud commands, API clients, and third-party libraries across various services.

This commit is contained in:
2026-01-01 20:26:35 +01:00
parent 5e23cbece0
commit a19e592eb7
25221 changed files with 8324611 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""Manage Memorystore resources."""
from googlecloudsdk.calliope import base
from surface.memorystore import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
class MemorystoreAlpha(extensions.MemorystoreAlpha):
"""Manage Memorystore resources."""
@base.ReleaseTracks(base.ReleaseTrack.BETA)
@base.Autogenerated
class MemorystoreBeta(extensions.MemorystoreBeta):
"""Manage Memorystore resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class MemorystoreGa(extensions.MemorystoreGa):
"""Manage Memorystore resources."""

View File

@@ -0,0 +1,34 @@
# -*- coding: utf-8 -*- #
# Copyright 2024 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""File to add optional custom code to extend __init__.py."""
from googlecloudsdk.calliope import base
class MemorystoreAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
category = base.UNCATEGORIZED_CATEGORY
class MemorystoreBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
category = base.UNCATEGORIZED_CATEGORY
class MemorystoreGa(base.Group):
"""Optional no-auto-generated code for GA."""
category = base.UNCATEGORIZED_CATEGORY

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""Manage Backup Collection resources."""
from googlecloudsdk.calliope import base
from surface.memorystore.backup_collections import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
class BackupCollectionsAlpha(extensions.BackupCollectionsAlpha):
"""Manage Backup Collection resources."""
@base.ReleaseTracks(base.ReleaseTrack.BETA)
@base.Autogenerated
class BackupCollectionsBeta(extensions.BackupCollectionsBeta):
"""Manage Backup Collection resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class BackupCollectionsGa(extensions.BackupCollectionsGa):
"""Manage Backup Collection resources."""

View File

@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""File to add optional custom code to extend __init__.py."""
from googlecloudsdk.calliope import base
class BackupCollectionsAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
class BackupCollectionsBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
class BackupCollectionsGa(base.Group):
"""Optional no-auto-generated code for GA."""

View File

@@ -0,0 +1,41 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Describe backupCollections
description: Describe a backupCollection
examples: |-
To describe the backupCollection, run:
$ {command}
arguments:
params:
- help_text: |-
Instance backupCollection resource name using the form:
`projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
where `location_id` refers to a Google Cloud region.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1alpha_resources:projects_locations_backup_collections
required: true
request:
api_version: v1alpha
collection:
- memorystore.projects.locations.backupCollections

View File

@@ -0,0 +1,41 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Describe backupCollections
description: Describe a backupCollection
examples: |-
To describe the backupCollection, run:
$ {command}
arguments:
params:
- help_text: |-
Instance backupCollection resource name using the form:
`projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
where `location_id` refers to a Google Cloud region.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1beta_resources:projects_locations_backup_collections
required: true
request:
api_version: v1beta
collection:
- memorystore.projects.locations.backupCollections

View File

@@ -0,0 +1,41 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Describe backupCollections
description: Describe a backupCollection
examples: |-
To describe the backupCollection, run:
$ {command}
arguments:
params:
- help_text: |-
Instance backupCollection resource name using the form:
`projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
where `location_id` refers to a Google Cloud region.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1_resources:projects_locations_backup_collections
required: true
request:
api_version: v1
collection:
- memorystore.projects.locations.backupCollections

View File

@@ -0,0 +1,43 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: List backupCollections
description: List backupCollections
examples: |-
To list all backupCollections, run:
$ {command}
arguments:
params:
- help_text: |-
The resource name of the backupCollection location using the form:
`projects/{project_id}/locations/{location_id}`
where `location_id` refers to a Google Cloud region.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1alpha_resources:projects_locations
required: true
request:
api_version: v1alpha
collection:
- memorystore.projects.locations.backupCollections
response:
id_field: name

View File

@@ -0,0 +1,43 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: List backupCollections
description: List backupCollections
examples: |-
To list all backupCollections, run:
$ {command}
arguments:
params:
- help_text: |-
The resource name of the backupCollection location using the form:
`projects/{project_id}/locations/{location_id}`
where `location_id` refers to a Google Cloud region.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1beta_resources:projects_locations
required: true
request:
api_version: v1beta
collection:
- memorystore.projects.locations.backupCollections
response:
id_field: name

View File

@@ -0,0 +1,43 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: List backupCollections
description: List backupCollections
examples: |-
To list all backupCollections, run:
$ {command}
arguments:
params:
- help_text: |-
The resource name of the backupCollection location using the form:
`projects/{project_id}/locations/{location_id}`
where `location_id` refers to a Google Cloud region.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- memorystore.projects.locations.backupCollections
response:
id_field: name

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""Manage Backup resources."""
from googlecloudsdk.calliope import base
from surface.memorystore.backup_collections.backups import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
class BackupsAlpha(extensions.BackupsAlpha):
"""Manage Backup resources."""
@base.ReleaseTracks(base.ReleaseTrack.BETA)
@base.Autogenerated
class BackupsBeta(extensions.BackupsBeta):
"""Manage Backup resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class BackupsGa(extensions.BackupsGa):
"""Manage Backup resources."""

View File

@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""File to add optional custom code to extend __init__.py."""
from googlecloudsdk.calliope import base
class BackupsAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
class BackupsBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
class BackupsGa(base.Group):
"""Optional no-auto-generated code for GA."""

View File

@@ -0,0 +1,49 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Delete backups
description: Delete a backup
examples: |-
To delete the backup, run:
$ {command}
arguments:
params:
- help_text: |-
Instance backup resource name using the form:
`projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1alpha_resources:projects_locations_backup_collections_backups
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
Idempotent request UUID.
request:
api_version: v1alpha
collection:
- memorystore.projects.locations.backupCollections.backups
async:
collection:
- memorystore.projects.locations.operations

View File

@@ -0,0 +1,49 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Delete backups
description: Delete a backup
examples: |-
To delete the backup, run:
$ {command}
arguments:
params:
- help_text: |-
Instance backup resource name using the form:
`projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1beta_resources:projects_locations_backup_collections_backups
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
Idempotent request UUID.
request:
api_version: v1beta
collection:
- memorystore.projects.locations.backupCollections.backups
async:
collection:
- memorystore.projects.locations.operations

View File

@@ -0,0 +1,49 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Delete backups
description: Delete a backup
examples: |-
To delete the backup, run:
$ {command}
arguments:
params:
- help_text: |-
Instance backup resource name using the form:
`projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1_resources:projects_locations_backup_collections_backups
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
Idempotent request UUID.
request:
api_version: v1
collection:
- memorystore.projects.locations.backupCollections.backups
async:
collection:
- memorystore.projects.locations.operations

View File

@@ -0,0 +1,40 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Describe backups
description: Describe a backup
examples: |-
To describe the backup, run:
$ {command}
arguments:
params:
- help_text: |-
Instance backup resource name using the form:
`projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1alpha_resources:projects_locations_backup_collections_backups
required: true
request:
api_version: v1alpha
collection:
- memorystore.projects.locations.backupCollections.backups

View File

@@ -0,0 +1,40 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Describe backups
description: Describe a backup
examples: |-
To describe the backup, run:
$ {command}
arguments:
params:
- help_text: |-
Instance backup resource name using the form:
`projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1beta_resources:projects_locations_backup_collections_backups
required: true
request:
api_version: v1beta
collection:
- memorystore.projects.locations.backupCollections.backups

View File

@@ -0,0 +1,40 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Describe backups
description: Describe a backup
examples: |-
To describe the backup, run:
$ {command}
arguments:
params:
- help_text: |-
Instance backup resource name using the form:
`projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1_resources:projects_locations_backup_collections_backups
required: true
request:
api_version: v1
collection:
- memorystore.projects.locations.backupCollections.backups

View File

@@ -0,0 +1,51 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: export backups
description: export backups
examples: |-
To export all backups, run:
$ {command}
arguments:
params:
- arg_name: gcs-bucket
api_field: exportBackupRequest.gcsBucket
required: false
repeated: false
help_text: |-
Google Cloud Storage bucket, like "my-bucket".
- help_text: |-
Instance backup resource name using the form:
`projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1alpha_resources:projects_locations_backup_collections_backups
required: true
request:
api_version: v1alpha
collection:
- memorystore.projects.locations.backupCollections.backups
method: export
async:
collection:
- memorystore.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,51 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: export backups
description: export backups
examples: |-
To export all backups, run:
$ {command}
arguments:
params:
- arg_name: gcs-bucket
api_field: exportBackupRequest.gcsBucket
required: false
repeated: false
help_text: |-
Google Cloud Storage bucket, like "my-bucket".
- help_text: |-
Instance backup resource name using the form:
`projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1beta_resources:projects_locations_backup_collections_backups
required: true
request:
api_version: v1beta
collection:
- memorystore.projects.locations.backupCollections.backups
method: export
async:
collection:
- memorystore.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,51 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: export backups
description: export backups
examples: |-
To export all backups, run:
$ {command}
arguments:
params:
- arg_name: gcs-bucket
api_field: exportBackupRequest.gcsBucket
required: false
repeated: false
help_text: |-
Google Cloud Storage bucket, like "my-bucket".
- help_text: |-
Instance backup resource name using the form:
`projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1_resources:projects_locations_backup_collections_backups
required: true
request:
api_version: v1
collection:
- memorystore.projects.locations.backupCollections.backups
method: export
async:
collection:
- memorystore.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: List backups
description: List backups
examples: |-
To list all backups, run:
$ {command}
arguments:
params:
- help_text: |-
The resource name of the backupCollection using the form:
`projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1alpha_resources:projects_locations_backup_collections
required: true
request:
api_version: v1alpha
collection:
- memorystore.projects.locations.backupCollections.backups
response:
id_field: name

View File

@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: List backups
description: List backups
examples: |-
To list all backups, run:
$ {command}
arguments:
params:
- help_text: |-
The resource name of the backupCollection using the form:
`projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1beta_resources:projects_locations_backup_collections
required: true
request:
api_version: v1beta
collection:
- memorystore.projects.locations.backupCollections.backups
response:
id_field: name

View File

@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: List backups
description: List backups
examples: |-
To list all backups, run:
$ {command}
arguments:
params:
- help_text: |-
The resource name of the backupCollection using the form:
`projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1_resources:projects_locations_backup_collections
required: true
request:
api_version: v1
collection:
- memorystore.projects.locations.backupCollections.backups
response:
id_field: name

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""Manage Instance resources."""
from googlecloudsdk.calliope import base
from surface.memorystore.instances import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
class InstancesAlpha(extensions.InstancesAlpha):
"""Manage Instance resources."""
@base.ReleaseTracks(base.ReleaseTrack.BETA)
@base.Autogenerated
class InstancesBeta(extensions.InstancesBeta):
"""Manage Instance resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class InstancesGa(extensions.InstancesGa):
"""Manage Instance resources."""

View File

@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*- #
# Copyright 2024 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
"""File to add optional custom code to extend __init__.py."""
from googlecloudsdk.calliope import base
class InstancesAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
class InstancesBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
class InstancesGa(base.Group):
"""Optional no-auto-generated code for GA."""

View File

@@ -0,0 +1,62 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: backup instances
description: backup instances
examples: |-
To backup all instances, run:
$ {command}
arguments:
params:
- help_text: |-
Instance resource name using the form:
`projects/{project_id}/locations/{location_id}/instances/{instance_id}`
where `location_id` refers to a Google Cloud region.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1alpha_resources:projects_locations_instances
required: true
- arg_name: ttl
api_field: backupInstanceRequest.ttl
required: false
repeated: false
type: googlecloudsdk.core.util.times:ParseDuration
processor: googlecloudsdk.core.util.times:FormatDurationForJson
help_text: |-
TTL for the backup to expire. Value range is 1 day to 100 years. If not
specified, the default value is 100 years.
- arg_name: backup-id
api_field: backupInstanceRequest.backupId
required: false
repeated: false
help_text: |-
The id of the backup to be created. If not specified, the
default value ([YYYYMMDDHHMMSS]_[Shortened Instance UID] is used.
request:
api_version: v1alpha
collection:
- memorystore.projects.locations.instances
method: backup
async:
collection:
- memorystore.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,62 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: backup instances
description: backup instances
examples: |-
To backup all instances, run:
$ {command}
arguments:
params:
- help_text: |-
Instance resource name using the form:
`projects/{project_id}/locations/{location_id}/instances/{instance_id}`
where `location_id` refers to a Google Cloud region.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1beta_resources:projects_locations_instances
required: true
- arg_name: ttl
api_field: backupInstanceRequest.ttl
required: false
repeated: false
type: googlecloudsdk.core.util.times:ParseDuration
processor: googlecloudsdk.core.util.times:FormatDurationForJson
help_text: |-
TTL for the backup to expire. Value range is 1 day to 100 years. If not
specified, the default value is 100 years.
- arg_name: backup-id
api_field: backupInstanceRequest.backupId
required: false
repeated: false
help_text: |-
The id of the backup to be created. If not specified, the
default value ([YYYYMMDDHHMMSS]_[Shortened Instance UID] is used.
request:
api_version: v1beta
collection:
- memorystore.projects.locations.instances
method: backup
async:
collection:
- memorystore.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,62 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: backup instances
description: backup instances
examples: |-
To backup all instances, run:
$ {command}
arguments:
params:
- help_text: |-
Instance resource name using the form:
`projects/{project_id}/locations/{location_id}/instances/{instance_id}`
where `location_id` refers to a Google Cloud region.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1_resources:projects_locations_instances
required: true
- arg_name: ttl
api_field: backupInstanceRequest.ttl
required: false
repeated: false
type: googlecloudsdk.core.util.times:ParseDuration
processor: googlecloudsdk.core.util.times:FormatDurationForJson
help_text: |-
TTL for the backup to expire. Value range is 1 day to 100 years. If not
specified, the default value is 100 years.
- arg_name: backup-id
api_field: backupInstanceRequest.backupId
required: false
repeated: false
help_text: |-
The id of the backup to be created. If not specified, the
default value ([YYYYMMDDHHMMSS]_[Shortened Instance UID] is used.
request:
api_version: v1
collection:
- memorystore.projects.locations.instances
method: backup
async:
collection:
- memorystore.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,658 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Create a Memorystore instance.
description: |
Create a Memorystore instance.
A service connection policy for service class `gcp-memorystore` must already exist for the
location and network. Refer to
[creation prerequisites](https://cloud.google.com/memorystore/docs/valkey/networking#prerequisites_required_before_creating_an_instance)
for more details.
examples: |-
To create a three shard Memorystore instance `my-instance` in project `my-project` and
location `us-central1`, run:
$ {command} my-instance --project=my-project --location=us-central1 --shard-count=3
--psc-auto-connections="network=NETWORK,projectId=PROJECT_ID"
To create a three shard Memorystore instance `my-instance` in project `my-project`,
location `us-central1`, with one replica per shard, and TLS enabled, run:
$ {command} my-instance --project=my-project --location=us-central1 --shard-count=3
--psc-auto-connections="network=NETWORK,projectId=PROJECT_ID"
--transit-encryption-mode=server-authentication --replica-count=1
arguments:
params:
- group:
mutex: true
help_text: |-
Arguments for the import sources.
params:
- group:
api_field: instance.gcsSource
required: false
help_text: |-
Backups that stored in Cloud Storage buckets.
The Cloud Storage buckets need to be the same region as the instances.
params:
- arg_name: gcs-source-uris
api_field: instance.gcsSource.uris
required: false
repeated: true
help_text: |-
Example: gs://bucket1/object1, gs://bucket2/folder2/object2
- group:
api_field: instance.managedBackupSource
required: false
help_text: |-
Backups that generated and managed by memorystore.
params:
- arg_name: managed-backup-source
api_field: instance.managedBackupSource.backup
required: false
repeated: false
help_text: |-
Example:
//memorystore.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
A shorter version (without the prefix) of the backup name is also
supported, like
projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
In this case, it assumes the backup is under memorystore.googleapis.com.
- group:
mutex: true
help_text: |-
Arguments for the replica count.
params:
- arg_name: replica-count
api_field: instance.replicaCount
required: false
repeated: false
type: int
help_text: |-
Number of replica nodes per shard. If omitted the default is 0 replicas.
- group:
mutex: true
help_text: |-
Arguments for the deletion protection enabled.
params:
- arg_name: deletion-protection-enabled
api_field: instance.deletionProtectionEnabled
action: store_true
required: false
type: bool
help_text: |-
If set to true deletion of the instance will fail.
default: null
- group:
mutex: true
help_text: |-
Arguments for the simulate maintenance event.
params:
- arg_name: simulate-maintenance-event
api_field: instance.simulateMaintenanceEvent
action: store_true
required: false
type: bool
help_text: |-
Simulate a maintenance event.
default: null
- group:
mutex: true
help_text: |-
Arguments for the ondemand maintenance.
params:
- arg_name: ondemand-maintenance
api_field: instance.ondemandMaintenance
action: store_true
required: false
type: bool
help_text: |-
Ondemand maintenance for the instance.
default: null
- group:
mutex: true
help_text: |-
Arguments for the async instance endpoints deletion enabled.
params:
- arg_name: async-instance-endpoints-deletion-enabled
api_field: instance.asyncInstanceEndpointsDeletionEnabled
action: store_true
required: false
type: bool
help_text: |-
If true, instance endpoints that are created and registered by customers
can be deleted asynchronously. That is, such an instance endpoint can be
de-registered before the forwarding rules in the instance endpoint are
deleted.
default: null
- group:
mutex: true
help_text: |-
Arguments for the kms key.
params:
- arg_name: kms-key
help_text: |-
The KMS key used to encrypt the at-rest data of the cluster.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1alpha_resources:projects_locations_key_rings_crypto_keys
resource_method_params:
instance.kmsKey: '{__relative_name__}'
required: false
- help_text: |-
Identifier. Unique name of the instance.
Format: projects/{project}/locations/{location}/instances/{instance}
is_positional: true
is_primary_resource: true
request_id_field: instanceId
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1alpha_resources:projects_locations_instances
required: true
- arg_name: labels
api_field: instance.labels
required: false
repeated: true
help_text: |-
Labels to represent user-provided metadata.
spec:
- api_field: key
- api_field: value
- arg_name: authorization-mode
api_field: instance.authorizationMode
required: false
help_text: |-
Authorization mode of the instance.
choices:
- arg_value: auth-disabled
enum_value: AUTH_DISABLED
help_text: |-
Authorization disabled.
- arg_value: iam-auth
enum_value: IAM_AUTH
help_text: |-
IAM basic authorization.
- arg_name: transit-encryption-mode
api_field: instance.transitEncryptionMode
required: false
help_text: |-
In-transit encryption mode of the instance.
choices:
- arg_value: transit-encryption-disabled
enum_value: TRANSIT_ENCRYPTION_DISABLED
help_text: |-
In-transit encryption is disabled.
- arg_value: server-authentication
enum_value: SERVER_AUTHENTICATION
help_text: |-
Server-managed encryption is used for in-transit encryption.
- arg_name: shard-count
api_field: instance.shardCount
required: false
repeated: false
type: int
help_text: |-
Number of shards for the instance.
- arg_name: node-type
api_field: instance.nodeType
required: false
help_text: |-
Machine type for individual nodes of the instance.
choices:
- arg_value: shared-core-nano
enum_value: SHARED_CORE_NANO
help_text: |-
Shared core nano.
- arg_value: highmem-medium
enum_value: HIGHMEM_MEDIUM
help_text: |-
High memory medium.
- arg_value: highmem-xlarge
enum_value: HIGHMEM_XLARGE
help_text: |-
High memory extra large.
- arg_value: standard-small
enum_value: STANDARD_SMALL
help_text: |-
Standard small.
- group:
api_field: instance.persistenceConfig
required: false
help_text: |-
Represents persistence configuration for a instance.
params:
- arg_name: persistence-config-mode
api_field: instance.persistenceConfig.mode
required: false
help_text: |-
Current persistence mode.
choices:
- arg_value: disabled
enum_value: DISABLED
help_text: |-
Persistence is disabled, and any snapshot data is deleted.
- arg_value: rdb
enum_value: RDB
help_text: |-
RDB based persistence is enabled.
- arg_value: aof
enum_value: AOF
help_text: |-
AOF based persistence is enabled.
- group:
api_field: instance.persistenceConfig.rdbConfig
required: false
help_text: |-
Configuration for RDB based persistence.
params:
- arg_name: rdb-config-snapshot-period
api_field: instance.persistenceConfig.rdbConfig.rdbSnapshotPeriod
required: false
help_text: |-
Period between RDB snapshots.
choices:
- arg_value: one-hour
enum_value: ONE_HOUR
help_text: |-
One hour.
- arg_value: six-hours
enum_value: SIX_HOURS
help_text: |-
Six hours.
- arg_value: twelve-hours
enum_value: TWELVE_HOURS
help_text: |-
Twelve hours.
- arg_value: twenty-four-hours
enum_value: TWENTY_FOUR_HOURS
help_text: |-
Twenty four hours.
- arg_name: rdb-config-snapshot-start-time
api_field: instance.persistenceConfig.rdbConfig.rdbSnapshotStartTime
required: false
repeated: false
type: googlecloudsdk.core.util.times:ParseDateTime
processor: googlecloudsdk.core.util.times:FormatDateTime
help_text: |-
Time that the first snapshot was/will be attempted, and to which future
snapshots will be aligned. If not provided, the current time will be
used.
- group:
api_field: instance.persistenceConfig.aofConfig
required: false
help_text: |-
Configuration for AOF based persistence.
params:
- arg_name: aof-config-append-fsync
api_field: instance.persistenceConfig.aofConfig.appendFsync
required: false
help_text: |-
The fsync mode.
choices:
- arg_value: never
enum_value: NEVER
help_text: |-
Never fsync. Normally Linux will flush data every 30 seconds with this
configuration, but it's up to the kernel's exact tuning.
- arg_value: every-sec
enum_value: EVERY_SEC
help_text: |-
Fsync every second. You may lose 1 second of data if there is a
disaster.
- arg_value: always
enum_value: ALWAYS
help_text: |-
Fsync every time new write commands are appended to the AOF. The best
data loss protection at the cost of performance.
- arg_name: engine-version
api_field: instance.engineVersion
required: false
repeated: false
help_text: |-
Engine version of the instance.
- arg_name: engine-configs
api_field: instance.engineConfigs
required: false
repeated: true
help_text: |-
User-provided engine configurations for the instance.
spec:
- api_field: key
- api_field: value
- group:
api_field: instance.zoneDistributionConfig
required: false
help_text: |-
Zone distribution configuration for allocation of instance resources.
params:
- arg_name: zone-distribution-config
api_field: instance.zoneDistributionConfig.zone
required: false
repeated: false
help_text: |-
Defines zone where all resources will be allocated with SINGLE_ZONE mode.
Ignored for MULTI_ZONE mode.
- arg_name: zone-distribution-config-mode
api_field: instance.zoneDistributionConfig.mode
required: false
help_text: |-
Current zone distribution mode. Defaults to MULTI_ZONE.
choices:
- arg_value: multi-zone
enum_value: MULTI_ZONE
help_text: |-
Distribute resources across 3 zones picked at random within the
region.
- arg_value: single-zone
enum_value: SINGLE_ZONE
help_text: |-
Provision resources in a single zone. Zone field must be specified.
- arg_name: psc-auto-connections
api_field: instance.pscAutoConnections
required: false
repeated: true
help_text: |-
Deprecated: Use the endpoints.connections.psc_auto_connection value
instead.
spec:
- api_field: port
one_of_index: 0
help_text: |-
port will only be set for Primary/Reader or Discovery endpoint.
- api_field: projectId
help_text: |-
The consumer project_id where PSC connections are established.
This should be the same project_id that the instance is being created in.
- api_field: network
resource_pattern: projects/{project}/global/networks/{network}
help_text: |-
The network where the PSC endpoints are created, in the form of
projects/{project_id}/global/networks/{network_id}.
- arg_name: endpoints
api_field: instance.endpoints
required: false
repeated: true
help_text: |-
Endpoints for the instance.
spec:
- api_field: connections
help_text: |-
A group of PSC connections. They are created in the same VPC network, one
for each service attachment in the cluster.
spec:
- api_field: pscAutoConnection
one_of_index: 0
help_text: |-
Detailed information of a PSC connection that is created through
service connectivity automation.
spec:
- api_field: port
one_of_index: 0
help_text: |-
port will only be set for Primary/Reader or Discovery endpoint.
- api_field: projectId
help_text: |-
The consumer project_id where PSC connections are established.
This should be the same project_id that the instance is being created in.
- api_field: network
resource_pattern: projects/{project}/global/networks/{network}
help_text: |-
The network where the PSC endpoints are created, in the form of
projects/{project_id}/global/networks/{network_id}.
- arg_name: mode
api_field: instance.mode
required: false
help_text: |-
The mode config for the instance.
choices:
- arg_value: standalone
enum_value: STANDALONE
help_text: |-
Deprecated: Use CLUSTER_DISABLED instead.
- arg_value: cluster
enum_value: CLUSTER
help_text: |-
Instance is in cluster mode.
- arg_value: cluster-disabled
enum_value: CLUSTER_DISABLED
help_text: |-
Cluster mode is disabled for the instance.
- group:
api_field: instance.maintenancePolicy
required: false
help_text: |-
Maintenance policy per instance.
params:
- arg_name: maintenance-policy-weekly-window
api_field: instance.maintenancePolicy.weeklyMaintenanceWindow
required: false
repeated: true
help_text: |-
Maintenance window that is applied to resources covered by this
policy. Minimum 1. For the current version, the maximum number of
weekly_window is expected to be one.
spec:
- api_field: day
help_text: |-
Allows to define schedule that runs specified day of the week.
- api_field: startTime
help_text: |-
Start time of the window in UTC.
spec:
- api_field: hours
help_text: |-
Hours of a day in 24 hour format. Must be greater than or equal to 0 and
typically must be less than or equal to 23. An API may choose to allow the
value "24:00:00" for scenarios like business closing time.
- api_field: minutes
help_text: |-
Minutes of an hour. Must be greater than or equal to 0 and less than or
equal to 59.
- api_field: seconds
help_text: |-
Seconds of a minute. Must be greater than or equal to 0 and typically must
be less than or equal to 59. An API may allow the value 60 if it allows
leap-seconds.
- api_field: nanos
help_text: |-
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
and less than or equal to 999,999,999.
- group:
api_field: instance.crossInstanceReplicationConfig
required: false
help_text: |-
Cross instance replication config.
params:
- arg_name: cross-instance-replication-config-role
api_field: instance.crossInstanceReplicationConfig.instanceRole
required: true
help_text: |-
The role of the instance in cross instance replication.
choices:
- arg_value: none
enum_value: NONE
help_text: |-
This instance does not participate in cross instance replication. It is
an independent instance and does not replicate to or from any other
instances.
- arg_value: primary
enum_value: PRIMARY
help_text: |-
A instance that allows both reads and writes. Any data written to this
instance is also replicated to the attached secondary instances.
- arg_value: secondary
enum_value: SECONDARY
help_text: |-
A instance that allows only reads and replicates data from a primary
instance.
- group:
api_field: instance.crossInstanceReplicationConfig.primaryInstance
required: false
help_text: |-
Details of the remote instance associated with this instance in a cross
instance replication setup.
params:
- arg_name: primary-instance
help_text: |-
The full resource path of the remote instance in
the format: projects/<project>/locations/<region>/instances/<instance-id>
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1alpha_resources:projects_locations_instances
resource_method_params:
instance.crossInstanceReplicationConfig.primaryInstance.instance: '{__relative_name__}'
required: false
- arg_name: cross-instance-replication-config-secondary-instances
api_field: instance.crossInstanceReplicationConfig.secondaryInstances
required: false
repeated: true
help_text: |-
List of secondary instances that are replicating from this primary
instance.
This field is only set for a primary instance.
spec:
- api_field: instance
resource_pattern: projects/{project}/locations/{location}/instances/{instance}
help_text: |-
The full resource path of the remote instance in
the format: projects/<project>/locations/<region>/instances/<instance-id>
- group:
api_field: instance.automatedBackupConfig
required: false
help_text: |-
The automated backup config for an instance.
params:
- group:
mutex: true
help_text: |-
Arguments for the schedule.
params:
- group:
api_field: instance.automatedBackupConfig.fixedFrequencySchedule
required: false
help_text: |-
This schedule allows the backup to be triggered at a fixed frequency
(currently only daily is supported).
params:
- group:
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime
required: true
help_text: |-
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are [google.type.Date][google.type.Date] and `google.protobuf.Timestamp`.
params:
- arg_name: fixed-frequency-schedule-start-time-hours
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.hours
required: false
repeated: false
type: int
help_text: |-
Hours of a day in 24 hour format. Must be greater than or equal to 0 and
typically must be less than or equal to 23. An API may choose to allow the
value "24:00:00" for scenarios like business closing time.
- arg_name: fixed-frequency-schedule-start-time-minutes
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.minutes
required: false
repeated: false
type: int
help_text: |-
Minutes of an hour. Must be greater than or equal to 0 and less than or
equal to 59.
- arg_name: fixed-frequency-schedule-start-time-seconds
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.seconds
required: false
repeated: false
type: int
help_text: |-
Seconds of a minute. Must be greater than or equal to 0 and typically must
be less than or equal to 59. An API may allow the value 60 if it allows
leap-seconds.
- arg_name: fixed-frequency-schedule-start-time-nanos
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.nanos
required: false
repeated: false
type: int
help_text: |-
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
and less than or equal to 999,999,999.
- arg_name: automated-backup-config-mode
api_field: instance.automatedBackupConfig.automatedBackupMode
required: false
help_text: |-
The automated backup mode. If the mode is disabled, the other fields will
be ignored.
choices:
- arg_value: disabled
enum_value: DISABLED
help_text: |-
Automated backup config disabled.
- arg_value: enabled
enum_value: ENABLED
help_text: |-
Automated backup config enabled.
- arg_name: automated-backup-config-retention
api_field: instance.automatedBackupConfig.retention
required: false
repeated: false
type: googlecloudsdk.core.util.times:ParseDuration
processor: googlecloudsdk.core.util.times:FormatDurationForJson
help_text: |-
How long to keep automated backups before the backups are deleted. The
value should be between 1 day and 365 days. If not specified, the default
value is 35 days.
- arg_name: allow-fewer-zones-deployment
api_field: instance.allowFewerZonesDeployment
action: store_true
required: false
type: bool
hidden: true
help_text: |-
Allows customers to specify if they are okay with deploying a multi-zone
instance in less than 3 zones. Once set, if there is a zonal outage during
the instance creation, the instance will only be deployed in 2 zones, and
stay within the 2 zones for its lifecycle.
default: null
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1alpha
collection:
- memorystore.projects.locations.instances
async:
collection:
- memorystore.projects.locations.operations

View File

@@ -0,0 +1,658 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Create a Memorystore instance.
description: |
Create a Memorystore instance.
A service connection policy for service class `gcp-memorystore` must already exist for the
location and network. Refer to
[creation prerequisites](https://cloud.google.com/memorystore/docs/valkey/networking#prerequisites_required_before_creating_an_instance)
for more details.
examples: |-
To create a three shard Memorystore instance `my-instance` in project `my-project` and
location `us-central1`, run:
$ {command} my-instance --project=my-project --location=us-central1 --shard-count=3
--psc-auto-connections="network=NETWORK,projectId=PROJECT_ID"
To create a three shard Memorystore instance `my-instance` in project `my-project`,
location `us-central1`, with one replica per shard, and TLS enabled, run:
$ {command} my-instance --project=my-project --location=us-central1 --shard-count=3
--psc-auto-connections="network=NETWORK,projectId=PROJECT_ID"
--transit-encryption-mode=server-authentication --replica-count=1
arguments:
params:
- group:
mutex: true
help_text: |-
Arguments for the import sources.
params:
- group:
api_field: instance.gcsSource
required: false
help_text: |-
Backups that stored in Cloud Storage buckets.
The Cloud Storage buckets need to be the same region as the instances.
params:
- arg_name: gcs-source-uris
api_field: instance.gcsSource.uris
required: false
repeated: true
help_text: |-
Example: gs://bucket1/object1, gs://bucket2/folder2/object2
- group:
api_field: instance.managedBackupSource
required: false
help_text: |-
Backups that generated and managed by memorystore.
params:
- arg_name: managed-backup-source
api_field: instance.managedBackupSource.backup
required: false
repeated: false
help_text: |-
Example:
//memorystore.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
A shorter version (without the prefix) of the backup name is also
supported, like
projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
In this case, it assumes the backup is under memorystore.googleapis.com.
- group:
mutex: true
help_text: |-
Arguments for the replica count.
params:
- arg_name: replica-count
api_field: instance.replicaCount
required: false
repeated: false
type: int
help_text: |-
Number of replica nodes per shard. If omitted the default is 0 replicas.
- group:
mutex: true
help_text: |-
Arguments for the deletion protection enabled.
params:
- arg_name: deletion-protection-enabled
api_field: instance.deletionProtectionEnabled
action: store_true
required: false
type: bool
help_text: |-
If set to true deletion of the instance will fail.
default: null
- group:
mutex: true
help_text: |-
Arguments for the simulate maintenance event.
params:
- arg_name: simulate-maintenance-event
api_field: instance.simulateMaintenanceEvent
action: store_true
required: false
type: bool
help_text: |-
Simulate a maintenance event.
default: null
- group:
mutex: true
help_text: |-
Arguments for the ondemand maintenance.
params:
- arg_name: ondemand-maintenance
api_field: instance.ondemandMaintenance
action: store_true
required: false
type: bool
help_text: |-
Ondemand maintenance for the instance.
default: null
- group:
mutex: true
help_text: |-
Arguments for the async instance endpoints deletion enabled.
params:
- arg_name: async-instance-endpoints-deletion-enabled
api_field: instance.asyncInstanceEndpointsDeletionEnabled
action: store_true
required: false
type: bool
help_text: |-
If true, instance endpoints that are created and registered by customers
can be deleted asynchronously. That is, such an instance endpoint can be
de-registered before the forwarding rules in the instance endpoint are
deleted.
default: null
- group:
mutex: true
help_text: |-
Arguments for the kms key.
params:
- arg_name: kms-key
help_text: |-
The KMS key used to encrypt the at-rest data of the cluster.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1beta_resources:projects_locations_key_rings_crypto_keys
resource_method_params:
instance.kmsKey: '{__relative_name__}'
required: false
- help_text: |-
Identifier. Unique name of the instance.
Format: projects/{project}/locations/{location}/instances/{instance}
is_positional: true
is_primary_resource: true
request_id_field: instanceId
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1beta_resources:projects_locations_instances
required: true
- arg_name: labels
api_field: instance.labels
required: false
repeated: true
help_text: |-
Labels to represent user-provided metadata.
spec:
- api_field: key
- api_field: value
- arg_name: authorization-mode
api_field: instance.authorizationMode
required: false
help_text: |-
Authorization mode of the instance.
choices:
- arg_value: auth-disabled
enum_value: AUTH_DISABLED
help_text: |-
Authorization disabled.
- arg_value: iam-auth
enum_value: IAM_AUTH
help_text: |-
IAM basic authorization.
- arg_name: transit-encryption-mode
api_field: instance.transitEncryptionMode
required: false
help_text: |-
In-transit encryption mode of the instance.
choices:
- arg_value: transit-encryption-disabled
enum_value: TRANSIT_ENCRYPTION_DISABLED
help_text: |-
In-transit encryption is disabled.
- arg_value: server-authentication
enum_value: SERVER_AUTHENTICATION
help_text: |-
Server-managed encryption is used for in-transit encryption.
- arg_name: shard-count
api_field: instance.shardCount
required: false
repeated: false
type: int
help_text: |-
Number of shards for the instance.
- arg_name: node-type
api_field: instance.nodeType
required: false
help_text: |-
Machine type for individual nodes of the instance.
choices:
- arg_value: shared-core-nano
enum_value: SHARED_CORE_NANO
help_text: |-
Shared core nano.
- arg_value: highmem-medium
enum_value: HIGHMEM_MEDIUM
help_text: |-
High memory medium.
- arg_value: highmem-xlarge
enum_value: HIGHMEM_XLARGE
help_text: |-
High memory extra large.
- arg_value: standard-small
enum_value: STANDARD_SMALL
help_text: |-
Standard small.
- group:
api_field: instance.persistenceConfig
required: false
help_text: |-
Represents persistence configuration for a instance.
params:
- arg_name: persistence-config-mode
api_field: instance.persistenceConfig.mode
required: false
help_text: |-
Current persistence mode.
choices:
- arg_value: disabled
enum_value: DISABLED
help_text: |-
Persistence is disabled, and any snapshot data is deleted.
- arg_value: rdb
enum_value: RDB
help_text: |-
RDB based persistence is enabled.
- arg_value: aof
enum_value: AOF
help_text: |-
AOF based persistence is enabled.
- group:
api_field: instance.persistenceConfig.rdbConfig
required: false
help_text: |-
Configuration for RDB based persistence.
params:
- arg_name: rdb-config-snapshot-period
api_field: instance.persistenceConfig.rdbConfig.rdbSnapshotPeriod
required: false
help_text: |-
Period between RDB snapshots.
choices:
- arg_value: one-hour
enum_value: ONE_HOUR
help_text: |-
One hour.
- arg_value: six-hours
enum_value: SIX_HOURS
help_text: |-
Six hours.
- arg_value: twelve-hours
enum_value: TWELVE_HOURS
help_text: |-
Twelve hours.
- arg_value: twenty-four-hours
enum_value: TWENTY_FOUR_HOURS
help_text: |-
Twenty four hours.
- arg_name: rdb-config-snapshot-start-time
api_field: instance.persistenceConfig.rdbConfig.rdbSnapshotStartTime
required: false
repeated: false
type: googlecloudsdk.core.util.times:ParseDateTime
processor: googlecloudsdk.core.util.times:FormatDateTime
help_text: |-
Time that the first snapshot was/will be attempted, and to which future
snapshots will be aligned. If not provided, the current time will be
used.
- group:
api_field: instance.persistenceConfig.aofConfig
required: false
help_text: |-
Configuration for AOF based persistence.
params:
- arg_name: aof-config-append-fsync
api_field: instance.persistenceConfig.aofConfig.appendFsync
required: false
help_text: |-
The fsync mode.
choices:
- arg_value: never
enum_value: NEVER
help_text: |-
Never fsync. Normally Linux will flush data every 30 seconds with this
configuration, but it's up to the kernel's exact tuning.
- arg_value: every-sec
enum_value: EVERY_SEC
help_text: |-
Fsync every second. You may lose 1 second of data if there is a
disaster.
- arg_value: always
enum_value: ALWAYS
help_text: |-
Fsync every time new write commands are appended to the AOF. The best
data loss protection at the cost of performance.
- arg_name: engine-version
api_field: instance.engineVersion
required: false
repeated: false
help_text: |-
Engine version of the instance.
- arg_name: engine-configs
api_field: instance.engineConfigs
required: false
repeated: true
help_text: |-
User-provided engine configurations for the instance.
spec:
- api_field: key
- api_field: value
- group:
api_field: instance.zoneDistributionConfig
required: false
help_text: |-
Zone distribution configuration for allocation of instance resources.
params:
- arg_name: zone-distribution-config
api_field: instance.zoneDistributionConfig.zone
required: false
repeated: false
help_text: |-
Defines zone where all resources will be allocated with SINGLE_ZONE mode.
Ignored for MULTI_ZONE mode.
- arg_name: zone-distribution-config-mode
api_field: instance.zoneDistributionConfig.mode
required: false
help_text: |-
Current zone distribution mode. Defaults to MULTI_ZONE.
choices:
- arg_value: multi-zone
enum_value: MULTI_ZONE
help_text: |-
Distribute resources across 3 zones picked at random within the
region.
- arg_value: single-zone
enum_value: SINGLE_ZONE
help_text: |-
Provision resources in a single zone. Zone field must be specified.
- arg_name: psc-auto-connections
api_field: instance.pscAutoConnections
required: false
repeated: true
help_text: |-
Deprecated: Use the endpoints.connections.psc_auto_connection value
instead.
spec:
- api_field: port
one_of_index: 0
help_text: |-
port will only be set for Primary/Reader or Discovery endpoint.
- api_field: projectId
help_text: |-
The consumer project_id where PSC connections are established.
This should be the same project_id that the instance is being created in.
- api_field: network
resource_pattern: projects/{project}/global/networks/{network}
help_text: |-
The network where the PSC endpoints are created, in the form of
projects/{project_id}/global/networks/{network_id}.
- arg_name: endpoints
api_field: instance.endpoints
required: false
repeated: true
help_text: |-
Endpoints for the instance.
spec:
- api_field: connections
help_text: |-
A group of PSC connections. They are created in the same VPC network, one
for each service attachment in the cluster.
spec:
- api_field: pscAutoConnection
one_of_index: 0
help_text: |-
Detailed information of a PSC connection that is created through
service connectivity automation.
spec:
- api_field: port
one_of_index: 0
help_text: |-
port will only be set for Primary/Reader or Discovery endpoint.
- api_field: projectId
help_text: |-
The consumer project_id where PSC connections are established.
This should be the same project_id that the instance is being created in.
- api_field: network
resource_pattern: projects/{project}/global/networks/{network}
help_text: |-
The network where the PSC endpoints are created, in the form of
projects/{project_id}/global/networks/{network_id}.
- arg_name: mode
api_field: instance.mode
required: false
help_text: |-
The mode config for the instance.
choices:
- arg_value: standalone
enum_value: STANDALONE
help_text: |-
Deprecated: Use CLUSTER_DISABLED instead.
- arg_value: cluster
enum_value: CLUSTER
help_text: |-
Instance is in cluster mode.
- arg_value: cluster-disabled
enum_value: CLUSTER_DISABLED
help_text: |-
Cluster mode is disabled for the instance.
- group:
api_field: instance.maintenancePolicy
required: false
help_text: |-
Maintenance policy per instance.
params:
- arg_name: maintenance-policy-weekly-window
api_field: instance.maintenancePolicy.weeklyMaintenanceWindow
required: false
repeated: true
help_text: |-
Maintenance window that is applied to resources covered by this
policy. Minimum 1. For the current version, the maximum number of
weekly_window is expected to be one.
spec:
- api_field: day
help_text: |-
Allows to define schedule that runs specified day of the week.
- api_field: startTime
help_text: |-
Start time of the window in UTC.
spec:
- api_field: hours
help_text: |-
Hours of a day in 24 hour format. Must be greater than or equal to 0 and
typically must be less than or equal to 23. An API may choose to allow the
value "24:00:00" for scenarios like business closing time.
- api_field: minutes
help_text: |-
Minutes of an hour. Must be greater than or equal to 0 and less than or
equal to 59.
- api_field: seconds
help_text: |-
Seconds of a minute. Must be greater than or equal to 0 and typically must
be less than or equal to 59. An API may allow the value 60 if it allows
leap-seconds.
- api_field: nanos
help_text: |-
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
and less than or equal to 999,999,999.
- group:
api_field: instance.crossInstanceReplicationConfig
required: false
help_text: |-
Cross instance replication config.
params:
- arg_name: cross-instance-replication-config-role
api_field: instance.crossInstanceReplicationConfig.instanceRole
required: true
help_text: |-
The role of the instance in cross instance replication.
choices:
- arg_value: none
enum_value: NONE
help_text: |-
This instance does not participate in cross instance replication. It is
an independent instance and does not replicate to or from any other
instances.
- arg_value: primary
enum_value: PRIMARY
help_text: |-
A instance that allows both reads and writes. Any data written to this
instance is also replicated to the attached secondary instances.
- arg_value: secondary
enum_value: SECONDARY
help_text: |-
A instance that allows only reads and replicates data from a primary
instance.
- group:
api_field: instance.crossInstanceReplicationConfig.primaryInstance
required: false
help_text: |-
Details of the remote instance associated with this instance in a cross
instance replication setup.
params:
- arg_name: primary-instance
help_text: |-
The full resource path of the remote instance in
the format: projects/<project>/locations/<region>/instances/<instance-id>
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1beta_resources:projects_locations_instances
resource_method_params:
instance.crossInstanceReplicationConfig.primaryInstance.instance: '{__relative_name__}'
required: false
- arg_name: cross-instance-replication-config-secondary-instances
api_field: instance.crossInstanceReplicationConfig.secondaryInstances
required: false
repeated: true
help_text: |-
List of secondary instances that are replicating from this primary
instance.
This field is only set for a primary instance.
spec:
- api_field: instance
resource_pattern: projects/{project}/locations/{location}/instances/{instance}
help_text: |-
The full resource path of the remote instance in
the format: projects/<project>/locations/<region>/instances/<instance-id>
- group:
api_field: instance.automatedBackupConfig
required: false
help_text: |-
The automated backup config for an instance.
params:
- group:
mutex: true
help_text: |-
Arguments for the schedule.
params:
- group:
api_field: instance.automatedBackupConfig.fixedFrequencySchedule
required: false
help_text: |-
This schedule allows the backup to be triggered at a fixed frequency
(currently only daily is supported).
params:
- group:
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime
required: true
help_text: |-
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are [google.type.Date][google.type.Date] and `google.protobuf.Timestamp`.
params:
- arg_name: fixed-frequency-schedule-start-time-hours
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.hours
required: false
repeated: false
type: int
help_text: |-
Hours of a day in 24 hour format. Must be greater than or equal to 0 and
typically must be less than or equal to 23. An API may choose to allow the
value "24:00:00" for scenarios like business closing time.
- arg_name: fixed-frequency-schedule-start-time-minutes
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.minutes
required: false
repeated: false
type: int
help_text: |-
Minutes of an hour. Must be greater than or equal to 0 and less than or
equal to 59.
- arg_name: fixed-frequency-schedule-start-time-seconds
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.seconds
required: false
repeated: false
type: int
help_text: |-
Seconds of a minute. Must be greater than or equal to 0 and typically must
be less than or equal to 59. An API may allow the value 60 if it allows
leap-seconds.
- arg_name: fixed-frequency-schedule-start-time-nanos
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.nanos
required: false
repeated: false
type: int
help_text: |-
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
and less than or equal to 999,999,999.
- arg_name: automated-backup-config-mode
api_field: instance.automatedBackupConfig.automatedBackupMode
required: false
help_text: |-
The automated backup mode. If the mode is disabled, the other fields will
be ignored.
choices:
- arg_value: disabled
enum_value: DISABLED
help_text: |-
Automated backup config disabled.
- arg_value: enabled
enum_value: ENABLED
help_text: |-
Automated backup config enabled.
- arg_name: automated-backup-config-retention
api_field: instance.automatedBackupConfig.retention
required: false
repeated: false
type: googlecloudsdk.core.util.times:ParseDuration
processor: googlecloudsdk.core.util.times:FormatDurationForJson
help_text: |-
How long to keep automated backups before the backups are deleted. The
value should be between 1 day and 365 days. If not specified, the default
value is 35 days.
- arg_name: allow-fewer-zones-deployment
api_field: instance.allowFewerZonesDeployment
action: store_true
required: false
type: bool
hidden: true
help_text: |-
Allows customers to specify if they are okay with deploying a multi-zone
instance in less than 3 zones. Once set, if there is a zonal outage during
the instance creation, the instance will only be deployed in 2 zones, and
stay within the 2 zones for its lifecycle.
default: null
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1beta
collection:
- memorystore.projects.locations.instances
async:
collection:
- memorystore.projects.locations.operations

View File

@@ -0,0 +1,658 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Create a Memorystore instance.
description: |
Create a Memorystore instance.
A service connection policy for service class `gcp-memorystore` must already exist for the
location and network. Refer to
[creation prerequisites](https://cloud.google.com/memorystore/docs/valkey/networking#prerequisites_required_before_creating_an_instance)
for more details.
examples: |-
To create a three shard Memorystore instance `my-instance` in project `my-project` and
location `us-central1`, run:
$ {command} my-instance --project=my-project --location=us-central1 --shard-count=3
--psc-auto-connections="network=NETWORK,projectId=PROJECT_ID"
To create a three shard Memorystore instance `my-instance` in project `my-project`,
location `us-central1`, with one replica per shard, and TLS enabled, run:
$ {command} my-instance --project=my-project --location=us-central1 --shard-count=3
--psc-auto-connections="network=NETWORK,projectId=PROJECT_ID"
--transit-encryption-mode=server-authentication --replica-count=1
arguments:
params:
- group:
mutex: true
help_text: |-
Arguments for the import sources.
params:
- group:
api_field: instance.gcsSource
required: false
help_text: |-
Backups that stored in Cloud Storage buckets.
The Cloud Storage buckets need to be the same region as the instances.
params:
- arg_name: gcs-source-uris
api_field: instance.gcsSource.uris
required: false
repeated: true
help_text: |-
Example: gs://bucket1/object1, gs://bucket2/folder2/object2
- group:
api_field: instance.managedBackupSource
required: false
help_text: |-
Backups that generated and managed by memorystore.
params:
- arg_name: managed-backup-source
api_field: instance.managedBackupSource.backup
required: false
repeated: false
help_text: |-
Example:
//memorystore.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
A shorter version (without the prefix) of the backup name is also
supported, like
projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
In this case, it assumes the backup is under memorystore.googleapis.com.
- group:
mutex: true
help_text: |-
Arguments for the replica count.
params:
- arg_name: replica-count
api_field: instance.replicaCount
required: false
repeated: false
type: int
help_text: |-
Number of replica nodes per shard. If omitted the default is 0 replicas.
- group:
mutex: true
help_text: |-
Arguments for the deletion protection enabled.
params:
- arg_name: deletion-protection-enabled
api_field: instance.deletionProtectionEnabled
action: store_true
required: false
type: bool
help_text: |-
If set to true deletion of the instance will fail.
default: null
- group:
mutex: true
help_text: |-
Arguments for the simulate maintenance event.
params:
- arg_name: simulate-maintenance-event
api_field: instance.simulateMaintenanceEvent
action: store_true
required: false
type: bool
help_text: |-
Simulate a maintenance event.
default: null
- group:
mutex: true
help_text: |-
Arguments for the ondemand maintenance.
params:
- arg_name: ondemand-maintenance
api_field: instance.ondemandMaintenance
action: store_true
required: false
type: bool
help_text: |-
Ondemand maintenance for the instance.
default: null
- group:
mutex: true
help_text: |-
Arguments for the async instance endpoints deletion enabled.
params:
- arg_name: async-instance-endpoints-deletion-enabled
api_field: instance.asyncInstanceEndpointsDeletionEnabled
action: store_true
required: false
type: bool
help_text: |-
If true, instance endpoints that are created and registered by customers
can be deleted asynchronously. That is, such an instance endpoint can be
de-registered before the forwarding rules in the instance endpoint are
deleted.
default: null
- group:
mutex: true
help_text: |-
Arguments for the kms key.
params:
- arg_name: kms-key
help_text: |-
The KMS key used to encrypt the at-rest data of the cluster.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1_resources:projects_locations_key_rings_crypto_keys
resource_method_params:
instance.kmsKey: '{__relative_name__}'
required: false
- help_text: |-
Identifier. Unique name of the instance.
Format: projects/{project}/locations/{location}/instances/{instance}
is_positional: true
is_primary_resource: true
request_id_field: instanceId
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1_resources:projects_locations_instances
required: true
- arg_name: labels
api_field: instance.labels
required: false
repeated: true
help_text: |-
Labels to represent user-provided metadata.
spec:
- api_field: key
- api_field: value
- arg_name: authorization-mode
api_field: instance.authorizationMode
required: false
help_text: |-
Authorization mode of the instance.
choices:
- arg_value: auth-disabled
enum_value: AUTH_DISABLED
help_text: |-
Authorization disabled.
- arg_value: iam-auth
enum_value: IAM_AUTH
help_text: |-
IAM basic authorization.
- arg_name: transit-encryption-mode
api_field: instance.transitEncryptionMode
required: false
help_text: |-
In-transit encryption mode of the instance.
choices:
- arg_value: transit-encryption-disabled
enum_value: TRANSIT_ENCRYPTION_DISABLED
help_text: |-
In-transit encryption is disabled.
- arg_value: server-authentication
enum_value: SERVER_AUTHENTICATION
help_text: |-
Server-managed encryption is used for in-transit encryption.
- arg_name: shard-count
api_field: instance.shardCount
required: false
repeated: false
type: int
help_text: |-
Number of shards for the instance.
- arg_name: node-type
api_field: instance.nodeType
required: false
help_text: |-
Machine type for individual nodes of the instance.
choices:
- arg_value: shared-core-nano
enum_value: SHARED_CORE_NANO
help_text: |-
Shared core nano.
- arg_value: highmem-medium
enum_value: HIGHMEM_MEDIUM
help_text: |-
High memory medium.
- arg_value: highmem-xlarge
enum_value: HIGHMEM_XLARGE
help_text: |-
High memory extra large.
- arg_value: standard-small
enum_value: STANDARD_SMALL
help_text: |-
Standard small.
- group:
api_field: instance.persistenceConfig
required: false
help_text: |-
Represents persistence configuration for a instance.
params:
- arg_name: persistence-config-mode
api_field: instance.persistenceConfig.mode
required: false
help_text: |-
Current persistence mode.
choices:
- arg_value: disabled
enum_value: DISABLED
help_text: |-
Persistence is disabled, and any snapshot data is deleted.
- arg_value: rdb
enum_value: RDB
help_text: |-
RDB based persistence is enabled.
- arg_value: aof
enum_value: AOF
help_text: |-
AOF based persistence is enabled.
- group:
api_field: instance.persistenceConfig.rdbConfig
required: false
help_text: |-
Configuration for RDB based persistence.
params:
- arg_name: rdb-config-snapshot-period
api_field: instance.persistenceConfig.rdbConfig.rdbSnapshotPeriod
required: false
help_text: |-
Period between RDB snapshots.
choices:
- arg_value: one-hour
enum_value: ONE_HOUR
help_text: |-
One hour.
- arg_value: six-hours
enum_value: SIX_HOURS
help_text: |-
Six hours.
- arg_value: twelve-hours
enum_value: TWELVE_HOURS
help_text: |-
Twelve hours.
- arg_value: twenty-four-hours
enum_value: TWENTY_FOUR_HOURS
help_text: |-
Twenty four hours.
- arg_name: rdb-config-snapshot-start-time
api_field: instance.persistenceConfig.rdbConfig.rdbSnapshotStartTime
required: false
repeated: false
type: googlecloudsdk.core.util.times:ParseDateTime
processor: googlecloudsdk.core.util.times:FormatDateTime
help_text: |-
Time that the first snapshot was/will be attempted, and to which future
snapshots will be aligned. If not provided, the current time will be
used.
- group:
api_field: instance.persistenceConfig.aofConfig
required: false
help_text: |-
Configuration for AOF based persistence.
params:
- arg_name: aof-config-append-fsync
api_field: instance.persistenceConfig.aofConfig.appendFsync
required: false
help_text: |-
The fsync mode.
choices:
- arg_value: never
enum_value: NEVER
help_text: |-
Never fsync. Normally Linux will flush data every 30 seconds with this
configuration, but it's up to the kernel's exact tuning.
- arg_value: every-sec
enum_value: EVERY_SEC
help_text: |-
Fsync every second. You may lose 1 second of data if there is a
disaster.
- arg_value: always
enum_value: ALWAYS
help_text: |-
Fsync every time new write commands are appended to the AOF. The best
data loss protection at the cost of performance.
- arg_name: engine-version
api_field: instance.engineVersion
required: false
repeated: false
help_text: |-
Engine version of the instance.
- arg_name: engine-configs
api_field: instance.engineConfigs
required: false
repeated: true
help_text: |-
User-provided engine configurations for the instance.
spec:
- api_field: key
- api_field: value
- group:
api_field: instance.zoneDistributionConfig
required: false
help_text: |-
Zone distribution configuration for allocation of instance resources.
params:
- arg_name: zone-distribution-config
api_field: instance.zoneDistributionConfig.zone
required: false
repeated: false
help_text: |-
Defines zone where all resources will be allocated with SINGLE_ZONE mode.
Ignored for MULTI_ZONE mode.
- arg_name: zone-distribution-config-mode
api_field: instance.zoneDistributionConfig.mode
required: false
help_text: |-
Current zone distribution mode. Defaults to MULTI_ZONE.
choices:
- arg_value: multi-zone
enum_value: MULTI_ZONE
help_text: |-
Distribute resources across 3 zones picked at random within the
region.
- arg_value: single-zone
enum_value: SINGLE_ZONE
help_text: |-
Provision resources in a single zone. Zone field must be specified.
- arg_name: psc-auto-connections
api_field: instance.pscAutoConnections
required: false
repeated: true
help_text: |-
Deprecated: Use the endpoints.connections.psc_auto_connection value
instead.
spec:
- api_field: port
one_of_index: 0
help_text: |-
port will only be set for Primary/Reader or Discovery endpoint.
- api_field: projectId
help_text: |-
The consumer project_id where PSC connections are established.
This should be the same project_id that the instance is being created in.
- api_field: network
resource_pattern: projects/{project}/global/networks/{network}
help_text: |-
The network where the PSC endpoints are created, in the form of
projects/{project_id}/global/networks/{network_id}.
- arg_name: endpoints
api_field: instance.endpoints
required: false
repeated: true
help_text: |-
Endpoints for the instance.
spec:
- api_field: connections
help_text: |-
A group of PSC connections. They are created in the same VPC network, one
for each service attachment in the cluster.
spec:
- api_field: pscAutoConnection
one_of_index: 0
help_text: |-
Detailed information of a PSC connection that is created through
service connectivity automation.
spec:
- api_field: port
one_of_index: 0
help_text: |-
port will only be set for Primary/Reader or Discovery endpoint.
- api_field: projectId
help_text: |-
The consumer project_id where PSC connections are established.
This should be the same project_id that the instance is being created in.
- api_field: network
resource_pattern: projects/{project}/global/networks/{network}
help_text: |-
The network where the PSC endpoints are created, in the form of
projects/{project_id}/global/networks/{network_id}.
- arg_name: mode
api_field: instance.mode
required: false
help_text: |-
The mode config for the instance.
choices:
- arg_value: standalone
enum_value: STANDALONE
help_text: |-
Deprecated: Use CLUSTER_DISABLED instead.
- arg_value: cluster
enum_value: CLUSTER
help_text: |-
Instance is in cluster mode.
- arg_value: cluster-disabled
enum_value: CLUSTER_DISABLED
help_text: |-
Cluster mode is disabled for the instance.
- group:
api_field: instance.maintenancePolicy
required: false
help_text: |-
Maintenance policy per instance.
params:
- arg_name: maintenance-policy-weekly-window
api_field: instance.maintenancePolicy.weeklyMaintenanceWindow
required: false
repeated: true
help_text: |-
Maintenance window that is applied to resources covered by this
policy. Minimum 1. For the current version, the maximum number of
weekly_window is expected to be one.
spec:
- api_field: day
help_text: |-
Allows to define schedule that runs specified day of the week.
- api_field: startTime
help_text: |-
Start time of the window in UTC.
spec:
- api_field: hours
help_text: |-
Hours of a day in 24 hour format. Must be greater than or equal to 0 and
typically must be less than or equal to 23. An API may choose to allow the
value "24:00:00" for scenarios like business closing time.
- api_field: minutes
help_text: |-
Minutes of an hour. Must be greater than or equal to 0 and less than or
equal to 59.
- api_field: seconds
help_text: |-
Seconds of a minute. Must be greater than or equal to 0 and typically must
be less than or equal to 59. An API may allow the value 60 if it allows
leap-seconds.
- api_field: nanos
help_text: |-
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
and less than or equal to 999,999,999.
- group:
api_field: instance.crossInstanceReplicationConfig
required: false
help_text: |-
Cross instance replication config.
params:
- arg_name: cross-instance-replication-config-role
api_field: instance.crossInstanceReplicationConfig.instanceRole
required: true
help_text: |-
The role of the instance in cross instance replication.
choices:
- arg_value: none
enum_value: NONE
help_text: |-
This instance does not participate in cross instance replication. It is
an independent instance and does not replicate to or from any other
instances.
- arg_value: primary
enum_value: PRIMARY
help_text: |-
A instance that allows both reads and writes. Any data written to this
instance is also replicated to the attached secondary instances.
- arg_value: secondary
enum_value: SECONDARY
help_text: |-
A instance that allows only reads and replicates data from a primary
instance.
- group:
api_field: instance.crossInstanceReplicationConfig.primaryInstance
required: false
help_text: |-
Details of the remote instance associated with this instance in a cross
instance replication setup.
params:
- arg_name: primary-instance
help_text: |-
The full resource path of the remote instance in
the format: projects/<project>/locations/<region>/instances/<instance-id>
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1_resources:projects_locations_instances
resource_method_params:
instance.crossInstanceReplicationConfig.primaryInstance.instance: '{__relative_name__}'
required: false
- arg_name: cross-instance-replication-config-secondary-instances
api_field: instance.crossInstanceReplicationConfig.secondaryInstances
required: false
repeated: true
help_text: |-
List of secondary instances that are replicating from this primary
instance.
This field is only set for a primary instance.
spec:
- api_field: instance
resource_pattern: projects/{project}/locations/{location}/instances/{instance}
help_text: |-
The full resource path of the remote instance in
the format: projects/<project>/locations/<region>/instances/<instance-id>
- group:
api_field: instance.automatedBackupConfig
required: false
help_text: |-
The automated backup config for an instance.
params:
- group:
mutex: true
help_text: |-
Arguments for the schedule.
params:
- group:
api_field: instance.automatedBackupConfig.fixedFrequencySchedule
required: false
help_text: |-
This schedule allows the backup to be triggered at a fixed frequency
(currently only daily is supported).
params:
- group:
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime
required: true
help_text: |-
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are [google.type.Date][google.type.Date] and `google.protobuf.Timestamp`.
params:
- arg_name: fixed-frequency-schedule-start-time-hours
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.hours
required: false
repeated: false
type: int
help_text: |-
Hours of a day in 24 hour format. Must be greater than or equal to 0 and
typically must be less than or equal to 23. An API may choose to allow the
value "24:00:00" for scenarios like business closing time.
- arg_name: fixed-frequency-schedule-start-time-minutes
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.minutes
required: false
repeated: false
type: int
help_text: |-
Minutes of an hour. Must be greater than or equal to 0 and less than or
equal to 59.
- arg_name: fixed-frequency-schedule-start-time-seconds
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.seconds
required: false
repeated: false
type: int
help_text: |-
Seconds of a minute. Must be greater than or equal to 0 and typically must
be less than or equal to 59. An API may allow the value 60 if it allows
leap-seconds.
- arg_name: fixed-frequency-schedule-start-time-nanos
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.nanos
required: false
repeated: false
type: int
help_text: |-
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
and less than or equal to 999,999,999.
- arg_name: automated-backup-config-mode
api_field: instance.automatedBackupConfig.automatedBackupMode
required: false
help_text: |-
The automated backup mode. If the mode is disabled, the other fields will
be ignored.
choices:
- arg_value: disabled
enum_value: DISABLED
help_text: |-
Automated backup config disabled.
- arg_value: enabled
enum_value: ENABLED
help_text: |-
Automated backup config enabled.
- arg_name: automated-backup-config-retention
api_field: instance.automatedBackupConfig.retention
required: false
repeated: false
type: googlecloudsdk.core.util.times:ParseDuration
processor: googlecloudsdk.core.util.times:FormatDurationForJson
help_text: |-
How long to keep automated backups before the backups are deleted. The
value should be between 1 day and 365 days. If not specified, the default
value is 35 days.
- arg_name: allow-fewer-zones-deployment
api_field: instance.allowFewerZonesDeployment
action: store_true
required: false
type: bool
hidden: true
help_text: |-
Allows customers to specify if they are okay with deploying a multi-zone
instance in less than 3 zones. Once set, if there is a zonal outage during
the instance creation, the instance will only be deployed in 2 zones, and
stay within the 2 zones for its lifecycle.
default: null
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- memorystore.projects.locations.instances
async:
collection:
- memorystore.projects.locations.operations

View File

@@ -0,0 +1,62 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Delete a Memorystore instance.
description: Delete a Memorystore instance.
examples: |-
To delete Memorystore instance `my-instance` in project `my-project` and location
`us-central1`, run:
$ {command} my-instance --project=my-project --location=us-central1
arguments:
params:
- help_text: |-
The name of the instance to delete.
Format: projects/{project}/locations/{location}/instances/{instance}
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1alpha_resources:projects_locations_instances
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1alpha
collection:
- memorystore.projects.locations.instances
async:
collection:
- memorystore.projects.locations.operations

View File

@@ -0,0 +1,62 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Delete a Memorystore instance.
description: Delete a Memorystore instance.
examples: |-
To delete Memorystore instance `my-instance` in project `my-project` and location
`us-central1`, run:
$ {command} my-instance --project=my-project --location=us-central1
arguments:
params:
- help_text: |-
The name of the instance to delete.
Format: projects/{project}/locations/{location}/instances/{instance}
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1beta_resources:projects_locations_instances
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1beta
collection:
- memorystore.projects.locations.instances
async:
collection:
- memorystore.projects.locations.operations

View File

@@ -0,0 +1,62 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Delete a Memorystore instance.
description: Delete a Memorystore instance.
examples: |-
To delete Memorystore instance `my-instance` in project `my-project` and location
`us-central1`, run:
$ {command} my-instance --project=my-project --location=us-central1
arguments:
params:
- help_text: |-
The name of the instance to delete.
Format: projects/{project}/locations/{location}/instances/{instance}
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1_resources:projects_locations_instances
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- memorystore.projects.locations.instances
async:
collection:
- memorystore.projects.locations.operations

View File

@@ -0,0 +1,41 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Get details of a Memorystore instance.
description: Get details of a Memorystore instance.
examples: |-
To get the details of Memorystore instance `my-instance` in project `my-project` and
location `us-central`, run:
$ {command} my-instance --project=my-project --location=us-central1
arguments:
params:
- help_text: |-
The name of the instance to retrieve.
Format: projects/{project}/locations/{location}/instances/{instance}
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1alpha_resources:projects_locations_instances
required: true
request:
api_version: v1alpha
collection:
- memorystore.projects.locations.instances

View File

@@ -0,0 +1,41 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Get details of a Memorystore instance.
description: Get details of a Memorystore instance.
examples: |-
To get the details of Memorystore instance `my-instance` in project `my-project` and
location `us-central`, run:
$ {command} my-instance --project=my-project --location=us-central1
arguments:
params:
- help_text: |-
The name of the instance to retrieve.
Format: projects/{project}/locations/{location}/instances/{instance}
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1beta_resources:projects_locations_instances
required: true
request:
api_version: v1beta
collection:
- memorystore.projects.locations.instances

View File

@@ -0,0 +1,41 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Get details of a Memorystore instance.
description: Get details of a Memorystore instance.
examples: |-
To get the details of Memorystore instance `my-instance` in project `my-project` and
location `us-central`, run:
$ {command} my-instance --project=my-project --location=us-central1
arguments:
params:
- help_text: |-
The name of the instance to retrieve.
Format: projects/{project}/locations/{location}/instances/{instance}
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1_resources:projects_locations_instances
required: true
request:
api_version: v1
collection:
- memorystore.projects.locations.instances

View File

@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: List all Memorystore instances in a specified project and location.
description: List all Memorystore instances in a specified project and location.
examples: |-
To list all Memorystore instances in project `my-project` and location `us-central`, run:
$ {command} --project=my-project --location=us-central1
arguments:
params:
- help_text: |-
The parent to list instances from.
Format: projects/{project}/locations/{location}
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1alpha_resources:projects_locations
required: true
request:
api_version: v1alpha
collection:
- memorystore.projects.locations.instances
response:
id_field: name

View File

@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: List all Memorystore instances in a specified project and location.
description: List all Memorystore instances in a specified project and location.
examples: |-
To list all Memorystore instances in project `my-project` and location `us-central`, run:
$ {command} --project=my-project --location=us-central1
arguments:
params:
- help_text: |-
The parent to list instances from.
Format: projects/{project}/locations/{location}
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1beta_resources:projects_locations
required: true
request:
api_version: v1beta
collection:
- memorystore.projects.locations.instances
response:
id_field: name

View File

@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: List all Memorystore instances in a specified project and location.
description: List all Memorystore instances in a specified project and location.
examples: |-
To list all Memorystore instances in project `my-project` and location `us-central`, run:
$ {command} --project=my-project --location=us-central1
arguments:
params:
- help_text: |-
The parent to list instances from.
Format: projects/{project}/locations/{location}
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- memorystore.projects.locations.instances
response:
id_field: name

View File

@@ -0,0 +1,71 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Reschedule maintenance window for an instance.
description: Reschedule maintenance window for an instance.
examples: |-
To reschedule maintenance window for an instance with the name
`my-instance` in region `us-central-1` with immediate, run:
$ {command} `my-instance` --project=my-project --location=us-central1
--reschedule-type=IMMEDIATE
arguments:
params:
- help_text: |-
Name of the instance to reschedule maintenance for:
`projects/{project}/locations/{location_id}/instances/{instance}`
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1alpha_resources:projects_locations_instances
required: true
- arg_name: reschedule-type
api_field: rescheduleMaintenanceRequest.rescheduleType
required: true
help_text: |-
If reschedule type is SPECIFIC_TIME, schedule_time must be set.
choices:
- arg_value: immediate
enum_value: IMMEDIATE
help_text: |-
If the user wants to schedule the maintenance to happen now.
- arg_value: specific-time
enum_value: SPECIFIC_TIME
help_text: |-
If the user wants to reschedule the maintenance to a specific time.
- arg_name: schedule-time
api_field: rescheduleMaintenanceRequest.scheduleTime
required: false
repeated: false
type: googlecloudsdk.core.util.times:ParseDateTime
processor: googlecloudsdk.core.util.times:FormatDateTime
help_text: |-
Timestamp when the maintenance shall be rescheduled to if
reschedule_type=SPECIFIC_TIME, in RFC 3339 format.
Example: `2012-11-15T16:19:00.094Z`.
request:
api_version: v1alpha
collection:
- memorystore.projects.locations.instances
method: rescheduleMaintenance
async:
collection:
- memorystore.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,71 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Reschedule maintenance window for an instance.
description: Reschedule maintenance window for an instance.
examples: |-
To reschedule maintenance window for an instance with the name
`my-instance` in region `us-central-1` with immediate, run:
$ {command} `my-instance` --project=my-project --location=us-central1
--reschedule-type=IMMEDIATE
arguments:
params:
- help_text: |-
Name of the instance to reschedule maintenance for:
`projects/{project}/locations/{location_id}/instances/{instance}`
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1beta_resources:projects_locations_instances
required: true
- arg_name: reschedule-type
api_field: rescheduleMaintenanceRequest.rescheduleType
required: true
help_text: |-
If reschedule type is SPECIFIC_TIME, schedule_time must be set.
choices:
- arg_value: immediate
enum_value: IMMEDIATE
help_text: |-
If the user wants to schedule the maintenance to happen now.
- arg_value: specific-time
enum_value: SPECIFIC_TIME
help_text: |-
If the user wants to reschedule the maintenance to a specific time.
- arg_name: schedule-time
api_field: rescheduleMaintenanceRequest.scheduleTime
required: false
repeated: false
type: googlecloudsdk.core.util.times:ParseDateTime
processor: googlecloudsdk.core.util.times:FormatDateTime
help_text: |-
Timestamp when the maintenance shall be rescheduled to if
reschedule_type=SPECIFIC_TIME, in RFC 3339 format.
Example: `2012-11-15T16:19:00.094Z`.
request:
api_version: v1beta
collection:
- memorystore.projects.locations.instances
method: rescheduleMaintenance
async:
collection:
- memorystore.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,68 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Reschedule maintenance window for an instance.
description: Reschedule maintenance window for an instance.
examples: |-
To reschedule maintenance window for an instance with the name
`my-instance` in region `us-central-1` with immediate, run:
arguments:
params:
- help_text: |-
Name of the instance to reschedule maintenance for:
`projects/{project}/locations/{location_id}/instances/{instance}`
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1_resources:projects_locations_instances
required: true
- arg_name: reschedule-type
api_field: rescheduleMaintenanceRequest.rescheduleType
required: true
help_text: |-
If reschedule type is SPECIFIC_TIME, schedule_time must be set.
choices:
- arg_value: immediate
enum_value: IMMEDIATE
help_text: |-
If the user wants to schedule the maintenance to happen now.
- arg_value: specific-time
enum_value: SPECIFIC_TIME
help_text: |-
If the user wants to reschedule the maintenance to a specific time.
- arg_name: schedule-time
api_field: rescheduleMaintenanceRequest.scheduleTime
required: false
repeated: false
type: googlecloudsdk.core.util.times:ParseDateTime
processor: googlecloudsdk.core.util.times:FormatDateTime
help_text: |-
Timestamp when the maintenance shall be rescheduled to if
reschedule_type=SPECIFIC_TIME, in RFC 3339 format.
Example: `2012-11-15T16:19:00.094Z`.
request:
api_version: v1
collection:
- memorystore.projects.locations.instances
method: rescheduleMaintenance
async:
collection:
- memorystore.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,565 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- ALPHA
auto_generated: true
help_text:
brief: Update the configuration of a Memorystore instance.
description: Update the configuration of a Memorystore instance.
examples: |-
To update Memorystore instance `my-instance` in project `my-project` and location
`us-central1` to six shards, run:
$ {command} `my-instance` --project=my-project --location=us-central1 --shard-count=6
To update Memorystore instance `my-instance` in project `my-project` and location
`us-central1` to use a maxmemory-policy of `allkeys-lru`, run:
$ {command} `my-instance` --project=my-project --location=us-central1
--update-engine-configs=maxmemory-policy=allkeys-lru
arguments:
params:
- group:
mutex: true
help_text: |-
Arguments for the replica count.
params:
- arg_name: replica-count
api_field: instance.replicaCount
required: false
repeated: false
type: int
help_text: |-
Number of replica nodes per shard. If omitted the default is 0 replicas.
- group:
mutex: true
help_text: |-
Arguments for the deletion protection enabled.
params:
- arg_name: deletion-protection-enabled
api_field: instance.deletionProtectionEnabled
action: store_true_false
required: false
type: bool
help_text: |-
If set to true deletion of the instance will fail.
- group:
mutex: true
help_text: |-
Arguments for the simulate maintenance event.
params:
- arg_name: simulate-maintenance-event
api_field: instance.simulateMaintenanceEvent
action: store_true_false
required: false
type: bool
help_text: |-
Simulate a maintenance event.
- group:
mutex: true
help_text: |-
Arguments for the ondemand maintenance.
params:
- arg_name: ondemand-maintenance
api_field: instance.ondemandMaintenance
action: store_true_false
required: false
type: bool
help_text: |-
Ondemand maintenance for the instance.
- group:
mutex: true
help_text: |-
Arguments for the async instance endpoints deletion enabled.
params:
- arg_name: async-instance-endpoints-deletion-enabled
api_field: instance.asyncInstanceEndpointsDeletionEnabled
action: store_true_false
required: false
type: bool
help_text: |-
If true, instance endpoints that are created and registered by customers
can be deleted asynchronously. That is, such an instance endpoint can be
de-registered before the forwarding rules in the instance endpoint are
deleted.
- group:
mutex: true
help_text: |-
Arguments for the kms key.
params:
- arg_name: kms-key
help_text: |-
The KMS key used to encrypt the at-rest data of the cluster.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1alpha_resources:projects_locations_key_rings_crypto_keys
resource_method_params:
instance.kmsKey: '{__relative_name__}'
required: false
clearable: true
- group:
mutex: true
help_text: |-
Arguments for the maintenance version.
params:
- arg_name: maintenance-version
api_field: instance.maintenanceVersion
required: false
repeated: false
help_text: |-
This field can be used to trigger self service update to indicate the
desired maintenance version. The input to this field can be determined by
the available_maintenance_versions field.
- help_text: |-
Identifier. Unique name of the instance.
Format: projects/{project}/locations/{location}/instances/{instance}
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1alpha_resources:projects_locations_instances
required: true
- arg_name: labels
api_field: instance.labels
required: false
repeated: true
help_text: |-
Labels to represent user-provided metadata.
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: shard-count
api_field: instance.shardCount
required: false
repeated: false
type: int
help_text: |-
Number of shards for the instance.
- arg_name: node-type
api_field: instance.nodeType
required: false
help_text: |-
Machine type for individual nodes of the instance.
choices:
- arg_value: shared-core-nano
enum_value: SHARED_CORE_NANO
help_text: |-
Shared core nano.
- arg_value: highmem-medium
enum_value: HIGHMEM_MEDIUM
help_text: |-
High memory medium.
- arg_value: highmem-xlarge
enum_value: HIGHMEM_XLARGE
help_text: |-
High memory extra large.
- arg_value: standard-small
enum_value: STANDARD_SMALL
help_text: |-
Standard small.
- group:
api_field: instance.persistenceConfig
arg_name: persistence-config
clearable: true
required: false
help_text: |-
Represents persistence configuration for a instance.
params:
- arg_name: persistence-config-mode
api_field: instance.persistenceConfig.mode
required: false
help_text: |-
Current persistence mode.
choices:
- arg_value: disabled
enum_value: DISABLED
help_text: |-
Persistence is disabled, and any snapshot data is deleted.
- arg_value: rdb
enum_value: RDB
help_text: |-
RDB based persistence is enabled.
- arg_value: aof
enum_value: AOF
help_text: |-
AOF based persistence is enabled.
- group:
api_field: instance.persistenceConfig.rdbConfig
required: false
help_text: |-
Configuration for RDB based persistence.
params:
- arg_name: rdb-config-snapshot-period
api_field: instance.persistenceConfig.rdbConfig.rdbSnapshotPeriod
required: false
help_text: |-
Period between RDB snapshots.
choices:
- arg_value: one-hour
enum_value: ONE_HOUR
help_text: |-
One hour.
- arg_value: six-hours
enum_value: SIX_HOURS
help_text: |-
Six hours.
- arg_value: twelve-hours
enum_value: TWELVE_HOURS
help_text: |-
Twelve hours.
- arg_value: twenty-four-hours
enum_value: TWENTY_FOUR_HOURS
help_text: |-
Twenty four hours.
- arg_name: rdb-config-snapshot-start-time
api_field: instance.persistenceConfig.rdbConfig.rdbSnapshotStartTime
required: false
repeated: false
type: googlecloudsdk.core.util.times:ParseDateTime
processor: googlecloudsdk.core.util.times:FormatDateTime
help_text: |-
Time that the first snapshot was/will be attempted, and to which future
snapshots will be aligned. If not provided, the current time will be
used.
- group:
api_field: instance.persistenceConfig.aofConfig
required: false
help_text: |-
Configuration for AOF based persistence.
params:
- arg_name: aof-config-append-fsync
api_field: instance.persistenceConfig.aofConfig.appendFsync
required: false
help_text: |-
The fsync mode.
choices:
- arg_value: never
enum_value: NEVER
help_text: |-
Never fsync. Normally Linux will flush data every 30 seconds with this
configuration, but it's up to the kernel's exact tuning.
- arg_value: every-sec
enum_value: EVERY_SEC
help_text: |-
Fsync every second. You may lose 1 second of data if there is a
disaster.
- arg_value: always
enum_value: ALWAYS
help_text: |-
Fsync every time new write commands are appended to the AOF. The best
data loss protection at the cost of performance.
- arg_name: engine-version
api_field: instance.engineVersion
required: false
repeated: false
help_text: |-
Engine version of the instance.
- arg_name: engine-configs
api_field: instance.engineConfigs
required: false
repeated: true
help_text: |-
User-provided engine configurations for the instance.
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: endpoints
api_field: instance.endpoints
required: false
repeated: true
help_text: |-
Endpoints for the instance.
clearable: true
spec:
- api_field: connections
help_text: |-
A group of PSC connections. They are created in the same VPC network, one
for each service attachment in the cluster.
spec:
- api_field: pscConnection
one_of_index: 0
help_text: |-
Detailed information of a PSC connection that is created by the user.
spec:
- api_field: port
one_of_index: 0
help_text: |-
port will only be set for Primary/Reader or Discovery endpoint.
- api_field: pscConnectionId
help_text: |-
The PSC connection id of the forwarding rule connected to the
service attachment.
- api_field: ipAddress
help_text: |-
The IP allocated on the consumer network for the PSC forwarding rule.
- api_field: forwardingRule
resource_pattern: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
help_text: |-
The URI of the consumer side forwarding rule.
Format:
projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- api_field: network
resource_pattern: projects/{project}/global/networks/{network}
help_text: |-
The consumer network where the IP address resides, in the form of
projects/{project_id}/global/networks/{network_id}.
- api_field: serviceAttachment
resource_pattern: projects/{project}/regions/{region}/serviceAttachments/{service_attachment}
help_text: |-
The service attachment which is the target of the PSC connection,
in the form of
projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
- arg_name: mode
api_field: instance.mode
required: false
help_text: |-
The mode config for the instance.
choices:
- arg_value: standalone
enum_value: STANDALONE
help_text: |-
Deprecated: Use CLUSTER_DISABLED instead.
- arg_value: cluster
enum_value: CLUSTER
help_text: |-
Instance is in cluster mode.
- arg_value: cluster-disabled
enum_value: CLUSTER_DISABLED
help_text: |-
Cluster mode is disabled for the instance.
- group:
api_field: instance.maintenancePolicy
arg_name: maintenance-policy
clearable: true
required: false
help_text: |-
Maintenance policy per instance.
params:
- arg_name: maintenance-policy-weekly-window
api_field: instance.maintenancePolicy.weeklyMaintenanceWindow
required: false
repeated: true
help_text: |-
Maintenance window that is applied to resources covered by this
policy. Minimum 1. For the current version, the maximum number of
weekly_window is expected to be one.
clearable: true
spec:
- api_field: day
help_text: |-
Allows to define schedule that runs specified day of the week.
- api_field: startTime
help_text: |-
Start time of the window in UTC.
spec:
- api_field: hours
help_text: |-
Hours of a day in 24 hour format. Must be greater than or equal to 0 and
typically must be less than or equal to 23. An API may choose to allow the
value "24:00:00" for scenarios like business closing time.
- api_field: minutes
help_text: |-
Minutes of an hour. Must be greater than or equal to 0 and less than or
equal to 59.
- api_field: seconds
help_text: |-
Seconds of a minute. Must be greater than or equal to 0 and typically must
be less than or equal to 59. An API may allow the value 60 if it allows
leap-seconds.
- api_field: nanos
help_text: |-
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
and less than or equal to 999,999,999.
- group:
api_field: instance.crossInstanceReplicationConfig
arg_name: cross-instance-replication-config
clearable: true
required: false
help_text: |-
Cross instance replication config.
params:
- arg_name: cross-instance-replication-config-role
api_field: instance.crossInstanceReplicationConfig.instanceRole
required: false
help_text: |-
The role of the instance in cross instance replication.
choices:
- arg_value: none
enum_value: NONE
help_text: |-
This instance does not participate in cross instance replication. It is
an independent instance and does not replicate to or from any other
instances.
- arg_value: primary
enum_value: PRIMARY
help_text: |-
A instance that allows both reads and writes. Any data written to this
instance is also replicated to the attached secondary instances.
- arg_value: secondary
enum_value: SECONDARY
help_text: |-
A instance that allows only reads and replicates data from a primary
instance.
- group:
api_field: instance.crossInstanceReplicationConfig.primaryInstance
required: false
help_text: |-
Details of the remote instance associated with this instance in a cross
instance replication setup.
params:
- arg_name: primary-instance
help_text: |-
The full resource path of the remote instance in
the format: projects/<project>/locations/<region>/instances/<instance-id>
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1alpha_resources:projects_locations_instances
resource_method_params:
instance.crossInstanceReplicationConfig.primaryInstance.instance: '{__relative_name__}'
required: false
clearable: true
- arg_name: cross-instance-replication-config-secondary-instances
api_field: instance.crossInstanceReplicationConfig.secondaryInstances
required: false
repeated: true
help_text: |-
List of secondary instances that are replicating from this primary
instance.
This field is only set for a primary instance.
clearable: true
spec:
- api_field: instance
resource_pattern: projects/{project}/locations/{location}/instances/{instance}
help_text: |-
The full resource path of the remote instance in
the format: projects/<project>/locations/<region>/instances/<instance-id>
- group:
api_field: instance.automatedBackupConfig
arg_name: automated-backup-config
clearable: true
required: false
help_text: |-
The automated backup config for an instance.
params:
- group:
mutex: true
help_text: |-
Arguments for the schedule.
params:
- group:
api_field: instance.automatedBackupConfig.fixedFrequencySchedule
required: false
help_text: |-
This schedule allows the backup to be triggered at a fixed frequency
(currently only daily is supported).
params:
- group:
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime
required: false
help_text: |-
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are [google.type.Date][google.type.Date] and `google.protobuf.Timestamp`.
params:
- arg_name: fixed-frequency-schedule-start-time-hours
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.hours
required: false
repeated: false
type: int
help_text: |-
Hours of a day in 24 hour format. Must be greater than or equal to 0 and
typically must be less than or equal to 23. An API may choose to allow the
value "24:00:00" for scenarios like business closing time.
- arg_name: fixed-frequency-schedule-start-time-minutes
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.minutes
required: false
repeated: false
type: int
help_text: |-
Minutes of an hour. Must be greater than or equal to 0 and less than or
equal to 59.
- arg_name: fixed-frequency-schedule-start-time-seconds
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.seconds
required: false
repeated: false
type: int
help_text: |-
Seconds of a minute. Must be greater than or equal to 0 and typically must
be less than or equal to 59. An API may allow the value 60 if it allows
leap-seconds.
- arg_name: fixed-frequency-schedule-start-time-nanos
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.nanos
required: false
repeated: false
type: int
help_text: |-
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
and less than or equal to 999,999,999.
- arg_name: automated-backup-config-mode
api_field: instance.automatedBackupConfig.automatedBackupMode
required: false
help_text: |-
The automated backup mode. If the mode is disabled, the other fields will
be ignored.
choices:
- arg_value: disabled
enum_value: DISABLED
help_text: |-
Automated backup config disabled.
- arg_value: enabled
enum_value: ENABLED
help_text: |-
Automated backup config enabled.
- arg_name: automated-backup-config-retention
api_field: instance.automatedBackupConfig.retention
required: false
repeated: false
type: googlecloudsdk.core.util.times:ParseDuration
processor: googlecloudsdk.core.util.times:FormatDurationForJson
help_text: |-
How long to keep automated backups before the backups are deleted. The
value should be between 1 day and 365 days. If not specified, the default
value is 35 days.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1alpha
collection:
- memorystore.projects.locations.instances
async:
collection:
- memorystore.projects.locations.operations
update:
read_modify_update: true

View File

@@ -0,0 +1,565 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- BETA
auto_generated: true
help_text:
brief: Update the configuration of a Memorystore instance.
description: Update the configuration of a Memorystore instance.
examples: |-
To update Memorystore instance `my-instance` in project `my-project` and location
`us-central1` to six shards, run:
$ {command} `my-instance` --project=my-project --location=us-central1 --shard-count=6
To update Memorystore instance `my-instance` in project `my-project` and location
`us-central1` to use a maxmemory-policy of `allkeys-lru`, run:
$ {command} `my-instance` --project=my-project --location=us-central1
--update-engine-configs=maxmemory-policy=allkeys-lru
arguments:
params:
- group:
mutex: true
help_text: |-
Arguments for the replica count.
params:
- arg_name: replica-count
api_field: instance.replicaCount
required: false
repeated: false
type: int
help_text: |-
Number of replica nodes per shard. If omitted the default is 0 replicas.
- group:
mutex: true
help_text: |-
Arguments for the deletion protection enabled.
params:
- arg_name: deletion-protection-enabled
api_field: instance.deletionProtectionEnabled
action: store_true_false
required: false
type: bool
help_text: |-
If set to true deletion of the instance will fail.
- group:
mutex: true
help_text: |-
Arguments for the simulate maintenance event.
params:
- arg_name: simulate-maintenance-event
api_field: instance.simulateMaintenanceEvent
action: store_true_false
required: false
type: bool
help_text: |-
Simulate a maintenance event.
- group:
mutex: true
help_text: |-
Arguments for the ondemand maintenance.
params:
- arg_name: ondemand-maintenance
api_field: instance.ondemandMaintenance
action: store_true_false
required: false
type: bool
help_text: |-
Ondemand maintenance for the instance.
- group:
mutex: true
help_text: |-
Arguments for the async instance endpoints deletion enabled.
params:
- arg_name: async-instance-endpoints-deletion-enabled
api_field: instance.asyncInstanceEndpointsDeletionEnabled
action: store_true_false
required: false
type: bool
help_text: |-
If true, instance endpoints that are created and registered by customers
can be deleted asynchronously. That is, such an instance endpoint can be
de-registered before the forwarding rules in the instance endpoint are
deleted.
- group:
mutex: true
help_text: |-
Arguments for the kms key.
params:
- arg_name: kms-key
help_text: |-
The KMS key used to encrypt the at-rest data of the cluster.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1beta_resources:projects_locations_key_rings_crypto_keys
resource_method_params:
instance.kmsKey: '{__relative_name__}'
required: false
clearable: true
- group:
mutex: true
help_text: |-
Arguments for the maintenance version.
params:
- arg_name: maintenance-version
api_field: instance.maintenanceVersion
required: false
repeated: false
help_text: |-
This field can be used to trigger self service update to indicate the
desired maintenance version. The input to this field can be determined by
the available_maintenance_versions field.
- help_text: |-
Identifier. Unique name of the instance.
Format: projects/{project}/locations/{location}/instances/{instance}
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1beta_resources:projects_locations_instances
required: true
- arg_name: labels
api_field: instance.labels
required: false
repeated: true
help_text: |-
Labels to represent user-provided metadata.
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: shard-count
api_field: instance.shardCount
required: false
repeated: false
type: int
help_text: |-
Number of shards for the instance.
- arg_name: node-type
api_field: instance.nodeType
required: false
help_text: |-
Machine type for individual nodes of the instance.
choices:
- arg_value: shared-core-nano
enum_value: SHARED_CORE_NANO
help_text: |-
Shared core nano.
- arg_value: highmem-medium
enum_value: HIGHMEM_MEDIUM
help_text: |-
High memory medium.
- arg_value: highmem-xlarge
enum_value: HIGHMEM_XLARGE
help_text: |-
High memory extra large.
- arg_value: standard-small
enum_value: STANDARD_SMALL
help_text: |-
Standard small.
- group:
api_field: instance.persistenceConfig
arg_name: persistence-config
clearable: true
required: false
help_text: |-
Represents persistence configuration for a instance.
params:
- arg_name: persistence-config-mode
api_field: instance.persistenceConfig.mode
required: false
help_text: |-
Current persistence mode.
choices:
- arg_value: disabled
enum_value: DISABLED
help_text: |-
Persistence is disabled, and any snapshot data is deleted.
- arg_value: rdb
enum_value: RDB
help_text: |-
RDB based persistence is enabled.
- arg_value: aof
enum_value: AOF
help_text: |-
AOF based persistence is enabled.
- group:
api_field: instance.persistenceConfig.rdbConfig
required: false
help_text: |-
Configuration for RDB based persistence.
params:
- arg_name: rdb-config-snapshot-period
api_field: instance.persistenceConfig.rdbConfig.rdbSnapshotPeriod
required: false
help_text: |-
Period between RDB snapshots.
choices:
- arg_value: one-hour
enum_value: ONE_HOUR
help_text: |-
One hour.
- arg_value: six-hours
enum_value: SIX_HOURS
help_text: |-
Six hours.
- arg_value: twelve-hours
enum_value: TWELVE_HOURS
help_text: |-
Twelve hours.
- arg_value: twenty-four-hours
enum_value: TWENTY_FOUR_HOURS
help_text: |-
Twenty four hours.
- arg_name: rdb-config-snapshot-start-time
api_field: instance.persistenceConfig.rdbConfig.rdbSnapshotStartTime
required: false
repeated: false
type: googlecloudsdk.core.util.times:ParseDateTime
processor: googlecloudsdk.core.util.times:FormatDateTime
help_text: |-
Time that the first snapshot was/will be attempted, and to which future
snapshots will be aligned. If not provided, the current time will be
used.
- group:
api_field: instance.persistenceConfig.aofConfig
required: false
help_text: |-
Configuration for AOF based persistence.
params:
- arg_name: aof-config-append-fsync
api_field: instance.persistenceConfig.aofConfig.appendFsync
required: false
help_text: |-
The fsync mode.
choices:
- arg_value: never
enum_value: NEVER
help_text: |-
Never fsync. Normally Linux will flush data every 30 seconds with this
configuration, but it's up to the kernel's exact tuning.
- arg_value: every-sec
enum_value: EVERY_SEC
help_text: |-
Fsync every second. You may lose 1 second of data if there is a
disaster.
- arg_value: always
enum_value: ALWAYS
help_text: |-
Fsync every time new write commands are appended to the AOF. The best
data loss protection at the cost of performance.
- arg_name: engine-version
api_field: instance.engineVersion
required: false
repeated: false
help_text: |-
Engine version of the instance.
- arg_name: engine-configs
api_field: instance.engineConfigs
required: false
repeated: true
help_text: |-
User-provided engine configurations for the instance.
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: endpoints
api_field: instance.endpoints
required: false
repeated: true
help_text: |-
Endpoints for the instance.
clearable: true
spec:
- api_field: connections
help_text: |-
A group of PSC connections. They are created in the same VPC network, one
for each service attachment in the cluster.
spec:
- api_field: pscConnection
one_of_index: 0
help_text: |-
Detailed information of a PSC connection that is created by the user.
spec:
- api_field: port
one_of_index: 0
help_text: |-
port will only be set for Primary/Reader or Discovery endpoint.
- api_field: pscConnectionId
help_text: |-
The PSC connection id of the forwarding rule connected to the
service attachment.
- api_field: ipAddress
help_text: |-
The IP allocated on the consumer network for the PSC forwarding rule.
- api_field: forwardingRule
resource_pattern: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
help_text: |-
The URI of the consumer side forwarding rule.
Format:
projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- api_field: network
resource_pattern: projects/{project}/global/networks/{network}
help_text: |-
The consumer network where the IP address resides, in the form of
projects/{project_id}/global/networks/{network_id}.
- api_field: serviceAttachment
resource_pattern: projects/{project}/regions/{region}/serviceAttachments/{service_attachment}
help_text: |-
The service attachment which is the target of the PSC connection,
in the form of
projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
- arg_name: mode
api_field: instance.mode
required: false
help_text: |-
The mode config for the instance.
choices:
- arg_value: standalone
enum_value: STANDALONE
help_text: |-
Deprecated: Use CLUSTER_DISABLED instead.
- arg_value: cluster
enum_value: CLUSTER
help_text: |-
Instance is in cluster mode.
- arg_value: cluster-disabled
enum_value: CLUSTER_DISABLED
help_text: |-
Cluster mode is disabled for the instance.
- group:
api_field: instance.maintenancePolicy
arg_name: maintenance-policy
clearable: true
required: false
help_text: |-
Maintenance policy per instance.
params:
- arg_name: maintenance-policy-weekly-window
api_field: instance.maintenancePolicy.weeklyMaintenanceWindow
required: false
repeated: true
help_text: |-
Maintenance window that is applied to resources covered by this
policy. Minimum 1. For the current version, the maximum number of
weekly_window is expected to be one.
clearable: true
spec:
- api_field: day
help_text: |-
Allows to define schedule that runs specified day of the week.
- api_field: startTime
help_text: |-
Start time of the window in UTC.
spec:
- api_field: hours
help_text: |-
Hours of a day in 24 hour format. Must be greater than or equal to 0 and
typically must be less than or equal to 23. An API may choose to allow the
value "24:00:00" for scenarios like business closing time.
- api_field: minutes
help_text: |-
Minutes of an hour. Must be greater than or equal to 0 and less than or
equal to 59.
- api_field: seconds
help_text: |-
Seconds of a minute. Must be greater than or equal to 0 and typically must
be less than or equal to 59. An API may allow the value 60 if it allows
leap-seconds.
- api_field: nanos
help_text: |-
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
and less than or equal to 999,999,999.
- group:
api_field: instance.crossInstanceReplicationConfig
arg_name: cross-instance-replication-config
clearable: true
required: false
help_text: |-
Cross instance replication config.
params:
- arg_name: cross-instance-replication-config-role
api_field: instance.crossInstanceReplicationConfig.instanceRole
required: false
help_text: |-
The role of the instance in cross instance replication.
choices:
- arg_value: none
enum_value: NONE
help_text: |-
This instance does not participate in cross instance replication. It is
an independent instance and does not replicate to or from any other
instances.
- arg_value: primary
enum_value: PRIMARY
help_text: |-
A instance that allows both reads and writes. Any data written to this
instance is also replicated to the attached secondary instances.
- arg_value: secondary
enum_value: SECONDARY
help_text: |-
A instance that allows only reads and replicates data from a primary
instance.
- group:
api_field: instance.crossInstanceReplicationConfig.primaryInstance
required: false
help_text: |-
Details of the remote instance associated with this instance in a cross
instance replication setup.
params:
- arg_name: primary-instance
help_text: |-
The full resource path of the remote instance in
the format: projects/<project>/locations/<region>/instances/<instance-id>
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1beta_resources:projects_locations_instances
resource_method_params:
instance.crossInstanceReplicationConfig.primaryInstance.instance: '{__relative_name__}'
required: false
clearable: true
- arg_name: cross-instance-replication-config-secondary-instances
api_field: instance.crossInstanceReplicationConfig.secondaryInstances
required: false
repeated: true
help_text: |-
List of secondary instances that are replicating from this primary
instance.
This field is only set for a primary instance.
clearable: true
spec:
- api_field: instance
resource_pattern: projects/{project}/locations/{location}/instances/{instance}
help_text: |-
The full resource path of the remote instance in
the format: projects/<project>/locations/<region>/instances/<instance-id>
- group:
api_field: instance.automatedBackupConfig
arg_name: automated-backup-config
clearable: true
required: false
help_text: |-
The automated backup config for an instance.
params:
- group:
mutex: true
help_text: |-
Arguments for the schedule.
params:
- group:
api_field: instance.automatedBackupConfig.fixedFrequencySchedule
required: false
help_text: |-
This schedule allows the backup to be triggered at a fixed frequency
(currently only daily is supported).
params:
- group:
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime
required: false
help_text: |-
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are [google.type.Date][google.type.Date] and `google.protobuf.Timestamp`.
params:
- arg_name: fixed-frequency-schedule-start-time-hours
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.hours
required: false
repeated: false
type: int
help_text: |-
Hours of a day in 24 hour format. Must be greater than or equal to 0 and
typically must be less than or equal to 23. An API may choose to allow the
value "24:00:00" for scenarios like business closing time.
- arg_name: fixed-frequency-schedule-start-time-minutes
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.minutes
required: false
repeated: false
type: int
help_text: |-
Minutes of an hour. Must be greater than or equal to 0 and less than or
equal to 59.
- arg_name: fixed-frequency-schedule-start-time-seconds
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.seconds
required: false
repeated: false
type: int
help_text: |-
Seconds of a minute. Must be greater than or equal to 0 and typically must
be less than or equal to 59. An API may allow the value 60 if it allows
leap-seconds.
- arg_name: fixed-frequency-schedule-start-time-nanos
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.nanos
required: false
repeated: false
type: int
help_text: |-
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
and less than or equal to 999,999,999.
- arg_name: automated-backup-config-mode
api_field: instance.automatedBackupConfig.automatedBackupMode
required: false
help_text: |-
The automated backup mode. If the mode is disabled, the other fields will
be ignored.
choices:
- arg_value: disabled
enum_value: DISABLED
help_text: |-
Automated backup config disabled.
- arg_value: enabled
enum_value: ENABLED
help_text: |-
Automated backup config enabled.
- arg_name: automated-backup-config-retention
api_field: instance.automatedBackupConfig.retention
required: false
repeated: false
type: googlecloudsdk.core.util.times:ParseDuration
processor: googlecloudsdk.core.util.times:FormatDurationForJson
help_text: |-
How long to keep automated backups before the backups are deleted. The
value should be between 1 day and 365 days. If not specified, the default
value is 35 days.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1beta
collection:
- memorystore.projects.locations.instances
async:
collection:
- memorystore.projects.locations.operations
update:
read_modify_update: true

View File

@@ -0,0 +1,565 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
- GA
auto_generated: true
help_text:
brief: Update the configuration of a Memorystore instance.
description: Update the configuration of a Memorystore instance.
examples: |-
To update Memorystore instance `my-instance` in project `my-project` and location
`us-central1` to six shards, run:
$ {command} `my-instance` --project=my-project --location=us-central1 --shard-count=6
To update Memorystore instance `my-instance` in project `my-project` and location
`us-central1` to use a maxmemory-policy of `allkeys-lru`, run:
$ {command} `my-instance` --project=my-project --location=us-central1
--update-engine-configs=maxmemory-policy=allkeys-lru
arguments:
params:
- group:
mutex: true
help_text: |-
Arguments for the replica count.
params:
- arg_name: replica-count
api_field: instance.replicaCount
required: false
repeated: false
type: int
help_text: |-
Number of replica nodes per shard. If omitted the default is 0 replicas.
- group:
mutex: true
help_text: |-
Arguments for the deletion protection enabled.
params:
- arg_name: deletion-protection-enabled
api_field: instance.deletionProtectionEnabled
action: store_true_false
required: false
type: bool
help_text: |-
If set to true deletion of the instance will fail.
- group:
mutex: true
help_text: |-
Arguments for the simulate maintenance event.
params:
- arg_name: simulate-maintenance-event
api_field: instance.simulateMaintenanceEvent
action: store_true_false
required: false
type: bool
help_text: |-
Simulate a maintenance event.
- group:
mutex: true
help_text: |-
Arguments for the ondemand maintenance.
params:
- arg_name: ondemand-maintenance
api_field: instance.ondemandMaintenance
action: store_true_false
required: false
type: bool
help_text: |-
Ondemand maintenance for the instance.
- group:
mutex: true
help_text: |-
Arguments for the async instance endpoints deletion enabled.
params:
- arg_name: async-instance-endpoints-deletion-enabled
api_field: instance.asyncInstanceEndpointsDeletionEnabled
action: store_true_false
required: false
type: bool
help_text: |-
If true, instance endpoints that are created and registered by customers
can be deleted asynchronously. That is, such an instance endpoint can be
de-registered before the forwarding rules in the instance endpoint are
deleted.
- group:
mutex: true
help_text: |-
Arguments for the kms key.
params:
- arg_name: kms-key
help_text: |-
The KMS key used to encrypt the at-rest data of the cluster.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1_resources:projects_locations_key_rings_crypto_keys
resource_method_params:
instance.kmsKey: '{__relative_name__}'
required: false
clearable: true
- group:
mutex: true
help_text: |-
Arguments for the maintenance version.
params:
- arg_name: maintenance-version
api_field: instance.maintenanceVersion
required: false
repeated: false
help_text: |-
This field can be used to trigger self service update to indicate the
desired maintenance version. The input to this field can be determined by
the available_maintenance_versions field.
- help_text: |-
Identifier. Unique name of the instance.
Format: projects/{project}/locations/{location}/instances/{instance}
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1_resources:projects_locations_instances
required: true
- arg_name: labels
api_field: instance.labels
required: false
repeated: true
help_text: |-
Labels to represent user-provided metadata.
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: shard-count
api_field: instance.shardCount
required: false
repeated: false
type: int
help_text: |-
Number of shards for the instance.
- arg_name: node-type
api_field: instance.nodeType
required: false
help_text: |-
Machine type for individual nodes of the instance.
choices:
- arg_value: shared-core-nano
enum_value: SHARED_CORE_NANO
help_text: |-
Shared core nano.
- arg_value: highmem-medium
enum_value: HIGHMEM_MEDIUM
help_text: |-
High memory medium.
- arg_value: highmem-xlarge
enum_value: HIGHMEM_XLARGE
help_text: |-
High memory extra large.
- arg_value: standard-small
enum_value: STANDARD_SMALL
help_text: |-
Standard small.
- group:
api_field: instance.persistenceConfig
arg_name: persistence-config
clearable: true
required: false
help_text: |-
Represents persistence configuration for a instance.
params:
- arg_name: persistence-config-mode
api_field: instance.persistenceConfig.mode
required: false
help_text: |-
Current persistence mode.
choices:
- arg_value: disabled
enum_value: DISABLED
help_text: |-
Persistence is disabled, and any snapshot data is deleted.
- arg_value: rdb
enum_value: RDB
help_text: |-
RDB based persistence is enabled.
- arg_value: aof
enum_value: AOF
help_text: |-
AOF based persistence is enabled.
- group:
api_field: instance.persistenceConfig.rdbConfig
required: false
help_text: |-
Configuration for RDB based persistence.
params:
- arg_name: rdb-config-snapshot-period
api_field: instance.persistenceConfig.rdbConfig.rdbSnapshotPeriod
required: false
help_text: |-
Period between RDB snapshots.
choices:
- arg_value: one-hour
enum_value: ONE_HOUR
help_text: |-
One hour.
- arg_value: six-hours
enum_value: SIX_HOURS
help_text: |-
Six hours.
- arg_value: twelve-hours
enum_value: TWELVE_HOURS
help_text: |-
Twelve hours.
- arg_value: twenty-four-hours
enum_value: TWENTY_FOUR_HOURS
help_text: |-
Twenty four hours.
- arg_name: rdb-config-snapshot-start-time
api_field: instance.persistenceConfig.rdbConfig.rdbSnapshotStartTime
required: false
repeated: false
type: googlecloudsdk.core.util.times:ParseDateTime
processor: googlecloudsdk.core.util.times:FormatDateTime
help_text: |-
Time that the first snapshot was/will be attempted, and to which future
snapshots will be aligned. If not provided, the current time will be
used.
- group:
api_field: instance.persistenceConfig.aofConfig
required: false
help_text: |-
Configuration for AOF based persistence.
params:
- arg_name: aof-config-append-fsync
api_field: instance.persistenceConfig.aofConfig.appendFsync
required: false
help_text: |-
The fsync mode.
choices:
- arg_value: never
enum_value: NEVER
help_text: |-
Never fsync. Normally Linux will flush data every 30 seconds with this
configuration, but it's up to the kernel's exact tuning.
- arg_value: every-sec
enum_value: EVERY_SEC
help_text: |-
Fsync every second. You may lose 1 second of data if there is a
disaster.
- arg_value: always
enum_value: ALWAYS
help_text: |-
Fsync every time new write commands are appended to the AOF. The best
data loss protection at the cost of performance.
- arg_name: engine-version
api_field: instance.engineVersion
required: false
repeated: false
help_text: |-
Engine version of the instance.
- arg_name: engine-configs
api_field: instance.engineConfigs
required: false
repeated: true
help_text: |-
User-provided engine configurations for the instance.
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: endpoints
api_field: instance.endpoints
required: false
repeated: true
help_text: |-
Endpoints for the instance.
clearable: true
spec:
- api_field: connections
help_text: |-
A group of PSC connections. They are created in the same VPC network, one
for each service attachment in the cluster.
spec:
- api_field: pscConnection
one_of_index: 0
help_text: |-
Detailed information of a PSC connection that is created by the user.
spec:
- api_field: port
one_of_index: 0
help_text: |-
port will only be set for Primary/Reader or Discovery endpoint.
- api_field: pscConnectionId
help_text: |-
The PSC connection id of the forwarding rule connected to the
service attachment.
- api_field: ipAddress
help_text: |-
The IP allocated on the consumer network for the PSC forwarding rule.
- api_field: forwardingRule
resource_pattern: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
help_text: |-
The URI of the consumer side forwarding rule.
Format:
projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- api_field: network
resource_pattern: projects/{project}/global/networks/{network}
help_text: |-
The consumer network where the IP address resides, in the form of
projects/{project_id}/global/networks/{network_id}.
- api_field: serviceAttachment
resource_pattern: projects/{project}/regions/{region}/serviceAttachments/{service_attachment}
help_text: |-
The service attachment which is the target of the PSC connection,
in the form of
projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
- arg_name: mode
api_field: instance.mode
required: false
help_text: |-
The mode config for the instance.
choices:
- arg_value: standalone
enum_value: STANDALONE
help_text: |-
Deprecated: Use CLUSTER_DISABLED instead.
- arg_value: cluster
enum_value: CLUSTER
help_text: |-
Instance is in cluster mode.
- arg_value: cluster-disabled
enum_value: CLUSTER_DISABLED
help_text: |-
Cluster mode is disabled for the instance.
- group:
api_field: instance.maintenancePolicy
arg_name: maintenance-policy
clearable: true
required: false
help_text: |-
Maintenance policy per instance.
params:
- arg_name: maintenance-policy-weekly-window
api_field: instance.maintenancePolicy.weeklyMaintenanceWindow
required: false
repeated: true
help_text: |-
Maintenance window that is applied to resources covered by this
policy. Minimum 1. For the current version, the maximum number of
weekly_window is expected to be one.
clearable: true
spec:
- api_field: day
help_text: |-
Allows to define schedule that runs specified day of the week.
- api_field: startTime
help_text: |-
Start time of the window in UTC.
spec:
- api_field: hours
help_text: |-
Hours of a day in 24 hour format. Must be greater than or equal to 0 and
typically must be less than or equal to 23. An API may choose to allow the
value "24:00:00" for scenarios like business closing time.
- api_field: minutes
help_text: |-
Minutes of an hour. Must be greater than or equal to 0 and less than or
equal to 59.
- api_field: seconds
help_text: |-
Seconds of a minute. Must be greater than or equal to 0 and typically must
be less than or equal to 59. An API may allow the value 60 if it allows
leap-seconds.
- api_field: nanos
help_text: |-
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
and less than or equal to 999,999,999.
- group:
api_field: instance.crossInstanceReplicationConfig
arg_name: cross-instance-replication-config
clearable: true
required: false
help_text: |-
Cross instance replication config.
params:
- arg_name: cross-instance-replication-config-role
api_field: instance.crossInstanceReplicationConfig.instanceRole
required: false
help_text: |-
The role of the instance in cross instance replication.
choices:
- arg_value: none
enum_value: NONE
help_text: |-
This instance does not participate in cross instance replication. It is
an independent instance and does not replicate to or from any other
instances.
- arg_value: primary
enum_value: PRIMARY
help_text: |-
A instance that allows both reads and writes. Any data written to this
instance is also replicated to the attached secondary instances.
- arg_value: secondary
enum_value: SECONDARY
help_text: |-
A instance that allows only reads and replicates data from a primary
instance.
- group:
api_field: instance.crossInstanceReplicationConfig.primaryInstance
required: false
help_text: |-
Details of the remote instance associated with this instance in a cross
instance replication setup.
params:
- arg_name: primary-instance
help_text: |-
The full resource path of the remote instance in
the format: projects/<project>/locations/<region>/instances/<instance-id>
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.memorystore.v1_resources:projects_locations_instances
resource_method_params:
instance.crossInstanceReplicationConfig.primaryInstance.instance: '{__relative_name__}'
required: false
clearable: true
- arg_name: cross-instance-replication-config-secondary-instances
api_field: instance.crossInstanceReplicationConfig.secondaryInstances
required: false
repeated: true
help_text: |-
List of secondary instances that are replicating from this primary
instance.
This field is only set for a primary instance.
clearable: true
spec:
- api_field: instance
resource_pattern: projects/{project}/locations/{location}/instances/{instance}
help_text: |-
The full resource path of the remote instance in
the format: projects/<project>/locations/<region>/instances/<instance-id>
- group:
api_field: instance.automatedBackupConfig
arg_name: automated-backup-config
clearable: true
required: false
help_text: |-
The automated backup config for an instance.
params:
- group:
mutex: true
help_text: |-
Arguments for the schedule.
params:
- group:
api_field: instance.automatedBackupConfig.fixedFrequencySchedule
required: false
help_text: |-
This schedule allows the backup to be triggered at a fixed frequency
(currently only daily is supported).
params:
- group:
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime
required: false
help_text: |-
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are [google.type.Date][google.type.Date] and `google.protobuf.Timestamp`.
params:
- arg_name: fixed-frequency-schedule-start-time-hours
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.hours
required: false
repeated: false
type: int
help_text: |-
Hours of a day in 24 hour format. Must be greater than or equal to 0 and
typically must be less than or equal to 23. An API may choose to allow the
value "24:00:00" for scenarios like business closing time.
- arg_name: fixed-frequency-schedule-start-time-minutes
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.minutes
required: false
repeated: false
type: int
help_text: |-
Minutes of an hour. Must be greater than or equal to 0 and less than or
equal to 59.
- arg_name: fixed-frequency-schedule-start-time-seconds
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.seconds
required: false
repeated: false
type: int
help_text: |-
Seconds of a minute. Must be greater than or equal to 0 and typically must
be less than or equal to 59. An API may allow the value 60 if it allows
leap-seconds.
- arg_name: fixed-frequency-schedule-start-time-nanos
api_field: instance.automatedBackupConfig.fixedFrequencySchedule.startTime.nanos
required: false
repeated: false
type: int
help_text: |-
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
and less than or equal to 999,999,999.
- arg_name: automated-backup-config-mode
api_field: instance.automatedBackupConfig.automatedBackupMode
required: false
help_text: |-
The automated backup mode. If the mode is disabled, the other fields will
be ignored.
choices:
- arg_value: disabled
enum_value: DISABLED
help_text: |-
Automated backup config disabled.
- arg_value: enabled
enum_value: ENABLED
help_text: |-
Automated backup config enabled.
- arg_name: automated-backup-config-retention
api_field: instance.automatedBackupConfig.retention
required: false
repeated: false
type: googlecloudsdk.core.util.times:ParseDuration
processor: googlecloudsdk.core.util.times:FormatDurationForJson
help_text: |-
How long to keep automated backups before the backups are deleted. The
value should be between 1 day and 365 days. If not specified, the default
value is 35 days.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
request:
api_version: v1
collection:
- memorystore.projects.locations.instances
async:
collection:
- memorystore.projects.locations.operations
update:
read_modify_update: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,27 @@
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Get certificate authority details of a Memorystore instance.
description: Get certificate authority details of a Memorystore instance.
examples: |
To get the certificate authority for instance `my-instance` in project `my-project` and
location `us-central1`, run:
$ {command} my-instance --project=my-project --location=us-central1
arguments:
params:
- help_text: |-
The name of the Memorystore instance.
Format: projects/{project}/locations/{location}/instances/{instance}
is_positional: true
request_id_field: instanceId
resource_spec: !REF googlecloudsdk.command_lib.memorystore.resources:instance
required: true
request:
ALPHA:
api_version: v1alpha
BETA:
api_version: v1beta
GA:
api_version: v1
collection: memorystore.projects.locations.instances
method: getCertificateAuthority

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
_PARTIALS_: true

View File

@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Command group for Memorystore for Valkey locations."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base
@base.DefaultUniverseOnly
class Locations(base.Group):
"""Manage Memorystore for Valkey locations."""

View File

@@ -0,0 +1,26 @@
- help_text:
brief: |
Show metadata for a Memorystore for Valkey location.
description: |
Display all metadata associated with a Memorystore for Valkey location given a valid
location name.
This command can fail for the following reasons:
* The location specified does not exist.
* The active account does not have permission to access the given
location.
examples: |
To display the metadata for the location `us-central1`, run:
$ {command} us-central1
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.memorystore.resources:project_location
help_text: |
Arguments and flags that specify the Memorystore for Valkey location you
want to describe.
request:
api_version: v1
collection: memorystore.projects.locations

View File

@@ -0,0 +1,28 @@
- help_text:
brief: |
List Memorystore for Valkey locations
description: |
List all locations where Memorystore for Valkey API is available.
examples: |
To list all the locations where Memorystore for Valkey instances can be created, run:
$ {command}
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.memorystore.resources:project
help_text: |
The project name.
request:
api_version: v1
collection: memorystore.projects.locations
response:
id_field: name
output:
format: |
table(
locationId:label=NAME:sort=1
)

View File

@@ -0,0 +1,35 @@
# -*- coding: utf-8 -*- #
# Copyright 2024 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Command group for Memorystore operations."""
from googlecloudsdk.calliope import base
@base.DefaultUniverseOnly
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
class OperationsALPHA(base.Group):
"""Manage Memorystore operations."""
@base.DefaultUniverseOnly
@base.ReleaseTracks(base.ReleaseTrack.BETA)
class OperationsBETA(base.Group):
"""Manage Memorystore operations."""
@base.DefaultUniverseOnly
@base.ReleaseTracks(base.ReleaseTrack.GA)
class OperationsGA(base.Group):
"""Manage Memorystore operations."""

View File

@@ -0,0 +1,24 @@
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Cancel a Memorystore operation.
description: Cancel a Memorystore operation.
examples: |
To cancel operation `my-operation` in project `my-project` and location `us-central1`, run:
$ {command} my-operation --project=my-project --location=us-central1
arguments:
params:
- help_text: The Memorystore operation to cancel.
is_positional: true
request_id_field: operationId
resource_spec: !REF googlecloudsdk.command_lib.memorystore.resources:operation
required: true
request:
ALPHA:
api_version: v1alpha
BETA:
api_version: v1beta
GA:
api_version: v1
collection: memorystore.projects.locations.operations
method: cancel

View File

@@ -0,0 +1,23 @@
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Delete a Memorystore operation.
description: Delete a Memorystore operation.
examples: |
To delete operation `my-operation` in project `my-project` and location `us-central1`, run:
$ {command} my-operation --project=my-project --location=us-central1
arguments:
params:
- help_text: The Memorystore operation to delete.
is_positional: true
request_id_field: operationId
resource_spec: !REF googlecloudsdk.command_lib.memorystore.resources:operation
required: true
request:
ALPHA:
api_version: v1alpha
BETA:
api_version: v1beta
GA:
api_version: v1
collection: memorystore.projects.locations.operations

View File

@@ -0,0 +1,23 @@
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Describe a Memorystore operation.
description: Describe a Memorystore operation.
examples: |
To describe operation `my-operation` in project `my-project` and location `us-central1`, run:
$ {command} my-operation --project=my-project --location=us-central1
arguments:
params:
- help_text: The Memorystore operation to describe.
is_positional: true
request_id_field: operationId
resource_spec: !REF googlecloudsdk.command_lib.memorystore.resources:operation
required: true
request:
ALPHA:
api_version: v1alpha
BETA:
api_version: v1beta
GA:
api_version: v1
collection: memorystore.projects.locations.operations

View File

@@ -0,0 +1,24 @@
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: List Memorystore operations.
description: List Memorystore operations.
examples: |
To list Memorystore operations in project `my-project` and location `us-central1`, run:
$ {command} --project=my-project --location=us-central1
arguments:
params:
- help_text: The parent collection of the Memorystore operations.
is_positional: false
resource_spec: !REF googlecloudsdk.command_lib.memorystore.resources:project_location
required: true
request:
ALPHA:
api_version: v1alpha
BETA:
api_version: v1beta
GA:
api_version: v1
collection: memorystore.projects.locations.operations
response:
id_field: name