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,34 @@
# -*- 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 Oracle Database resources."""
from googlecloudsdk.calliope import base
from surface.oracle_database import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
@base.Hidden
class OracleDatabaseAlpha(extensions.OracleDatabaseAlpha):
"""Manage Oracle Database resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class OracleDatabaseGa(extensions.OracleDatabaseGa):
"""Manage Oracle Database 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 OracleDatabaseAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
category = base.UNCATEGORIZED_CATEGORY
class OracleDatabaseBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
category = base.UNCATEGORIZED_CATEGORY
class OracleDatabaseGa(base.Group):
"""Optional no-auto-generated code for GA."""
category = base.UNCATEGORIZED_CATEGORY

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.
"""Manage Autonomous Database Backup resources."""
from googlecloudsdk.calliope import base
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.DefaultUniverseOnly
class AutonomousDatabaseBackupsAlpha(base.Group):
"""Manage Autonomous Database Backup resources."""
category = base.UNCATEGORIZED_CATEGORY
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.DefaultUniverseOnly
class AutonomousDatabaseBackupsGa(base.Group):
"""Manage Autonomous Database Backup resources."""
category = base.UNCATEGORIZED_CATEGORY

View File

@@ -0,0 +1,110 @@
# -*- 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 to list autonomous database backups."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from apitools.base.py import list_pager
from googlecloudsdk.api_lib.util import apis
from googlecloudsdk.calliope import base
from googlecloudsdk.calliope.concepts import concepts
from googlecloudsdk.command_lib.util.concepts import concept_parsers
VERSION_MAP = {
base.ReleaseTrack.ALPHA: 'v1alpha',
base.ReleaseTrack.GA: 'v1',
}
def LocationAttributeConfig():
return concepts.ResourceParameterAttributeConfig(
name='location', help_text='The Cloud location for the {resource}.')
def GetLocationResourceSpec(resource_name='location'):
return concepts.ResourceSpec(
'oracledatabase.projects.locations',
resource_name=resource_name,
locationsId=LocationAttributeConfig(),
projectsId=concepts.DEFAULT_PROJECT_ATTRIBUTE_CONFIG,
disable_auto_completers=True)
@base.ReleaseTracks(base.ReleaseTrack.ALPHA, base.ReleaseTrack.GA)
@base.DefaultUniverseOnly
class List(base.ListCommand):
r"""List autonomous database backups.
## DESCRIPTION
Lists all AutonomousDatabaseBackups for the specified
AutonomousDatabase.
## EXAMPLES
To list all backups for an AutonomousDatabase with id `my-instance` in the
location `us-east4`, run:
$ {command} --location=us-east4
--filter='autonomous_database_id="my-instance"'
"""
@staticmethod
def Args(parser):
concept_parsers.ConceptParser.ForResource(
'--location',
GetLocationResourceSpec(),
group_help='The location you want to list the connection profiles for.',
required=True).AddToParser(parser)
base.FILTER_FLAG.RemoveFromParser(parser)
base.Argument(
'--filter',
metavar='EXPRESSION',
require_coverage_in_tests=False,
category=base.LIST_COMMAND_FLAGS,
help="""\
Apply a ADB filter in the format :
--filter='autonomous_database_id="my-instance"'
""",
).AddToParser(parser)
def Run(self, args):
"""List autonomous database backups."""
client = apis.GetClientInstance(
'oracledatabase', VERSION_MAP[self.ReleaseTrack()])
messages = apis.GetMessagesModule(
'oracledatabase', VERSION_MAP[self.ReleaseTrack()])
ref = args.CONCEPTS.location.Parse()
server_filter = args.filter
# TODO(b/366489468): Remap the filter logic so that it works for both client
# and server side filter side.
# args.filter needs to be set to '' because the response doesn't contains
# autonomous_database_id in the response, so if the client side filter
# is not empty, the output will be empty.
args.filter = ''
return list_pager.YieldFromList(
client.projects_locations_autonomousDatabaseBackups,
messages.OracledatabaseProjectsLocationsAutonomousDatabaseBackupsListRequest(
parent=ref.RelativeName(),
pageSize=args.page_size,
filter=server_filter,
),
batch_size=args.page_size,
field='autonomousDatabaseBackups',
limit=args.limit,
batch_size_attribute='pageSize',
)

View File

@@ -0,0 +1,38 @@
# -*- 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 Autonomous Database Character Set resources."""
from googlecloudsdk.calliope import base
from surface.oracle_database.autonomous_database_character_sets import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
@base.Hidden
class AutonomousDatabaseCharacterSetsAlpha(
extensions.AutonomousDatabaseCharacterSetsAlpha
):
"""Manage Autonomous Database Character Set resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class AutonomousDatabaseCharacterSetsGa(
extensions.AutonomousDatabaseCharacterSetsGa
):
"""Manage Autonomous Database Character Set 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 AutonomousDatabaseCharacterSetsAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
category = base.UNCATEGORIZED_CATEGORY
class AutonomousDatabaseCharacterSetsBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
category = base.UNCATEGORIZED_CATEGORY
class AutonomousDatabaseCharacterSetsGa(base.Group):
"""Optional no-auto-generated code for GA."""
category = base.UNCATEGORIZED_CATEGORY

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
hidden: true
help_text:
brief: List all AutonomousDatabaseCharacterSets.
description: List all AutonomousDatabaseCharacterSets.
examples: |-
To list all AutonomousDatabaseCharacterSets in the location `us-east4`, run:
$ {command} --location=us-east4
arguments:
params:
- help_text: |-
The parent value for the Autonomous Database in the following format:
projects/{project}/locations/{location}.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations
required: true
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.autonomousDatabaseCharacterSets
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 AutonomousDatabaseCharacterSets.
description: List all AutonomousDatabaseCharacterSets.
examples: |-
To list all AutonomousDatabaseCharacterSets in the location `us-east4`, run:
$ {command} --location=us-east4
arguments:
params:
- help_text: |-
The parent value for the Autonomous Database in the following format:
projects/{project}/locations/{location}.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- oracledatabase.projects.locations.autonomousDatabaseCharacterSets
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,34 @@
# -*- 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 Autonomous Database resources."""
from googlecloudsdk.calliope import base
from surface.oracle_database.autonomous_databases import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
@base.Hidden
class AutonomousDatabasesAlpha(extensions.AutonomousDatabasesAlpha):
"""Manage Autonomous Database resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class AutonomousDatabasesGa(extensions.AutonomousDatabasesGa):
"""Manage Autonomous Database 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 AutonomousDatabasesAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
category = base.UNCATEGORIZED_CATEGORY
class AutonomousDatabasesBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
category = base.UNCATEGORIZED_CATEGORY
class AutonomousDatabasesGa(base.Group):
"""Optional no-auto-generated code for GA."""
category = base.UNCATEGORIZED_CATEGORY

View File

