OracleDatabaseClient(
*,
credentials: typing.Optional[google.auth.credentials.Credentials] = None,
transport: typing.Optional[
typing.Union[
str,
google.cloud.oracledatabase_v1.services.oracle_database.transports.base.OracleDatabaseTransport,
typing.Callable[
[...],
google.cloud.oracledatabase_v1.services.oracle_database.transports.base.OracleDatabaseTransport,
],
]
] = None,
client_options: typing.Optional[
typing.Union[google.api_core.client_options.ClientOptions, dict]
] = None,
client_info: google.api_core.gapic_v1.client_info.ClientInfo = google.api_core.gapic_v1.client_info.ClientInfo
)Service describing handlers for resources
Properties
api_endpoint
Return the API endpoint used by the client instance.
| Returns | |
|---|---|
| Type | Description |
str |
The API endpoint used by the client instance. |
transport
Returns the transport used by the client instance.
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseTransport |
The transport used by the client instance. |
universe_domain
Return the universe domain used by the client instance.
| Returns | |
|---|---|
| Type | Description |
str |
The universe domain used by the client instance. |
Methods
OracleDatabaseClient
OracleDatabaseClient(
*,
credentials: typing.Optional[google.auth.credentials.Credentials] = None,
transport: typing.Optional[
typing.Union[
str,
google.cloud.oracledatabase_v1.services.oracle_database.transports.base.OracleDatabaseTransport,
typing.Callable[
[...],
google.cloud.oracledatabase_v1.services.oracle_database.transports.base.OracleDatabaseTransport,
],
]
] = None,
client_options: typing.Optional[
typing.Union[google.api_core.client_options.ClientOptions, dict]
] = None,
client_info: google.api_core.gapic_v1.client_info.ClientInfo = google.api_core.gapic_v1.client_info.ClientInfo
)Instantiates the oracle database client.
| Parameters | |
|---|---|
| Name | Description |
credentials |
Optional[google.auth.credentials.Credentials]
The authorization credentials to attach to requests. These credentials identify the application to the service; if none are specified, the client will attempt to ascertain the credentials from the environment. |
transport |
Optional[Union[str,OracleDatabaseTransport,Callable[..., OracleDatabaseTransport]]]
The transport to use, or a Callable that constructs and returns a new transport. If a Callable is given, it will be called with the same set of initialization arguments as used in the OracleDatabaseTransport constructor. If set to None, a transport is chosen automatically. |
client_options |
Optional[Union[google.api_core.client_options.ClientOptions, dict]]
Custom options for the client. 1. The |
client_info |
google.api_core.gapic_v1.client_info.ClientInfo
The client info used to send a user-agent string along with API requests. If |
| Exceptions | |
|---|---|
| Type | Description |
google.auth.exceptions.MutualTLSChannelError |
If mutual TLS transport creation failed for any reason. |
__exit__
__exit__(type, value, traceback)Releases underlying transport's resources.
autonomous_database_backup_path
autonomous_database_backup_path(
project: str, location: str, autonomous_database_backup: str
) -> strReturns a fully-qualified autonomous_database_backup string.
autonomous_database_character_set_path
autonomous_database_character_set_path(
project: str, location: str, autonomous_database_character_set: str
) -> strReturns a fully-qualified autonomous_database_character_set string.
autonomous_database_path
autonomous_database_path(
project: str, location: str, autonomous_database: str
) -> strReturns a fully-qualified autonomous_database string.
autonomous_db_version_path
autonomous_db_version_path(
project: str, location: str, autonomous_db_version: str
) -> strReturns a fully-qualified autonomous_db_version string.
cancel_operation
cancel_operation(
request: typing.Optional[
google.longrunning.operations_pb2.CancelOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> NoneStarts asynchronous cancellation on a long-running operation.
The server makes a best effort to cancel the operation, but success
is not guaranteed. If the server doesn't support this method, it returns
google.rpc.Code.UNIMPLEMENTED.
| Parameters | |
|---|---|
| Name | Description |
request |
The request object. Request message for |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
cloud_exadata_infrastructure_path
cloud_exadata_infrastructure_path(
project: str, location: str, cloud_exadata_infrastructure: str
) -> strReturns a fully-qualified cloud_exadata_infrastructure string.
cloud_vm_cluster_path
cloud_vm_cluster_path(project: str, location: str, cloud_vm_cluster: str) -> strReturns a fully-qualified cloud_vm_cluster string.
common_billing_account_path
common_billing_account_path(billing_account: str) -> strReturns a fully-qualified billing_account string.
common_folder_path
common_folder_path(folder: str) -> strReturns a fully-qualified folder string.
common_location_path
common_location_path(project: str, location: str) -> strReturns a fully-qualified location string.
common_organization_path
common_organization_path(organization: str) -> strReturns a fully-qualified organization string.
common_project_path
common_project_path(project: str) -> strReturns a fully-qualified project string.
create_autonomous_database
create_autonomous_database(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.CreateAutonomousDatabaseRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
autonomous_database: typing.Optional[
google.cloud.oracledatabase_v1.types.autonomous_database.AutonomousDatabase
] = None,
autonomous_database_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationCreates a new Autonomous Database in a given project and location.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_create_autonomous_database():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.CreateAutonomousDatabaseRequest(
parent="parent_value",
autonomous_database_id="autonomous_database_id_value",
)
# Make the request
operation = client.create_autonomous_database(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.CreateAutonomousDatabaseRequest, dict]
The request object. The request for |
parent |
str
Required. The name of the parent in the following format: projects/{project}/locations/{location}. This corresponds to the |
autonomous_database |
google.cloud.oracledatabase_v1.types.AutonomousDatabase
Required. The Autonomous Database being created. This corresponds to the |
autonomous_database_id |
str
Required. The ID of the Autonomous Database to create. This value is restricted to (^\ |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be AutonomousDatabase Details of the Autonomous Database resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/ |
create_cloud_exadata_infrastructure
create_cloud_exadata_infrastructure(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.CreateCloudExadataInfrastructureRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
cloud_exadata_infrastructure: typing.Optional[
google.cloud.oracledatabase_v1.types.exadata_infra.CloudExadataInfrastructure
] = None,
cloud_exadata_infrastructure_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationCreates a new Exadata Infrastructure in a given project and location.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_create_cloud_exadata_infrastructure():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.CreateCloudExadataInfrastructureRequest(
parent="parent_value",
cloud_exadata_infrastructure_id="cloud_exadata_infrastructure_id_value",
)
# Make the request
operation = client.create_cloud_exadata_infrastructure(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.CreateCloudExadataInfrastructureRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for CloudExadataInfrastructure in the following format: projects/{project}/locations/{location}. This corresponds to the |
cloud_exadata_infrastructure |
google.cloud.oracledatabase_v1.types.CloudExadataInfrastructure
Required. Details of the Exadata Infrastructure instance to create. This corresponds to the |
cloud_exadata_infrastructure_id |
str
Required. The ID of the Exadata Infrastructure to create. This value is restricted to (^\ |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be CloudExadataInfrastructure Represents CloudExadataInfrastructure resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/ |
create_cloud_vm_cluster
create_cloud_vm_cluster(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.CreateCloudVmClusterRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
cloud_vm_cluster: typing.Optional[
google.cloud.oracledatabase_v1.types.vm_cluster.CloudVmCluster
] = None,
cloud_vm_cluster_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationCreates a new VM Cluster in a given project and location.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_create_cloud_vm_cluster():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
cloud_vm_cluster = oracledatabase_v1.CloudVmCluster()
cloud_vm_cluster.exadata_infrastructure = "exadata_infrastructure_value"
request = oracledatabase_v1.CreateCloudVmClusterRequest(
parent="parent_value",
cloud_vm_cluster_id="cloud_vm_cluster_id_value",
cloud_vm_cluster=cloud_vm_cluster,
)
# Make the request
operation = client.create_cloud_vm_cluster(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.CreateCloudVmClusterRequest, dict]
The request object. The request for |
parent |
str
Required. The name of the parent in the following format: projects/{project}/locations/{location}. This corresponds to the |
cloud_vm_cluster |
google.cloud.oracledatabase_v1.types.CloudVmCluster
Required. The resource being created This corresponds to the |
cloud_vm_cluster_id |
str
Required. The ID of the VM Cluster to create. This value is restricted to (^\ |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be CloudVmCluster Details of the Cloud VM Cluster resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudVmCluster/ |
create_db_system
create_db_system(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.db_system.CreateDbSystemRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
db_system: typing.Optional[
google.cloud.oracledatabase_v1.types.db_system.DbSystem
] = None,
db_system_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationCreates a new DbSystem in a given project and location.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_create_db_system():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
db_system = oracledatabase_v1.DbSystem()
db_system.odb_subnet = "odb_subnet_value"
db_system.display_name = "display_name_value"
request = oracledatabase_v1.CreateDbSystemRequest(
parent="parent_value",
db_system_id="db_system_id_value",
db_system=db_system,
)
# Make the request
operation = client.create_db_system(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.CreateDbSystemRequest, dict]
The request object. The request for |
parent |
str
Required. The value for parent of the DbSystem in the following format: projects/{project}/locations/{location}. This corresponds to the |
db_system |
google.cloud.oracledatabase_v1.types.DbSystem
Required. The resource being created. This corresponds to the |
db_system_id |
str
Required. The ID of the DbSystem to create. This value is restricted to (^\ |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be DbSystem Details of the DbSystem (BaseDB) resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystem/ |
create_exadb_vm_cluster
create_exadb_vm_cluster(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.CreateExadbVmClusterRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
exadb_vm_cluster: typing.Optional[
google.cloud.oracledatabase_v1.types.exadb_vm_cluster.ExadbVmCluster
] = None,
exadb_vm_cluster_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationCreates a new Exadb (Exascale) VM Cluster resource.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_create_exadb_vm_cluster():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
exadb_vm_cluster = oracledatabase_v1.ExadbVmCluster()
exadb_vm_cluster.properties.grid_image_id = "grid_image_id_value"
exadb_vm_cluster.properties.node_count = 1070
exadb_vm_cluster.properties.enabled_ecpu_count_per_node = 2826
exadb_vm_cluster.properties.vm_file_system_storage.size_in_gbs_per_node = 2103
exadb_vm_cluster.properties.exascale_db_storage_vault = "exascale_db_storage_vault_value"
exadb_vm_cluster.properties.hostname_prefix = "hostname_prefix_value"
exadb_vm_cluster.properties.ssh_public_keys = ['ssh_public_keys_value1', 'ssh_public_keys_value2']
exadb_vm_cluster.properties.shape_attribute = "BLOCK_STORAGE"
exadb_vm_cluster.odb_subnet = "odb_subnet_value"
exadb_vm_cluster.backup_odb_subnet = "backup_odb_subnet_value"
exadb_vm_cluster.display_name = "display_name_value"
request = oracledatabase_v1.CreateExadbVmClusterRequest(
parent="parent_value",
exadb_vm_cluster_id="exadb_vm_cluster_id_value",
exadb_vm_cluster=exadb_vm_cluster,
)
# Make the request
operation = client.create_exadb_vm_cluster(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.CreateExadbVmClusterRequest, dict]
The request object. The request for |
parent |
str
Required. The value for parent of the ExadbVmCluster in the following format: projects/{project}/locations/{location}. This corresponds to the |
exadb_vm_cluster |
google.cloud.oracledatabase_v1.types.ExadbVmCluster
Required. The resource being created. This corresponds to the |
exadb_vm_cluster_id |
str
Required. The ID of the ExadbVmCluster to create. This value is restricted to (^\ |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be ExadbVmCluster ExadbVmCluster represents a cluster of VMs that are used to run Exadata workloads. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/ExadbVmCluster/ |
create_exascale_db_storage_vault
create_exascale_db_storage_vault(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.exascale_db_storage_vault.CreateExascaleDbStorageVaultRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
exascale_db_storage_vault: typing.Optional[
google.cloud.oracledatabase_v1.types.exascale_db_storage_vault.ExascaleDbStorageVault
] = None,
exascale_db_storage_vault_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationCreates a new ExascaleDB Storage Vault resource.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_create_exascale_db_storage_vault():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
exascale_db_storage_vault = oracledatabase_v1.ExascaleDbStorageVault()
exascale_db_storage_vault.display_name = "display_name_value"
exascale_db_storage_vault.properties.exascale_db_storage_details.total_size_gbs = 1497
request = oracledatabase_v1.CreateExascaleDbStorageVaultRequest(
parent="parent_value",
exascale_db_storage_vault_id="exascale_db_storage_vault_id_value",
exascale_db_storage_vault=exascale_db_storage_vault,
)
# Make the request
operation = client.create_exascale_db_storage_vault(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.CreateExascaleDbStorageVaultRequest, dict]
The request object. The request for |
parent |
str
Required. The value for parent of the ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}. This corresponds to the |
exascale_db_storage_vault |
google.cloud.oracledatabase_v1.types.ExascaleDbStorageVault
Required. The resource being created. This corresponds to the |
exascale_db_storage_vault_id |
str
Required. The ID of the ExascaleDbStorageVault to create. This value is restricted to (^\ |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be ExascaleDbStorageVault ExascaleDbStorageVault represents a storage vault exadb vm cluster resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/ |
create_odb_network
create_odb_network(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.odb_network.CreateOdbNetworkRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
odb_network: typing.Optional[
google.cloud.oracledatabase_v1.types.odb_network.OdbNetwork
] = None,
odb_network_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationCreates a new ODB Network in a given project and location.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_create_odb_network():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
odb_network = oracledatabase_v1.OdbNetwork()
odb_network.network = "network_value"
request = oracledatabase_v1.CreateOdbNetworkRequest(
parent="parent_value",
odb_network_id="odb_network_id_value",
odb_network=odb_network,
)
# Make the request
operation = client.create_odb_network(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.CreateOdbNetworkRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for the OdbNetwork in the following format: projects/{project}/locations/{location}. This corresponds to the |
odb_network |
google.cloud.oracledatabase_v1.types.OdbNetwork
Required. Details of the OdbNetwork instance to create. This corresponds to the |
odb_network_id |
str
Required. The ID of the OdbNetwork to create. This value is restricted to (^\ |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be OdbNetwork Represents OdbNetwork resource. |
create_odb_subnet
create_odb_subnet(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.odb_subnet.CreateOdbSubnetRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
odb_subnet: typing.Optional[
google.cloud.oracledatabase_v1.types.odb_subnet.OdbSubnet
] = None,
odb_subnet_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationCreates a new ODB Subnet in a given ODB Network.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_create_odb_subnet():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
odb_subnet = oracledatabase_v1.OdbSubnet()
odb_subnet.cidr_range = "cidr_range_value"
odb_subnet.purpose = "BACKUP_SUBNET"
request = oracledatabase_v1.CreateOdbSubnetRequest(
parent="parent_value",
odb_subnet_id="odb_subnet_id_value",
odb_subnet=odb_subnet,
)
# Make the request
operation = client.create_odb_subnet(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.CreateOdbSubnetRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}. This corresponds to the |
odb_subnet |
google.cloud.oracledatabase_v1.types.OdbSubnet
Required. Details of the OdbSubnet instance to create. This corresponds to the |
odb_subnet_id |
str
Required. The ID of the OdbSubnet to create. This value is restricted to (^\ |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be OdbSubnet Represents OdbSubnet resource. |
crypto_key_path
crypto_key_path(project: str, location: str, key_ring: str, crypto_key: str) -> strReturns a fully-qualified crypto_key string.
database_character_set_path
database_character_set_path(
project: str, location: str, database_character_set: str
) -> strReturns a fully-qualified database_character_set string.
database_path
database_path(project: str, location: str, database: str) -> strReturns a fully-qualified database string.
db_node_path
db_node_path(
project: str, location: str, cloud_vm_cluster: str, db_node: str
) -> strReturns a fully-qualified db_node string.
db_server_path
db_server_path(
project: str, location: str, cloud_exadata_infrastructure: str, db_server: str
) -> strReturns a fully-qualified db_server string.
db_system_initial_storage_size_path
db_system_initial_storage_size_path(
project: str, location: str, db_system_initial_storage_size: str
) -> strReturns a fully-qualified db_system_initial_storage_size string.
db_system_path
db_system_path(project: str, location: str, db_system: str) -> strReturns a fully-qualified db_system string.
db_system_shape_path
db_system_shape_path(project: str, location: str, db_system_shape: str) -> strReturns a fully-qualified db_system_shape string.
db_version_path
db_version_path(project: str, location: str, db_version: str) -> strReturns a fully-qualified db_version string.
delete_autonomous_database
delete_autonomous_database(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.DeleteAutonomousDatabaseRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationDeletes a single Autonomous Database.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_delete_autonomous_database():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.DeleteAutonomousDatabaseRequest(
name="name_value",
)
# Make the request
operation = client.delete_autonomous_database(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.DeleteAutonomousDatabaseRequest, dict]
The request object. The request for |
name |
str
Required. The name of the resource in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be google.protobuf.empty_pb2.Empty A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |
delete_cloud_exadata_infrastructure
delete_cloud_exadata_infrastructure(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.DeleteCloudExadataInfrastructureRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationDeletes a single Exadata Infrastructure.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_delete_cloud_exadata_infrastructure():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.DeleteCloudExadataInfrastructureRequest(
name="name_value",
)
# Make the request
operation = client.delete_cloud_exadata_infrastructure(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.DeleteCloudExadataInfrastructureRequest, dict]
The request object. The request for |
name |
str
Required. The name of the Cloud Exadata Infrastructure in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be google.protobuf.empty_pb2.Empty A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |
delete_cloud_vm_cluster
delete_cloud_vm_cluster(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.DeleteCloudVmClusterRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationDeletes a single VM Cluster.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_delete_cloud_vm_cluster():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.DeleteCloudVmClusterRequest(
name="name_value",
)
# Make the request
operation = client.delete_cloud_vm_cluster(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.DeleteCloudVmClusterRequest, dict]
The request object. The request for |
name |
str
Required. The name of the Cloud VM Cluster in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be google.protobuf.empty_pb2.Empty A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |
delete_db_system
delete_db_system(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.db_system.DeleteDbSystemRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationDeletes a single DbSystem.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_delete_db_system():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.DeleteDbSystemRequest(
name="name_value",
)
# Make the request
operation = client.delete_db_system(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.DeleteDbSystemRequest, dict]
The request object. The request for |
name |
str
Required. The name of the DbSystem in the following format: projects/{project}/locations/{location}/dbSystems/{db_system}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be google.protobuf.empty_pb2.Empty A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |
delete_exadb_vm_cluster
delete_exadb_vm_cluster(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.DeleteExadbVmClusterRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationDeletes a single Exadb (Exascale) VM Cluster.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_delete_exadb_vm_cluster():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.DeleteExadbVmClusterRequest(
name="name_value",
)
# Make the request
operation = client.delete_exadb_vm_cluster(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.DeleteExadbVmClusterRequest, dict]
The request object. The request for |
name |
str
Required. The name of the ExadbVmCluster in the following format: projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be google.protobuf.empty_pb2.Empty A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |
delete_exascale_db_storage_vault
delete_exascale_db_storage_vault(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.exascale_db_storage_vault.DeleteExascaleDbStorageVaultRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationDeletes a single ExascaleDB Storage Vault.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_delete_exascale_db_storage_vault():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.DeleteExascaleDbStorageVaultRequest(
name="name_value",
)
# Make the request
operation = client.delete_exascale_db_storage_vault(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.DeleteExascaleDbStorageVaultRequest, dict]
The request object. The request message for |
name |
str
Required. The name of the ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be google.protobuf.empty_pb2.Empty A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |
delete_odb_network
delete_odb_network(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.odb_network.DeleteOdbNetworkRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationDeletes a single ODB Network.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_delete_odb_network():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.DeleteOdbNetworkRequest(
name="name_value",
)
# Make the request
operation = client.delete_odb_network(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.DeleteOdbNetworkRequest, dict]
The request object. The request for |
name |
str
Required. The name of the resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be google.protobuf.empty_pb2.Empty A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |
delete_odb_subnet
delete_odb_subnet(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.odb_subnet.DeleteOdbSubnetRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationDeletes a single ODB Subnet.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_delete_odb_subnet():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.DeleteOdbSubnetRequest(
name="name_value",
)
# Make the request
operation = client.delete_odb_subnet(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.DeleteOdbSubnetRequest, dict]
The request object. The request for |
name |
str
Required. The name of the resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be google.protobuf.empty_pb2.Empty A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |
delete_operation
delete_operation(
request: typing.Optional[
google.longrunning.operations_pb2.DeleteOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> NoneDeletes a long-running operation.
This method indicates that the client is no longer interested
in the operation result. It does not cancel the operation.
If the server doesn't support this method, it returns
google.rpc.Code.UNIMPLEMENTED.
| Parameters | |
|---|---|
| Name | Description |
request |
The request object. Request message for |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
entitlement_path
entitlement_path(project: str, location: str, entitlement: str) -> strReturns a fully-qualified entitlement string.
exadb_vm_cluster_path
exadb_vm_cluster_path(project: str, location: str, exadb_vm_cluster: str) -> strReturns a fully-qualified exadb_vm_cluster string.
exascale_db_storage_vault_path
exascale_db_storage_vault_path(
project: str, location: str, exascale_db_storage_vault: str
) -> strReturns a fully-qualified exascale_db_storage_vault string.
failover_autonomous_database
failover_autonomous_database(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.FailoverAutonomousDatabaseRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
peer_autonomous_database: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationInitiates a failover to target autonomous database from the associated primary database.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_failover_autonomous_database():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.FailoverAutonomousDatabaseRequest(
name="name_value",
peer_autonomous_database="peer_autonomous_database_value",
)
# Make the request
operation = client.failover_autonomous_database(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.FailoverAutonomousDatabaseRequest, dict]
The request object. The request for |
name |
str
Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. This corresponds to the |
peer_autonomous_database |
str
Required. The peer database name to fail over to. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be AutonomousDatabase Details of the Autonomous Database resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/ |
from_service_account_file
from_service_account_file(filename: str, *args, **kwargs)Creates an instance of this client using the provided credentials file.
| Parameter | |
|---|---|
| Name | Description |
filename |
str
The path to the service account private key json file. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient |
The constructed client. |
from_service_account_info
from_service_account_info(info: dict, *args, **kwargs)Creates an instance of this client using the provided credentials info.
| Parameter | |
|---|---|
| Name | Description |
info |
dict
The service account private key info. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient |
The constructed client. |
from_service_account_json
from_service_account_json(filename: str, *args, **kwargs)Creates an instance of this client using the provided credentials file.
| Parameter | |
|---|---|
| Name | Description |
filename |
str
The path to the service account private key json file. |
| Returns | |
|---|---|
| Type | Description |
OracleDatabaseClient |
The constructed client. |
generate_autonomous_database_wallet
generate_autonomous_database_wallet(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.GenerateAutonomousDatabaseWalletRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
type_: typing.Optional[
google.cloud.oracledatabase_v1.types.autonomous_database.GenerateType
] = None,
is_regional: typing.Optional[bool] = None,
password: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> (
google.cloud.oracledatabase_v1.types.oracledatabase.GenerateAutonomousDatabaseWalletResponse
)Generates a wallet for an Autonomous Database.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_generate_autonomous_database_wallet():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.GenerateAutonomousDatabaseWalletRequest(
name="name_value",
password="password_value",
)
# Make the request
response = client.generate_autonomous_database_wallet(request=request)
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.GenerateAutonomousDatabaseWalletRequest, dict]
The request object. The request for |
name |
str
Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. This corresponds to the |
type_ |
google.cloud.oracledatabase_v1.types.GenerateType
Optional. The type of wallet generation for the Autonomous Database. The default value is SINGLE. This corresponds to the |
is_regional |
bool
Optional. True when requesting regional connection strings in PDB connect info, applicable to cross-region Data Guard only. This corresponds to the |
password |
str
Required. The password used to encrypt the keys inside the wallet. The password must be a minimum of 8 characters. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.types.GenerateAutonomousDatabaseWalletResponse |
The response for AutonomousDatabase.GenerateWallet. |
get_autonomous_database
get_autonomous_database(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.GetAutonomousDatabaseRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.oracledatabase_v1.types.autonomous_database.AutonomousDatabaseGets the details of a single Autonomous Database.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_get_autonomous_database():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.GetAutonomousDatabaseRequest(
name="name_value",
)
# Make the request
response = client.get_autonomous_database(request=request)
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.GetAutonomousDatabaseRequest, dict]
The request object. The request for |
name |
str
Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.types.AutonomousDatabase |
Details of the Autonomous Database resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/ |
get_cloud_exadata_infrastructure
get_cloud_exadata_infrastructure(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.GetCloudExadataInfrastructureRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.oracledatabase_v1.types.exadata_infra.CloudExadataInfrastructureGets details of a single Exadata Infrastructure.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_get_cloud_exadata_infrastructure():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.GetCloudExadataInfrastructureRequest(
name="name_value",
)
# Make the request
response = client.get_cloud_exadata_infrastructure(request=request)
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.GetCloudExadataInfrastructureRequest, dict]
The request object. The request for |
name |
str
Required. The name of the Cloud Exadata Infrastructure in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.types.CloudExadataInfrastructure |
Represents CloudExadataInfrastructure resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/ |
get_cloud_vm_cluster
get_cloud_vm_cluster(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.GetCloudVmClusterRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.oracledatabase_v1.types.vm_cluster.CloudVmClusterGets details of a single VM Cluster.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_get_cloud_vm_cluster():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.GetCloudVmClusterRequest(
name="name_value",
)
# Make the request
response = client.get_cloud_vm_cluster(request=request)
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.GetCloudVmClusterRequest, dict]
The request object. The request for |
name |
str
Required. The name of the Cloud VM Cluster in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.types.CloudVmCluster |
Details of the Cloud VM Cluster resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudVmCluster/ |
get_database
get_database(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.database.GetDatabaseRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.oracledatabase_v1.types.database.DatabaseGets details of a single Database.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_get_database():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.GetDatabaseRequest(
name="name_value",
)
# Make the request
response = client.get_database(request=request)
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.GetDatabaseRequest, dict]
The request object. The request for |
name |
str
Required. The name of the Database resource in the following format: projects/{project}/locations/{region}/databases/{database} This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.types.Database |
Details of the Database resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/Database/ |
get_db_system
get_db_system(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.db_system.GetDbSystemRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.oracledatabase_v1.types.db_system.DbSystemGets details of a single DbSystem.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_get_db_system():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.GetDbSystemRequest(
name="name_value",
)
# Make the request
response = client.get_db_system(request=request)
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.GetDbSystemRequest, dict]
The request object. The request for |
name |
str
Required. The name of the DbSystem in the following format: projects/{project}/locations/{location}/dbSystems/{db_system}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.types.DbSystem |
Details of the DbSystem (BaseDB) resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystem/ |
get_exadb_vm_cluster
get_exadb_vm_cluster(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.GetExadbVmClusterRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.oracledatabase_v1.types.exadb_vm_cluster.ExadbVmClusterGets details of a single Exadb (Exascale) VM Cluster.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_get_exadb_vm_cluster():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.GetExadbVmClusterRequest(
name="name_value",
)
# Make the request
response = client.get_exadb_vm_cluster(request=request)
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.GetExadbVmClusterRequest, dict]
The request object. The request for |
name |
str
Required. The name of the ExadbVmCluster in the following format: projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.types.ExadbVmCluster |
ExadbVmCluster represents a cluster of VMs that are used to run Exadata workloads. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/ExadbVmCluster/ |
get_exascale_db_storage_vault
get_exascale_db_storage_vault(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.exascale_db_storage_vault.GetExascaleDbStorageVaultRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> (
google.cloud.oracledatabase_v1.types.exascale_db_storage_vault.ExascaleDbStorageVault
)Gets details of a single ExascaleDB Storage Vault.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_get_exascale_db_storage_vault():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.GetExascaleDbStorageVaultRequest(
name="name_value",
)
# Make the request
response = client.get_exascale_db_storage_vault(request=request)
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.GetExascaleDbStorageVaultRequest, dict]
The request object. The request for |
name |
str
Required. The name of the ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.types.ExascaleDbStorageVault |
ExascaleDbStorageVault represents a storage vault exadb vm cluster resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/ |
get_location
get_location(
request: typing.Optional[
google.cloud.location.locations_pb2.GetLocationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.location.locations_pb2.LocationGets information about a location.
| Parameters | |
|---|---|
| Name | Description |
request |
The request object. Request message for |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
|
Location object. |
get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source(
client_options: typing.Optional[
google.api_core.client_options.ClientOptions
] = None,
)Deprecated. Return the API endpoint and client cert source for mutual TLS.
The client cert source is determined in the following order:
(1) if GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is not "true", the
client cert source is None.
(2) if client_options.client_cert_source is provided, use the provided one; if the
default client cert source exists, use the default one; otherwise the client cert
source is None.
The API endpoint is determined in the following order:
(1) if client_options.api_endpoint if provided, use the provided one.
(2) if GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is "always", use the
default mTLS endpoint; if the environment variable is "never", use the default API
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
use the default API endpoint.
More details can be found at https://google.aip.dev/auth/4114.
| Parameter | |
|---|---|
| Name | Description |
client_options |
google.api_core.client_options.ClientOptions
Custom options for the client. Only the |
| Exceptions | |
|---|---|
| Type | Description |
google.auth.exceptions.MutualTLSChannelError |
If any errors happen. |
| Returns | |
|---|---|
| Type | Description |
Tuple[str, Callable[[], Tuple[bytes, bytes]]] |
returns the API endpoint and the client cert source to use. |
get_odb_network
get_odb_network(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.odb_network.GetOdbNetworkRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.oracledatabase_v1.types.odb_network.OdbNetworkGets details of a single ODB Network.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_get_odb_network():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.GetOdbNetworkRequest(
name="name_value",
)
# Make the request
response = client.get_odb_network(request=request)
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.GetOdbNetworkRequest, dict]
The request object. The request for |
name |
str
Required. The name of the OdbNetwork in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.types.OdbNetwork |
Represents OdbNetwork resource. |
get_odb_subnet
get_odb_subnet(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.odb_subnet.GetOdbSubnetRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.oracledatabase_v1.types.odb_subnet.OdbSubnetGets details of a single ODB Subnet.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_get_odb_subnet():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.GetOdbSubnetRequest(
name="name_value",
)
# Make the request
response = client.get_odb_subnet(request=request)
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.GetOdbSubnetRequest, dict]
The request object. The request for |
name |
str
Required. The name of the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.types.OdbSubnet |
Represents OdbSubnet resource. |
get_operation
get_operation(
request: typing.Optional[
google.longrunning.operations_pb2.GetOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.longrunning.operations_pb2.OperationGets the latest state of a long-running operation.
| Parameters | |
|---|---|
| Name | Description |
request |
The request object. Request message for |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
|
An Operation object. |
get_pluggable_database
get_pluggable_database(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.pluggable_database.GetPluggableDatabaseRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.oracledatabase_v1.types.pluggable_database.PluggableDatabaseGets details of a single PluggableDatabase.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_get_pluggable_database():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.GetPluggableDatabaseRequest(
name="name_value",
)
# Make the request
response = client.get_pluggable_database(request=request)
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.GetPluggableDatabaseRequest, dict]
The request object. The request for |
name |
str
Required. The name of the PluggableDatabase resource in the following format: projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database} This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.types.PluggableDatabase |
The PluggableDatabase resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/PluggableDatabase/ |
gi_version_path
gi_version_path(project: str, location: str, gi_version: str) -> strReturns a fully-qualified gi_version string.
list_autonomous_database_backups
list_autonomous_database_backups(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.ListAutonomousDatabaseBackupsRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> (
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListAutonomousDatabaseBackupsPager
)Lists the long-term and automatic backups of an Autonomous Database.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_autonomous_database_backups():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListAutonomousDatabaseBackupsRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_autonomous_database_backups(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListAutonomousDatabaseBackupsRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for ListAutonomousDatabaseBackups in the following format: projects/{project}/locations/{location}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListAutonomousDatabaseBackupsPager |
The response for AutonomousDatabaseBackup.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_autonomous_database_character_sets
list_autonomous_database_character_sets(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.ListAutonomousDatabaseCharacterSetsRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> (
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListAutonomousDatabaseCharacterSetsPager
)Lists Autonomous Database Character Sets in a given project and location.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_autonomous_database_character_sets():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListAutonomousDatabaseCharacterSetsRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_autonomous_database_character_sets(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListAutonomousDatabaseCharacterSetsRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListAutonomousDatabaseCharacterSetsPager |
The response for AutonomousDatabaseCharacterSet.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_autonomous_databases
list_autonomous_databases(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.ListAutonomousDatabasesRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> (
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListAutonomousDatabasesPager
)Lists the Autonomous Databases in a given project and location.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_autonomous_databases():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListAutonomousDatabasesRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_autonomous_databases(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListAutonomousDatabasesRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListAutonomousDatabasesPager |
The response for AutonomousDatabase.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_autonomous_db_versions
list_autonomous_db_versions(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.ListAutonomousDbVersionsRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> (
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListAutonomousDbVersionsPager
)Lists all the available Autonomous Database versions for a project and location.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_autonomous_db_versions():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListAutonomousDbVersionsRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_autonomous_db_versions(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListAutonomousDbVersionsRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for the Autonomous Database in the following format: projects/{project}/locations/{location}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListAutonomousDbVersionsPager |
The response for AutonomousDbVersion.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_cloud_exadata_infrastructures
list_cloud_exadata_infrastructures(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.ListCloudExadataInfrastructuresRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> (
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListCloudExadataInfrastructuresPager
)Lists Exadata Infrastructures in a given project and location.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_cloud_exadata_infrastructures():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListCloudExadataInfrastructuresRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_cloud_exadata_infrastructures(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListCloudExadataInfrastructuresRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for CloudExadataInfrastructure in the following format: projects/{project}/locations/{location}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListCloudExadataInfrastructuresPager |
The response for CloudExadataInfrastructures.list. Iterating over this object will yield results and resolve additional pages automatically. |
list_cloud_vm_clusters
list_cloud_vm_clusters(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.ListCloudVmClustersRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> (
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListCloudVmClustersPager
)Lists the VM Clusters in a given project and location.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_cloud_vm_clusters():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListCloudVmClustersRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_cloud_vm_clusters(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListCloudVmClustersRequest, dict]
The request object. The request for |
parent |
str
Required. The name of the parent in the following format: projects/{project}/locations/{location}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListCloudVmClustersPager |
The response for CloudVmCluster.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_database_character_sets
list_database_character_sets(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.database_character_set.ListDatabaseCharacterSetsRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> (
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListDatabaseCharacterSetsPager
)List DatabaseCharacterSets for the given project and location.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_database_character_sets():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListDatabaseCharacterSetsRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_database_character_sets(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListDatabaseCharacterSetsRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for DatabaseCharacterSets in the following format: projects/{project}/locations/{location}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListDatabaseCharacterSetsPager |
The response for DatabaseCharacterSet.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_databases
list_databases(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.database.ListDatabasesRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListDatabasesPagerLists all the Databases for the given project, location and DbSystem.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_databases():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListDatabasesRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_databases(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListDatabasesRequest, dict]
The request object. The request for |
parent |
str
Required. The parent resource name in the following format: projects/{project}/locations/{region} This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListDatabasesPager |
The response for Database.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_db_nodes
list_db_nodes(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.ListDbNodesRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListDbNodesPagerLists the database nodes of a VM Cluster.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_db_nodes():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListDbNodesRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_db_nodes(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListDbNodesRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for database node in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. . This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListDbNodesPager |
The response for DbNode.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_db_servers
list_db_servers(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.ListDbServersRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListDbServersPagerLists the database servers of an Exadata Infrastructure instance.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_db_servers():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListDbServersRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_db_servers(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListDbServersRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for database server in the following format: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListDbServersPager |
The response for DbServer.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_db_system_initial_storage_sizes
list_db_system_initial_storage_sizes(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.db_system_initial_storage_size.ListDbSystemInitialStorageSizesRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> (
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListDbSystemInitialStorageSizesPager
)Lists all the DbSystemInitialStorageSizes for the given project and location.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_db_system_initial_storage_sizes():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListDbSystemInitialStorageSizesRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_db_system_initial_storage_sizes(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListDbSystemInitialStorageSizesRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for the DbSystemInitialStorageSize resource with the format: projects/{project}/locations/{location} This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListDbSystemInitialStorageSizesPager |
The response for DbSystemInitialStorageSizes.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_db_system_shapes
list_db_system_shapes(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.ListDbSystemShapesRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> (
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListDbSystemShapesPager
)Lists the database system shapes available for the project and location.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_db_system_shapes():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListDbSystemShapesRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_db_system_shapes(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListDbSystemShapesRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for Database System Shapes in the following format: projects/{project}/locations/{location}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListDbSystemShapesPager |
The response for DbSystemShape.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_db_systems
list_db_systems(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.db_system.ListDbSystemsRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListDbSystemsPagerLists all the DbSystems for the given project and location.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_db_systems():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListDbSystemsRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_db_systems(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListDbSystemsRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for DbSystems in the following format: projects/{project}/locations/{location}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListDbSystemsPager |
The response for DbSystem.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_db_versions
list_db_versions(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.db_version.ListDbVersionsRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListDbVersionsPagerList DbVersions for the given project and location.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_db_versions():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListDbVersionsRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_db_versions(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListDbVersionsRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for the DbVersion resource with the format: projects/{project}/locations/{location} This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListDbVersionsPager |
The response for DbVersions.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_entitlements
list_entitlements(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.ListEntitlementsRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> (
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListEntitlementsPager
)Lists the entitlements in a given project.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_entitlements():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListEntitlementsRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_entitlements(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListEntitlementsRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for the entitlement in the following format: projects/{project}/locations/{location}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListEntitlementsPager |
The response for Entitlement.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_exadb_vm_clusters
list_exadb_vm_clusters(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.ListExadbVmClustersRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> (
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListExadbVmClustersPager
)Lists all the Exadb (Exascale) VM Clusters for the given project and location.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_exadb_vm_clusters():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListExadbVmClustersRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_exadb_vm_clusters(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListExadbVmClustersRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for ExadbVmClusters in the following format: projects/{project}/locations/{location}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListExadbVmClustersPager |
The response for ExadbVmCluster.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_exascale_db_storage_vaults
list_exascale_db_storage_vaults(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.exascale_db_storage_vault.ListExascaleDbStorageVaultsRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> (
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListExascaleDbStorageVaultsPager
)Lists all the ExascaleDB Storage Vaults for the given project and location.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_exascale_db_storage_vaults():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListExascaleDbStorageVaultsRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_exascale_db_storage_vaults(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListExascaleDbStorageVaultsRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for ExascaleDbStorageVault in the following format: projects/{project}/locations/{location}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListExascaleDbStorageVaultsPager |
The response for ExascaleDbStorageVault.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_gi_versions
list_gi_versions(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.ListGiVersionsRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListGiVersionsPagerLists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_gi_versions():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListGiVersionsRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_gi_versions(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListGiVersionsRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for Grid Infrastructure Version in the following format: Format: projects/{project}/locations/{location}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListGiVersionsPager |
The response for GiVersion.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_locations
list_locations(
request: typing.Optional[
google.cloud.location.locations_pb2.ListLocationsRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.location.locations_pb2.ListLocationsResponseLists information about the supported locations for this service.
| Parameters | |
|---|---|
| Name | Description |
request |
The request object. Request message for |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
|
Response message for ListLocations method. |
list_minor_versions
list_minor_versions(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.minor_version.ListMinorVersionsRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> (
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListMinorVersionsPager
)Lists all the valid minor versions for the given project, location, gi version and shape family.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_minor_versions():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListMinorVersionsRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_minor_versions(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListMinorVersionsRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for the MinorVersion resource with the format: projects/{project}/locations/{location}/giVersions/{gi_version} This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListMinorVersionsPager |
The response for MinorVersion.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_odb_networks
list_odb_networks(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.odb_network.ListOdbNetworksRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> (
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListOdbNetworksPager
)Lists the ODB Networks in a given project and location.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_odb_networks():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListOdbNetworksRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_odb_networks(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListOdbNetworksRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for the ODB Network in the following format: projects/{project}/locations/{location}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListOdbNetworksPager |
The response for OdbNetwork.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_odb_subnets
list_odb_subnets(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.odb_subnet.ListOdbSubnetsRequest, dict
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListOdbSubnetsPagerLists all the ODB Subnets in a given ODB Network.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_odb_subnets():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListOdbSubnetsRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_odb_subnets(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListOdbSubnetsRequest, dict]
The request object. The request for |
parent |
str
Required. The parent value for the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListOdbSubnetsPager |
The response for OdbSubnet.List. Iterating over this object will yield results and resolve additional pages automatically. |
list_operations
list_operations(
request: typing.Optional[
google.longrunning.operations_pb2.ListOperationsRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.longrunning.operations_pb2.ListOperationsResponseLists operations that match the specified filter in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
The request object. Request message for |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
|
Response message for ListOperations method. |
list_pluggable_databases
list_pluggable_databases(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.pluggable_database.ListPluggableDatabasesRequest,
dict,
]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> (
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListPluggableDatabasesPager
)Lists all the PluggableDatabases for the given project, location and Container Database.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_list_pluggable_databases():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.ListPluggableDatabasesRequest(
parent="parent_value",
)
# Make the request
page_result = client.list_pluggable_databases(request=request)
# Handle the response
for response in page_result:
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.ListPluggableDatabasesRequest, dict]
The request object. The request for |
parent |
str
Required. The parent, which owns this collection of PluggableDatabases. Format: projects/{project}/locations/{location} This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.cloud.oracledatabase_v1.services.oracle_database.pagers.ListPluggableDatabasesPager |
The response for PluggableDatabase.List. Iterating over this object will yield results and resolve additional pages automatically. |
minor_version_path
minor_version_path(
project: str, location: str, gi_version: str, minor_version: str
) -> strReturns a fully-qualified minor_version string.
network_path
network_path(project: str, network: str) -> strReturns a fully-qualified network string.
odb_network_path
odb_network_path(project: str, location: str, odb_network: str) -> strReturns a fully-qualified odb_network string.
odb_subnet_path
odb_subnet_path(
project: str, location: str, odb_network: str, odb_subnet: str
) -> strReturns a fully-qualified odb_subnet string.
parse_autonomous_database_backup_path
parse_autonomous_database_backup_path(path: str) -> typing.Dict[str, str]Parses a autonomous_database_backup path into its component segments.
parse_autonomous_database_character_set_path
parse_autonomous_database_character_set_path(path: str) -> typing.Dict[str, str]Parses a autonomous_database_character_set path into its component segments.
parse_autonomous_database_path
parse_autonomous_database_path(path: str) -> typing.Dict[str, str]Parses a autonomous_database path into its component segments.
parse_autonomous_db_version_path
parse_autonomous_db_version_path(path: str) -> typing.Dict[str, str]Parses a autonomous_db_version path into its component segments.
parse_cloud_exadata_infrastructure_path
parse_cloud_exadata_infrastructure_path(path: str) -> typing.Dict[str, str]Parses a cloud_exadata_infrastructure path into its component segments.
parse_cloud_vm_cluster_path
parse_cloud_vm_cluster_path(path: str) -> typing.Dict[str, str]Parses a cloud_vm_cluster path into its component segments.
parse_common_billing_account_path
parse_common_billing_account_path(path: str) -> typing.Dict[str, str]Parse a billing_account path into its component segments.
parse_common_folder_path
parse_common_folder_path(path: str) -> typing.Dict[str, str]Parse a folder path into its component segments.
parse_common_location_path
parse_common_location_path(path: str) -> typing.Dict[str, str]Parse a location path into its component segments.
parse_common_organization_path
parse_common_organization_path(path: str) -> typing.Dict[str, str]Parse a organization path into its component segments.
parse_common_project_path
parse_common_project_path(path: str) -> typing.Dict[str, str]Parse a project path into its component segments.
parse_crypto_key_path
parse_crypto_key_path(path: str) -> typing.Dict[str, str]Parses a crypto_key path into its component segments.
parse_database_character_set_path
parse_database_character_set_path(path: str) -> typing.Dict[str, str]Parses a database_character_set path into its component segments.
parse_database_path
parse_database_path(path: str) -> typing.Dict[str, str]Parses a database path into its component segments.
parse_db_node_path
parse_db_node_path(path: str) -> typing.Dict[str, str]Parses a db_node path into its component segments.
parse_db_server_path
parse_db_server_path(path: str) -> typing.Dict[str, str]Parses a db_server path into its component segments.
parse_db_system_initial_storage_size_path
parse_db_system_initial_storage_size_path(path: str) -> typing.Dict[str, str]Parses a db_system_initial_storage_size path into its component segments.
parse_db_system_path
parse_db_system_path(path: str) -> typing.Dict[str, str]Parses a db_system path into its component segments.
parse_db_system_shape_path
parse_db_system_shape_path(path: str) -> typing.Dict[str, str]Parses a db_system_shape path into its component segments.
parse_db_version_path
parse_db_version_path(path: str) -> typing.Dict[str, str]Parses a db_version path into its component segments.
parse_entitlement_path
parse_entitlement_path(path: str) -> typing.Dict[str, str]Parses a entitlement path into its component segments.
parse_exadb_vm_cluster_path
parse_exadb_vm_cluster_path(path: str) -> typing.Dict[str, str]Parses a exadb_vm_cluster path into its component segments.
parse_exascale_db_storage_vault_path
parse_exascale_db_storage_vault_path(path: str) -> typing.Dict[str, str]Parses a exascale_db_storage_vault path into its component segments.
parse_gi_version_path
parse_gi_version_path(path: str) -> typing.Dict[str, str]Parses a gi_version path into its component segments.
parse_minor_version_path
parse_minor_version_path(path: str) -> typing.Dict[str, str]Parses a minor_version path into its component segments.
parse_network_path
parse_network_path(path: str) -> typing.Dict[str, str]Parses a network path into its component segments.
parse_odb_network_path
parse_odb_network_path(path: str) -> typing.Dict[str, str]Parses a odb_network path into its component segments.
parse_odb_subnet_path
parse_odb_subnet_path(path: str) -> typing.Dict[str, str]Parses a odb_subnet path into its component segments.
parse_pluggable_database_path
parse_pluggable_database_path(path: str) -> typing.Dict[str, str]Parses a pluggable_database path into its component segments.
pluggable_database_path
pluggable_database_path(
project: str, location: str, pluggable_database: str
) -> strReturns a fully-qualified pluggable_database string.
remove_virtual_machine_exadb_vm_cluster
remove_virtual_machine_exadb_vm_cluster(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.RemoveVirtualMachineExadbVmClusterRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
hostnames: typing.Optional[typing.MutableSequence[str]] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationRemoves virtual machines from an existing exadb vm cluster.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_remove_virtual_machine_exadb_vm_cluster():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.RemoveVirtualMachineExadbVmClusterRequest(
name="name_value",
hostnames=['hostnames_value1', 'hostnames_value2'],
)
# Make the request
operation = client.remove_virtual_machine_exadb_vm_cluster(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.RemoveVirtualMachineExadbVmClusterRequest, dict]
The request object. The request for |
name |
str
Required. The name of the ExadbVmCluster in the following format: projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. This corresponds to the |
hostnames |
MutableSequence[str]
Required. The list of host names of db nodes to be removed from the ExadbVmCluster. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be ExadbVmCluster ExadbVmCluster represents a cluster of VMs that are used to run Exadata workloads. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/ExadbVmCluster/ |
restart_autonomous_database
restart_autonomous_database(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.RestartAutonomousDatabaseRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationRestarts an Autonomous Database.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_restart_autonomous_database():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.RestartAutonomousDatabaseRequest(
name="name_value",
)
# Make the request
operation = client.restart_autonomous_database(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.RestartAutonomousDatabaseRequest, dict]
The request object. The request for |
name |
str
Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be AutonomousDatabase Details of the Autonomous Database resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/ |
restore_autonomous_database
restore_autonomous_database(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.RestoreAutonomousDatabaseRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
restore_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationRestores a single Autonomous Database.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_restore_autonomous_database():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.RestoreAutonomousDatabaseRequest(
name="name_value",
)
# Make the request
operation = client.restore_autonomous_database(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.RestoreAutonomousDatabaseRequest, dict]
The request object. The request for |
name |
str
Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. This corresponds to the |
restore_time |
google.protobuf.timestamp_pb2.Timestamp
Required. The time and date to restore the database to. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be AutonomousDatabase Details of the Autonomous Database resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/ |
start_autonomous_database
start_autonomous_database(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.StartAutonomousDatabaseRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationStarts an Autonomous Database.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_start_autonomous_database():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.StartAutonomousDatabaseRequest(
name="name_value",
)
# Make the request
operation = client.start_autonomous_database(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.StartAutonomousDatabaseRequest, dict]
The request object. The request for |
name |
str
Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be AutonomousDatabase Details of the Autonomous Database resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/ |
stop_autonomous_database
stop_autonomous_database(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.StopAutonomousDatabaseRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationStops an Autonomous Database.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_stop_autonomous_database():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.StopAutonomousDatabaseRequest(
name="name_value",
)
# Make the request
operation = client.stop_autonomous_database(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.StopAutonomousDatabaseRequest, dict]
The request object. The request for |
name |
str
Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be AutonomousDatabase Details of the Autonomous Database resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/ |
switchover_autonomous_database
switchover_autonomous_database(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.SwitchoverAutonomousDatabaseRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
peer_autonomous_database: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationInitiates a switchover of specified autonomous database to the associated peer database.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_switchover_autonomous_database():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.SwitchoverAutonomousDatabaseRequest(
name="name_value",
peer_autonomous_database="peer_autonomous_database_value",
)
# Make the request
operation = client.switchover_autonomous_database(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.SwitchoverAutonomousDatabaseRequest, dict]
The request object. The request for |
name |
str
Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. This corresponds to the |
peer_autonomous_database |
str
Required. The peer database name to switch over to. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be AutonomousDatabase Details of the Autonomous Database resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/ |
update_autonomous_database
update_autonomous_database(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.UpdateAutonomousDatabaseRequest,
dict,
]
] = None,
*,
autonomous_database: typing.Optional[
google.cloud.oracledatabase_v1.types.autonomous_database.AutonomousDatabase
] = None,
update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationUpdates the parameters of a single Autonomous Database.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_update_autonomous_database():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
request = oracledatabase_v1.UpdateAutonomousDatabaseRequest(
)
# Make the request
operation = client.update_autonomous_database(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.UpdateAutonomousDatabaseRequest, dict]
The request object. The request for |
autonomous_database |
google.cloud.oracledatabase_v1.types.AutonomousDatabase
Required. The resource being updated This corresponds to the |
update_mask |
google.protobuf.field_mask_pb2.FieldMask
Optional. Field mask is used to specify the fields to be overwritten in the Exadata resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be AutonomousDatabase Details of the Autonomous Database resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/ |
update_exadb_vm_cluster
update_exadb_vm_cluster(
request: typing.Optional[
typing.Union[
google.cloud.oracledatabase_v1.types.oracledatabase.UpdateExadbVmClusterRequest,
dict,
]
] = None,
*,
exadb_vm_cluster: typing.Optional[
google.cloud.oracledatabase_v1.types.exadb_vm_cluster.ExadbVmCluster
] = None,
update_mask: typing.Optional[google.protobuf.field_mask_pb2.FieldMask] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.OperationUpdates a single Exadb (Exascale) VM Cluster. To add virtual machines to existing exadb vm cluster, only pass the node count.
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import oracledatabase_v1
def sample_update_exadb_vm_cluster():
# Create a client
client = oracledatabase_v1.OracleDatabaseClient()
# Initialize request argument(s)
exadb_vm_cluster = oracledatabase_v1.ExadbVmCluster()
exadb_vm_cluster.properties.grid_image_id = "grid_image_id_value"
exadb_vm_cluster.properties.node_count = 1070
exadb_vm_cluster.properties.enabled_ecpu_count_per_node = 2826
exadb_vm_cluster.properties.vm_file_system_storage.size_in_gbs_per_node = 2103
exadb_vm_cluster.properties.exascale_db_storage_vault = "exascale_db_storage_vault_value"
exadb_vm_cluster.properties.hostname_prefix = "hostname_prefix_value"
exadb_vm_cluster.properties.ssh_public_keys = ['ssh_public_keys_value1', 'ssh_public_keys_value2']
exadb_vm_cluster.properties.shape_attribute = "BLOCK_STORAGE"
exadb_vm_cluster.odb_subnet = "odb_subnet_value"
exadb_vm_cluster.backup_odb_subnet = "backup_odb_subnet_value"
exadb_vm_cluster.display_name = "display_name_value"
request = oracledatabase_v1.UpdateExadbVmClusterRequest(
exadb_vm_cluster=exadb_vm_cluster,
)
# Make the request
operation = client.update_exadb_vm_cluster(request=request)
print("Waiting for operation to complete...")
response = operation.result()
# Handle the response
print(response)
| Parameters | |
|---|---|
| Name | Description |
request |
Union[google.cloud.oracledatabase_v1.types.UpdateExadbVmClusterRequest, dict]
The request object. The request for |
exadb_vm_cluster |
google.cloud.oracledatabase_v1.types.ExadbVmCluster
Required. The resource being updated. This corresponds to the |
update_mask |
google.protobuf.field_mask_pb2.FieldMask
Optional. A mask specifying which fields in th VM Cluster should be updated. A field specified in the mask is overwritten. If a mask isn't provided then all the fields in the VM Cluster are overwritten. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, Union[str, bytes]]]
Key/value pairs which should be sent along with the request as metadata. Normally, each value must be of type |
| Returns | |
|---|---|
| Type | Description |
google.api_core.operation.Operation |
An object representing a long-running operation. The result type for the operation will be ExadbVmCluster ExadbVmCluster represents a cluster of VMs that are used to run Exadata workloads. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/ExadbVmCluster/ |