@@ -0,0 +1,449 @@
# -*- 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
hidden: true
help_text:
brief: Create a new AutonomousDatabase.
description: Create a new AutonomousDatabase.
examples: |-
To create AutonomousDatabase with id `my-instance` in the location `us-east4` with display-name `my instance`,
odb-network `projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork`,
odb-subnet `projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork/odbSubnets/my-odbsubnet`,
network `projects/my-project/locations/global/networks/default`, location `us-east4`, database `testadb`,
admin-password `123Abpassdord`, cidr `12.2.0.0/24`, properties-compute-count `2`, properties-db-version `19c`,
properties-license-type `LICENSE_INCLUDED`, properties-db-workload `DW`.
run:
To set the network configuration use one of the following options:
ODBNetwork based configuration(This is the recommended way):
$ {command} my-instance --location=us-east4 --display-name="my instance" \
--location=us-east4 --database=testadb --admin-password=123Abpassdord \
--properties-compute-count=2 --properties-db-version=19c \
--properties-license-type=LICENSE_INCLUDED --properties-db-workload=DW \
--odb-network=projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork \
--odb-subnet=projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork/odbSubnets/my-odbsubnet
Network and CIDR based configuration:
$ {command} my-instance --location=us-east4 --display-name="my instance" \
--network=projects/my-project/locations/global/networks/default --cidr=12.2.0.0/24 \
--location=us-east4 --database=testadb --admin-password=123Abpassdord \
--properties-compute-count=2 --properties-db-version=19c \
--properties-license-type=LICENSE_INCLUDED --properties-db-workload=DW
arguments:
params:
- help_text: |-
Identifier. The name of the Autonomous Database resource in the following format:
projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
is_positional: true
is_primary_resource: true
request_id_field: autonomousDatabaseId
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_autonomous_databases
required: true
- arg_name: database
api_field: autonomousDatabase.database
required: false
repeated: false
help_text: |-
The name of the Autonomous Database. The database name must be unique in
the project. The name must begin with a letter and can
contain a maximum of 30 alphanumeric characters.
- arg_name: display-name
api_field: autonomousDatabase.displayName
required: false
repeated: false
help_text: |-
The display name for the Autonomous Database. The name does not have to
be unique within your project.
- arg_name: admin-password
api_field: autonomousDatabase.adminPassword
required: false
repeated: false
help_text: |-
The password for the default ADMIN user.
- group:
api_field: autonomousDatabase.properties
required: false
help_text: |-
The properties of an Autonomous Database.
params:
- arg_name: properties-compute-count
api_field: autonomousDatabase.properties.computeCount
required: false
repeated: false
type: float
help_text: |-
The number of compute servers for the Autonomous Database.
- arg_name: properties-cpu-core-count
api_field: autonomousDatabase.properties.cpuCoreCount
required: false
repeated: false
type: int
help_text: |-
The number of CPU cores to be made available to the database.
- arg_name: properties-data-storage-size-tb
api_field: autonomousDatabase.properties.dataStorageSizeTb
required: false
repeated: false
type: int
help_text: |-
The size of the data stored in the database, in terabytes.
- arg_name: properties-data-storage-size-gb
api_field: autonomousDatabase.properties.dataStorageSizeGb
required: false
repeated: false
type: int
help_text: |-
The size of the data stored in the database, in gigabytes.
- arg_name: properties-db-workload
api_field: autonomousDatabase.properties.dbWorkload
required: true
help_text: |-
The workload type of the Autonomous Database.
choices:
- arg_value: oltp
enum_value: OLTP
help_text: |-
Autonomous Transaction Processing database.
hidden: true
- arg_value: dw
enum_value: DW
help_text: |-
Autonomous Data Warehouse database.
hidden: true
- arg_value: ajd
enum_value: AJD
help_text: |-
Autonomous JSON Database.
hidden: true
- arg_value: apex
enum_value: APEX
help_text: |-
Autonomous Database with the Oracle APEX Application Development workload
type.
hidden: true
- arg_name: properties-db-edition
api_field: autonomousDatabase.properties.dbEdition
required: false
help_text: |-
The edition of the Autonomous Databases.
choices:
- arg_value: standard-edition
enum_value: STANDARD_EDITION
help_text: |-
Standard Database Edition
hidden: true
- arg_value: enterprise-edition
enum_value: ENTERPRISE_EDITION
help_text: |-
Enterprise Database Edition
hidden: true
- arg_name: properties-character-set
api_field: autonomousDatabase.properties.characterSet
required: false
repeated: false
help_text: |-
The character set for the Autonomous Database. The default is AL32UTF8.
- arg_name: properties-n-character-set
api_field: autonomousDatabase.properties.nCharacterSet
required: false
repeated: false
help_text: |-
The national character set for the Autonomous Database. The default is
AL16UTF16.
- arg_name: properties-private-endpoint-ip
api_field: autonomousDatabase.properties.privateEndpointIp
required: false
repeated: false
help_text: |-
The private endpoint IP address for the Autonomous Database.
- arg_name: properties-private-endpoint-label
api_field: autonomousDatabase.properties.privateEndpointLabel
required: false
repeated: false
help_text: |-
The private endpoint label for the Autonomous Database.
- arg_name: properties-db-version
api_field: autonomousDatabase.properties.dbVersion
required: false
repeated: false
help_text: |-
The Oracle Database version for the Autonomous Database.
- arg_name: properties-is-auto-scaling-enabled
api_field: autonomousDatabase.properties.isAutoScalingEnabled
action: store_true
required: false
type: bool
help_text: |-
This field indicates if auto scaling is enabled for the Autonomous Database
CPU core count.
default: null
- arg_name: properties-is-storage-auto-scaling-enabled
api_field: autonomousDatabase.properties.isStorageAutoScalingEnabled
action: store_true
required: false
type: bool
help_text: |-
This field indicates if auto scaling is enabled for the Autonomous Database
storage.
default: null
- arg_name: properties-license-type
api_field: autonomousDatabase.properties.licenseType
required: true
help_text: |-
The license type used for the Autonomous Database.
choices:
- arg_value: license-included
enum_value: LICENSE_INCLUDED
help_text: |-
License included part of offer
hidden: true
- arg_value: bring-your-own-license
enum_value: BRING_YOUR_OWN_LICENSE
help_text: |-
Bring your own license
hidden: true
- arg_name: properties-customer-contacts
api_field: autonomousDatabase.properties.customerContacts
required: false
repeated: true
help_text: |-
The list of customer contacts.
spec:
- api_field: email
help_text: |-
The email address used by Oracle to send notifications regarding databases
and infrastructure.
- arg_name: properties-secret-id
api_field: autonomousDatabase.properties.secretId
required: false
repeated: false
help_text: |-
The ID of the Oracle Cloud Infrastructure vault secret.
- arg_name: properties-vault-id
api_field: autonomousDatabase.properties.vaultId
required: false
repeated: false
help_text: |-
The ID of the Oracle Cloud Infrastructure vault.
- arg_name: properties-maintenance-schedule-type
api_field: autonomousDatabase.properties.maintenanceScheduleType
required: false
help_text: |-
The maintenance schedule of the Autonomous Database.
choices:
- arg_value: early
enum_value: EARLY
help_text: |-
An EARLY maintenance schedule patches the database before
the regular scheduled maintenance.
hidden: true
- arg_value: regular
enum_value: REGULAR
help_text: |-
A REGULAR maintenance schedule follows the normal maintenance cycle.
hidden: true
- arg_name: properties-mtls-connection-required
api_field: autonomousDatabase.properties.mtlsConnectionRequired
action: store_true
required: false
type: bool
help_text: |-
This field specifies if the Autonomous Database requires mTLS connections.
default: null
- arg_name: properties-backup-retention-period-days
api_field: autonomousDatabase.properties.backupRetentionPeriodDays
required: false
repeated: false
type: int
help_text: |-
The retention period for the Autonomous Database. This field is specified
in days, can range from 1 day to 60 days, and has a default value of
60 days.
- arg_name: properties-allowlisted-ips
api_field: autonomousDatabase.properties.allowlistedIps
required: false
repeated: true
help_text: |-
The list of allowlisted IP addresses for the Autonomous Database.
- group:
api_field: autonomousDatabase.properties.encryptionKey
required: false
help_text: |-
The encryption key used to encrypt the Autonomous Database.
params:
- arg_name: encryption-key-provider
api_field: autonomousDatabase.properties.encryptionKey.provider
required: false
help_text: |-
The provider of the encryption key.
choices:
- arg_value: google-managed
enum_value: GOOGLE_MANAGED
help_text: |-
Google Managed KMS key, if selected, please provide the KMS key name.
hidden: true
- arg_value: oracle-managed
enum_value: ORACLE_MANAGED
help_text: |-
Oracle Managed.
hidden: true
- arg_name: encryption-key-kms
help_text: |-
The KMS key used to encrypt the Autonomous Database.
This field is required if the provider is GOOGLE_MANAGED.
The name of the KMS key resource in the following format:
`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_key_rings_crypto_keys
resource_method_params:
autonomousDatabase.properties.encryptionKey.kmsKey: '{__relative_name__}'
required: false
- arg_name: labels
api_field: autonomousDatabase.labels
required: false
repeated: true
help_text: |-
The labels or tags associated with the Autonomous Database.
spec:
- api_field: key
- api_field: value
- arg_name: network
help_text: |-
The name of the VPC network used by the Autonomous Database in the
following format:
projects/{project}/global/networks/{network}
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_none_networks
resource_method_params:
autonomousDatabase.network: '{__relative_name__}'
required: false
- arg_name: cidr
api_field: autonomousDatabase.cidr
required: false
repeated: false
help_text: |-
The subnet CIDR range for the Autonomous Database.
- arg_name: odb-network
help_text: |-
The name of the OdbNetwork associated with the Autonomous Database.
Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}
It is optional but if specified, this should match the parent ODBNetwork of
the OdbSubnet.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_odb_networks
resource_method_params:
autonomousDatabase.odbNetwork: '{__relative_name__}'
required: false
- arg_name: odb-subnet
help_text: |-
The name of the OdbSubnet associated with the Autonomous Database. Format:
projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_odb_networks_odb_subnets
resource_method_params:
autonomousDatabase.odbSubnet: '{__relative_name__}'
required: false
- group:
api_field: autonomousDatabase.sourceConfig
required: false
help_text: |-
The source configuration for the standby Autonomous Database.
params:
- arg_name: source-config-autonomous-database
help_text: |-
The name of the primary Autonomous Database that is used to create a Peer
Autonomous Database from a source.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_autonomous_databases
resource_method_params:
autonomousDatabase.sourceConfig.autonomousDatabase: '{__relative_name__}'
required: false
- arg_name: source-config-automatic-backups-replication-enabled
api_field: autonomousDatabase.sourceConfig.automaticBackupsReplicationEnabled
action: store_true
required: false
type: bool
help_text: |-
This field specifies if the replication of automatic backups is enabled
when creating a Data Guard.
default: null
- arg_name: source-config-type
api_field: autonomousDatabase.sourceConfig.sourceType
required: false
help_text: |-
The source type of the Autonomous Database.
choices:
- arg_value: clone-database
enum_value: CLONE_DATABASE
help_text: |-
Clone database from an existing database specified in
autonomous_database field.
hidden: true
- arg_value: cross-region-disaster-recovery
enum_value: CROSS_REGION_DISASTER_RECOVERY
help_text: |-
Create a cross-region disaster recovery peer adb from an existing adb.
hidden: true
- arg_name: source-config-clone-type
api_field: autonomousDatabase.sourceConfig.cloneType
required: false
help_text: |-
The clone type of the Autonomous Database. This field is only applicable
in case of cloning
choices:
- arg_value: full
enum_value: FULL
help_text: |-
Creates a new database with the source database's data and metadata.
hidden: true
- arg_value: metadata
enum_value: METADATA
help_text: |-
Creates a new database that includes all the source database schema
metadata, but none of the source database data.
hidden: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional ID to identify the request. This value is used to identify
duplicate requests. If you make a request with the same request ID
and the original request is still in progress or completed, the server
ignores 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:
- oracledatabase.projects.locations.autonomousDatabases
async:
collection:
- oracledatabase.projects.locations.operations

View File

@@ -0,0 +1,400 @@
# -*- 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 new AutonomousDatabase.
description: Create a new AutonomousDatabase.
examples: |-
To create AutonomousDatabase with id `my-instance` in the location `us-east4` with display-name `my instance`,
odb-network `projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork`,
odb-subnet `projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork/odbSubnets/my-odbsubnet`,
network `projects/my-project/locations/global/networks/default`, location `us-east4`, database `testadb`,
admin-password `123Abpassdord`, cidr `12.2.0.0/24`, properties-compute-count `2`, properties-db-version `19c`,
properties-license-type `LICENSE_INCLUDED`, properties-db-workload `DW`.
run:
To set the network configuration use one of the following options:
ODBNetwork based configuration(This is the recommended way):
$ {command} my-instance --location=us-east4 --display-name="my instance" \
--location=us-east4 --database=testadb --admin-password=123Abpassdord \
--properties-compute-count=2 --properties-db-version=19c \
--properties-license-type=LICENSE_INCLUDED --properties-db-workload=DW \
--odb-network=projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork \
--odb-subnet=projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork/odbSubnets/my-odbsubnet
Network and CIDR based configuration:
$ {command} my-instance --location=us-east4 --display-name="my instance" \
--network=projects/my-project/locations/global/networks/default --cidr=12.2.0.0/24 \
--location=us-east4 --database=testadb --admin-password=123Abpassdord \
--properties-compute-count=2 --properties-db-version=19c \
--properties-license-type=LICENSE_INCLUDED --properties-db-workload=DW
arguments:
params:
- help_text: |-
Identifier. The name of the Autonomous Database resource in the following format:
projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
is_positional: true
is_primary_resource: true
request_id_field: autonomousDatabaseId
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_autonomous_databases
required: true
- arg_name: database
api_field: autonomousDatabase.database
required: false
repeated: false
help_text: |-
The name of the Autonomous Database. The database name must be unique in
the project. The name must begin with a letter and can
contain a maximum of 30 alphanumeric characters.
- arg_name: display-name
api_field: autonomousDatabase.displayName
required: false
repeated: false
help_text: |-
The display name for the Autonomous Database. The name does not have to
be unique within your project.
- arg_name: admin-password
api_field: autonomousDatabase.adminPassword
required: false
repeated: false
help_text: |-
The password for the default ADMIN user.
- group:
api_field: autonomousDatabase.properties
required: false
help_text: |-
The properties of an Autonomous Database.
params:
- arg_name: properties-compute-count
api_field: autonomousDatabase.properties.computeCount
required: false
repeated: false
type: float
help_text: |-
The number of compute servers for the Autonomous Database.
- arg_name: properties-cpu-core-count
api_field: autonomousDatabase.properties.cpuCoreCount
required: false
repeated: false
type: int
help_text: |-
The number of CPU cores to be made available to the database.
- arg_name: properties-data-storage-size-tb
api_field: autonomousDatabase.properties.dataStorageSizeTb
required: false
repeated: false
type: int
help_text: |-
The size of the data stored in the database, in terabytes.
- arg_name: properties-data-storage-size-gb
api_field: autonomousDatabase.properties.dataStorageSizeGb
required: false
repeated: false
type: int
help_text: |-
The size of the data stored in the database, in gigabytes.
- arg_name: properties-db-workload
api_field: autonomousDatabase.properties.dbWorkload
required: true
help_text: |-
The workload type of the Autonomous Database.
choices:
- arg_value: oltp
enum_value: OLTP
help_text: |-
Autonomous Transaction Processing database.
- arg_value: dw
enum_value: DW
help_text: |-
Autonomous Data Warehouse database.
- arg_value: ajd
enum_value: AJD
help_text: |-
Autonomous JSON Database.
- arg_value: apex
enum_value: APEX
help_text: |-
Autonomous Database with the Oracle APEX Application Development workload
type.
- arg_name: properties-db-edition
api_field: autonomousDatabase.properties.dbEdition
required: false
help_text: |-
The edition of the Autonomous Databases.
choices:
- arg_value: standard-edition
enum_value: STANDARD_EDITION
help_text: |-
Standard Database Edition
- arg_value: enterprise-edition
enum_value: ENTERPRISE_EDITION
help_text: |-
Enterprise Database Edition
- arg_name: properties-character-set
api_field: autonomousDatabase.properties.characterSet
required: false
repeated: false
help_text: |-
The character set for the Autonomous Database. The default is AL32UTF8.
- arg_name: properties-n-character-set
api_field: autonomousDatabase.properties.nCharacterSet
required: false
repeated: false
help_text: |-
The national character set for the Autonomous Database. The default is
AL16UTF16.
- arg_name: properties-private-endpoint-ip
api_field: autonomousDatabase.properties.privateEndpointIp
required: false
repeated: false
help_text: |-
The private endpoint IP address for the Autonomous Database.
- arg_name: properties-private-endpoint-label
api_field: autonomousDatabase.properties.privateEndpointLabel
required: false
repeated: false
help_text: |-
The private endpoint label for the Autonomous Database.
- arg_name: properties-db-version
api_field: autonomousDatabase.properties.dbVersion
required: false
repeated: false
help_text: |-
The Oracle Database version for the Autonomous Database.
- arg_name: properties-is-auto-scaling-enabled
api_field: autonomousDatabase.properties.isAutoScalingEnabled
action: store_true
required: false
type: bool
help_text: |-
This field indicates if auto scaling is enabled for the Autonomous Database
CPU core count.
default: null
- arg_name: properties-is-storage-auto-scaling-enabled
api_field: autonomousDatabase.properties.isStorageAutoScalingEnabled
action: store_true
required: false
type: bool
help_text: |-
This field indicates if auto scaling is enabled for the Autonomous Database
storage.
default: null
- arg_name: properties-license-type
api_field: autonomousDatabase.properties.licenseType
required: true
help_text: |-
The license type used for the Autonomous Database.
choices:
- arg_value: license-included
enum_value: LICENSE_INCLUDED
help_text: |-
License included part of offer
- arg_value: bring-your-own-license
enum_value: BRING_YOUR_OWN_LICENSE
help_text: |-
Bring your own license
- arg_name: properties-customer-contacts
api_field: autonomousDatabase.properties.customerContacts
required: false
repeated: true
help_text: |-
The list of customer contacts.
spec:
- api_field: email
help_text: |-
The email address used by Oracle to send notifications regarding databases
and infrastructure.
- arg_name: properties-secret-id
api_field: autonomousDatabase.properties.secretId
required: false
repeated: false
help_text: |-
The ID of the Oracle Cloud Infrastructure vault secret.
- arg_name: properties-vault-id
api_field: autonomousDatabase.properties.vaultId
required: false
repeated: false
help_text: |-
The ID of the Oracle Cloud Infrastructure vault.
- arg_name: properties-maintenance-schedule-type
api_field: autonomousDatabase.properties.maintenanceScheduleType
required: false
help_text: |-
The maintenance schedule of the Autonomous Database.
choices:
- arg_value: early
enum_value: EARLY
help_text: |-
An EARLY maintenance schedule patches the database before
the regular scheduled maintenance.
- arg_value: regular
enum_value: REGULAR
help_text: |-
A REGULAR maintenance schedule follows the normal maintenance cycle.
- arg_name: properties-mtls-connection-required
api_field: autonomousDatabase.properties.mtlsConnectionRequired
action: store_true
required: false
type: bool
help_text: |-
This field specifies if the Autonomous Database requires mTLS connections.
default: null
- arg_name: properties-backup-retention-period-days
api_field: autonomousDatabase.properties.backupRetentionPeriodDays
required: false
repeated: false
type: int
help_text: |-
The retention period for the Autonomous Database. This field is specified
in days, can range from 1 day to 60 days, and has a default value of
60 days.
- arg_name: properties-allowlisted-ips
api_field: autonomousDatabase.properties.allowlistedIps
required: false
repeated: true
help_text: |-
The list of allowlisted IP addresses for the Autonomous Database.
- group:
api_field: autonomousDatabase.properties.encryptionKey
required: false
help_text: |-
The encryption key used to encrypt the Autonomous Database.
params:
- arg_name: encryption-key-provider
api_field: autonomousDatabase.properties.encryptionKey.provider
required: false
help_text: |-
The provider of the encryption key.
choices:
- arg_value: google-managed
enum_value: GOOGLE_MANAGED
help_text: |-
Google Managed KMS key, if selected, please provide the KMS key name.
- arg_value: oracle-managed
enum_value: ORACLE_MANAGED
help_text: |-
Oracle Managed.
- arg_name: encryption-key-kms
help_text: |-
The KMS key used to encrypt the Autonomous Database.
This field is required if the provider is GOOGLE_MANAGED.
The name of the KMS key resource in the following format:
`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_key_rings_crypto_keys
resource_method_params:
autonomousDatabase.properties.encryptionKey.kmsKey: '{__relative_name__}'
required: false
- arg_name: labels
api_field: autonomousDatabase.labels
required: false
repeated: true
help_text: |-
The labels or tags associated with the Autonomous Database.
spec:
- api_field: key
- api_field: value
- arg_name: network
help_text: |-
The name of the VPC network used by the Autonomous Database in the
following format:
projects/{project}/global/networks/{network}
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_none_networks
resource_method_params:
autonomousDatabase.network: '{__relative_name__}'
required: false
- arg_name: cidr
api_field: autonomousDatabase.cidr
required: false
repeated: false
help_text: |-
The subnet CIDR range for the Autonomous Database.
- arg_name: odb-network
help_text: |-
The name of the OdbNetwork associated with the Autonomous Database.
Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}
It is optional but if specified, this should match the parent ODBNetwork of
the OdbSubnet.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_odb_networks
resource_method_params:
autonomousDatabase.odbNetwork: '{__relative_name__}'
required: false
- arg_name: odb-subnet
help_text: |-
The name of the OdbSubnet associated with the Autonomous Database. Format:
projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_odb_networks_odb_subnets
resource_method_params:
autonomousDatabase.odbSubnet: '{__relative_name__}'
required: false
- group:
api_field: autonomousDatabase.sourceConfig
required: false
help_text: |-
The source configuration for the standby Autonomous Database.
params:
- arg_name: source-config-autonomous-database
help_text: |-
The name of the primary Autonomous Database that is used to create a Peer
Autonomous Database from a source.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_autonomous_databases
resource_method_params:
autonomousDatabase.sourceConfig.autonomousDatabase: '{__relative_name__}'
required: false
- arg_name: source-config-automatic-backups-replication-enabled
api_field: autonomousDatabase.sourceConfig.automaticBackupsReplicationEnabled
action: store_true
required: false
type: bool
help_text: |-
This field specifies if the replication of automatic backups is enabled
when creating a Data Guard.
default: null
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional ID to identify the request. This value is used to identify
duplicate requests. If you make a request with the same request ID
and the original request is still in progress or completed, the server
ignores 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:
- oracledatabase.projects.locations.autonomousDatabases
async:
collection:
- oracledatabase.projects.locations.operations

View File

@@ -0,0 +1,57 @@
# -*- 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
hidden: true
help_text:
brief: Delete an AutonomousDatabase.
description: Delete an AutonomousDatabase.
examples: |-
To delete an AutonomousDatabase with id `my-instance` in the location `us-east4`, run:
$ {command} my-instance --location=us-east4
arguments:
params:
- help_text: |-
The name of the resource in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_autonomous_databases
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional ID to identify the request. This value is used to identify
duplicate requests. If you make a request with the same request ID
and the original request is still in progress or completed, the server
ignores 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:
- oracledatabase.projects.locations.autonomousDatabases
async:
collection:
- oracledatabase.projects.locations.operations

View File

@@ -0,0 +1,56 @@
# -*- 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 an AutonomousDatabase.
description: Delete an AutonomousDatabase.
examples: |-
To delete an AutonomousDatabase with id `my-instance` in the location `us-east4`, run:
$ {command} my-instance --location=us-east4
arguments:
params:
- help_text: |-
The name of the resource in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_autonomous_databases
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional ID to identify the request. This value is used to identify
duplicate requests. If you make a request with the same request ID
and the original request is still in progress or completed, the server
ignores 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:
- oracledatabase.projects.locations.autonomousDatabases
async:
collection:
- oracledatabase.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
hidden: true
help_text:
brief: Get details of an AutonomousDatabase.
description: Get details of an AutonomousDatabase.
examples: |-
To get an AutonomousDatabase with id `my-instance` in the location `us-east4`, run:
$ {command} my-instance --location=us-east4
arguments:
params:
- help_text: |-
The name of the Autonomous Database in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_autonomous_databases
required: true
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.autonomousDatabases

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: Get details of an AutonomousDatabase.
description: Get details of an AutonomousDatabase.
examples: |-
To get an AutonomousDatabase with id `my-instance` in the location `us-east4`, run:
$ {command} my-instance --location=us-east4
arguments:
params:
- help_text: |-
The name of the Autonomous Database in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_autonomous_databases
required: true
request:
api_version: v1
collection:
- oracledatabase.projects.locations.autonomousDatabases

View File

@@ -0,0 +1,57 @@
# -*- 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
hidden: true
help_text:
brief: Failovers a standby AutonomousDatabase to a new primary.
description: Failovers an AutonomousDatabase from a standby database to a new primary.
examples: |-
To failover an AutonomousDatabase with id `my-instance` in the location `us-east4` with
primary database name as 'projects/project-id/locations/us-west3/autonomousDatabases/my-peer-instance'
run:
$ {command} my-instance --location=us-east4 --peer-autonomous-database=projects/project-id/locations/us-west3/autonomousDatabases/my-peer-instance
arguments:
params:
- help_text: |-
The name of the Autonomous Database in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_autonomous_databases
required: true
- arg_name: peer-autonomous-database
help_text: |-
The peer database name to fail over to.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_autonomous_databases
resource_method_params:
failoverAutonomousDatabaseRequest.peerAutonomousDatabase: '{__relative_name__}'
required: true
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.autonomousDatabases
method: failover
async:
collection:
- oracledatabase.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,56 @@
# -*- 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: Failovers a standby AutonomousDatabase to a new primary.
description: Failovers an AutonomousDatabase from a standby database to a new primary.
examples: |-
To failover an AutonomousDatabase with id `my-instance` in the location `us-east4` with
primary database name as 'projects/project-id/locations/us-west3/autonomousDatabases/my-peer-instance'
run:
$ {command} my-instance --location=us-east4 --peer-autonomous-database=projects/project-id/locations/us-west3/autonomousDatabases/my-peer-instance
arguments:
params:
- help_text: |-
The name of the Autonomous Database in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_autonomous_databases
required: true
- arg_name: peer-autonomous-database
help_text: |-
The peer database name to fail over to.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_autonomous_databases
resource_method_params:
failoverAutonomousDatabaseRequest.peerAutonomousDatabase: '{__relative_name__}'
required: true
request:
api_version: v1
collection:
- oracledatabase.projects.locations.autonomousDatabases
method: failover
async:
collection:
- oracledatabase.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,78 @@
# -*- 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
hidden: true
help_text:
brief: Generate wallet for an AutonomousDatabase.
description: Generate wallet for an AutonomousDatabase, Content is base64 encoded zip archive.
examples: |-
To generate wallet for an AutonomousDatabase with id `my-instance` with password `123Abpassword`,
to encrypt the keys inside the wallet in the location `us-east4`,
run:
$ {command} my-instance --location=us-east4 --password=123Abpassword
arguments:
params:
- help_text: |-
The name of the Autonomous Database in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_autonomous_databases
required: true
- arg_name: type
api_field: generateAutonomousDatabaseWalletRequest.type
required: false
help_text: |-
The type of wallet generation for the Autonomous Database. The default
value is SINGLE.
choices:
- arg_value: all
enum_value: ALL
help_text: |-
Used to generate wallet for all databases in the region.
hidden: true
- arg_value: single
enum_value: SINGLE
help_text: |-
Used to generate wallet for a single database.
hidden: true
- arg_name: is-regional
api_field: generateAutonomousDatabaseWalletRequest.isRegional
action: store_true
required: false
type: bool
help_text: |-
True when requesting regional connection strings in PDB connect info,
applicable to cross-region Data Guard only.
default: null
- arg_name: password
api_field: generateAutonomousDatabaseWalletRequest.password
required: true
repeated: false
help_text: |-
The password used to encrypt the keys inside the wallet. The password
must be a minimum of 8 characters.
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.autonomousDatabases
method: generateWallet
command_type: GENERIC

View File

@@ -0,0 +1,75 @@
# -*- 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: Generate wallet for an AutonomousDatabase.
description: Generate wallet for an AutonomousDatabase, Content is base64 encoded zip archive.
examples: |-
To generate wallet for an AutonomousDatabase with id `my-instance` with password `123Abpassword`,
to encrypt the keys inside the wallet in the location `us-east4`,
run:
$ {command} my-instance --location=us-east4 --password=123Abpassword
arguments:
params:
- help_text: |-
The name of the Autonomous Database in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_autonomous_databases
required: true
- arg_name: type
api_field: generateAutonomousDatabaseWalletRequest.type
required: false
help_text: |-
The type of wallet generation for the Autonomous Database. The default
value is SINGLE.
choices:
- arg_value: all
enum_value: ALL
help_text: |-
Used to generate wallet for all databases in the region.
- arg_value: single
enum_value: SINGLE
help_text: |-
Used to generate wallet for a single database.
- arg_name: is-regional
api_field: generateAutonomousDatabaseWalletRequest.isRegional
action: store_true
required: false
type: bool
help_text: |-
True when requesting regional connection strings in PDB connect info,
applicable to cross-region Data Guard only.
default: null
- arg_name: password
api_field: generateAutonomousDatabaseWalletRequest.password
required: true
repeated: false
help_text: |-
The password used to encrypt the keys inside the wallet. The password
must be a minimum of 8 characters.
request:
api_version: v1
collection:
- oracledatabase.projects.locations.autonomousDatabases
method: generateWallet
command_type: GENERIC

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
hidden: true
help_text:
brief: List all AutonomousDatabases.
description: List all AutonomousDatabases.
examples: |-
To list all AutonomousDatabases in the location `us-east4`, run:
$ {command} --location=us-east4
arguments:
params:
- help_text: |-
The parent value for the Autonomous Database in the following format:
projects/{project}/locations/{location}.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations
required: true
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.autonomousDatabases
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 AutonomousDatabases.
description: List all AutonomousDatabases.
examples: |-
To list all AutonomousDatabases in the location `us-east4`, run:
$ {command} --location=us-east4
arguments:
params:
- help_text: |-
The parent value for the Autonomous Database in the following format:
projects/{project}/locations/{location}.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- oracledatabase.projects.locations.autonomousDatabases
response:
id_field: name

View File

@@ -0,0 +1,47 @@
# -*- 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
hidden: true
help_text:
brief: Restarts an AutonomousDatabase.
description: Restarts an AutonomousDatabase which is in Running state.
examples: |-
To restart an AutonomousDatabase with id `my-instance` in the location `us-east4`,
run:
$ {command} my-instance --location=us-east4
arguments:
params:
- help_text: |-
The name of the Autonomous Database in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_autonomous_databases
required: true
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.autonomousDatabases
method: restart
async:
collection:
- oracledatabase.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,46 @@
# -*- 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: Restarts an AutonomousDatabase.
description: Restarts an AutonomousDatabase which is in Running state.
examples: |-
To restart an AutonomousDatabase with id `my-instance` in the location `us-east4`,
run:
$ {command} my-instance --location=us-east4
arguments:
params:
- help_text: |-
The name of the Autonomous Database in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_autonomous_databases
required: true
request:
api_version: v1
collection:
- oracledatabase.projects.locations.autonomousDatabases
method: restart
async:
collection:
- oracledatabase.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,56 @@
# -*- 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
hidden: true
help_text:
brief: Restore an AutonomousDatabase.
description: Restore an AutonomousDatabase to the state at specified restore-time.
examples: |-
To restore an AutonomousDatabase with id `my-instance` at restore-time `2024-05-01T00:00:00.000Z` in the location `us-east4` ,
The restore-time is the 'endTime' property of a backup.
run:
$ {command} my-instance --location=us-east4 --restore-time=2024-05-01T00:00:00.000Z
arguments:
params:
- help_text: |-
The name of the Autonomous Database in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_autonomous_databases
required: true
- arg_name: restore-time
api_field: restoreAutonomousDatabaseRequest.restoreTime
required: true
repeated: false
type: googlecloudsdk.core.util.times:ParseDateTime
processor: googlecloudsdk.core.util.times:FormatDateTime
help_text: |-
The time and date to restore the database to.
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.autonomousDatabases
method: restore
async:
collection:
- oracledatabase.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,55 @@
# -*- 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: Restore an AutonomousDatabase.
description: Restore an AutonomousDatabase to the state at specified restore-time.
examples: |-
To restore an AutonomousDatabase with id `my-instance` at restore-time `2024-05-01T00:00:00.000Z` in the location `us-east4` ,
The restore-time is the 'endTime' property of a backup.
run:
$ {command} my-instance --location=us-east4 --restore-time=2024-05-01T00:00:00.000Z
arguments:
params:
- help_text: |-
The name of the Autonomous Database in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_autonomous_databases
required: true
- arg_name: restore-time
api_field: restoreAutonomousDatabaseRequest.restoreTime
required: true
repeated: false
type: googlecloudsdk.core.util.times:ParseDateTime
processor: googlecloudsdk.core.util.times:FormatDateTime
help_text: |-
The time and date to restore the database to.
request:
api_version: v1
collection:
- oracledatabase.projects.locations.autonomousDatabases
method: restore
async:
collection:
- oracledatabase.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,47 @@
# -*- 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
hidden: true
help_text:
brief: Starts an AutonomousDatabase.
description: Starts an AutonomousDatabase which is in Stopped state.
examples: |-
To start an AutonomousDatabase with id `my-instance` in the location `us-east4`,
run:
$ {command} my-instance --location=us-east4
arguments:
params:
- help_text: |-
The name of the Autonomous Database in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_autonomous_databases
required: true
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.autonomousDatabases
method: start
async:
collection:
- oracledatabase.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,46 @@
# -*- 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: Starts an AutonomousDatabase.
description: Starts an AutonomousDatabase which is in Stopped state.
examples: |-
To start an AutonomousDatabase with id `my-instance` in the location `us-east4`,
run:
$ {command} my-instance --location=us-east4
arguments:
params:
- help_text: |-
The name of the Autonomous Database in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_autonomous_databases
required: true
request:
api_version: v1
collection:
- oracledatabase.projects.locations.autonomousDatabases
method: start
async:
collection:
- oracledatabase.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,47 @@
# -*- 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
hidden: true
help_text:
brief: Stops an AutonomousDatabase.
description: Stops an AutonomousDatabase which is in Running state.
examples: |-
To stop an AutonomousDatabase with id `my-instance` in the location `us-east4`,
run:
$ {command} my-instance --location=us-east4
arguments:
params:
- help_text: |-
The name of the Autonomous Database in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_autonomous_databases
required: true
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.autonomousDatabases
method: stop
async:
collection:
- oracledatabase.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,46 @@
# -*- 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: Stops an AutonomousDatabase.
description: Stops an AutonomousDatabase which is in Running state.
examples: |-
To stop an AutonomousDatabase with id `my-instance` in the location `us-east4`,
run:
$ {command} my-instance --location=us-east4
arguments:
params:
- help_text: |-
The name of the Autonomous Database in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_autonomous_databases
required: true
request:
api_version: v1
collection:
- oracledatabase.projects.locations.autonomousDatabases
method: stop
async:
collection:
- oracledatabase.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,57 @@
# -*- 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
hidden: true
help_text:
brief: Switchovers an AutonomousDatabase to a new primary.
description: Switchovers an AutonomousDatabase from a standby database to a new primary.
examples: |-
To switchover an AutonomousDatabase with id `my-instance` in the location `us-east4` with
primary database name as 'projects/project-id/locations/us-west3/autonomousDatabases/my-instance'
run:
$ {command} my-instance --location=us-east4 --peer-autonomous-database=projects/project-id/locations/us-west3/autonomousDatabases/my-instance
arguments:
params:
- help_text: |-
The name of the Autonomous Database in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_autonomous_databases
required: true
- arg_name: peer-autonomous-database
help_text: |-
The peer database name to switch over to.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_autonomous_databases
resource_method_params:
switchoverAutonomousDatabaseRequest.peerAutonomousDatabase: '{__relative_name__}'
required: true
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.autonomousDatabases
method: switchover
async:
collection:
- oracledatabase.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,56 @@
# -*- 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: Switchovers an AutonomousDatabase to a new primary.
description: Switchovers an AutonomousDatabase from a standby database to a new primary.
examples: |-
To switchover an AutonomousDatabase with id `my-instance` in the location `us-east4` with
primary database name as 'projects/project-id/locations/us-west3/autonomousDatabases/my-instance'
run:
$ {command} my-instance --location=us-east4 --peer-autonomous-database=projects/project-id/locations/us-west3/autonomousDatabases/my-instance
arguments:
params:
- help_text: |-
The name of the Autonomous Database in the following format:
projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_autonomous_databases
required: true
- arg_name: peer-autonomous-database
help_text: |-
The peer database name to switch over to.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_autonomous_databases
resource_method_params:
switchoverAutonomousDatabaseRequest.peerAutonomousDatabase: '{__relative_name__}'
required: true
request:
api_version: v1
collection:
- oracledatabase.projects.locations.autonomousDatabases
method: switchover
async:
collection:
- oracledatabase.projects.locations.operations
command_type: GENERIC

View File

@@ -0,0 +1,437 @@
# -*- 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
hidden: true
help_text:
brief: Update an AutonomousDatabase.
description: Update an AutonomousDatabase.
examples: |-
To Update the encryption for a given AutonomousDatabase with id `my-autonomous-database`
with custom KMS encryption key
`projects/project-id/locations/us-east4/keyRings/keyring/cryptoKeys/key`, run:
$ {command} my-autonomous-database --location=us-east4 --properties-encryption-key-provider=GOOGLE_MANAGED --properties-encryption-key-kms-key=projects/project-id/locations/us-east4/keyRings/keyring/cryptoKeys/key
arguments:
params:
- help_text: |-
Identifier. The name of the Autonomous Database resource in the following format:
projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_autonomous_databases
required: true
- arg_name: database
api_field: autonomousDatabase.database
required: false
repeated: false
help_text: |-
The name of the Autonomous Database. The database name must be unique in
the project. The name must begin with a letter and can
contain a maximum of 30 alphanumeric characters.
- arg_name: display-name
api_field: autonomousDatabase.displayName
required: false
repeated: false
help_text: |-
The display name for the Autonomous Database. The name does not have to
be unique within your project.
- arg_name: admin-password
api_field: autonomousDatabase.adminPassword
required: false
repeated: false
help_text: |-
The password for the default ADMIN user.
- group:
api_field: autonomousDatabase.properties
arg_name: properties
clearable: true
required: false
help_text: |-
The properties of an Autonomous Database.
params:
- arg_name: properties-compute-count
api_field: autonomousDatabase.properties.computeCount
required: false
repeated: false
type: float
help_text: |-
The number of compute servers for the Autonomous Database.
- arg_name: properties-cpu-core-count
api_field: autonomousDatabase.properties.cpuCoreCount
required: false
repeated: false
type: int
help_text: |-
The number of CPU cores to be made available to the database.
- arg_name: properties-data-storage-size-tb
api_field: autonomousDatabase.properties.dataStorageSizeTb
required: false
repeated: false
type: int
help_text: |-
The size of the data stored in the database, in terabytes.
- arg_name: properties-data-storage-size-gb
api_field: autonomousDatabase.properties.dataStorageSizeGb
required: false
repeated: false
type: int
help_text: |-
The size of the data stored in the database, in gigabytes.
- arg_name: properties-db-workload
api_field: autonomousDatabase.properties.dbWorkload
required: false
help_text: |-
The workload type of the Autonomous Database.
choices:
- arg_value: oltp
enum_value: OLTP
help_text: |-
Autonomous Transaction Processing database.
hidden: true
- arg_value: dw
enum_value: DW
help_text: |-
Autonomous Data Warehouse database.
hidden: true
- arg_value: ajd
enum_value: AJD
help_text: |-
Autonomous JSON Database.
hidden: true
- arg_value: apex
enum_value: APEX
help_text: |-
Autonomous Database with the Oracle APEX Application Development workload
type.
hidden: true
- arg_name: properties-db-edition
api_field: autonomousDatabase.properties.dbEdition
required: false
help_text: |-
The edition of the Autonomous Databases.
choices:
- arg_value: standard-edition
enum_value: STANDARD_EDITION
help_text: |-
Standard Database Edition
hidden: true
- arg_value: enterprise-edition
enum_value: ENTERPRISE_EDITION
help_text: |-
Enterprise Database Edition
hidden: true
- arg_name: properties-character-set
api_field: autonomousDatabase.properties.characterSet
required: false
repeated: false
help_text: |-
The character set for the Autonomous Database. The default is AL32UTF8.
- arg_name: properties-n-character-set
api_field: autonomousDatabase.properties.nCharacterSet
required: false
repeated: false
help_text: |-
The national character set for the Autonomous Database. The default is
AL16UTF16.
- arg_name: properties-private-endpoint-ip
api_field: autonomousDatabase.properties.privateEndpointIp
required: false
repeated: false
help_text: |-
The private endpoint IP address for the Autonomous Database.
- arg_name: properties-private-endpoint-label
api_field: autonomousDatabase.properties.privateEndpointLabel
required: false
repeated: false
help_text: |-
The private endpoint label for the Autonomous Database.
- arg_name: properties-db-version
api_field: autonomousDatabase.properties.dbVersion
required: false
repeated: false
help_text: |-
The Oracle Database version for the Autonomous Database.
- arg_name: properties-is-auto-scaling-enabled
api_field: autonomousDatabase.properties.isAutoScalingEnabled
action: store_true_false
required: false
type: bool
help_text: |-
This field indicates if auto scaling is enabled for the Autonomous Database
CPU core count.
- arg_name: properties-is-storage-auto-scaling-enabled
api_field: autonomousDatabase.properties.isStorageAutoScalingEnabled
action: store_true_false
required: false
type: bool
help_text: |-
This field indicates if auto scaling is enabled for the Autonomous Database
storage.
- arg_name: properties-license-type
api_field: autonomousDatabase.properties.licenseType
required: false
help_text: |-
The license type used for the Autonomous Database.
choices:
- arg_value: license-included
enum_value: LICENSE_INCLUDED
help_text: |-
License included part of offer
hidden: true
- arg_value: bring-your-own-license
enum_value: BRING_YOUR_OWN_LICENSE
help_text: |-
Bring your own license
hidden: true
- arg_name: properties-customer-contacts
api_field: autonomousDatabase.properties.customerContacts
required: false
repeated: true
help_text: |-
The list of customer contacts.
clearable: true
spec:
- api_field: email
help_text: |-
The email address used by Oracle to send notifications regarding databases
and infrastructure.
- arg_name: properties-secret-id
api_field: autonomousDatabase.properties.secretId
required: false
repeated: false
help_text: |-
The ID of the Oracle Cloud Infrastructure vault secret.
- arg_name: properties-vault-id
api_field: autonomousDatabase.properties.vaultId
required: false
repeated: false
help_text: |-
The ID of the Oracle Cloud Infrastructure vault.
- arg_name: properties-maintenance-schedule-type
api_field: autonomousDatabase.properties.maintenanceScheduleType
required: false
help_text: |-
The maintenance schedule of the Autonomous Database.
choices:
- arg_value: early
enum_value: EARLY
help_text: |-
An EARLY maintenance schedule patches the database before
the regular scheduled maintenance.
hidden: true
- arg_value: regular
enum_value: REGULAR
help_text: |-
A REGULAR maintenance schedule follows the normal maintenance cycle.
hidden: true
- arg_name: properties-mtls-connection-required
api_field: autonomousDatabase.properties.mtlsConnectionRequired
action: store_true_false
required: false
type: bool
help_text: |-
This field specifies if the Autonomous Database requires mTLS connections.
- arg_name: properties-backup-retention-period-days
api_field: autonomousDatabase.properties.backupRetentionPeriodDays
required: false
repeated: false
type: int
help_text: |-
The retention period for the Autonomous Database. This field is specified
in days, can range from 1 day to 60 days, and has a default value of
60 days.
- arg_name: properties-allowlisted-ips
api_field: autonomousDatabase.properties.allowlistedIps
required: false
repeated: true
help_text: |-
The list of allowlisted IP addresses for the Autonomous Database.
clearable: true
- group:
api_field: autonomousDatabase.properties.encryptionKey
required: false
help_text: |-
The encryption key used to encrypt the Autonomous Database.
params:
- arg_name: encryption-key-provider
api_field: autonomousDatabase.properties.encryptionKey.provider
required: false
help_text: |-
The provider of the encryption key.
choices:
- arg_value: google-managed
enum_value: GOOGLE_MANAGED
help_text: |-
Google Managed KMS key, if selected, please provide the KMS key name.
hidden: true
- arg_value: oracle-managed
enum_value: ORACLE_MANAGED
help_text: |-
Oracle Managed.
hidden: true
- arg_name: encryption-key-kms
help_text: |-
The KMS key used to encrypt the Autonomous Database.
This field is required if the provider is GOOGLE_MANAGED.
The name of the KMS key resource in the following format:
`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_key_rings_crypto_keys
resource_method_params:
autonomousDatabase.properties.encryptionKey.kmsKey: '{__relative_name__}'
required: false
clearable: true
- arg_name: labels
api_field: autonomousDatabase.labels
required: false
repeated: true
help_text: |-
The labels or tags associated with the Autonomous Database.
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: network
help_text: |-
The name of the VPC network used by the Autonomous Database in the
following format:
projects/{project}/global/networks/{network}
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_none_networks
resource_method_params:
autonomousDatabase.network: '{__relative_name__}'
required: false
clearable: true
- arg_name: cidr
api_field: autonomousDatabase.cidr
required: false
repeated: false
help_text: |-
The subnet CIDR range for the Autonomous Database.
- arg_name: odb-network
help_text: |-
The name of the OdbNetwork associated with the Autonomous Database.
Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}
It is optional but if specified, this should match the parent ODBNetwork of
the OdbSubnet.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_odb_networks
resource_method_params:
autonomousDatabase.odbNetwork: '{__relative_name__}'
required: false
clearable: true
- arg_name: odb-subnet
help_text: |-
The name of the OdbSubnet associated with the Autonomous Database. Format:
projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_odb_networks_odb_subnets
resource_method_params:
autonomousDatabase.odbSubnet: '{__relative_name__}'
required: false
clearable: true
- group:
api_field: autonomousDatabase.sourceConfig
arg_name: source-config
clearable: true
required: false
help_text: |-
The source configuration for the standby Autonomous Database.
params:
- arg_name: source-config-autonomous-database
help_text: |-
The name of the primary Autonomous Database that is used to create a Peer
Autonomous Database from a source.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_autonomous_databases
resource_method_params:
autonomousDatabase.sourceConfig.autonomousDatabase: '{__relative_name__}'
required: false
clearable: true
- arg_name: source-config-automatic-backups-replication-enabled
api_field: autonomousDatabase.sourceConfig.automaticBackupsReplicationEnabled
action: store_true_false
required: false
type: bool
help_text: |-
This field specifies if the replication of automatic backups is enabled
when creating a Data Guard.
- arg_name: source-config-type
api_field: autonomousDatabase.sourceConfig.sourceType
required: false
help_text: |-
The source type of the Autonomous Database.
choices:
- arg_value: clone-database
enum_value: CLONE_DATABASE
help_text: |-
Clone database from an existing database specified in
autonomous_database field.
hidden: true
- arg_value: cross-region-disaster-recovery
enum_value: CROSS_REGION_DISASTER_RECOVERY
help_text: |-
Create a cross-region disaster recovery peer adb from an existing adb.
hidden: true
- arg_name: source-config-clone-type
api_field: autonomousDatabase.sourceConfig.cloneType
required: false
help_text: |-
The clone type of the Autonomous Database. This field is only applicable
in case of cloning
choices:
- arg_value: full
enum_value: FULL
help_text: |-
Creates a new database with the source database's data and metadata.
hidden: true
- arg_value: metadata
enum_value: METADATA
help_text: |-
Creates a new database that includes all the source database schema
metadata, but none of the source database data.
hidden: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional ID to identify the request. This value is used to identify
duplicate requests. If you make a request with the same request ID
and the original request is still in progress or completed, the server
ignores 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:
- oracledatabase.projects.locations.autonomousDatabases
async:
collection:
- oracledatabase.projects.locations.operations
update:
read_modify_update: true

View File

@@ -0,0 +1,389 @@
# -*- 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 an AutonomousDatabase.
description: Update an AutonomousDatabase.
examples: |-
To Update the encryption for a given AutonomousDatabase with id `my-autonomous-database`
with custom KMS encryption key
`projects/project-id/locations/us-east4/keyRings/keyring/cryptoKeys/key`, run:
$ {command} my-autonomous-database --location=us-east4 --properties-encryption-key-provider=GOOGLE_MANAGED --properties-encryption-key-kms-key=projects/project-id/locations/us-east4/keyRings/keyring/cryptoKeys/key
arguments:
params:
- help_text: |-
Identifier. The name of the Autonomous Database resource in the following format:
projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_autonomous_databases
required: true
- arg_name: database
api_field: autonomousDatabase.database
required: false
repeated: false
help_text: |-
The name of the Autonomous Database. The database name must be unique in
the project. The name must begin with a letter and can
contain a maximum of 30 alphanumeric characters.
- arg_name: display-name
api_field: autonomousDatabase.displayName
required: false
repeated: false
help_text: |-
The display name for the Autonomous Database. The name does not have to
be unique within your project.
- arg_name: admin-password
api_field: autonomousDatabase.adminPassword
required: false
repeated: false
help_text: |-
The password for the default ADMIN user.
- group:
api_field: autonomousDatabase.properties
arg_name: properties
clearable: true
required: false
help_text: |-
The properties of an Autonomous Database.
params:
- arg_name: properties-compute-count
api_field: autonomousDatabase.properties.computeCount
required: false
repeated: false
type: float
help_text: |-
The number of compute servers for the Autonomous Database.
- arg_name: properties-cpu-core-count
api_field: autonomousDatabase.properties.cpuCoreCount
required: false
repeated: false
type: int
help_text: |-
The number of CPU cores to be made available to the database.
- arg_name: properties-data-storage-size-tb
api_field: autonomousDatabase.properties.dataStorageSizeTb
required: false
repeated: false
type: int
help_text: |-
The size of the data stored in the database, in terabytes.
- arg_name: properties-data-storage-size-gb
api_field: autonomousDatabase.properties.dataStorageSizeGb
required: false
repeated: false
type: int
help_text: |-
The size of the data stored in the database, in gigabytes.
- arg_name: properties-db-workload
api_field: autonomousDatabase.properties.dbWorkload
required: false
help_text: |-
The workload type of the Autonomous Database.
choices:
- arg_value: oltp
enum_value: OLTP
help_text: |-
Autonomous Transaction Processing database.
- arg_value: dw
enum_value: DW
help_text: |-
Autonomous Data Warehouse database.
- arg_value: ajd
enum_value: AJD
help_text: |-
Autonomous JSON Database.
- arg_value: apex
enum_value: APEX
help_text: |-
Autonomous Database with the Oracle APEX Application Development workload
type.
- arg_name: properties-db-edition
api_field: autonomousDatabase.properties.dbEdition
required: false
help_text: |-
The edition of the Autonomous Databases.
choices:
- arg_value: standard-edition
enum_value: STANDARD_EDITION
help_text: |-
Standard Database Edition
- arg_value: enterprise-edition
enum_value: ENTERPRISE_EDITION
help_text: |-
Enterprise Database Edition
- arg_name: properties-character-set
api_field: autonomousDatabase.properties.characterSet
required: false
repeated: false
help_text: |-
The character set for the Autonomous Database. The default is AL32UTF8.
- arg_name: properties-n-character-set
api_field: autonomousDatabase.properties.nCharacterSet
required: false
repeated: false
help_text: |-
The national character set for the Autonomous Database. The default is
AL16UTF16.
- arg_name: properties-private-endpoint-ip
api_field: autonomousDatabase.properties.privateEndpointIp
required: false
repeated: false
help_text: |-
The private endpoint IP address for the Autonomous Database.
- arg_name: properties-private-endpoint-label
api_field: autonomousDatabase.properties.privateEndpointLabel
required: false
repeated: false
help_text: |-
The private endpoint label for the Autonomous Database.
- arg_name: properties-db-version
api_field: autonomousDatabase.properties.dbVersion
required: false
repeated: false
help_text: |-
The Oracle Database version for the Autonomous Database.
- arg_name: properties-is-auto-scaling-enabled
api_field: autonomousDatabase.properties.isAutoScalingEnabled
action: store_true_false
required: false
type: bool
help_text: |-
This field indicates if auto scaling is enabled for the Autonomous Database
CPU core count.
- arg_name: properties-is-storage-auto-scaling-enabled
api_field: autonomousDatabase.properties.isStorageAutoScalingEnabled
action: store_true_false
required: false
type: bool
help_text: |-
This field indicates if auto scaling is enabled for the Autonomous Database
storage.
- arg_name: properties-license-type
api_field: autonomousDatabase.properties.licenseType
required: false
help_text: |-
The license type used for the Autonomous Database.
choices:
- arg_value: license-included
enum_value: LICENSE_INCLUDED
help_text: |-
License included part of offer
- arg_value: bring-your-own-license
enum_value: BRING_YOUR_OWN_LICENSE
help_text: |-
Bring your own license
- arg_name: properties-customer-contacts
api_field: autonomousDatabase.properties.customerContacts
required: false
repeated: true
help_text: |-
The list of customer contacts.
clearable: true
spec:
- api_field: email
help_text: |-
The email address used by Oracle to send notifications regarding databases
and infrastructure.
- arg_name: properties-secret-id
api_field: autonomousDatabase.properties.secretId
required: false
repeated: false
help_text: |-
The ID of the Oracle Cloud Infrastructure vault secret.
- arg_name: properties-vault-id
api_field: autonomousDatabase.properties.vaultId
required: false
repeated: false
help_text: |-
The ID of the Oracle Cloud Infrastructure vault.
- arg_name: properties-maintenance-schedule-type
api_field: autonomousDatabase.properties.maintenanceScheduleType
required: false
help_text: |-
The maintenance schedule of the Autonomous Database.
choices:
- arg_value: early
enum_value: EARLY
help_text: |-
An EARLY maintenance schedule patches the database before
the regular scheduled maintenance.
- arg_value: regular
enum_value: REGULAR
help_text: |-
A REGULAR maintenance schedule follows the normal maintenance cycle.
- arg_name: properties-mtls-connection-required
api_field: autonomousDatabase.properties.mtlsConnectionRequired
action: store_true_false
required: false
type: bool
help_text: |-
This field specifies if the Autonomous Database requires mTLS connections.
- arg_name: properties-backup-retention-period-days
api_field: autonomousDatabase.properties.backupRetentionPeriodDays
required: false
repeated: false
type: int
help_text: |-
The retention period for the Autonomous Database. This field is specified
in days, can range from 1 day to 60 days, and has a default value of
60 days.
- arg_name: properties-allowlisted-ips
api_field: autonomousDatabase.properties.allowlistedIps
required: false
repeated: true
help_text: |-
The list of allowlisted IP addresses for the Autonomous Database.
clearable: true
- group:
api_field: autonomousDatabase.properties.encryptionKey
required: false
help_text: |-
The encryption key used to encrypt the Autonomous Database.
params:
- arg_name: encryption-key-provider
api_field: autonomousDatabase.properties.encryptionKey.provider
required: false
help_text: |-
The provider of the encryption key.
choices:
- arg_value: google-managed
enum_value: GOOGLE_MANAGED
help_text: |-
Google Managed KMS key, if selected, please provide the KMS key name.
- arg_value: oracle-managed
enum_value: ORACLE_MANAGED
help_text: |-
Oracle Managed.
- arg_name: encryption-key-kms
help_text: |-
The KMS key used to encrypt the Autonomous Database.
This field is required if the provider is GOOGLE_MANAGED.
The name of the KMS key resource in the following format:
`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_key_rings_crypto_keys
resource_method_params:
autonomousDatabase.properties.encryptionKey.kmsKey: '{__relative_name__}'
required: false
clearable: true
- arg_name: labels
api_field: autonomousDatabase.labels
required: false
repeated: true
help_text: |-
The labels or tags associated with the Autonomous Database.
clearable: true
spec:
- api_field: key
- api_field: value
- arg_name: network
help_text: |-
The name of the VPC network used by the Autonomous Database in the
following format:
projects/{project}/global/networks/{network}
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_none_networks
resource_method_params:
autonomousDatabase.network: '{__relative_name__}'
required: false
clearable: true
- arg_name: cidr
api_field: autonomousDatabase.cidr
required: false
repeated: false
help_text: |-
The subnet CIDR range for the Autonomous Database.
- arg_name: odb-network
help_text: |-
The name of the OdbNetwork associated with the Autonomous Database.
Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}
It is optional but if specified, this should match the parent ODBNetwork of
the OdbSubnet.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_odb_networks
resource_method_params:
autonomousDatabase.odbNetwork: '{__relative_name__}'
required: false
clearable: true
- arg_name: odb-subnet
help_text: |-
The name of the OdbSubnet associated with the Autonomous Database. Format:
projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_odb_networks_odb_subnets
resource_method_params:
autonomousDatabase.odbSubnet: '{__relative_name__}'
required: false
clearable: true
- group:
api_field: autonomousDatabase.sourceConfig
arg_name: source-config
clearable: true
required: false
help_text: |-
The source configuration for the standby Autonomous Database.
params:
- arg_name: source-config-autonomous-database
help_text: |-
The name of the primary Autonomous Database that is used to create a Peer
Autonomous Database from a source.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_autonomous_databases
resource_method_params:
autonomousDatabase.sourceConfig.autonomousDatabase: '{__relative_name__}'
required: false
clearable: true
- arg_name: source-config-automatic-backups-replication-enabled
api_field: autonomousDatabase.sourceConfig.automaticBackupsReplicationEnabled
action: store_true_false
required: false
type: bool
help_text: |-
This field specifies if the replication of automatic backups is enabled
when creating a Data Guard.
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional ID to identify the request. This value is used to identify
duplicate requests. If you make a request with the same request ID
and the original request is still in progress or completed, the server
ignores 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:
- oracledatabase.projects.locations.autonomousDatabases
async:
collection:
- oracledatabase.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,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,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,34 @@
# -*- 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 Autonomous Db Version resources."""
from googlecloudsdk.calliope import base
from surface.oracle_database.autonomous_db_versions import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
@base.Hidden
class AutonomousDbVersionsAlpha(extensions.AutonomousDbVersionsAlpha):
"""Manage Autonomous Db Version resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class AutonomousDbVersionsGa(extensions.AutonomousDbVersionsGa):
"""Manage Autonomous Db Version 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 AutonomousDbVersionsAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
category = base.UNCATEGORIZED_CATEGORY
class AutonomousDbVersionsBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
category = base.UNCATEGORIZED_CATEGORY
class AutonomousDbVersionsGa(base.Group):
"""Optional no-auto-generated code for GA."""
category = base.UNCATEGORIZED_CATEGORY

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
hidden: true
help_text:
brief: List all AutonomousDbVersions.
description: List all AutonomousDbVersions.
examples: |-
To list all AutonomousDbVersions in the location `us-east4`, run:
$ {command} --location=us-east4
arguments:
params:
- help_text: |-
The parent value for the Autonomous Database in the following format:
projects/{project}/locations/{location}.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations
required: true
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.autonomousDbVersions
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 AutonomousDbVersions.
description: List all AutonomousDbVersions.
examples: |-
To list all AutonomousDbVersions in the location `us-east4`, run:
$ {command} --location=us-east4
arguments:
params:
- help_text: |-
The parent value for the Autonomous Database in the following format:
projects/{project}/locations/{location}.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- oracledatabase.projects.locations.autonomousDbVersions
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,36 @@
# -*- 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 Cloud Exadata Infrastructure resources."""
from googlecloudsdk.calliope import base
from surface.oracle_database.cloud_exadata_infrastructures import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
@base.Hidden
class CloudExadataInfrastructuresAlpha(
extensions.CloudExadataInfrastructuresAlpha
):
"""Manage Cloud Exadata Infrastructure resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class CloudExadataInfrastructuresGa(extensions.CloudExadataInfrastructuresGa):
"""Manage Cloud Exadata Infrastructure 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 CloudExadataInfrastructuresAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
category = base.UNCATEGORIZED_CATEGORY
class CloudExadataInfrastructuresBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
category = base.UNCATEGORIZED_CATEGORY
class CloudExadataInfrastructuresGa(base.Group):
"""Optional no-auto-generated code for GA."""
category = base.UNCATEGORIZED_CATEGORY

View File

@@ -0,0 +1,311 @@
# -*- 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
hidden: true
help_text:
brief: Create a new ExadataInfrastructure.
description: Creates a new ExadataInfrastructure.
examples: |-
Choose an available system shapes in your location by running
`gcloud oracle-database db-system-shapes list --location=us-east4`.
To create Exadata Infrastructure instance with id `my-instance` in the location `us-east4`
with display-name `my instance`, compute count `2` and choosen shape "Exadata.FOO", run:
$ {command} my-instance --location=us-east4 --display-name="my instance" \
--properties-shape=Exadata.FOO --properties-compute-count=2 --properties-storage-count=3
arguments:
params:
- help_text: |-
Identifier. The name of the Exadata Infrastructure resource with the format:
projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}
is_positional: true
is_primary_resource: true
request_id_field: cloudExadataInfrastructureId
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_cloud_exadata_infrastructures
required: true
- arg_name: display-name
api_field: cloudExadataInfrastructure.displayName
required: false
repeated: false
help_text: |-
User friendly name for this resource.
- arg_name: gcp-oracle-zone
api_field: cloudExadataInfrastructure.gcpOracleZone
required: false
repeated: false
help_text: |-
The GCP Oracle zone where Oracle Exadata Infrastructure is hosted.
Example: us-east4-b-r2.
If not specified, the system will pick a zone based on availability.
- group:
api_field: cloudExadataInfrastructure.properties
required: false
help_text: |-
Various properties of Exadata Infrastructure.
params:
- arg_name: properties-compute-count
api_field: cloudExadataInfrastructure.properties.computeCount
required: false
repeated: false
type: int
help_text: |-
The number of compute servers for the Exadata Infrastructure.
- arg_name: properties-storage-count
api_field: cloudExadataInfrastructure.properties.storageCount
required: false
repeated: false
type: int
help_text: |-
The number of Cloud Exadata storage servers for the Exadata Infrastructure.
- arg_name: properties-total-storage-size-gb
api_field: cloudExadataInfrastructure.properties.totalStorageSizeGb
required: false
repeated: false
type: int
help_text: |-
The total storage allocated to the Exadata Infrastructure
resource, in gigabytes (GB).
- group:
api_field: cloudExadataInfrastructure.properties.maintenanceWindow
required: false
help_text: |-
Maintenance window as defined by Oracle.
https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/MaintenanceWindow
params:
- arg_name: maintenance-window-preference
api_field: cloudExadataInfrastructure.properties.maintenanceWindow.preference
required: false
help_text: |-
The maintenance window scheduling preference.
choices:
- arg_value: custom-preference
enum_value: CUSTOM_PREFERENCE
help_text: |-
Custom preference.
hidden: true
- arg_value: no-preference
enum_value: NO_PREFERENCE
help_text: |-
No preference.
hidden: true
- arg_name: maintenance-window-months
api_field: cloudExadataInfrastructure.properties.maintenanceWindow.months
required: false
repeated: true
help_text: |-
Months during the year when maintenance should be performed.
choices:
- arg_value: january
enum_value: JANUARY
help_text: |-
The month of January.
- arg_value: february
enum_value: FEBRUARY
help_text: |-
The month of February.
- arg_value: march
enum_value: MARCH
help_text: |-
The month of March.
- arg_value: april
enum_value: APRIL
help_text: |-
The month of April.
- arg_value: may
enum_value: MAY
help_text: |-
The month of May.
- arg_value: june
enum_value: JUNE
help_text: |-
The month of June.
- arg_value: july
enum_value: JULY
help_text: |-
The month of July.
- arg_value: august
enum_value: AUGUST
help_text: |-
The month of August.
- arg_value: september
enum_value: SEPTEMBER
help_text: |-
The month of September.
- arg_value: october
enum_value: OCTOBER
help_text: |-
The month of October.
- arg_value: november
enum_value: NOVEMBER
help_text: |-
The month of November.
- arg_value: december
enum_value: DECEMBER
help_text: |-
The month of December.
- arg_name: maintenance-window-weeks-of-month
api_field: cloudExadataInfrastructure.properties.maintenanceWindow.weeksOfMonth
required: false
repeated: true
type: int
help_text: |-
Weeks during the month when maintenance should be performed. Weeks start on
the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7
days. Weeks start and end based on calendar dates, not days of the week.
- arg_name: maintenance-window-days-of-week
api_field: cloudExadataInfrastructure.properties.maintenanceWindow.daysOfWeek
required: false
repeated: true
help_text: |-
Days during the week when maintenance should be performed.
choices:
- arg_value: monday
enum_value: MONDAY
help_text: |-
Monday
- arg_value: tuesday
enum_value: TUESDAY
help_text: |-
Tuesday
- arg_value: wednesday
enum_value: WEDNESDAY
help_text: |-
Wednesday
- arg_value: thursday
enum_value: THURSDAY
help_text: |-
Thursday
- arg_value: friday
enum_value: FRIDAY
help_text: |-
Friday
- arg_value: saturday
enum_value: SATURDAY
help_text: |-
Saturday
- arg_value: sunday
enum_value: SUNDAY
help_text: |-
Sunday
- arg_name: maintenance-window-hours-of-day
api_field: cloudExadataInfrastructure.properties.maintenanceWindow.hoursOfDay
required: false
repeated: true
type: int
help_text: |-
The window of hours during the day when maintenance should be performed.
The window is a 4 hour slot. Valid values are:
0 - represents time slot 0:00 - 3:59 UTC
4 - represents time slot 4:00 - 7:59 UTC
8 - represents time slot 8:00 - 11:59 UTC
12 - represents time slot 12:00 - 15:59 UTC
16 - represents time slot 16:00 - 19:59 UTC
20 - represents time slot 20:00 - 23:59 UTC
- arg_name: maintenance-window-lead-time-week
api_field: cloudExadataInfrastructure.properties.maintenanceWindow.leadTimeWeek
required: false
repeated: false
type: int
help_text: |-
Lead time window allows user to set a lead time to prepare for a down time.
The lead time is in weeks and valid value is between 1 to 4.
- arg_name: maintenance-window-patching-mode
api_field: cloudExadataInfrastructure.properties.maintenanceWindow.patchingMode
required: false
help_text: |-
Cloud CloudExadataInfrastructure node patching method, either "ROLLING"
or "NONROLLING". Default value is ROLLING.
choices:
- arg_value: rolling
enum_value: ROLLING
help_text: |-
Updates the Cloud Exadata database server hosts in a rolling fashion.
hidden: true
- arg_value: non-rolling
enum_value: NON_ROLLING
help_text: |-
The non-rolling maintenance method first updates your storage servers at
the same time, then your database servers at the same time.
hidden: true
- arg_name: maintenance-window-custom-action-timeout-mins
api_field: cloudExadataInfrastructure.properties.maintenanceWindow.customActionTimeoutMins
required: false
repeated: false
type: int
help_text: |-
Determines the amount of time the system will wait before the start of each
database server patching operation. Custom action timeout is in minutes and
valid value is between 15 to 120 (inclusive).
- arg_name: maintenance-window-is-custom-action-timeout-enabled
api_field: cloudExadataInfrastructure.properties.maintenanceWindow.isCustomActionTimeoutEnabled
action: store_true
required: false
type: bool
help_text: |-
If true, enables the configuration of a custom action timeout (waiting
period) between database server patching operations.
default: null
- arg_name: properties-shape
api_field: cloudExadataInfrastructure.properties.shape
required: true
repeated: false
help_text: |-
The shape of the Exadata Infrastructure. The shape determines the
amount of CPU, storage, and memory resources allocated to the instance.
- arg_name: properties-customer-contacts
api_field: cloudExadataInfrastructure.properties.customerContacts
required: false
repeated: true
help_text: |-
The list of customer contacts.
spec:
- api_field: email
help_text: |-
The email address used by Oracle to send notifications regarding databases
and infrastructure.
- arg_name: labels
api_field: cloudExadataInfrastructure.labels
required: false
repeated: true
help_text: |-
Labels or tags associated with the resource.
spec:
- api_field: key
- api_field: value
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional ID to identify the request. This value is used to identify
duplicate requests. If you make a request with the same request ID
and the original request is still in progress or completed, the server
ignores 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:
- oracledatabase.projects.locations.cloudExadataInfrastructures
async:
collection:
- oracledatabase.projects.locations.operations

View File

@@ -0,0 +1,306 @@
# -*- 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 new ExadataInfrastructure.
description: Creates a new ExadataInfrastructure.
examples: |-
Choose an available system shapes in your location by running
`gcloud oracle-database db-system-shapes list --location=us-east4`.
To create Exadata Infrastructure instance with id `my-instance` in the location `us-east4`
with display-name `my instance`, compute count `2` and choosen shape "Exadata.FOO", run:
$ {command} my-instance --location=us-east4 --display-name="my instance" \
--properties-shape=Exadata.FOO --properties-compute-count=2 --properties-storage-count=3
arguments:
params:
- help_text: |-
Identifier. The name of the Exadata Infrastructure resource with the format:
projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}
is_positional: true
is_primary_resource: true
request_id_field: cloudExadataInfrastructureId
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_cloud_exadata_infrastructures
required: true
- arg_name: display-name
api_field: cloudExadataInfrastructure.displayName
required: false
repeated: false
help_text: |-
User friendly name for this resource.
- arg_name: gcp-oracle-zone
api_field: cloudExadataInfrastructure.gcpOracleZone
required: false
repeated: false
help_text: |-
The GCP Oracle zone where Oracle Exadata Infrastructure is hosted.
Example: us-east4-b-r2.
If not specified, the system will pick a zone based on availability.
- group:
api_field: cloudExadataInfrastructure.properties
required: false
help_text: |-
Various properties of Exadata Infrastructure.
params:
- arg_name: properties-compute-count
api_field: cloudExadataInfrastructure.properties.computeCount
required: false
repeated: false
type: int
help_text: |-
The number of compute servers for the Exadata Infrastructure.
- arg_name: properties-storage-count
api_field: cloudExadataInfrastructure.properties.storageCount
required: false
repeated: false
type: int
help_text: |-
The number of Cloud Exadata storage servers for the Exadata Infrastructure.
- arg_name: properties-total-storage-size-gb
api_field: cloudExadataInfrastructure.properties.totalStorageSizeGb
required: false
repeated: false
type: int
help_text: |-
The total storage allocated to the Exadata Infrastructure
resource, in gigabytes (GB).
- group:
api_field: cloudExadataInfrastructure.properties.maintenanceWindow
required: false
help_text: |-
Maintenance window as defined by Oracle.
https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/MaintenanceWindow
params:
- arg_name: maintenance-window-preference
api_field: cloudExadataInfrastructure.properties.maintenanceWindow.preference
required: false
help_text: |-
The maintenance window scheduling preference.
choices:
- arg_value: custom-preference
enum_value: CUSTOM_PREFERENCE
help_text: |-
Custom preference.
- arg_value: no-preference
enum_value: NO_PREFERENCE
help_text: |-
No preference.
- arg_name: maintenance-window-months
api_field: cloudExadataInfrastructure.properties.maintenanceWindow.months
required: false
repeated: true
help_text: |-
Months during the year when maintenance should be performed.
choices:
- arg_value: january
enum_value: JANUARY
help_text: |-
The month of January.
- arg_value: february
enum_value: FEBRUARY
help_text: |-
The month of February.
- arg_value: march
enum_value: MARCH
help_text: |-
The month of March.
- arg_value: april
enum_value: APRIL
help_text: |-
The month of April.
- arg_value: may
enum_value: MAY
help_text: |-
The month of May.
- arg_value: june
enum_value: JUNE
help_text: |-
The month of June.
- arg_value: july
enum_value: JULY
help_text: |-
The month of July.
- arg_value: august
enum_value: AUGUST
help_text: |-
The month of August.
- arg_value: september
enum_value: SEPTEMBER
help_text: |-
The month of September.
- arg_value: october
enum_value: OCTOBER
help_text: |-
The month of October.
- arg_value: november
enum_value: NOVEMBER
help_text: |-
The month of November.
- arg_value: december
enum_value: DECEMBER
help_text: |-
The month of December.
- arg_name: maintenance-window-weeks-of-month
api_field: cloudExadataInfrastructure.properties.maintenanceWindow.weeksOfMonth
required: false
repeated: true
type: int
help_text: |-
Weeks during the month when maintenance should be performed. Weeks start on
the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7
days. Weeks start and end based on calendar dates, not days of the week.
- arg_name: maintenance-window-days-of-week
api_field: cloudExadataInfrastructure.properties.maintenanceWindow.daysOfWeek
required: false
repeated: true
help_text: |-
Days during the week when maintenance should be performed.
choices:
- arg_value: monday
enum_value: MONDAY
help_text: |-
Monday
- arg_value: tuesday
enum_value: TUESDAY
help_text: |-
Tuesday
- arg_value: wednesday
enum_value: WEDNESDAY
help_text: |-
Wednesday
- arg_value: thursday
enum_value: THURSDAY
help_text: |-
Thursday
- arg_value: friday
enum_value: FRIDAY
help_text: |-
Friday
- arg_value: saturday
enum_value: SATURDAY
help_text: |-
Saturday
- arg_value: sunday
enum_value: SUNDAY
help_text: |-
Sunday
- arg_name: maintenance-window-hours-of-day
api_field: cloudExadataInfrastructure.properties.maintenanceWindow.hoursOfDay
required: false
repeated: true
type: int
help_text: |-
The window of hours during the day when maintenance should be performed.
The window is a 4 hour slot. Valid values are:
0 - represents time slot 0:00 - 3:59 UTC
4 - represents time slot 4:00 - 7:59 UTC
8 - represents time slot 8:00 - 11:59 UTC
12 - represents time slot 12:00 - 15:59 UTC
16 - represents time slot 16:00 - 19:59 UTC
20 - represents time slot 20:00 - 23:59 UTC
- arg_name: maintenance-window-lead-time-week
api_field: cloudExadataInfrastructure.properties.maintenanceWindow.leadTimeWeek
required: false
repeated: false
type: int
help_text: |-
Lead time window allows user to set a lead time to prepare for a down time.
The lead time is in weeks and valid value is between 1 to 4.
- arg_name: maintenance-window-patching-mode
api_field: cloudExadataInfrastructure.properties.maintenanceWindow.patchingMode
required: false
help_text: |-
Cloud CloudExadataInfrastructure node patching method, either "ROLLING"
or "NONROLLING". Default value is ROLLING.
choices:
- arg_value: rolling
enum_value: ROLLING
help_text: |-
Updates the Cloud Exadata database server hosts in a rolling fashion.
- arg_value: non-rolling
enum_value: NON_ROLLING
help_text: |-
The non-rolling maintenance method first updates your storage servers at
the same time, then your database servers at the same time.
- arg_name: maintenance-window-custom-action-timeout-mins
api_field: cloudExadataInfrastructure.properties.maintenanceWindow.customActionTimeoutMins
required: false
repeated: false
type: int
help_text: |-
Determines the amount of time the system will wait before the start of each
database server patching operation. Custom action timeout is in minutes and
valid value is between 15 to 120 (inclusive).
- arg_name: maintenance-window-is-custom-action-timeout-enabled
api_field: cloudExadataInfrastructure.properties.maintenanceWindow.isCustomActionTimeoutEnabled
action: store_true
required: false
type: bool
help_text: |-
If true, enables the configuration of a custom action timeout (waiting
period) between database server patching operations.
default: null
- arg_name: properties-shape
api_field: cloudExadataInfrastructure.properties.shape
required: true
repeated: false
help_text: |-
The shape of the Exadata Infrastructure. The shape determines the
amount of CPU, storage, and memory resources allocated to the instance.
- arg_name: properties-customer-contacts
api_field: cloudExadataInfrastructure.properties.customerContacts
required: false
repeated: true
help_text: |-
The list of customer contacts.
spec:
- api_field: email
help_text: |-
The email address used by Oracle to send notifications regarding databases
and infrastructure.
- arg_name: labels
api_field: cloudExadataInfrastructure.labels
required: false
repeated: true
help_text: |-
Labels or tags associated with the resource.
spec:
- api_field: key
- api_field: value
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional ID to identify the request. This value is used to identify
duplicate requests. If you make a request with the same request ID
and the original request is still in progress or completed, the server
ignores 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:
- oracledatabase.projects.locations.cloudExadataInfrastructures
async:
collection:
- oracledatabase.projects.locations.operations

View File

@@ -0,0 +1,67 @@
# -*- 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
hidden: true
help_text:
brief: Delete an ExadataInfrastructure.
description: Delete an ExadataInfrastructure.
examples: |-
To delete a ExadataInfrastructure with id `my-instance` in the location `us-east4`, run:
$ {command} my-instance --location=us-east4
arguments:
params:
- help_text: |-
The name of the Cloud Exadata Infrastructure in the following format:
projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_cloud_exadata_infrastructures
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional ID to identify the request. This value is used to identify
duplicate requests. If you make a request with the same request ID
and the original request is still in progress or completed, the server
ignores 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).
- arg_name: force
api_field: force
action: store_true
required: false
type: bool
help_text: |-
If set to true, all VM clusters for this Exadata Infrastructure will be
deleted. An Exadata Infrastructure can only be deleted once all its VM
clusters have been deleted.
default: null
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.cloudExadataInfrastructures
async:
collection:
- oracledatabase.projects.locations.operations

View File

@@ -0,0 +1,66 @@
# -*- 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 an ExadataInfrastructure.
description: Delete an ExadataInfrastructure.
examples: |-
To delete a ExadataInfrastructure with id `my-instance` in the location `us-east4`, run:
$ {command} my-instance --location=us-east4
arguments:
params:
- help_text: |-
The name of the Cloud Exadata Infrastructure in the following format:
projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_cloud_exadata_infrastructures
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional ID to identify the request. This value is used to identify
duplicate requests. If you make a request with the same request ID
and the original request is still in progress or completed, the server
ignores 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).
- arg_name: force
api_field: force
action: store_true
required: false
type: bool
help_text: |-
If set to true, all VM clusters for this Exadata Infrastructure will be
deleted. An Exadata Infrastructure can only be deleted once all its VM
clusters have been deleted.
default: null
request:
api_version: v1
collection:
- oracledatabase.projects.locations.cloudExadataInfrastructures
async:
collection:
- oracledatabase.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
hidden: true
help_text:
brief: Get details of a ExadataInfrastructure.
description: Get details of a ExadataInfrastructure.
examples: |-
To get a ExadataInfrastructure with id `my-instance` in the location `us-east4`, run:
$ {command} my-instance --location=us-east4
arguments:
params:
- help_text: |-
The name of the Cloud Exadata Infrastructure in the following format:
projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_cloud_exadata_infrastructures
required: true
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.cloudExadataInfrastructures

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: Get details of a ExadataInfrastructure.
description: Get details of a ExadataInfrastructure.
examples: |-
To get a ExadataInfrastructure with id `my-instance` in the location `us-east4`, run:
$ {command} my-instance --location=us-east4
arguments:
params:
- help_text: |-
The name of the Cloud Exadata Infrastructure in the following format:
projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_cloud_exadata_infrastructures
required: true
request:
api_version: v1
collection:
- oracledatabase.projects.locations.cloudExadataInfrastructures

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
hidden: true
help_text:
brief: List all ExadataInfrastructures.
description: List all ExadataInfrastructures.
examples: |-
To list all ExadataInfrastructures in the location `us-east4`, run:
$ {command} --location=us-east4
arguments:
params:
- help_text: |-
The parent value for CloudExadataInfrastructure in the following format:
projects/{project}/locations/{location}.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations
required: true
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.cloudExadataInfrastructures
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 ExadataInfrastructures.
description: List all ExadataInfrastructures.
examples: |-
To list all ExadataInfrastructures in the location `us-east4`, run:
$ {command} --location=us-east4
arguments:
params:
- help_text: |-
The parent value for CloudExadataInfrastructure in the following format:
projects/{project}/locations/{location}.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- oracledatabase.projects.locations.cloudExadataInfrastructures
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,34 @@
# -*- 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 Db Server resources."""
from googlecloudsdk.calliope import base
from surface.oracle_database.cloud_exadata_infrastructures.db_servers import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
@base.Hidden
class DbServersAlpha(extensions.DbServersAlpha):
"""Manage Db Server resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class DbServersGa(extensions.DbServersGa):
"""Manage Db Server 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 DbServersAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
class DbServersBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
class DbServersGa(base.Group):
"""Optional no-auto-generated code for GA."""

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
hidden: true
help_text:
brief: List all DbServers.
description: List all DbServers.
examples: |-
To list all DbServers in the location `us-east4`, run:
$ {command} --location=us-east4
arguments:
params:
- help_text: |-
The parent value for database server in the following format:
projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_cloud_exadata_infrastructures
required: true
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.cloudExadataInfrastructures.dbServers
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 DbServers.
description: List all DbServers.
examples: |-
To list all DbServers in the location `us-east4`, run:
$ {command} --location=us-east4
arguments:
params:
- help_text: |-
The parent value for database server in the following format:
projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_cloud_exadata_infrastructures
required: true
request:
api_version: v1
collection:
- oracledatabase.projects.locations.cloudExadataInfrastructures.dbServers
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,34 @@
# -*- 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 Cloud Vm Cluster resources."""
from googlecloudsdk.calliope import base
from surface.oracle_database.cloud_vm_clusters import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
@base.Hidden
class CloudVmClustersAlpha(extensions.CloudVmClustersAlpha):
"""Manage Cloud Vm Cluster resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class CloudVmClustersGa(extensions.CloudVmClustersGa):
"""Manage Cloud Vm Cluster 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 CloudVmClustersAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
category = base.UNCATEGORIZED_CATEGORY
class CloudVmClustersBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
category = base.UNCATEGORIZED_CATEGORY
class CloudVmClustersGa(base.Group):
"""Optional no-auto-generated code for GA."""
category = base.UNCATEGORIZED_CATEGORY

View File

@@ -0,0 +1,362 @@
# -*- 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
hidden: true
help_text:
brief: Create a new CloudVmCluster.
description: Create a new CloudVmCluster.
examples: |-
Choose an available gi-versions in your location by running
`gcloud oracle-database db-system-shapes list --location=us-east4`.
To create CloudVmCluster instance with id `my-instance` in the location `us-east4`
with display-name `my instance`, odb-network `projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork`,
odb-subnet `projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork/odbSubnets/my-odbsubnet`,
backup-odb-subnet `projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork/odbSubnets/my-backup-odbsubnet`,
cidr `10.1.0.0/24`, network `projects/my-project/locations/global/networks/default`,
backup-subnet-cidr `10.2.0.0/24`, license-type `LICENSE_INCLUDED`, ssh-public-keys `VtTxzlPJtIivthmLOmWdRDFy5l27pKUTwLp02`,
hostname-prefix `hostname1`, cpu-core-count `4` and choosen gi-version `xx.0.0.0`, run:
To set the network configuration use one of the following options:
ODBNetwork based configuration(This is the recommended way):
$ {command} my-instance --location=us-east4 --display-name="my instance" \
--odb-network=projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork \
--odb-subnet=projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork/odbSubnets/my-odbsubnet \
--backup-odb-subnet=projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork/odbSubnets/my-backup-odbsubnet \
--properties-license-type=LICENSE_INCLUDED \
--properties-ssh-public-keys="VtTxzlPJtIivthmLOmWdRDFy5l27pKUTwLp02" \
--properties-gi-version=xx.0.0.0 --properties-hostname-prefix=hostname1 \
--properties-cpu-core-count=4
Network and CIDR based configuration:
$ {command} my-instance --location=us-east4 --display-name="my instance" \
--cidr=10.1.0.0/24 --network=projects/my-project/locations/global/networks/default \
--backup-subnet-cidr=10.2.0.0/24 --properties-license-type=LICENSE_INCLUDED \
--properties-ssh-public-keys="VtTxzlPJtIivthmLOmWdRDFy5l27pKUTwLp02" \
--properties-gi-version=xx.0.0.0 --properties-hostname-prefix=hostname1 \
--properties-cpu-core-count=4
arguments:
params:
- help_text: |-
Identifier. The name of the VM Cluster resource with the format:
projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster}
is_positional: true
is_primary_resource: true
request_id_field: cloudVmClusterId
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_cloud_vm_clusters
required: true
- arg_name: exadata-infrastructure
help_text: |-
The name of the Exadata Infrastructure resource on which VM cluster
resource is created, in the following format:
projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_cloud_exadata_infrastructures
resource_method_params:
cloudVmCluster.exadataInfrastructure: '{__relative_name__}'
required: true
- arg_name: display-name
api_field: cloudVmCluster.displayName
required: false
repeated: false
help_text: |-
User friendly name for this resource.
- group:
api_field: cloudVmCluster.properties
required: false
help_text: |-
Various properties and settings associated with Exadata VM cluster.
params:
- arg_name: properties-license-type
api_field: cloudVmCluster.properties.licenseType
required: true
help_text: |-
License type of VM Cluster.
choices:
- arg_value: license-included
enum_value: LICENSE_INCLUDED
help_text: |-
License included part of offer
hidden: true
- arg_value: bring-your-own-license
enum_value: BRING_YOUR_OWN_LICENSE
help_text: |-
Bring your own license
hidden: true
- arg_name: properties-gi-version
api_field: cloudVmCluster.properties.giVersion
required: false
repeated: false
help_text: |-
Grid Infrastructure Version.
- group:
api_field: cloudVmCluster.properties.timeZone
required: false
help_text: |-
Represents a time zone from the
[IANA Time Zone Database](https://www.iana.org/time-zones).
params:
- arg_name: time-zone-id
api_field: cloudVmCluster.properties.timeZone.id
required: false
repeated: false
help_text: |-
IANA Time Zone Database time zone. For example "America/New_York".
- arg_name: time-zone-version
api_field: cloudVmCluster.properties.timeZone.version
required: false
repeated: false
help_text: |-
IANA Time Zone Database version number. For example "2019a".
- arg_name: properties-ssh-public-keys
api_field: cloudVmCluster.properties.sshPublicKeys
required: false
repeated: true
help_text: |-
SSH public keys to be stored with cluster.
- arg_name: properties-node-count
api_field: cloudVmCluster.properties.nodeCount
required: false
repeated: false
type: int
help_text: |-
Number of database servers.
- arg_name: properties-ocpu-count
api_field: cloudVmCluster.properties.ocpuCount
required: false
repeated: false
type: float
help_text: |-
OCPU count per VM. Minimum is 0.1.
- arg_name: properties-memory-size-gb
api_field: cloudVmCluster.properties.memorySizeGb
required: false
repeated: false
type: int
help_text: |-
Memory allocated in GBs.
- arg_name: properties-db-node-storage-size-gb
api_field: cloudVmCluster.properties.dbNodeStorageSizeGb
required: false
repeated: false
type: int
help_text: |-
Local storage per VM.
- arg_name: properties-data-storage-size-tb
api_field: cloudVmCluster.properties.dataStorageSizeTb
required: false
repeated: false
type: float
help_text: |-
The data disk group size to be allocated in TBs.
- arg_name: properties-disk-redundancy
api_field: cloudVmCluster.properties.diskRedundancy
required: false
help_text: |-
The type of redundancy.
choices:
- arg_value: high
enum_value: HIGH
help_text: |-
High - 3 way mirror.
hidden: true
- arg_value: normal
enum_value: NORMAL
help_text: |-
Normal - 2 way mirror.
hidden: true
- arg_name: properties-sparse-diskgroup-enabled
api_field: cloudVmCluster.properties.sparseDiskgroupEnabled
action: store_true
required: false
type: bool
help_text: |-
Use exadata sparse snapshots.
default: null
- arg_name: properties-local-backup-enabled
api_field: cloudVmCluster.properties.localBackupEnabled
action: store_true
required: false
type: bool
help_text: |-
Use local backup.
default: null
- arg_name: properties-hostname-prefix
api_field: cloudVmCluster.properties.hostnamePrefix
required: false
repeated: false
help_text: |-
Prefix for VM cluster host names.
- group:
api_field: cloudVmCluster.properties.diagnosticsDataCollectionOptions
required: false
help_text: |-
Data collection options for diagnostics.
params:
- arg_name: diagnostics-data-collection-options-events-enabled
api_field: cloudVmCluster.properties.diagnosticsDataCollectionOptions.diagnosticsEventsEnabled
action: store_true
required: false
type: bool
help_text: |-
Indicates whether diagnostic collection is enabled for the VM cluster
default: null
- arg_name: diagnostics-data-collection-options-health-monitoring-enabled
api_field: cloudVmCluster.properties.diagnosticsDataCollectionOptions.healthMonitoringEnabled
action: store_true
required: false
type: bool
help_text: |-
Indicates whether health monitoring is enabled for the VM cluster
default: null
- arg_name: diagnostics-data-collection-options-incident-logs-enabled
api_field: cloudVmCluster.properties.diagnosticsDataCollectionOptions.incidentLogsEnabled
action: store_true
required: false
type: bool
help_text: |-
Indicates whether incident logs and trace collection are enabled for the VM
cluster
default: null
- arg_name: properties-cpu-core-count
api_field: cloudVmCluster.properties.cpuCoreCount
required: true
repeated: false
type: int
help_text: |-
Number of enabled CPU cores.
- arg_name: properties-system-version
api_field: cloudVmCluster.properties.systemVersion
required: false
repeated: false
help_text: |-
Operating system version of the image.
- arg_name: properties-db-server-ocids
api_field: cloudVmCluster.properties.dbServerOcids
required: false
repeated: true
help_text: |-
OCID of database servers.
- arg_name: properties-cluster-name
api_field: cloudVmCluster.properties.clusterName
required: false
repeated: false
help_text: |-
OCI Cluster name.
- arg_name: labels
api_field: cloudVmCluster.labels
required: false
repeated: true
help_text: |-
Labels or tags associated with the VM Cluster.
spec:
- api_field: key
- api_field: value
- arg_name: cidr
api_field: cloudVmCluster.cidr
required: false
repeated: false
help_text: |-
Network settings. CIDR to use for cluster IP allocation.
- arg_name: backup-subnet-cidr
api_field: cloudVmCluster.backupSubnetCidr
required: false
repeated: false
help_text: |-
CIDR range of the backup subnet.
- arg_name: network
help_text: |-
The name of the VPC network.
Format: projects/{project}/global/networks/{network}
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_none_networks
resource_method_params:
cloudVmCluster.network: '{__relative_name__}'
required: false
- arg_name: odb-network
help_text: |-
The name of the OdbNetwork associated with the VM Cluster.
Format:
projects/{project}/locations/{location}/odbNetworks/{odb_network}
It is optional but if specified, this should match the parent ODBNetwork of
the odb_subnet and backup_odb_subnet.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_odb_networks
resource_method_params:
cloudVmCluster.odbNetwork: '{__relative_name__}'
required: false
- arg_name: odb-subnet
help_text: |-
The name of the OdbSubnet associated with the VM Cluster for
IP allocation. Format:
projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_odb_networks_odb_subnets
resource_method_params:
cloudVmCluster.odbSubnet: '{__relative_name__}'
required: false
- arg_name: backup-odb-subnet
help_text: |-
The name of the backup OdbSubnet associated with the VM Cluster.
Format:
projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_odb_networks_odb_subnets
resource_method_params:
cloudVmCluster.backupOdbSubnet: '{__relative_name__}'
required: false
- arg_name: exascale-db-storage-vault
help_text: |-
The name of ExascaleDbStorageVault associated with the VM Cluster.
Format:
projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_exascale_db_storage_vaults
resource_method_params:
cloudVmCluster.exascaleDbStorageVault: '{__relative_name__}'
required: false
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional ID to identify the request. This value is used to identify
duplicate requests. If you make a request with the same request ID
and the original request is still in progress or completed, the server
ignores 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:
- oracledatabase.projects.locations.cloudVmClusters
async:
collection:
- oracledatabase.projects.locations.operations

View File

@@ -0,0 +1,346 @@
# -*- 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 new CloudVmCluster.
description: Create a new CloudVmCluster.
examples: |-
Choose an available gi-versions in your location by running
`gcloud oracle-database db-system-shapes list --location=us-east4`.
To create CloudVmCluster instance with id `my-instance` in the location `us-east4`
with display-name `my instance`, odb-network `projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork`,
odb-subnet `projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork/odbSubnets/my-odbsubnet`,
backup-odb-subnet `projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork/odbSubnets/my-backup-odbsubnet`,
cidr `10.1.0.0/24`, network `projects/my-project/locations/global/networks/default`,
backup-subnet-cidr `10.2.0.0/24`, license-type `LICENSE_INCLUDED`, ssh-public-keys `VtTxzlPJtIivthmLOmWdRDFy5l27pKUTwLp02`,
hostname-prefix `hostname1`, cpu-core-count `4` and choosen gi-version `xx.0.0.0`, run:
To set the network configuration use one of the following options:
ODBNetwork based configuration(This is the recommended way):
$ {command} my-instance --location=us-east4 --display-name="my instance" \
--odb-network=projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork \
--odb-subnet=projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork/odbSubnets/my-odbsubnet \
--backup-odb-subnet=projects/network-project/locations/us-east4/odbNetworks/my-odbnetwork/odbSubnets/my-backup-odbsubnet \
--properties-license-type=LICENSE_INCLUDED \
--properties-ssh-public-keys="VtTxzlPJtIivthmLOmWdRDFy5l27pKUTwLp02" \
--properties-gi-version=xx.0.0.0 --properties-hostname-prefix=hostname1 \
--properties-cpu-core-count=4
Network and CIDR based configuration:
$ {command} my-instance --location=us-east4 --display-name="my instance" \
--cidr=10.1.0.0/24 --network=projects/my-project/locations/global/networks/default \
--backup-subnet-cidr=10.2.0.0/24 --properties-license-type=LICENSE_INCLUDED \
--properties-ssh-public-keys="VtTxzlPJtIivthmLOmWdRDFy5l27pKUTwLp02" \
--properties-gi-version=xx.0.0.0 --properties-hostname-prefix=hostname1 \
--properties-cpu-core-count=4
arguments:
params:
- help_text: |-
Identifier. The name of the VM Cluster resource with the format:
projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster}
is_positional: true
is_primary_resource: true
request_id_field: cloudVmClusterId
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_cloud_vm_clusters
required: true
- arg_name: exadata-infrastructure
help_text: |-
The name of the Exadata Infrastructure resource on which VM cluster
resource is created, in the following format:
projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_cloud_exadata_infrastructures
resource_method_params:
cloudVmCluster.exadataInfrastructure: '{__relative_name__}'
required: true
- arg_name: display-name
api_field: cloudVmCluster.displayName
required: false
repeated: false
help_text: |-
User friendly name for this resource.
- group:
api_field: cloudVmCluster.properties
required: false
help_text: |-
Various properties and settings associated with Exadata VM cluster.
params:
- arg_name: properties-license-type
api_field: cloudVmCluster.properties.licenseType
required: true
help_text: |-
License type of VM Cluster.
choices:
- arg_value: license-included
enum_value: LICENSE_INCLUDED
help_text: |-
License included part of offer
- arg_value: bring-your-own-license
enum_value: BRING_YOUR_OWN_LICENSE
help_text: |-
Bring your own license
- arg_name: properties-gi-version
api_field: cloudVmCluster.properties.giVersion
required: false
repeated: false
help_text: |-
Grid Infrastructure Version.
- group:
api_field: cloudVmCluster.properties.timeZone
required: false
help_text: |-
Represents a time zone from the
[IANA Time Zone Database](https://www.iana.org/time-zones).
params:
- arg_name: time-zone-id
api_field: cloudVmCluster.properties.timeZone.id
required: false
repeated: false
help_text: |-
IANA Time Zone Database time zone. For example "America/New_York".
- arg_name: time-zone-version
api_field: cloudVmCluster.properties.timeZone.version
required: false
repeated: false
help_text: |-
IANA Time Zone Database version number. For example "2019a".
- arg_name: properties-ssh-public-keys
api_field: cloudVmCluster.properties.sshPublicKeys
required: false
repeated: true
help_text: |-
SSH public keys to be stored with cluster.
- arg_name: properties-node-count
api_field: cloudVmCluster.properties.nodeCount
required: false
repeated: false
type: int
help_text: |-
Number of database servers.
- arg_name: properties-ocpu-count
api_field: cloudVmCluster.properties.ocpuCount
required: false
repeated: false
type: float
help_text: |-
OCPU count per VM. Minimum is 0.1.
- arg_name: properties-memory-size-gb
api_field: cloudVmCluster.properties.memorySizeGb
required: false
repeated: false
type: int
help_text: |-
Memory allocated in GBs.
- arg_name: properties-db-node-storage-size-gb
api_field: cloudVmCluster.properties.dbNodeStorageSizeGb
required: false
repeated: false
type: int
help_text: |-
Local storage per VM.
- arg_name: properties-data-storage-size-tb
api_field: cloudVmCluster.properties.dataStorageSizeTb
required: false
repeated: false
type: float
help_text: |-
The data disk group size to be allocated in TBs.
- arg_name: properties-disk-redundancy
api_field: cloudVmCluster.properties.diskRedundancy
required: false
help_text: |-
The type of redundancy.
choices:
- arg_value: high
enum_value: HIGH
help_text: |-
High - 3 way mirror.
- arg_value: normal
enum_value: NORMAL
help_text: |-
Normal - 2 way mirror.
- arg_name: properties-sparse-diskgroup-enabled
api_field: cloudVmCluster.properties.sparseDiskgroupEnabled
action: store_true
required: false
type: bool
help_text: |-
Use exadata sparse snapshots.
default: null
- arg_name: properties-local-backup-enabled
api_field: cloudVmCluster.properties.localBackupEnabled
action: store_true
required: false
type: bool
help_text: |-
Use local backup.
default: null
- arg_name: properties-hostname-prefix
api_field: cloudVmCluster.properties.hostnamePrefix
required: false
repeated: false
help_text: |-
Prefix for VM cluster host names.
- group:
api_field: cloudVmCluster.properties.diagnosticsDataCollectionOptions
required: false
help_text: |-
Data collection options for diagnostics.
params:
- arg_name: diagnostics-data-collection-options-events-enabled
api_field: cloudVmCluster.properties.diagnosticsDataCollectionOptions.diagnosticsEventsEnabled
action: store_true
required: false
type: bool
help_text: |-
Indicates whether diagnostic collection is enabled for the VM cluster
default: null
- arg_name: diagnostics-data-collection-options-health-monitoring-enabled
api_field: cloudVmCluster.properties.diagnosticsDataCollectionOptions.healthMonitoringEnabled
action: store_true
required: false
type: bool
help_text: |-
Indicates whether health monitoring is enabled for the VM cluster
default: null
- arg_name: diagnostics-data-collection-options-incident-logs-enabled
api_field: cloudVmCluster.properties.diagnosticsDataCollectionOptions.incidentLogsEnabled
action: store_true
required: false
type: bool
help_text: |-
Indicates whether incident logs and trace collection are enabled for the VM
cluster
default: null
- arg_name: properties-cpu-core-count
api_field: cloudVmCluster.properties.cpuCoreCount
required: true
repeated: false
type: int
help_text: |-
Number of enabled CPU cores.
- arg_name: properties-system-version
api_field: cloudVmCluster.properties.systemVersion
required: false
repeated: false
help_text: |-
Operating system version of the image.
- arg_name: properties-db-server-ocids
api_field: cloudVmCluster.properties.dbServerOcids
required: false
repeated: true
help_text: |-
OCID of database servers.
- arg_name: properties-cluster-name
api_field: cloudVmCluster.properties.clusterName
required: false
repeated: false
help_text: |-
OCI Cluster name.
- arg_name: labels
api_field: cloudVmCluster.labels
required: false
repeated: true
help_text: |-
Labels or tags associated with the VM Cluster.
spec:
- api_field: key
- api_field: value
- arg_name: cidr
api_field: cloudVmCluster.cidr
required: false
repeated: false
help_text: |-
Network settings. CIDR to use for cluster IP allocation.
- arg_name: backup-subnet-cidr
api_field: cloudVmCluster.backupSubnetCidr
required: false
repeated: false
help_text: |-
CIDR range of the backup subnet.
- arg_name: network
help_text: |-
The name of the VPC network.
Format: projects/{project}/global/networks/{network}
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_none_networks
resource_method_params:
cloudVmCluster.network: '{__relative_name__}'
required: false
- arg_name: odb-network
help_text: |-
The name of the OdbNetwork associated with the VM Cluster.
Format:
projects/{project}/locations/{location}/odbNetworks/{odb_network}
It is optional but if specified, this should match the parent ODBNetwork of
the odb_subnet and backup_odb_subnet.
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_odb_networks
resource_method_params:
cloudVmCluster.odbNetwork: '{__relative_name__}'
required: false
- arg_name: odb-subnet
help_text: |-
The name of the OdbSubnet associated with the VM Cluster for
IP allocation. Format:
projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_odb_networks_odb_subnets
resource_method_params:
cloudVmCluster.odbSubnet: '{__relative_name__}'
required: false
- arg_name: backup-odb-subnet
help_text: |-
The name of the backup OdbSubnet associated with the VM Cluster.
Format:
projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
is_positional: false
is_primary_resource: false
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_odb_networks_odb_subnets
resource_method_params:
cloudVmCluster.backupOdbSubnet: '{__relative_name__}'
required: false
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional ID to identify the request. This value is used to identify
duplicate requests. If you make a request with the same request ID
and the original request is still in progress or completed, the server
ignores 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:
- oracledatabase.projects.locations.cloudVmClusters
async:
collection:
- oracledatabase.projects.locations.operations

View File

@@ -0,0 +1,67 @@
# -*- 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
hidden: true
help_text:
brief: Delete a CloudVmCluster.
description: Delete a CloudVmCluster.
examples: |-
To delete a CloudVmCluster with id `my-instance` in the location `us-east4`, run:
$ {command} my-instance --location=us-east4
arguments:
params:
- help_text: |-
The name of the Cloud VM Cluster in the following format:
projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_cloud_vm_clusters
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional ID to identify the request. This value is used to identify
duplicate requests. If you make a request with the same request ID
and the original request is still in progress or completed, the server
ignores 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).
- arg_name: force
api_field: force
action: store_true
required: false
type: bool
help_text: |-
If set to true, all child resources for the VM Cluster will be deleted.
A VM Cluster can only be deleted once all its child resources have been
deleted.
default: null
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.cloudVmClusters
async:
collection:
- oracledatabase.projects.locations.operations

View File

@@ -0,0 +1,66 @@
# -*- 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 CloudVmCluster.
description: Delete a CloudVmCluster.
examples: |-
To delete a CloudVmCluster with id `my-instance` in the location `us-east4`, run:
$ {command} my-instance --location=us-east4
arguments:
params:
- help_text: |-
The name of the Cloud VM Cluster in the following format:
projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_cloud_vm_clusters
required: true
- arg_name: request-id
api_field: requestId
required: false
repeated: false
help_text: |-
An optional ID to identify the request. This value is used to identify
duplicate requests. If you make a request with the same request ID
and the original request is still in progress or completed, the server
ignores 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).
- arg_name: force
api_field: force
action: store_true
required: false
type: bool
help_text: |-
If set to true, all child resources for the VM Cluster will be deleted.
A VM Cluster can only be deleted once all its child resources have been
deleted.
default: null
request:
api_version: v1
collection:
- oracledatabase.projects.locations.cloudVmClusters
async:
collection:
- oracledatabase.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
hidden: true
help_text:
brief: Get details of a CloudVmCluster.
description: Get details of a CloudVmCluster.
examples: |-
To get a CloudVmCluster with id `my-instance` in the location `us-east4`, run:
$ {command} my-instance --location=us-east4
arguments:
params:
- help_text: |-
The name of the Cloud VM Cluster in the following format:
projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_cloud_vm_clusters
required: true
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.cloudVmClusters

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 cloudVmClusters
description: Describe a cloudVmCluster
examples: |-
To describe the cloudVmCluster, run:
$ {command}
arguments:
params:
- help_text: |-
The name of the Cloud VM Cluster in the following format:
projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_cloud_vm_clusters
required: true
request:
api_version: v1
collection:
- oracledatabase.projects.locations.cloudVmClusters

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
hidden: true
help_text:
brief: List all CloudVmClusters.
description: List all CloudVmClusters.
examples: |-
To list all CloudVmClusters in the location `us-east4`, run:
$ {command} --location=us-east4
arguments:
params:
- help_text: |-
The name of the parent in the following format:
projects/{project}/locations/{location}.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations
required: true
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.cloudVmClusters
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 CloudVmClusters.
description: List all CloudVmClusters.
examples: |-
To list all CloudVmClusters in the location `us-east4`, run:
$ {command} --location=us-east4
arguments:
params:
- help_text: |-
The name of the parent in the following format:
projects/{project}/locations/{location}.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- oracledatabase.projects.locations.cloudVmClusters
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,34 @@
# -*- 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 Db Node resources."""
from googlecloudsdk.calliope import base
from surface.oracle_database.cloud_vm_clusters.db_nodes import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
@base.Hidden
class DbNodesAlpha(extensions.DbNodesAlpha):
"""Manage Db Node resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class DbNodesGa(extensions.DbNodesGa):
"""Manage Db Node 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 DbNodesAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
class DbNodesBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
class DbNodesGa(base.Group):
"""Optional no-auto-generated code for GA."""

View File

@@ -0,0 +1,45 @@
# -*- 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
hidden: true
help_text:
brief: List all DbNodes.
description: List all DbNodes.
examples: |-
To list all DbNodes in the location `us-east4`, run:
$ {command} --location=us-east4
arguments:
params:
- help_text: |-
The parent value for database node in the following format:
projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_cloud_vm_clusters_or_exadb_vm_clusters
required: true
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.cloudVmClusters.dbNodes
- oracledatabase.projects.locations.exadbVmClusters.dbNodes
response:
id_field: name

View File

@@ -0,0 +1,44 @@
# -*- 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 DbNodes.
description: List all DbNodes.
examples: |-
To list all DbNodes in the location `us-east4`, run:
$ {command} --location=us-east4
arguments:
params:
- help_text: |-
The parent value for database node in the following format:
projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_cloud_vm_clusters_or_exadb_vm_clusters
required: true
request:
api_version: v1
collection:
- oracledatabase.projects.locations.cloudVmClusters.dbNodes
- oracledatabase.projects.locations.exadbVmClusters.dbNodes
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,34 @@
# -*- 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 Database Character Set resources."""
from googlecloudsdk.calliope import base
from surface.oracle_database.database_character_sets import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
@base.Hidden
class DatabaseCharacterSetsAlpha(extensions.DatabaseCharacterSetsAlpha):
"""Manage Database Character Set resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class DatabaseCharacterSetsGa(extensions.DatabaseCharacterSetsGa):
"""Manage Database Character Set 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 DatabaseCharacterSetsAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
class DatabaseCharacterSetsBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
class DatabaseCharacterSetsGa(base.Group):
"""Optional no-auto-generated code for GA."""

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
hidden: true
help_text:
brief: List all DatabaseCharacterSets.
description: List all DatabaseCharacterSets.
examples: |-
To list all DatabaseCharacterSets in the location `us-east4` for character set `character-set`, run:
$ {command} --location=us-east4 --filter="character_set_type=character-set"
arguments:
params:
- help_text: |-
The parent value for DatabaseCharacterSets in the following format:
projects/{project}/locations/{location}.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations
required: true
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.databaseCharacterSets
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 DatabaseCharacterSets.
description: List all DatabaseCharacterSets.
examples: |-
To list all DatabaseCharacterSets in the location `us-east4` for character set `character-set`, run:
$ {command} --location=us-east4 --filter="character_set_type=character-set"
arguments:
params:
- help_text: |-
The parent value for DatabaseCharacterSets in the following format:
projects/{project}/locations/{location}.
is_positional: false
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations
required: true
request:
api_version: v1
collection:
- oracledatabase.projects.locations.databaseCharacterSets
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,34 @@
# -*- 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 Database resources."""
from googlecloudsdk.calliope import base
from surface.oracle_database.databases import _init_extensions as extensions
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
@base.Autogenerated
@base.Hidden
class DatabasesAlpha(extensions.DatabasesAlpha):
"""Manage Database resources."""
@base.ReleaseTracks(base.ReleaseTrack.GA)
@base.Autogenerated
class DatabasesGa(extensions.DatabasesGa):
"""Manage Database 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 DatabasesAlpha(base.Group):
"""Optional no-auto-generated code for ALPHA."""
class DatabasesBeta(base.Group):
"""Optional no-auto-generated code for BETA."""
class DatabasesGa(base.Group):
"""Optional no-auto-generated code for GA."""

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
hidden: true
help_text:
brief: Get details of a Database.
description: Get details of a Database.
examples: |-
To get a Database with id `my-database` in the location `us-east4`
for a given DbSystem with id `my-db-system`, run:
$ {command} my-database --location=us-east4
arguments:
params:
- help_text: |-
The name of the Database resource in the following format:
projects/{project}/locations/{region}/databases/{database}
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1alpha_resources:projects_locations_databases
required: true
request:
api_version: v1alpha
collection:
- oracledatabase.projects.locations.databases

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 Database.
description: Get details of a Database.
examples: |-
To get a Database with id `my-database` in the location `us-east4`
for a given DbSystem with id `my-db-system`, run:
$ {command} my-database --location=us-east4
arguments:
params:
- help_text: |-
The name of the Database resource in the following format:
projects/{project}/locations/{region}/databases/{database}
is_positional: true
is_primary_resource: true
resource_spec: !REF googlecloudsdk.command_lib.oracle_database.v1_resources:projects_locations_databases
required: true
request:
api_version: v1
collection:
- oracledatabase.projects.locations.databases

Some files were not shown because too many files have changed in this diff Show More